From 80668b020fe03c9fa5aba7f71ff6df9f1abc544b Mon Sep 17 00:00:00 2001 From: Cosmin Sabou Date: Tue, 26 Sep 2023 00:31:42 +0300 Subject: [PATCH] Backed out 3 changesets (bug 1854025) for causing build bustages. Backed out changeset dd3a03791ed7 (bug 1854025) Backed out changeset b9136831bc35 (bug 1854025) Backed out changeset 08a18581bb77 (bug 1854025) --- Cargo.lock | 80 +- Cargo.toml | 1 + build/rust/bitflags/Cargo.toml | 1 - build/rust/redox_syscall_0_2/Cargo.toml | 11 + build/rust/redox_syscall_0_2/lib.rs | 3 + supply-chain/audits.toml | 32 - supply-chain/imports.lock | 56 - .../rust/errno-dragonfly/.cargo-checksum.json | 1 - third_party/rust/errno-dragonfly/Cargo.toml | 27 - third_party/rust/errno-dragonfly/LICENSE | 21 - third_party/rust/errno-dragonfly/README.md | 3 - third_party/rust/errno-dragonfly/build.rs | 3 - third_party/rust/errno-dragonfly/src/errno.c | 3 - third_party/rust/errno-dragonfly/src/lib.rs | 6 - third_party/rust/errno/.cargo-checksum.json | 1 - third_party/rust/errno/CHANGELOG.md | 60 - third_party/rust/errno/Cargo.toml | 52 - third_party/rust/errno/LICENSE-APACHE | 201 -- third_party/rust/errno/LICENSE-MIT | 25 - third_party/rust/errno/README.md | 62 - third_party/rust/errno/clippy.toml | 1 - third_party/rust/errno/src/hermit.rs | 32 - third_party/rust/errno/src/lib.rs | 156 - third_party/rust/errno/src/unix.rs | 90 - third_party/rust/errno/src/wasi.rs | 60 - third_party/rust/errno/src/windows.rs | 81 - third_party/rust/fastrand/.cargo-checksum.json | 2 +- third_party/rust/fastrand/CHANGELOG.md | 9 - third_party/rust/fastrand/Cargo.toml | 32 +- third_party/rust/fastrand/README.md | 13 - third_party/rust/fastrand/benches/bench.rs | 10 +- third_party/rust/fastrand/src/global_rng.rs | 218 -- third_party/rust/fastrand/src/lib.rs | 367 ++- third_party/rust/fastrand/tests/smoke.rs | 35 +- third_party/rust/instant/.cargo-checksum.json | 1 + third_party/rust/instant/AUTHORS | 2 + third_party/rust/instant/CHANGELOGS.md | 7 + third_party/rust/instant/Cargo.toml | 81 + third_party/rust/instant/LICENSE | 27 + third_party/rust/instant/README.md | 143 + third_party/rust/instant/src/lib.rs | 22 + third_party/rust/instant/src/native.rs | 9 + third_party/rust/instant/src/wasm.rs | 240 ++ third_party/rust/instant/tests/wasm.rs | 57 + third_party/rust/libc/.cargo-checksum.json | 2 +- third_party/rust/libc/Cargo.toml | 237 +- third_party/rust/libc/README.md | 14 +- third_party/rust/libc/build.rs | 153 +- third_party/rust/libc/src/fuchsia/aarch64.rs | 1 - third_party/rust/libc/src/fuchsia/mod.rs | 6 +- third_party/rust/libc/src/fuchsia/riscv64.rs | 44 - third_party/rust/libc/src/lib.rs | 6 - third_party/rust/libc/src/unix/aix/mod.rs | 3355 -------------------- third_party/rust/libc/src/unix/aix/powerpc64.rs | 644 ---- .../libc/src/unix/bsd/apple/b64/aarch64/align.rs | 1 + .../rust/libc/src/unix/bsd/apple/long_array.rs | 8 - third_party/rust/libc/src/unix/bsd/apple/mod.rs | 210 +- .../libc/src/unix/bsd/freebsdlike/dragonfly/mod.rs | 16 +- .../unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs | 14 +- .../unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs | 24 +- .../unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs | 27 +- .../unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs | 27 +- .../bsd/freebsdlike/freebsd/freebsd14/x86_64.rs | 7 - .../libc/src/unix/bsd/freebsdlike/freebsd/mod.rs | 1034 +----- .../libc/src/unix/bsd/freebsdlike/freebsd/x86.rs | 247 +- .../rust/libc/src/unix/bsd/freebsdlike/mod.rs | 39 +- third_party/rust/libc/src/unix/bsd/mod.rs | 1 - .../rust/libc/src/unix/bsd/netbsdlike/mod.rs | 1 - .../libc/src/unix/bsd/netbsdlike/netbsd/mod.rs | 160 +- .../libc/src/unix/bsd/netbsdlike/openbsd/mod.rs | 58 +- third_party/rust/libc/src/unix/haiku/mod.rs | 61 +- .../libc/src/unix/linux_like/android/b32/arm.rs | 8 - .../src/unix/linux_like/android/b32/x86/mod.rs | 8 - .../src/unix/linux_like/android/b64/aarch64/mod.rs | 36 - .../src/unix/linux_like/android/b64/riscv64/mod.rs | 23 +- .../src/unix/linux_like/android/b64/x86_64/mod.rs | 8 - .../rust/libc/src/unix/linux_like/android/mod.rs | 197 +- .../libc/src/unix/linux_like/emscripten/mod.rs | 14 +- .../rust/libc/src/unix/linux_like/linux/align.rs | 65 +- .../src/unix/linux_like/linux/arch/generic/mod.rs | 19 +- .../src/unix/linux_like/linux/arch/mips/mod.rs | 7 +- .../libc/src/unix/linux_like/linux/arch/mod.rs | 5 +- .../src/unix/linux_like/linux/arch/powerpc/mod.rs | 3 - .../src/unix/linux_like/linux/gnu/b32/arm/mod.rs | 22 - .../unix/linux_like/linux/gnu/b32/csky/align.rs | 7 - .../src/unix/linux_like/linux/gnu/b32/csky/mod.rs | 745 ----- .../src/unix/linux_like/linux/gnu/b32/m68k/mod.rs | 2 +- .../libc/src/unix/linux_like/linux/gnu/b32/mod.rs | 43 +- .../unix/linux_like/linux/gnu/b32/riscv32/mod.rs | 37 - .../unix/linux_like/linux/gnu/b64/aarch64/align.rs | 7 + .../linux_like/linux/gnu/b64/aarch64/fallback.rs | 8 - .../unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs | 2 - .../unix/linux_like/linux/gnu/b64/aarch64/lp64.rs | 2 - .../unix/linux_like/linux/gnu/b64/aarch64/mod.rs | 15 - .../linux_like/linux/gnu/b64/loongarch64/align.rs | 8 +- .../linux_like/linux/gnu/b64/loongarch64/mod.rs | 25 +- .../unix/linux_like/linux/gnu/b64/mips64/mod.rs | 2 - .../libc/src/unix/linux_like/linux/gnu/b64/mod.rs | 4 +- .../unix/linux_like/linux/gnu/b64/powerpc64/mod.rs | 2 - .../unix/linux_like/linux/gnu/b64/riscv64/mod.rs | 37 - .../src/unix/linux_like/linux/gnu/b64/s390x.rs | 2 - .../unix/linux_like/linux/gnu/b64/sparc64/mod.rs | 2 - .../unix/linux_like/linux/gnu/b64/x86_64/mod.rs | 1 - .../linux_like/linux/gnu/b64/x86_64/not_x32.rs | 1 - .../unix/linux_like/linux/gnu/b64/x86_64/x32.rs | 1 - .../rust/libc/src/unix/linux_like/linux/gnu/mod.rs | 105 +- .../rust/libc/src/unix/linux_like/linux/mod.rs | 621 +--- .../src/unix/linux_like/linux/musl/b32/mips/mod.rs | 3 +- .../libc/src/unix/linux_like/linux/musl/b32/mod.rs | 1 - .../src/unix/linux_like/linux/musl/b32/powerpc.rs | 7 +- .../unix/linux_like/linux/musl/b32/riscv32/mod.rs | 18 +- .../src/unix/linux_like/linux/musl/b32/x86/mod.rs | 3 - .../libc/src/unix/linux_like/linux/musl/b64/mod.rs | 1 - .../unix/linux_like/linux/musl/b64/powerpc64.rs | 3 - .../unix/linux_like/linux/musl/b64/riscv64/mod.rs | 16 + .../src/unix/linux_like/linux/musl/b64/s390x.rs | 29 +- .../unix/linux_like/linux/musl/b64/x86_64/mod.rs | 3 - .../libc/src/unix/linux_like/linux/musl/lfs64.rs | 241 -- .../libc/src/unix/linux_like/linux/musl/mod.rs | 51 +- .../libc/src/unix/linux_like/linux/no_align.rs | 51 +- .../src/unix/linux_like/linux/uclibc/arm/mod.rs | 25 - .../linux_like/linux/uclibc/mips/mips32/mod.rs | 27 - .../linux_like/linux/uclibc/mips/mips64/mod.rs | 2 - .../src/unix/linux_like/linux/uclibc/mips/mod.rs | 18 - .../src/unix/linux_like/linux/uclibc/x86_64/mod.rs | 3 - third_party/rust/libc/src/unix/linux_like/mod.rs | 178 +- third_party/rust/libc/src/unix/mod.rs | 52 +- third_party/rust/libc/src/unix/newlib/mod.rs | 49 +- third_party/rust/libc/src/unix/newlib/vita/mod.rs | 201 -- third_party/rust/libc/src/unix/nto/mod.rs | 284 +- third_party/rust/libc/src/unix/nto/neutrino.rs | 20 +- third_party/rust/libc/src/unix/redox/mod.rs | 86 - third_party/rust/libc/src/unix/solarish/mod.rs | 30 +- third_party/rust/libc/src/vxworks/mod.rs | 2 +- third_party/rust/libc/src/wasi.rs | 5 - third_party/rust/libc/src/windows/mod.rs | 19 +- third_party/rust/libc/src/xous.rs | 49 - .../rust/linux-raw-sys/.cargo-checksum.json | 1 - third_party/rust/linux-raw-sys/CODE_OF_CONDUCT.md | 49 - third_party/rust/linux-raw-sys/COPYRIGHT | 29 - third_party/rust/linux-raw-sys/Cargo.toml | 82 - third_party/rust/linux-raw-sys/LICENSE-APACHE | 201 -- .../LICENSE-Apache-2.0_WITH_LLVM-exception | 220 -- third_party/rust/linux-raw-sys/LICENSE-MIT | 23 - .../rust/linux-raw-sys/ORG_CODE_OF_CONDUCT.md | 143 - third_party/rust/linux-raw-sys/README.md | 44 - .../rust/linux-raw-sys/src/aarch64/errno.rs | 135 - .../rust/linux-raw-sys/src/aarch64/general.rs | 2805 ---------------- .../rust/linux-raw-sys/src/aarch64/if_ether.rs | 167 - .../rust/linux-raw-sys/src/aarch64/io_uring.rs | 1083 ------- .../rust/linux-raw-sys/src/aarch64/ioctl.rs | 1593 ---------- third_party/rust/linux-raw-sys/src/aarch64/net.rs | 1844 ----------- .../rust/linux-raw-sys/src/aarch64/netlink.rs | 2854 ----------------- .../rust/linux-raw-sys/src/aarch64/prctl.rs | 221 -- .../rust/linux-raw-sys/src/aarch64/system.rs | 129 - third_party/rust/linux-raw-sys/src/arm/errno.rs | 135 - third_party/rust/linux-raw-sys/src/arm/general.rs | 2937 ----------------- third_party/rust/linux-raw-sys/src/arm/if_ether.rs | 167 - third_party/rust/linux-raw-sys/src/arm/io_uring.rs | 1083 ------- third_party/rust/linux-raw-sys/src/arm/ioctl.rs | 1489 --------- third_party/rust/linux-raw-sys/src/arm/net.rs | 1836 ----------- third_party/rust/linux-raw-sys/src/arm/netlink.rs | 2854 ----------------- third_party/rust/linux-raw-sys/src/arm/prctl.rs | 221 -- third_party/rust/linux-raw-sys/src/arm/system.rs | 99 - third_party/rust/linux-raw-sys/src/csky/errno.rs | 135 - third_party/rust/linux-raw-sys/src/csky/general.rs | 2846 ----------------- .../rust/linux-raw-sys/src/csky/if_ether.rs | 167 - .../rust/linux-raw-sys/src/csky/io_uring.rs | 1087 ------- third_party/rust/linux-raw-sys/src/csky/ioctl.rs | 1489 --------- third_party/rust/linux-raw-sys/src/csky/net.rs | 1836 ----------- third_party/rust/linux-raw-sys/src/csky/netlink.rs | 2854 ----------------- third_party/rust/linux-raw-sys/src/csky/prctl.rs | 221 -- third_party/rust/linux-raw-sys/src/csky/system.rs | 99 - third_party/rust/linux-raw-sys/src/elf.rs | 256 -- third_party/rust/linux-raw-sys/src/lib.rs | 840 ----- .../rust/linux-raw-sys/src/loongarch64/errno.rs | 135 - .../rust/linux-raw-sys/src/loongarch64/general.rs | 2790 ---------------- .../rust/linux-raw-sys/src/loongarch64/if_ether.rs | 167 - .../rust/linux-raw-sys/src/loongarch64/io_uring.rs | 1083 ------- .../rust/linux-raw-sys/src/loongarch64/ioctl.rs | 1489 --------- .../rust/linux-raw-sys/src/loongarch64/net.rs | 1844 ----------- .../rust/linux-raw-sys/src/loongarch64/netlink.rs | 2854 ----------------- .../rust/linux-raw-sys/src/loongarch64/prctl.rs | 221 -- .../rust/linux-raw-sys/src/loongarch64/system.rs | 129 - third_party/rust/linux-raw-sys/src/mips/errno.rs | 137 - third_party/rust/linux-raw-sys/src/mips/general.rs | 3100 ------------------ .../rust/linux-raw-sys/src/mips/if_ether.rs | 177 -- .../rust/linux-raw-sys/src/mips/io_uring.rs | 1093 ------- third_party/rust/linux-raw-sys/src/mips/ioctl.rs | 1587 --------- third_party/rust/linux-raw-sys/src/mips/net.rs | 1867 ----------- third_party/rust/linux-raw-sys/src/mips/netlink.rs | 2864 ----------------- third_party/rust/linux-raw-sys/src/mips/prctl.rs | 231 -- third_party/rust/linux-raw-sys/src/mips/system.rs | 109 - .../rust/linux-raw-sys/src/mips32r6/errno.rs | 137 - .../rust/linux-raw-sys/src/mips32r6/general.rs | 3100 ------------------ .../rust/linux-raw-sys/src/mips32r6/if_ether.rs | 177 -- .../rust/linux-raw-sys/src/mips32r6/io_uring.rs | 1093 ------- .../rust/linux-raw-sys/src/mips32r6/ioctl.rs | 1587 --------- third_party/rust/linux-raw-sys/src/mips32r6/net.rs | 1867 ----------- .../rust/linux-raw-sys/src/mips32r6/netlink.rs | 2864 ----------------- .../rust/linux-raw-sys/src/mips32r6/prctl.rs | 231 -- .../rust/linux-raw-sys/src/mips32r6/system.rs | 109 - third_party/rust/linux-raw-sys/src/mips64/errno.rs | 137 - .../rust/linux-raw-sys/src/mips64/general.rs | 3017 ------------------ .../rust/linux-raw-sys/src/mips64/if_ether.rs | 177 -- .../rust/linux-raw-sys/src/mips64/io_uring.rs | 1093 ------- third_party/rust/linux-raw-sys/src/mips64/ioctl.rs | 1587 --------- third_party/rust/linux-raw-sys/src/mips64/net.rs | 1875 ----------- .../rust/linux-raw-sys/src/mips64/netlink.rs | 2864 ----------------- third_party/rust/linux-raw-sys/src/mips64/prctl.rs | 231 -- .../rust/linux-raw-sys/src/mips64/system.rs | 139 - .../rust/linux-raw-sys/src/mips64r6/errno.rs | 137 - .../rust/linux-raw-sys/src/mips64r6/general.rs | 3017 ------------------ .../rust/linux-raw-sys/src/mips64r6/if_ether.rs | 177 -- .../rust/linux-raw-sys/src/mips64r6/io_uring.rs | 1093 ------- .../rust/linux-raw-sys/src/mips64r6/ioctl.rs | 1587 --------- third_party/rust/linux-raw-sys/src/mips64r6/net.rs | 1875 ----------- .../rust/linux-raw-sys/src/mips64r6/netlink.rs | 2864 ----------------- .../rust/linux-raw-sys/src/mips64r6/prctl.rs | 231 -- .../rust/linux-raw-sys/src/mips64r6/system.rs | 139 - .../rust/linux-raw-sys/src/powerpc/errno.rs | 135 - .../rust/linux-raw-sys/src/powerpc/general.rs | 3023 ------------------ .../rust/linux-raw-sys/src/powerpc/if_ether.rs | 173 - .../rust/linux-raw-sys/src/powerpc/io_uring.rs | 1089 ------- .../rust/linux-raw-sys/src/powerpc/ioctl.rs | 1488 --------- third_party/rust/linux-raw-sys/src/powerpc/net.rs | 1842 ----------- .../rust/linux-raw-sys/src/powerpc/netlink.rs | 2860 ----------------- .../rust/linux-raw-sys/src/powerpc/prctl.rs | 227 -- .../rust/linux-raw-sys/src/powerpc/system.rs | 105 - .../rust/linux-raw-sys/src/powerpc64/errno.rs | 135 - .../rust/linux-raw-sys/src/powerpc64/general.rs | 2970 ----------------- .../rust/linux-raw-sys/src/powerpc64/if_ether.rs | 173 - .../rust/linux-raw-sys/src/powerpc64/io_uring.rs | 1089 ------- .../rust/linux-raw-sys/src/powerpc64/ioctl.rs | 1488 --------- .../rust/linux-raw-sys/src/powerpc64/net.rs | 1850 ----------- .../rust/linux-raw-sys/src/powerpc64/netlink.rs | 2860 ----------------- .../rust/linux-raw-sys/src/powerpc64/prctl.rs | 227 -- .../rust/linux-raw-sys/src/powerpc64/system.rs | 135 - .../rust/linux-raw-sys/src/riscv32/errno.rs | 135 - .../rust/linux-raw-sys/src/riscv32/general.rs | 2821 ---------------- .../rust/linux-raw-sys/src/riscv32/if_ether.rs | 167 - .../rust/linux-raw-sys/src/riscv32/io_uring.rs | 1083 ------- .../rust/linux-raw-sys/src/riscv32/ioctl.rs | 3 - third_party/rust/linux-raw-sys/src/riscv32/net.rs | 1836 ----------- .../rust/linux-raw-sys/src/riscv32/netlink.rs | 2854 ----------------- .../rust/linux-raw-sys/src/riscv32/prctl.rs | 221 -- .../rust/linux-raw-sys/src/riscv32/system.rs | 99 - .../rust/linux-raw-sys/src/riscv64/errno.rs | 135 - .../rust/linux-raw-sys/src/riscv64/general.rs | 2806 ---------------- .../rust/linux-raw-sys/src/riscv64/if_ether.rs | 167 - .../rust/linux-raw-sys/src/riscv64/io_uring.rs | 1083 ------- .../rust/linux-raw-sys/src/riscv64/ioctl.rs | 1489 --------- third_party/rust/linux-raw-sys/src/riscv64/net.rs | 1844 ----------- .../rust/linux-raw-sys/src/riscv64/netlink.rs | 2854 ----------------- .../rust/linux-raw-sys/src/riscv64/prctl.rs | 221 -- .../rust/linux-raw-sys/src/riscv64/system.rs | 129 - third_party/rust/linux-raw-sys/src/s390x/errno.rs | 135 - .../rust/linux-raw-sys/src/s390x/general.rs | 2859 ----------------- .../rust/linux-raw-sys/src/s390x/if_ether.rs | 187 -- .../rust/linux-raw-sys/src/s390x/io_uring.rs | 1103 ------- third_party/rust/linux-raw-sys/src/s390x/ioctl.rs | 1593 ---------- third_party/rust/linux-raw-sys/src/s390x/net.rs | 1864 ----------- .../rust/linux-raw-sys/src/s390x/netlink.rs | 2874 ----------------- third_party/rust/linux-raw-sys/src/s390x/prctl.rs | 241 -- third_party/rust/linux-raw-sys/src/s390x/system.rs | 149 - third_party/rust/linux-raw-sys/src/sparc/errno.rs | 137 - .../rust/linux-raw-sys/src/sparc/general.rs | 2982 ----------------- .../rust/linux-raw-sys/src/sparc/if_ether.rs | 167 - .../rust/linux-raw-sys/src/sparc/io_uring.rs | 1084 ------- third_party/rust/linux-raw-sys/src/sparc/ioctl.rs | 3 - third_party/rust/linux-raw-sys/src/sparc/net.rs | 2052 ------------ .../rust/linux-raw-sys/src/sparc/netlink.rs | 2854 ----------------- third_party/rust/linux-raw-sys/src/sparc/prctl.rs | 221 -- third_party/rust/linux-raw-sys/src/sparc/system.rs | 99 - .../rust/linux-raw-sys/src/sparc64/errno.rs | 137 - .../rust/linux-raw-sys/src/sparc64/general.rs | 2936 ----------------- .../rust/linux-raw-sys/src/sparc64/if_ether.rs | 173 - .../rust/linux-raw-sys/src/sparc64/io_uring.rs | 1084 ------- .../rust/linux-raw-sys/src/sparc64/ioctl.rs | 3 - third_party/rust/linux-raw-sys/src/sparc64/net.rs | 2066 ------------ .../rust/linux-raw-sys/src/sparc64/netlink.rs | 2860 ----------------- .../rust/linux-raw-sys/src/sparc64/prctl.rs | 227 -- .../rust/linux-raw-sys/src/sparc64/system.rs | 135 - third_party/rust/linux-raw-sys/src/x32/errno.rs | 135 - third_party/rust/linux-raw-sys/src/x32/general.rs | 2864 ----------------- third_party/rust/linux-raw-sys/src/x32/if_ether.rs | 167 - third_party/rust/linux-raw-sys/src/x32/io_uring.rs | 1083 ------- third_party/rust/linux-raw-sys/src/x32/ioctl.rs | 1593 ---------- third_party/rust/linux-raw-sys/src/x32/net.rs | 1844 ----------- third_party/rust/linux-raw-sys/src/x32/netlink.rs | 2854 ----------------- third_party/rust/linux-raw-sys/src/x32/prctl.rs | 221 -- third_party/rust/linux-raw-sys/src/x32/system.rs | 129 - third_party/rust/linux-raw-sys/src/x86/errno.rs | 135 - third_party/rust/linux-raw-sys/src/x86/general.rs | 2968 ----------------- third_party/rust/linux-raw-sys/src/x86/if_ether.rs | 167 - third_party/rust/linux-raw-sys/src/x86/io_uring.rs | 1087 ------- third_party/rust/linux-raw-sys/src/x86/ioctl.rs | 1593 ---------- third_party/rust/linux-raw-sys/src/x86/net.rs | 1836 ----------- third_party/rust/linux-raw-sys/src/x86/netlink.rs | 2854 ----------------- third_party/rust/linux-raw-sys/src/x86/prctl.rs | 221 -- third_party/rust/linux-raw-sys/src/x86/system.rs | 99 - third_party/rust/linux-raw-sys/src/x86_64/errno.rs | 135 - .../rust/linux-raw-sys/src/x86_64/general.rs | 2870 ----------------- .../rust/linux-raw-sys/src/x86_64/if_ether.rs | 167 - .../rust/linux-raw-sys/src/x86_64/io_uring.rs | 1083 ------- third_party/rust/linux-raw-sys/src/x86_64/ioctl.rs | 1593 ---------- third_party/rust/linux-raw-sys/src/x86_64/net.rs | 1844 ----------- .../rust/linux-raw-sys/src/x86_64/netlink.rs | 2854 ----------------- third_party/rust/linux-raw-sys/src/x86_64/prctl.rs | 221 -- .../rust/linux-raw-sys/src/x86_64/system.rs | 129 - third_party/rust/rustix/.cargo-checksum.json | 1 - third_party/rust/rustix/CODE_OF_CONDUCT.md | 49 - third_party/rust/rustix/CONTRIBUTING.md | 27 - third_party/rust/rustix/COPYRIGHT | 29 - third_party/rust/rustix/Cargo.toml | 268 -- third_party/rust/rustix/LICENSE-APACHE | 201 -- .../rustix/LICENSE-Apache-2.0_WITH_LLVM-exception | 220 -- third_party/rust/rustix/LICENSE-MIT | 23 - third_party/rust/rustix/ORG_CODE_OF_CONDUCT.md | 143 - third_party/rust/rustix/README.md | 180 -- third_party/rust/rustix/SECURITY.md | 29 - third_party/rust/rustix/benches/mod.rs | 189 -- third_party/rust/rustix/build.rs | 251 -- third_party/rust/rustix/src/backend/libc/c.rs | 524 --- third_party/rust/rustix/src/backend/libc/conv.rs | 240 -- .../rust/rustix/src/backend/libc/event/epoll.rs | 492 --- .../rust/rustix/src/backend/libc/event/mod.rs | 9 - .../rust/rustix/src/backend/libc/event/poll_fd.rs | 142 - .../rust/rustix/src/backend/libc/event/syscalls.rs | 183 -- .../rust/rustix/src/backend/libc/event/types.rs | 37 - .../src/backend/libc/event/windows_syscalls.rs | 16 - third_party/rust/rustix/src/backend/libc/fs/dir.rs | 295 -- .../rust/rustix/src/backend/libc/fs/inotify.rs | 132 - .../rust/rustix/src/backend/libc/fs/makedev.rs | 138 - third_party/rust/rustix/src/backend/libc/fs/mod.rs | 22 - .../rust/rustix/src/backend/libc/fs/syscalls.rs | 2425 -------------- .../rust/rustix/src/backend/libc/fs/types.rs | 1151 ------- .../rust/rustix/src/backend/libc/io/errno.rs | 949 ------ third_party/rust/rustix/src/backend/libc/io/mod.rs | 6 - .../rust/rustix/src/backend/libc/io/syscalls.rs | 344 -- .../rust/rustix/src/backend/libc/io/types.rs | 65 - .../rustix/src/backend/libc/io/windows_syscalls.rs | 30 - .../rust/rustix/src/backend/libc/io_uring/mod.rs | 1 - .../rustix/src/backend/libc/io_uring/syscalls.rs | 70 - third_party/rust/rustix/src/backend/libc/mm/mod.rs | 2 - .../rust/rustix/src/backend/libc/mm/syscalls.rs | 222 -- .../rust/rustix/src/backend/libc/mm/types.rs | 444 --- third_party/rust/rustix/src/backend/libc/mod.rs | 206 -- .../rust/rustix/src/backend/libc/mount/mod.rs | 2 - .../rust/rustix/src/backend/libc/mount/syscalls.rs | 272 -- .../rust/rustix/src/backend/libc/mount/types.rs | 340 -- .../rust/rustix/src/backend/libc/net/addr.rs | 239 -- .../rust/rustix/src/backend/libc/net/ext.rs | 131 - .../rust/rustix/src/backend/libc/net/mod.rs | 8 - .../rust/rustix/src/backend/libc/net/msghdr.rs | 134 - .../rustix/src/backend/libc/net/read_sockaddr.rs | 267 -- .../rust/rustix/src/backend/libc/net/send_recv.rs | 97 - .../rust/rustix/src/backend/libc/net/syscalls.rs | 1092 ------- .../rustix/src/backend/libc/net/write_sockaddr.rs | 96 - .../rust/rustix/src/backend/libc/param/auxv.rs | 54 - .../rust/rustix/src/backend/libc/param/mod.rs | 1 - .../rust/rustix/src/backend/libc/pid/mod.rs | 1 - .../rust/rustix/src/backend/libc/pid/syscalls.rs | 14 - .../rust/rustix/src/backend/libc/pipe/mod.rs | 2 - .../rust/rustix/src/backend/libc/pipe/syscalls.rs | 125 - .../rust/rustix/src/backend/libc/pipe/types.rs | 100 - .../rust/rustix/src/backend/libc/prctl/mod.rs | 1 - .../rust/rustix/src/backend/libc/prctl/syscalls.rs | 14 - .../rustix/src/backend/libc/process/cpu_set.rs | 50 - .../rust/rustix/src/backend/libc/process/mod.rs | 7 - .../rustix/src/backend/libc/process/syscalls.rs | 626 ---- .../rust/rustix/src/backend/libc/process/types.rs | 164 - .../rust/rustix/src/backend/libc/process/wait.rs | 9 - .../rust/rustix/src/backend/libc/pty/mod.rs | 1 - .../rust/rustix/src/backend/libc/pty/syscalls.rs | 104 - .../rust/rustix/src/backend/libc/rand/mod.rs | 2 - .../rust/rustix/src/backend/libc/rand/syscalls.rs | 14 - .../rust/rustix/src/backend/libc/rand/types.rs | 24 - .../rust/rustix/src/backend/libc/system/mod.rs | 3 - .../rustix/src/backend/libc/system/syscalls.rs | 58 - .../rust/rustix/src/backend/libc/system/types.rs | 8 - .../rust/rustix/src/backend/libc/termios/mod.rs | 1 - .../rustix/src/backend/libc/termios/syscalls.rs | 360 --- .../rust/rustix/src/backend/libc/thread/futex.rs | 43 - .../rust/rustix/src/backend/libc/thread/mod.rs | 4 - .../rustix/src/backend/libc/thread/syscalls.rs | 510 --- .../rust/rustix/src/backend/libc/time/mod.rs | 3 - .../rust/rustix/src/backend/libc/time/syscalls.rs | 452 --- .../rust/rustix/src/backend/libc/time/types.rs | 168 - .../rust/rustix/src/backend/libc/ugid/mod.rs | 1 - .../rust/rustix/src/backend/libc/ugid/syscalls.rs | 42 - .../rust/rustix/src/backend/libc/winsock_c.rs | 59 - .../rustix/src/backend/linux_raw/arch/aarch64.rs | 268 -- .../rust/rustix/src/backend/linux_raw/arch/arm.rs | 265 -- .../rust/rustix/src/backend/linux_raw/arch/mips.rs | 543 ---- .../rustix/src/backend/linux_raw/arch/mips32r6.rs | 543 ---- .../rustix/src/backend/linux_raw/arch/mips64.rs | 466 --- .../rustix/src/backend/linux_raw/arch/mips64r6.rs | 470 --- .../rust/rustix/src/backend/linux_raw/arch/mod.rs | 317 -- .../rustix/src/backend/linux_raw/arch/powerpc64.rs | 413 --- .../rustix/src/backend/linux_raw/arch/riscv64.rs | 265 -- .../rustix/src/backend/linux_raw/arch/thumb.rs | 322 -- .../rust/rustix/src/backend/linux_raw/arch/x86.rs | 490 --- .../rustix/src/backend/linux_raw/arch/x86_64.rs | 293 -- third_party/rust/rustix/src/backend/linux_raw/c.rs | 212 -- .../rust/rustix/src/backend/linux_raw/conv.rs | 1010 ------ .../rustix/src/backend/linux_raw/event/epoll.rs | 468 --- .../rust/rustix/src/backend/linux_raw/event/mod.rs | 5 - .../rustix/src/backend/linux_raw/event/poll_fd.rs | 98 - .../rustix/src/backend/linux_raw/event/syscalls.rs | 140 - .../rustix/src/backend/linux_raw/event/types.rs | 21 - .../rust/rustix/src/backend/linux_raw/fs/dir.rs | 227 -- .../rustix/src/backend/linux_raw/fs/inotify.rs | 119 - .../rustix/src/backend/linux_raw/fs/makedev.rs | 19 - .../rust/rustix/src/backend/linux_raw/fs/mod.rs | 13 - .../rustix/src/backend/linux_raw/fs/syscalls.rs | 1631 ---------- .../rust/rustix/src/backend/linux_raw/fs/types.rs | 739 ----- .../rust/rustix/src/backend/linux_raw/io/errno.rs | 553 ---- .../rust/rustix/src/backend/linux_raw/io/mod.rs | 3 - .../rustix/src/backend/linux_raw/io/syscalls.rs | 418 --- .../rust/rustix/src/backend/linux_raw/io/types.rs | 57 - .../rustix/src/backend/linux_raw/io_uring/mod.rs | 1 - .../src/backend/linux_raw/io_uring/syscalls.rs | 63 - .../rust/rustix/src/backend/linux_raw/mm/mod.rs | 2 - .../rustix/src/backend/linux_raw/mm/syscalls.rs | 212 -- .../rust/rustix/src/backend/linux_raw/mm/types.rs | 264 -- .../rust/rustix/src/backend/linux_raw/mod.rs | 113 - .../rust/rustix/src/backend/linux_raw/mount/mod.rs | 2 - .../rustix/src/backend/linux_raw/mount/syscalls.rs | 239 -- .../rustix/src/backend/linux_raw/mount/types.rs | 332 -- .../rust/rustix/src/backend/linux_raw/net/addr.rs | 164 - .../rust/rustix/src/backend/linux_raw/net/mod.rs | 6 - .../rustix/src/backend/linux_raw/net/msghdr.rs | 146 - .../src/backend/linux_raw/net/read_sockaddr.rs | 185 -- .../rustix/src/backend/linux_raw/net/send_recv.rs | 58 - .../rustix/src/backend/linux_raw/net/syscalls.rs | 1481 --------- .../src/backend/linux_raw/net/write_sockaddr.rs | 60 - .../rustix/src/backend/linux_raw/param/auxv.rs | 426 --- .../rustix/src/backend/linux_raw/param/init.rs | 149 - .../src/backend/linux_raw/param/libc_auxv.rs | 157 - .../rust/rustix/src/backend/linux_raw/param/mod.rs | 15 - .../rust/rustix/src/backend/linux_raw/pid/mod.rs | 1 - .../rustix/src/backend/linux_raw/pid/syscalls.rs | 18 - .../rust/rustix/src/backend/linux_raw/pipe/mod.rs | 2 - .../rustix/src/backend/linux_raw/pipe/syscalls.rs | 136 - .../rustix/src/backend/linux_raw/pipe/types.rs | 78 - .../rust/rustix/src/backend/linux_raw/prctl/mod.rs | 1 - .../rustix/src/backend/linux_raw/prctl/syscalls.rs | 22 - .../src/backend/linux_raw/process/cpu_set.rs | 46 - .../rustix/src/backend/linux_raw/process/mod.rs | 4 - .../src/backend/linux_raw/process/syscalls.rs | 626 ---- .../rustix/src/backend/linux_raw/process/types.rs | 104 - .../rustix/src/backend/linux_raw/process/wait.rs | 68 - .../rust/rustix/src/backend/linux_raw/pty/mod.rs | 1 - .../rustix/src/backend/linux_raw/pty/syscalls.rs | 44 - .../rust/rustix/src/backend/linux_raw/rand/mod.rs | 2 - .../rustix/src/backend/linux_raw/rand/syscalls.rs | 17 - .../rustix/src/backend/linux_raw/rand/types.rs | 20 - .../rust/rustix/src/backend/linux_raw/reg.rs | 258 -- .../rustix/src/backend/linux_raw/runtime/mod.rs | 2 - .../src/backend/linux_raw/runtime/syscalls.rs | 266 -- .../rustix/src/backend/linux_raw/runtime/tls.rs | 78 - .../rustix/src/backend/linux_raw/system/mod.rs | 2 - .../src/backend/linux_raw/system/syscalls.rs | 37 - .../rustix/src/backend/linux_raw/system/types.rs | 4 - .../rustix/src/backend/linux_raw/termios/mod.rs | 1 - .../src/backend/linux_raw/termios/syscalls.rs | 278 -- .../rustix/src/backend/linux_raw/thread/futex.rs | 45 - .../rustix/src/backend/linux_raw/thread/mod.rs | 2 - .../src/backend/linux_raw/thread/syscalls.rs | 348 -- .../rust/rustix/src/backend/linux_raw/time/mod.rs | 3 - .../rustix/src/backend/linux_raw/time/syscalls.rs | 258 -- .../rustix/src/backend/linux_raw/time/types.rs | 91 - .../rust/rustix/src/backend/linux_raw/ugid/mod.rs | 1 - .../rustix/src/backend/linux_raw/ugid/syscalls.rs | 67 - .../rust/rustix/src/backend/linux_raw/vdso.rs | 313 -- .../rustix/src/backend/linux_raw/vdso_wrappers.rs | 446 --- third_party/rust/rustix/src/bitcast.rs | 32 - third_party/rust/rustix/src/check_types.rs | 91 - third_party/rust/rustix/src/clockid.rs | 113 - third_party/rust/rustix/src/cstr.rs | 76 - third_party/rust/rustix/src/event/eventfd.rs | 20 - third_party/rust/rustix/src/event/kqueue.rs | 449 --- third_party/rust/rustix/src/event/mod.rs | 25 - third_party/rust/rustix/src/event/poll.rs | 32 - third_party/rust/rustix/src/event/port.rs | 151 - third_party/rust/rustix/src/ffi.rs | 15 - third_party/rust/rustix/src/fs/abs.rs | 282 -- third_party/rust/rustix/src/fs/at.rs | 432 --- third_party/rust/rustix/src/fs/constants.rs | 19 - third_party/rust/rustix/src/fs/copy_file_range.rs | 20 - third_party/rust/rustix/src/fs/cwd.rs | 39 - third_party/rust/rustix/src/fs/dir.rs | 5 - third_party/rust/rustix/src/fs/fadvise.rs | 19 - third_party/rust/rustix/src/fs/fcntl.rs | 110 - third_party/rust/rustix/src/fs/fcntl_apple.rs | 66 - third_party/rust/rustix/src/fs/fcopyfile.rs | 90 - third_party/rust/rustix/src/fs/fd.rs | 348 -- third_party/rust/rustix/src/fs/file_type.rs | 4 - third_party/rust/rustix/src/fs/getpath.rs | 14 - third_party/rust/rustix/src/fs/id.rs | 1 - third_party/rust/rustix/src/fs/ioctl.rs | 92 - third_party/rust/rustix/src/fs/makedev.rs | 35 - third_party/rust/rustix/src/fs/memfd_create.rs | 19 - third_party/rust/rustix/src/fs/mod.rs | 131 - third_party/rust/rustix/src/fs/mount.rs | 55 - third_party/rust/rustix/src/fs/openat2.rs | 23 - third_party/rust/rustix/src/fs/raw_dir.rs | 234 -- third_party/rust/rustix/src/fs/seek_from.rs | 53 - third_party/rust/rustix/src/fs/sendfile.rs | 19 - third_party/rust/rustix/src/fs/statx.rs | 105 - third_party/rust/rustix/src/fs/sync.rs | 14 - third_party/rust/rustix/src/fs/xattr.rs | 202 -- third_party/rust/rustix/src/io/close.rs | 55 - third_party/rust/rustix/src/io/dup.rs | 123 - third_party/rust/rustix/src/io/errno.rs | 72 - third_party/rust/rustix/src/io/fcntl.rs | 141 - third_party/rust/rustix/src/io/ioctl.rs | 85 - third_party/rust/rustix/src/io/is_read_write.rs | 19 - third_party/rust/rustix/src/io/mod.rs | 32 - third_party/rust/rustix/src/io/read_write.rs | 271 -- third_party/rust/rustix/src/io_uring.rs | 1460 --------- third_party/rust/rustix/src/ioctl/bsd.rs | 24 - third_party/rust/rustix/src/ioctl/linux.rs | 81 - third_party/rust/rustix/src/ioctl/mod.rs | 329 -- third_party/rust/rustix/src/ioctl/patterns.rs | 202 -- third_party/rust/rustix/src/lib.rs | 374 --- .../rustix/src/maybe_polyfill/no_std/io/mod.rs | 107 - .../rust/rustix/src/maybe_polyfill/no_std/mod.rs | 16 - .../src/maybe_polyfill/no_std/net/ip_addr.rs | 2068 ------------ .../rustix/src/maybe_polyfill/no_std/net/mod.rs | 5 - .../src/maybe_polyfill/no_std/net/socket_addr.rs | 641 ---- .../rustix/src/maybe_polyfill/no_std/os/fd/mod.rs | 19 - .../src/maybe_polyfill/no_std/os/fd/owned.rs | 290 -- .../rustix/src/maybe_polyfill/no_std/os/fd/raw.rs | 161 - .../rustix/src/maybe_polyfill/no_std/os/mod.rs | 4 - .../src/maybe_polyfill/no_std/os/windows/io/mod.rs | 5 - .../src/maybe_polyfill/no_std/os/windows/io/raw.rs | 71 - .../maybe_polyfill/no_std/os/windows/io/socket.rs | 199 -- .../src/maybe_polyfill/no_std/os/windows/mod.rs | 19 - .../rust/rustix/src/maybe_polyfill/std/mod.rs | 43 - third_party/rust/rustix/src/mm/madvise.rs | 49 - third_party/rust/rustix/src/mm/mmap.rs | 316 -- third_party/rust/rustix/src/mm/mod.rs | 15 - third_party/rust/rustix/src/mm/msync.rs | 46 - third_party/rust/rustix/src/mm/userfaultfd.rs | 30 - third_party/rust/rustix/src/mount/fsopen.rs | 219 -- third_party/rust/rustix/src/mount/mod.rs | 19 - third_party/rust/rustix/src/mount/mount_unmount.rs | 175 - third_party/rust/rustix/src/mount/types.rs | 1 - third_party/rust/rustix/src/net/mod.rs | 31 - third_party/rust/rustix/src/net/send_recv/mod.rs | 326 -- third_party/rust/rustix/src/net/send_recv/msg.rs | 763 ----- third_party/rust/rustix/src/net/socket.rs | 712 ----- third_party/rust/rustix/src/net/socket_addr_any.rs | 103 - third_party/rust/rustix/src/net/socketpair.rs | 36 - third_party/rust/rustix/src/net/sockopt.rs | 1704 ---------- third_party/rust/rustix/src/net/types.rs | 1367 -------- third_party/rust/rustix/src/net/wsa.rs | 49 - third_party/rust/rustix/src/param/auxv.rs | 96 - third_party/rust/rustix/src/param/init.rs | 23 - third_party/rust/rustix/src/param/mod.rs | 14 - third_party/rust/rustix/src/path/arg.rs | 1097 ------- third_party/rust/rustix/src/path/dec_int.rs | 120 - third_party/rust/rustix/src/path/mod.rs | 12 - third_party/rust/rustix/src/pid.rs | 105 - third_party/rust/rustix/src/pipe.rs | 217 -- third_party/rust/rustix/src/prctl.rs | 71 - third_party/rust/rustix/src/process/chdir.rs | 94 - third_party/rust/rustix/src/process/chroot.rs | 16 - third_party/rust/rustix/src/process/exit.rs | 36 - third_party/rust/rustix/src/process/id.rs | 233 -- third_party/rust/rustix/src/process/ioctl.rs | 52 - third_party/rust/rustix/src/process/kill.rs | 97 - third_party/rust/rustix/src/process/membarrier.rs | 92 - third_party/rust/rustix/src/process/mod.rs | 77 - third_party/rust/rustix/src/process/pidfd.rs | 30 - third_party/rust/rustix/src/process/pidfd_getfd.rs | 56 - third_party/rust/rustix/src/process/prctl.rs | 1146 ------- third_party/rust/rustix/src/process/priority.rs | 132 - third_party/rust/rustix/src/process/procctl.rs | 528 --- third_party/rust/rustix/src/process/rlimit.rs | 53 - third_party/rust/rustix/src/process/sched.rs | 110 - third_party/rust/rustix/src/process/sched_yield.rs | 16 - third_party/rust/rustix/src/process/umask.rs | 21 - third_party/rust/rustix/src/process/wait.rs | 333 -- third_party/rust/rustix/src/procfs.rs | 481 --- third_party/rust/rustix/src/pty.rs | 206 -- third_party/rust/rustix/src/rand/getrandom.rs | 20 - third_party/rust/rustix/src/rand/mod.rs | 7 - third_party/rust/rustix/src/runtime.rs | 478 --- third_party/rust/rustix/src/signal.rs | 220 -- third_party/rust/rustix/src/static_assertions.rs | 37 - third_party/rust/rustix/src/stdio.rs | 511 --- third_party/rust/rustix/src/system.rs | 156 - third_party/rust/rustix/src/termios/ioctl.rs | 53 - third_party/rust/rustix/src/termios/mod.rs | 27 - third_party/rust/rustix/src/termios/tc.rs | 203 -- third_party/rust/rustix/src/termios/tty.rs | 80 - third_party/rust/rustix/src/termios/types.rs | 1436 --------- third_party/rust/rustix/src/thread/clock.rs | 97 - third_party/rust/rustix/src/thread/futex.rs | 38 - third_party/rust/rustix/src/thread/id.rs | 115 - third_party/rust/rustix/src/thread/libcap.rs | 185 -- third_party/rust/rustix/src/thread/mod.rs | 30 - third_party/rust/rustix/src/thread/prctl.rs | 1001 ------ third_party/rust/rustix/src/thread/setns.rs | 137 - third_party/rust/rustix/src/time/clock.rs | 108 - third_party/rust/rustix/src/time/mod.rs | 11 - third_party/rust/rustix/src/time/timerfd.rs | 41 - third_party/rust/rustix/src/timespec.rs | 110 - third_party/rust/rustix/src/ugid.rs | 98 - third_party/rust/rustix/src/utils.rs | 82 - third_party/rust/rustix/src/weak.rs | 286 -- third_party/rust/tempfile/.cargo-checksum.json | 2 +- third_party/rust/tempfile/CHANGELOG.md | 256 -- third_party/rust/tempfile/Cargo.toml | 42 +- third_party/rust/tempfile/NEWS | 206 ++ third_party/rust/tempfile/README.md | 3 +- third_party/rust/tempfile/src/dir.rs | 96 +- third_party/rust/tempfile/src/file/imp/other.rs | 4 +- third_party/rust/tempfile/src/file/imp/unix.rs | 89 +- third_party/rust/tempfile/src/file/imp/windows.rs | 16 +- third_party/rust/tempfile/src/file/mod.rs | 271 +- third_party/rust/tempfile/src/lib.rs | 176 +- third_party/rust/tempfile/src/spooled.rs | 89 +- third_party/rust/tempfile/src/util.rs | 15 +- third_party/rust/tempfile/tests/namedtempfile.rs | 151 +- third_party/rust/tempfile/tests/spooled.rs | 32 +- third_party/rust/tempfile/tests/tempdir.rs | 147 +- third_party/rust/tempfile/tests/tempfile.rs | 7 +- toolkit/content/license.html | 1 + 632 files changed, 2032 insertions(+), 267280 deletions(-) create mode 100644 build/rust/redox_syscall_0_2/Cargo.toml create mode 100644 build/rust/redox_syscall_0_2/lib.rs delete mode 100644 third_party/rust/errno-dragonfly/.cargo-checksum.json delete mode 100644 third_party/rust/errno-dragonfly/Cargo.toml delete mode 100644 third_party/rust/errno-dragonfly/LICENSE delete mode 100644 third_party/rust/errno-dragonfly/README.md delete mode 100644 third_party/rust/errno-dragonfly/build.rs delete mode 100644 third_party/rust/errno-dragonfly/src/errno.c delete mode 100644 third_party/rust/errno-dragonfly/src/lib.rs delete mode 100644 third_party/rust/errno/.cargo-checksum.json delete mode 100644 third_party/rust/errno/CHANGELOG.md delete mode 100644 third_party/rust/errno/Cargo.toml delete mode 100644 third_party/rust/errno/LICENSE-APACHE delete mode 100644 third_party/rust/errno/LICENSE-MIT delete mode 100644 third_party/rust/errno/README.md delete mode 100644 third_party/rust/errno/clippy.toml delete mode 100644 third_party/rust/errno/src/hermit.rs delete mode 100644 third_party/rust/errno/src/lib.rs delete mode 100644 third_party/rust/errno/src/unix.rs delete mode 100644 third_party/rust/errno/src/wasi.rs delete mode 100644 third_party/rust/errno/src/windows.rs rewrite third_party/rust/fastrand/.cargo-checksum.json (85%) delete mode 100644 third_party/rust/fastrand/src/global_rng.rs create mode 100644 third_party/rust/instant/.cargo-checksum.json create mode 100644 third_party/rust/instant/AUTHORS create mode 100644 third_party/rust/instant/CHANGELOGS.md create mode 100644 third_party/rust/instant/Cargo.toml create mode 100644 third_party/rust/instant/LICENSE create mode 100644 third_party/rust/instant/README.md create mode 100644 third_party/rust/instant/src/lib.rs create mode 100644 third_party/rust/instant/src/native.rs create mode 100644 third_party/rust/instant/src/wasm.rs create mode 100644 third_party/rust/instant/tests/wasm.rs rewrite third_party/rust/libc/.cargo-checksum.json (97%) rewrite third_party/rust/libc/Cargo.toml (70%) delete mode 100644 third_party/rust/libc/src/fuchsia/riscv64.rs delete mode 100644 third_party/rust/libc/src/unix/aix/mod.rs delete mode 100644 third_party/rust/libc/src/unix/aix/powerpc64.rs delete mode 100644 third_party/rust/libc/src/unix/bsd/apple/long_array.rs rewrite third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs (83%) delete mode 100644 third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/align.rs delete mode 100644 third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/mod.rs delete mode 100644 third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/fallback.rs delete mode 100644 third_party/rust/libc/src/unix/linux_like/linux/musl/lfs64.rs delete mode 100644 third_party/rust/libc/src/unix/newlib/vita/mod.rs delete mode 100644 third_party/rust/libc/src/xous.rs delete mode 100644 third_party/rust/linux-raw-sys/.cargo-checksum.json delete mode 100644 third_party/rust/linux-raw-sys/CODE_OF_CONDUCT.md delete mode 100644 third_party/rust/linux-raw-sys/COPYRIGHT delete mode 100644 third_party/rust/linux-raw-sys/Cargo.toml delete mode 100644 third_party/rust/linux-raw-sys/LICENSE-APACHE delete mode 100644 third_party/rust/linux-raw-sys/LICENSE-Apache-2.0_WITH_LLVM-exception delete mode 100644 third_party/rust/linux-raw-sys/LICENSE-MIT delete mode 100644 third_party/rust/linux-raw-sys/ORG_CODE_OF_CONDUCT.md delete mode 100644 third_party/rust/linux-raw-sys/README.md delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/aarch64/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/arm/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/csky/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/elf.rs delete mode 100644 third_party/rust/linux-raw-sys/src/lib.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/loongarch64/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips32r6/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/mips64r6/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/powerpc64/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv32/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/riscv64/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/s390x/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/sparc64/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x32/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86/system.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/errno.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/general.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/if_ether.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/io_uring.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/ioctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/net.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/netlink.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/prctl.rs delete mode 100644 third_party/rust/linux-raw-sys/src/x86_64/system.rs delete mode 100644 third_party/rust/rustix/.cargo-checksum.json delete mode 100644 third_party/rust/rustix/CODE_OF_CONDUCT.md delete mode 100644 third_party/rust/rustix/CONTRIBUTING.md delete mode 100644 third_party/rust/rustix/COPYRIGHT delete mode 100644 third_party/rust/rustix/Cargo.toml delete mode 100644 third_party/rust/rustix/LICENSE-APACHE delete mode 100644 third_party/rust/rustix/LICENSE-Apache-2.0_WITH_LLVM-exception delete mode 100644 third_party/rust/rustix/LICENSE-MIT delete mode 100644 third_party/rust/rustix/ORG_CODE_OF_CONDUCT.md delete mode 100644 third_party/rust/rustix/README.md delete mode 100644 third_party/rust/rustix/SECURITY.md delete mode 100644 third_party/rust/rustix/benches/mod.rs delete mode 100644 third_party/rust/rustix/build.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/c.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/conv.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/event/epoll.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/event/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/event/poll_fd.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/event/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/event/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/event/windows_syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/fs/dir.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/fs/inotify.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/fs/makedev.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/fs/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/fs/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/fs/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/io/errno.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/io/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/io/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/io/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/io/windows_syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/io_uring/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/io_uring/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/mm/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/mm/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/mm/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/mount/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/mount/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/mount/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/addr.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/ext.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/msghdr.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/read_sockaddr.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/send_recv.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/net/write_sockaddr.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/param/auxv.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/param/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/pid/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/pid/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/pipe/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/pipe/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/pipe/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/prctl/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/prctl/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/process/cpu_set.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/process/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/process/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/process/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/process/wait.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/pty/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/pty/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/rand/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/rand/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/rand/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/system/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/system/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/system/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/termios/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/termios/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/thread/futex.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/thread/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/thread/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/time/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/time/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/time/types.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/ugid/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/ugid/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/libc/winsock_c.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/aarch64.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/arm.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/mips.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/mips32r6.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/mips64.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/mips64r6.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/powerpc64.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/riscv64.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/thumb.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/x86.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/arch/x86_64.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/c.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/conv.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/event/epoll.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/event/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/event/poll_fd.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/event/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/event/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/fs/dir.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/fs/inotify.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/fs/makedev.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/fs/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/fs/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/fs/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/io/errno.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/io/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/io/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/io/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/io_uring/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/io_uring/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/mm/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/mm/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/mm/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/mount/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/mount/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/mount/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/net/addr.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/net/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/net/msghdr.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/net/read_sockaddr.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/net/send_recv.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/net/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/net/write_sockaddr.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/param/auxv.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/param/init.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/param/libc_auxv.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/param/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/pid/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/pid/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/pipe/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/pipe/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/pipe/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/prctl/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/prctl/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/process/cpu_set.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/process/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/process/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/process/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/process/wait.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/pty/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/pty/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/rand/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/rand/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/rand/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/reg.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/runtime/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/runtime/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/runtime/tls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/system/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/system/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/system/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/termios/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/termios/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/thread/futex.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/thread/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/thread/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/time/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/time/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/time/types.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/ugid/mod.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/ugid/syscalls.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/vdso.rs delete mode 100644 third_party/rust/rustix/src/backend/linux_raw/vdso_wrappers.rs delete mode 100644 third_party/rust/rustix/src/bitcast.rs delete mode 100644 third_party/rust/rustix/src/check_types.rs delete mode 100644 third_party/rust/rustix/src/clockid.rs delete mode 100644 third_party/rust/rustix/src/cstr.rs delete mode 100644 third_party/rust/rustix/src/event/eventfd.rs delete mode 100644 third_party/rust/rustix/src/event/kqueue.rs delete mode 100644 third_party/rust/rustix/src/event/mod.rs delete mode 100644 third_party/rust/rustix/src/event/poll.rs delete mode 100644 third_party/rust/rustix/src/event/port.rs delete mode 100644 third_party/rust/rustix/src/ffi.rs delete mode 100644 third_party/rust/rustix/src/fs/abs.rs delete mode 100644 third_party/rust/rustix/src/fs/at.rs delete mode 100644 third_party/rust/rustix/src/fs/constants.rs delete mode 100644 third_party/rust/rustix/src/fs/copy_file_range.rs delete mode 100644 third_party/rust/rustix/src/fs/cwd.rs delete mode 100644 third_party/rust/rustix/src/fs/dir.rs delete mode 100644 third_party/rust/rustix/src/fs/fadvise.rs delete mode 100644 third_party/rust/rustix/src/fs/fcntl.rs delete mode 100644 third_party/rust/rustix/src/fs/fcntl_apple.rs delete mode 100644 third_party/rust/rustix/src/fs/fcopyfile.rs delete mode 100644 third_party/rust/rustix/src/fs/fd.rs delete mode 100644 third_party/rust/rustix/src/fs/file_type.rs delete mode 100644 third_party/rust/rustix/src/fs/getpath.rs delete mode 100644 third_party/rust/rustix/src/fs/id.rs delete mode 100644 third_party/rust/rustix/src/fs/ioctl.rs delete mode 100644 third_party/rust/rustix/src/fs/makedev.rs delete mode 100644 third_party/rust/rustix/src/fs/memfd_create.rs delete mode 100644 third_party/rust/rustix/src/fs/mod.rs delete mode 100644 third_party/rust/rustix/src/fs/mount.rs delete mode 100644 third_party/rust/rustix/src/fs/openat2.rs delete mode 100644 third_party/rust/rustix/src/fs/raw_dir.rs delete mode 100644 third_party/rust/rustix/src/fs/seek_from.rs delete mode 100644 third_party/rust/rustix/src/fs/sendfile.rs delete mode 100644 third_party/rust/rustix/src/fs/statx.rs delete mode 100644 third_party/rust/rustix/src/fs/sync.rs delete mode 100644 third_party/rust/rustix/src/fs/xattr.rs delete mode 100644 third_party/rust/rustix/src/io/close.rs delete mode 100644 third_party/rust/rustix/src/io/dup.rs delete mode 100644 third_party/rust/rustix/src/io/errno.rs delete mode 100644 third_party/rust/rustix/src/io/fcntl.rs delete mode 100644 third_party/rust/rustix/src/io/ioctl.rs delete mode 100644 third_party/rust/rustix/src/io/is_read_write.rs delete mode 100644 third_party/rust/rustix/src/io/mod.rs delete mode 100644 third_party/rust/rustix/src/io/read_write.rs delete mode 100644 third_party/rust/rustix/src/io_uring.rs delete mode 100644 third_party/rust/rustix/src/ioctl/bsd.rs delete mode 100644 third_party/rust/rustix/src/ioctl/linux.rs delete mode 100644 third_party/rust/rustix/src/ioctl/mod.rs delete mode 100644 third_party/rust/rustix/src/ioctl/patterns.rs delete mode 100644 third_party/rust/rustix/src/lib.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/io/mod.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/mod.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/net/ip_addr.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/net/mod.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/net/socket_addr.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/mod.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/owned.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/raw.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/mod.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/mod.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/raw.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/socket.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/mod.rs delete mode 100644 third_party/rust/rustix/src/maybe_polyfill/std/mod.rs delete mode 100644 third_party/rust/rustix/src/mm/madvise.rs delete mode 100644 third_party/rust/rustix/src/mm/mmap.rs delete mode 100644 third_party/rust/rustix/src/mm/mod.rs delete mode 100644 third_party/rust/rustix/src/mm/msync.rs delete mode 100644 third_party/rust/rustix/src/mm/userfaultfd.rs delete mode 100644 third_party/rust/rustix/src/mount/fsopen.rs delete mode 100644 third_party/rust/rustix/src/mount/mod.rs delete mode 100644 third_party/rust/rustix/src/mount/mount_unmount.rs delete mode 100644 third_party/rust/rustix/src/mount/types.rs delete mode 100644 third_party/rust/rustix/src/net/mod.rs delete mode 100644 third_party/rust/rustix/src/net/send_recv/mod.rs delete mode 100644 third_party/rust/rustix/src/net/send_recv/msg.rs delete mode 100644 third_party/rust/rustix/src/net/socket.rs delete mode 100644 third_party/rust/rustix/src/net/socket_addr_any.rs delete mode 100644 third_party/rust/rustix/src/net/socketpair.rs delete mode 100644 third_party/rust/rustix/src/net/sockopt.rs delete mode 100644 third_party/rust/rustix/src/net/types.rs delete mode 100644 third_party/rust/rustix/src/net/wsa.rs delete mode 100644 third_party/rust/rustix/src/param/auxv.rs delete mode 100644 third_party/rust/rustix/src/param/init.rs delete mode 100644 third_party/rust/rustix/src/param/mod.rs delete mode 100644 third_party/rust/rustix/src/path/arg.rs delete mode 100644 third_party/rust/rustix/src/path/dec_int.rs delete mode 100644 third_party/rust/rustix/src/path/mod.rs delete mode 100644 third_party/rust/rustix/src/pid.rs delete mode 100644 third_party/rust/rustix/src/pipe.rs delete mode 100644 third_party/rust/rustix/src/prctl.rs delete mode 100644 third_party/rust/rustix/src/process/chdir.rs delete mode 100644 third_party/rust/rustix/src/process/chroot.rs delete mode 100644 third_party/rust/rustix/src/process/exit.rs delete mode 100644 third_party/rust/rustix/src/process/id.rs delete mode 100644 third_party/rust/rustix/src/process/ioctl.rs delete mode 100644 third_party/rust/rustix/src/process/kill.rs delete mode 100644 third_party/rust/rustix/src/process/membarrier.rs delete mode 100644 third_party/rust/rustix/src/process/mod.rs delete mode 100644 third_party/rust/rustix/src/process/pidfd.rs delete mode 100644 third_party/rust/rustix/src/process/pidfd_getfd.rs delete mode 100644 third_party/rust/rustix/src/process/prctl.rs delete mode 100644 third_party/rust/rustix/src/process/priority.rs delete mode 100644 third_party/rust/rustix/src/process/procctl.rs delete mode 100644 third_party/rust/rustix/src/process/rlimit.rs delete mode 100644 third_party/rust/rustix/src/process/sched.rs delete mode 100644 third_party/rust/rustix/src/process/sched_yield.rs delete mode 100644 third_party/rust/rustix/src/process/umask.rs delete mode 100644 third_party/rust/rustix/src/process/wait.rs delete mode 100644 third_party/rust/rustix/src/procfs.rs delete mode 100644 third_party/rust/rustix/src/pty.rs delete mode 100644 third_party/rust/rustix/src/rand/getrandom.rs delete mode 100644 third_party/rust/rustix/src/rand/mod.rs delete mode 100644 third_party/rust/rustix/src/runtime.rs delete mode 100644 third_party/rust/rustix/src/signal.rs delete mode 100644 third_party/rust/rustix/src/static_assertions.rs delete mode 100644 third_party/rust/rustix/src/stdio.rs delete mode 100644 third_party/rust/rustix/src/system.rs delete mode 100644 third_party/rust/rustix/src/termios/ioctl.rs delete mode 100644 third_party/rust/rustix/src/termios/mod.rs delete mode 100644 third_party/rust/rustix/src/termios/tc.rs delete mode 100644 third_party/rust/rustix/src/termios/tty.rs delete mode 100644 third_party/rust/rustix/src/termios/types.rs delete mode 100644 third_party/rust/rustix/src/thread/clock.rs delete mode 100644 third_party/rust/rustix/src/thread/futex.rs delete mode 100644 third_party/rust/rustix/src/thread/id.rs delete mode 100644 third_party/rust/rustix/src/thread/libcap.rs delete mode 100644 third_party/rust/rustix/src/thread/mod.rs delete mode 100644 third_party/rust/rustix/src/thread/prctl.rs delete mode 100644 third_party/rust/rustix/src/thread/setns.rs delete mode 100644 third_party/rust/rustix/src/time/clock.rs delete mode 100644 third_party/rust/rustix/src/time/mod.rs delete mode 100644 third_party/rust/rustix/src/time/timerfd.rs delete mode 100644 third_party/rust/rustix/src/timespec.rs delete mode 100644 third_party/rust/rustix/src/ugid.rs delete mode 100644 third_party/rust/rustix/src/utils.rs delete mode 100644 third_party/rust/rustix/src/weak.rs rewrite third_party/rust/tempfile/.cargo-checksum.json (100%) delete mode 100644 third_party/rust/tempfile/CHANGELOG.md create mode 100644 third_party/rust/tempfile/NEWS diff --git a/Cargo.lock b/Cargo.lock index fd1bba17cc70..de841cf0e7d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1520,27 +1520,6 @@ dependencies = [ ] [[package]] -name = "errno" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "136526188508e25c6fef639d7927dfb3e0e3084488bf202267829cf7fc23dbdd" -dependencies = [ - "errno-dragonfly", - "libc", - "windows-sys", -] - -[[package]] -name = "errno-dragonfly" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" -dependencies = [ - "cc", - "libc", -] - -[[package]] name = "error-chain" version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1626,9 +1605,12 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.0.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764" +checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" +dependencies = [ + "instant", +] [[package]] name = "ffi-support" @@ -2768,6 +2750,15 @@ dependencies = [ ] [[package]] +name = "instant" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] name = "interrupt-support" version = "0.1.0" source = "git+https://github.com/mozilla/application-services?rev=1a59041d0c7d36ef1abc713a48304c5333e45a1a#1a59041d0c7d36ef1abc713a48304c5333e45a1a" @@ -3077,9 +3068,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.148" +version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" +checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" [[package]] name = "libdbus-sys" @@ -3151,12 +3142,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] -name = "linux-raw-sys" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a9bad9f94746442c783ca431b22403b519cd7fbeed0533fdd6328b2f2212128" - -[[package]] name = "litemap" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -4138,7 +4123,7 @@ checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ "cfg-if 1.0.0", "libc", - "redox_syscall", + "redox_syscall 0.3.999", "smallvec", "windows-targets", ] @@ -4542,6 +4527,13 @@ dependencies = [ [[package]] name = "redox_syscall" +version = "0.2.999" +dependencies = [ + "redox_syscall 0.3.999", +] + +[[package]] +name = "redox_syscall" version = "0.3.999" [[package]] @@ -4746,19 +4738,6 @@ dependencies = [ ] [[package]] -name = "rustix" -version = "0.38.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7db8590df6dfcd144d22afd1b83b36c21a18d7cbc1dc4bb5295a8712e9eb662" -dependencies = [ - "bitflags 2.999.999", - "errno", - "libc", - "linux-raw-sys", - "windows-sys", -] - -[[package]] name = "ryu" version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -5389,15 +5368,16 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.8.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" +checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" dependencies = [ "cfg-if 1.0.0", "fastrand", - "redox_syscall", - "rustix", - "windows-sys", + "libc", + "redox_syscall 0.2.999", + "remove_dir_all", + "winapi", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index bed21f8ef7d3..b92944517b13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,6 +121,7 @@ serde_with = { path = "build/rust/serde_with" } redox_users = { path = "build/rust/redox_users" } # Patch redox_syscall to an empty crate +redox_syscall_0_2 = { package = "redox_syscall", path = "build/rust/redox_syscall_0_2" } redox_syscall = { path = "build/rust/redox_syscall" } # Override tinyvec with smallvec diff --git a/build/rust/bitflags/Cargo.toml b/build/rust/bitflags/Cargo.toml index a05fbdf2b180..e3334b29985c 100644 --- a/build/rust/bitflags/Cargo.toml +++ b/build/rust/bitflags/Cargo.toml @@ -9,7 +9,6 @@ path = "lib.rs" [features] serde = [] -std = [] [dependencies.bitflags] version = "1.0" diff --git a/build/rust/redox_syscall_0_2/Cargo.toml b/build/rust/redox_syscall_0_2/Cargo.toml new file mode 100644 index 000000000000..047ecd9169db --- /dev/null +++ b/build/rust/redox_syscall_0_2/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "redox_syscall" +version = "0.2.999" +edition = "2018" +license = "MPL-2.0" + +[lib] +path = "lib.rs" + +[dependencies] +redox_syscall = "0.3" diff --git a/build/rust/redox_syscall_0_2/lib.rs b/build/rust/redox_syscall_0_2/lib.rs new file mode 100644 index 000000000000..e0032240a4d2 --- /dev/null +++ b/build/rust/redox_syscall_0_2/lib.rs @@ -0,0 +1,3 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/supply-chain/audits.toml b/supply-chain/audits.toml index ebbd8c955250..008008d0cb50 100644 --- a/supply-chain/audits.toml +++ b/supply-chain/audits.toml @@ -1359,11 +1359,6 @@ who = "Nicolas Silva " criteria = "safe-to-deploy" delta = "0.9.3 -> 0.10.0" -[[audits.errno]] -who = "Mike Hommey " -criteria = "safe-to-deploy" -delta = "0.3.1 -> 0.3.3" - [[audits.extend]] who = "Ben Dean-Kawamura " criteria = "safe-to-deploy" @@ -1396,11 +1391,6 @@ who = "Mike Hommey " criteria = "safe-to-deploy" delta = "1.8.0 -> 1.9.0" -[[audits.fastrand]] -who = "Mike Hommey " -criteria = "safe-to-deploy" -delta = "1.9.0 -> 2.0.0" - [[audits.filetime_win]] who = "Nick Alexander " criteria = "safe-to-deploy" @@ -2019,11 +2009,6 @@ who = "Mike Hommey " criteria = "safe-to-deploy" delta = "0.2.138 -> 0.2.139" -[[audits.libc]] -who = "Mike Hommey " -criteria = "safe-to-deploy" -delta = "0.2.147 -> 0.2.148" - [[audits.libloading]] who = "Mike Hommey " criteria = "safe-to-deploy" @@ -3276,11 +3261,6 @@ who = "Mike Hommey " criteria = "safe-to-deploy" delta = "0.12.6 -> 0.13.0" -[[audits.tempfile]] -who = "Mike Hommey " -criteria = "safe-to-deploy" -delta = "3.6.0 -> 3.8.0" - [[audits.termcolor]] who = "Mike Hommey " criteria = "safe-to-deploy" @@ -4502,12 +4482,6 @@ user-id = 2915 # Amanieu d'Antras (Amanieu) start = "2021-01-27" end = "2024-05-05" -[[trusted.linux-raw-sys]] -criteria = "safe-to-deploy" -user-id = 6825 # Dan Gohman (sunfishcode) -start = "2021-06-12" -end = "2024-09-08" - [[trusted.lock_api]] criteria = "safe-to-deploy" user-id = 2915 # Amanieu d'Antras (Amanieu) @@ -4592,12 +4566,6 @@ user-id = 189 # Andrew Gallant (BurntSushi) start = "2019-03-30" end = "2024-05-03" -[[trusted.rustix]] -criteria = "safe-to-deploy" -user-id = 6825 # Dan Gohman (sunfishcode) -start = "2021-10-29" -end = "2024-09-08" - [[trusted.ryu]] criteria = "safe-to-deploy" user-id = 3618 # David Tolnay (dtolnay) diff --git a/supply-chain/imports.lock b/supply-chain/imports.lock index 6afa4367cb37..b06c5e2260f6 100644 --- a/supply-chain/imports.lock +++ b/supply-chain/imports.lock @@ -288,20 +288,6 @@ user-id = 2915 user-login = "Amanieu" user-name = "Amanieu d'Antras" -[[publisher.libc]] -version = "0.2.146" -when = "2023-06-06" -user-id = 2915 -user-login = "Amanieu" -user-name = "Amanieu d'Antras" - -[[publisher.linux-raw-sys]] -version = "0.4.7" -when = "2023-09-10" -user-id = 6825 -user-login = "sunfishcode" -user-name = "Dan Gohman" - [[publisher.lock_api]] version = "0.4.9" when = "2022-09-20" @@ -420,13 +406,6 @@ user-id = 57462 user-login = "mozkeeler" user-name = "Dana Keeler" -[[publisher.rustix]] -version = "0.38.13" -when = "2023-09-10" -user-id = 6825 -user-login = "sunfishcode" -user-name = "Dan Gohman" - [[publisher.ryu]] version = "1.0.12" when = "2022-12-17" @@ -875,24 +854,6 @@ who = "Benjamin Bouvier " criteria = "safe-to-deploy" version = "0.1.3" -[[audits.bytecode-alliance.audits.errno]] -who = "Dan Gohman " -criteria = "safe-to-deploy" -version = "0.3.0" -notes = "This crate uses libc and windows-sys APIs to get and set the raw OS error value." - -[[audits.bytecode-alliance.audits.errno]] -who = "Dan Gohman " -criteria = "safe-to-deploy" -delta = "0.3.0 -> 0.3.1" -notes = "Just a dependency version bump and a bug fix for redox" - -[[audits.bytecode-alliance.audits.errno-dragonfly]] -who = "Jamey Sharp " -criteria = "safe-to-deploy" -version = "0.1.2" -notes = "This should be portable to any POSIX system and seems like it should be part of the libc crate, but at any rate it's safe as is." - [[audits.bytecode-alliance.audits.foreign-types]] who = "Pat Hickey " criteria = "safe-to-deploy" @@ -971,12 +932,6 @@ criteria = "safe-to-deploy" version = "0.2.5" notes = "I am the author of this crate." -[[audits.bytecode-alliance.audits.libc]] -who = "Alex Crichton " -criteria = "safe-to-deploy" -delta = "0.2.146 -> 0.2.147" -notes = "Only new type definitions and updating others for some platforms, no major changes" - [[audits.bytecode-alliance.audits.memoffset]] who = "Alex Crichton " criteria = "safe-to-deploy" @@ -1034,17 +989,6 @@ criteria = "safe-to-deploy" version = "0.4.6" notes = "provides a datastructure implemented using std's Vec. all uses of unsafe are just delegating to the underlying unsafe Vec methods." -[[audits.bytecode-alliance.audits.tempfile]] -who = "Pat Hickey " -criteria = "safe-to-deploy" -delta = "3.3.0 -> 3.5.0" - -[[audits.bytecode-alliance.audits.tempfile]] -who = "Alex Crichton " -criteria = "safe-to-deploy" -delta = "3.5.0 -> 3.6.0" -notes = "Dependency updates and new optimized trait implementations, but otherwise everything looks normal." - [[audits.bytecode-alliance.audits.unicase]] who = "Alex Crichton " criteria = "safe-to-deploy" diff --git a/third_party/rust/errno-dragonfly/.cargo-checksum.json b/third_party/rust/errno-dragonfly/.cargo-checksum.json deleted file mode 100644 index 2579ff65f544..000000000000 --- a/third_party/rust/errno-dragonfly/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"Cargo.toml":"36cf2ca7d85e09d22a7dd384f95c51eb6a7f1a6234d3c54d251dfa575b990430","LICENSE":"e5b1e4fcd8ea2b20b09f378e44ef3f51f4b6a72a72b9f6a729e0f87bddcef97f","README.md":"1e8440a65b6befd65a507b60fb11ab29f314dd77012aa7a11b5d1fadbb5f908f","build.rs":"10d4f05ac56556fea0e98732dc4250ddf3f1acc3fea541c63a0bc130aca772e6","src/errno.c":"a857e47b114acb85fddcb252a610ab5734d225c26b7bedd7c35d7789d46c8526","src/lib.rs":"47245dcfc2d5797584444e70edb1997b2f5e39ecc0779599a7fcded379966c0f"},"package":"aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"} \ No newline at end of file diff --git a/third_party/rust/errno-dragonfly/Cargo.toml b/third_party/rust/errno-dragonfly/Cargo.toml deleted file mode 100644 index 51e21437bcb5..000000000000 --- a/third_party/rust/errno-dragonfly/Cargo.toml +++ /dev/null @@ -1,27 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies -# -# If you believe there's an error in this file please file an -# issue against the rust-lang/cargo repository. If you're -# editing this file be aware that the upstream Cargo.toml -# will likely look very different (and much more reasonable) - -[package] -edition = "2018" -name = "errno-dragonfly" -version = "0.1.2" -authors = ["Michael Neumann "] -include = ["Cargo.toml", "LICENSE", "README.md", "build.rs", "src/lib.rs", "src/errno.c"] -description = "Exposes errno functionality to stable Rust on DragonFlyBSD" -keywords = ["dragonfly"] -license = "MIT" -repository = "https://github.com/mneumann/errno-dragonfly-rs" -[dependencies.libc] -version = "0.2" -default-features = false -[build-dependencies.cc] -version = "1.0" diff --git a/third_party/rust/errno-dragonfly/LICENSE b/third_party/rust/errno-dragonfly/LICENSE deleted file mode 100644 index 1f1500c81dbe..000000000000 --- a/third_party/rust/errno-dragonfly/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Michael Neumann - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/third_party/rust/errno-dragonfly/README.md b/third_party/rust/errno-dragonfly/README.md deleted file mode 100644 index 9218a7b88ef6..000000000000 --- a/third_party/rust/errno-dragonfly/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# errno-dragonfly-rs - -Exposing `errno` functionality to stable Rust on DragonFly BSD. diff --git a/third_party/rust/errno-dragonfly/build.rs b/third_party/rust/errno-dragonfly/build.rs deleted file mode 100644 index b93b9ef87740..000000000000 --- a/third_party/rust/errno-dragonfly/build.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - cc::Build::new().file("src/errno.c").compile("liberrno.a"); -} diff --git a/third_party/rust/errno-dragonfly/src/errno.c b/third_party/rust/errno-dragonfly/src/errno.c deleted file mode 100644 index 32fb4dab4d13..000000000000 --- a/third_party/rust/errno-dragonfly/src/errno.c +++ /dev/null @@ -1,3 +0,0 @@ -#include - -int *errno_location() { return &errno; } diff --git a/third_party/rust/errno-dragonfly/src/lib.rs b/third_party/rust/errno-dragonfly/src/lib.rs deleted file mode 100644 index 4208344d37df..000000000000 --- a/third_party/rust/errno-dragonfly/src/lib.rs +++ /dev/null @@ -1,6 +0,0 @@ -#![no_std] - -#[link(name = "errno", kind = "static")] -extern "C" { - pub fn errno_location() -> *mut libc::c_int; -} diff --git a/third_party/rust/errno/.cargo-checksum.json b/third_party/rust/errno/.cargo-checksum.json deleted file mode 100644 index 39e5af1a93a9..000000000000 --- a/third_party/rust/errno/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"CHANGELOG.md":"a79eced1320b216cd070df7d341f3fa1cae36419e5d93bbe38958974b6ce9412","Cargo.toml":"f0be240b8f099ace32511671f4976590f92edecb4d4ee764433442248c980de4","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"8764a597675778ddfd4e25f81b08a05dbcf089ac05662df7613fe67f150e3aa2","README.md":"96a40903ea0fe68cf512d176a230f4a37df76de262f047f01a46f31de75402bd","clippy.toml":"2c27890fbf0454bb2405bdb013b1daeb78d57c5844b964bcac9afcc125fa46e4","src/hermit.rs":"ad03355bc4d79c180ab3210e1d3edd538eccaaea8d4f9a9b7eb8a0dc2d39b5df","src/lib.rs":"318f864b8cb9296c85f70f9dfb855c552303630b3a9390f147bb4b581b8d8b5c","src/unix.rs":"bbdb80131148c10687aca9c9d6037e5fb8b84c3c9a6a10f134c587f83dfd3af6","src/wasi.rs":"c606886ebda52b5dc7682c0f3aaf51e146692455acd5e303812cf0d634589d05","src/windows.rs":"7cbcdb8e74582f357fa945bb1c44c4d19c1a10bec958da1223305bf68ec35baf"},"package":"136526188508e25c6fef639d7927dfb3e0e3084488bf202267829cf7fc23dbdd"} \ No newline at end of file diff --git a/third_party/rust/errno/CHANGELOG.md b/third_party/rust/errno/CHANGELOG.md deleted file mode 100644 index d36dafab659a..000000000000 --- a/third_party/rust/errno/CHANGELOG.md +++ /dev/null @@ -1,60 +0,0 @@ -# [Unreleased] - -# [0.3.3] - 2023-08-28 - -- Disable "libc/std" in no-std configurations. - [#77](https://github.com/lambda-fairy/rust-errno/pull/77) - -- Bump errno-dragonfly to 0.1.2 - [#75](https://github.com/lambda-fairy/rust-errno/pull/75) - -- Support for the ESP-IDF framework - [#74](https://github.com/lambda-fairy/rust-errno/pull/74) - -# [0.3.2] - 2023-07-30 - -- Fix build on Hermit - [#73](https://github.com/lambda-fairy/rust-errno/pull/73) - -- Add support for QNX Neutrino - [#72](https://github.com/lambda-fairy/rust-errno/pull/72) - -# [0.3.1] - 2023-04-08 - -- Correct link name on redox - [#69](https://github.com/lambda-fairy/rust-errno/pull/69) - -- Update windows-sys requirement from 0.45 to 0.48 - [#70](https://github.com/lambda-fairy/rust-errno/pull/70) - -# [0.3.0] - 2023-02-12 - -- Add haiku support - [#42](https://github.com/lambda-fairy/rust-errno/pull/42) - -- Add AIX support - [#54](https://github.com/lambda-fairy/rust-errno/pull/54) - -- Add formatting with `#![no_std]` - [#44](https://github.com/lambda-fairy/rust-errno/pull/44) - -- Switch from `winapi` to `windows-sys` [#55](https://github.com/lambda-fairy/rust-errno/pull/55) - -- Update minimum Rust version to 1.48 - [#48](https://github.com/lambda-fairy/rust-errno/pull/48) [#55](https://github.com/lambda-fairy/rust-errno/pull/55) - -- Upgrade to Rust 2018 edition [#59](https://github.com/lambda-fairy/rust-errno/pull/59) - -- wasm32-wasi: Use `__errno_location` instead of `feature(thread_local)`. [#66](https://github.com/lambda-fairy/rust-errno/pull/66) - -# [0.2.8] - 2021-10-27 - -- Optionally support no_std - [#31](https://github.com/lambda-fairy/rust-errno/pull/31) - -[Unreleased]: https://github.com/lambda-fairy/rust-errno/compare/v0.3.3...HEAD -[0.3.3]: https://github.com/lambda-fairy/rust-errno/compare/v0.3.1...v0.3.2 -[0.3.2]: https://github.com/lambda-fairy/rust-errno/compare/v0.3.1...v0.3.2 -[0.3.1]: https://github.com/lambda-fairy/rust-errno/compare/v0.3.0...v0.3.1 -[0.3.0]: https://github.com/lambda-fairy/rust-errno/compare/v0.2.8...v0.3.0 -[0.2.8]: https://github.com/lambda-fairy/rust-errno/compare/v0.2.7...v0.2.8 diff --git a/third_party/rust/errno/Cargo.toml b/third_party/rust/errno/Cargo.toml deleted file mode 100644 index ef1e463e6e4c..000000000000 --- a/third_party/rust/errno/Cargo.toml +++ /dev/null @@ -1,52 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - -[package] -edition = "2018" -rust-version = "1.48" -name = "errno" -version = "0.3.3" -authors = ["Chris Wong "] -description = "Cross-platform interface to the `errno` variable." -documentation = "https://docs.rs/errno" -readme = "README.md" -categories = [ - "no-std", - "os", -] -license = "MIT OR Apache-2.0" -repository = "https://github.com/lambda-fairy/rust-errno" - -[features] -default = ["std"] -std = ["libc/std"] - -[target."cfg(target_os=\"dragonfly\")".dependencies.errno-dragonfly] -version = "0.1.2" - -[target."cfg(target_os=\"hermit\")".dependencies.libc] -version = "0.2" -default-features = false - -[target."cfg(target_os=\"wasi\")".dependencies.libc] -version = "0.2" -default-features = false - -[target."cfg(unix)".dependencies.libc] -version = "0.2" -default-features = false - -[target."cfg(windows)".dependencies.windows-sys] -version = "0.48" -features = [ - "Win32_Foundation", - "Win32_System_Diagnostics_Debug", -] diff --git a/third_party/rust/errno/LICENSE-APACHE b/third_party/rust/errno/LICENSE-APACHE deleted file mode 100644 index 16fe87b06e80..000000000000 --- a/third_party/rust/errno/LICENSE-APACHE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/third_party/rust/errno/LICENSE-MIT b/third_party/rust/errno/LICENSE-MIT deleted file mode 100644 index 66b6578d3923..000000000000 --- a/third_party/rust/errno/LICENSE-MIT +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) 2014 Chris Wong - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/third_party/rust/errno/README.md b/third_party/rust/errno/README.md deleted file mode 100644 index 48def10520b7..000000000000 --- a/third_party/rust/errno/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# errno [![CI](https://github.com/lambda-fairy/rust-errno/actions/workflows/main.yml/badge.svg)](https://github.com/lambda-fairy/rust-errno/actions/workflows/main.yml) [![Cargo](https://img.shields.io/crates/v/errno.svg)](https://crates.io/crates/errno) - -Cross-platform interface to the [`errno`][errno] variable. Works on Rust 1.48 or newer. - -Documentation is available at . - -[errno]: https://en.wikipedia.org/wiki/Errno.h - - -## Dependency - -Add to your `Cargo.toml`: - -```toml -[dependencies] -errno = "*" -``` - - -## Comparison with `std::io::Error` - -The standard library provides [`Error::last_os_error`][last_os_error] which fetches `errno` in the same way. - -This crate provides these extra features: - -- No heap allocations -- Optional `#![no_std]` support -- A `set_errno` function - -[last_os_error]: https://doc.rust-lang.org/std/io/struct.Error.html#method.last_os_error - - -## Examples - -```rust -extern crate errno; -use errno::{Errno, errno, set_errno}; - -// Get the current value of errno -let e = errno(); - -// Set the current value of errno -set_errno(e); - -// Extract the error code as an i32 -let code = e.0; - -// Display a human-friendly error message -println!("Error {}: {}", code, e); -``` - - -## `#![no_std]` - -Enable `#![no_std]` support by disabling the default `std` feature: - -```toml -[dependencies] -errno = { version = "*", default-features = false } -``` - -The `Error` impl will be unavailable. diff --git a/third_party/rust/errno/clippy.toml b/third_party/rust/errno/clippy.toml deleted file mode 100644 index f691ea3d2bcd..000000000000 --- a/third_party/rust/errno/clippy.toml +++ /dev/null @@ -1 +0,0 @@ -msrv = "1.48" diff --git a/third_party/rust/errno/src/hermit.rs b/third_party/rust/errno/src/hermit.rs deleted file mode 100644 index 331b6b15223a..000000000000 --- a/third_party/rust/errno/src/hermit.rs +++ /dev/null @@ -1,32 +0,0 @@ -//! Implementation of `errno` functionality for RustyHermit. -//! -//! Currently, the error handling in RustyHermit isn't clearly -//! defined. At the current stage of RustyHermit, only a placeholder -//! is provided to be compatible to the classical errno interface. - -// Copyright 2015 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -use crate::Errno; - -pub fn with_description(_err: Errno, callback: F) -> T -where - F: FnOnce(Result<&str, Errno>) -> T, -{ - callback(Ok("unknown error")) -} - -pub const STRERROR_NAME: &str = "strerror_r"; - -pub fn errno() -> Errno { - Errno(0) -} - -pub fn set_errno(_: Errno) {} diff --git a/third_party/rust/errno/src/lib.rs b/third_party/rust/errno/src/lib.rs deleted file mode 100644 index 20875b5c3b72..000000000000 --- a/third_party/rust/errno/src/lib.rs +++ /dev/null @@ -1,156 +0,0 @@ -//! Cross-platform interface to the `errno` variable. -//! -//! # Examples -//! ``` -//! use errno::{Errno, errno, set_errno}; -//! -//! // Get the current value of errno -//! let e = errno(); -//! -//! // Set the current value of errno -//! set_errno(e); -//! -//! // Extract the error code as an i32 -//! let code = e.0; -//! -//! // Display a human-friendly error message -//! println!("Error {}: {}", code, e); -//! ``` - -#![cfg_attr(not(feature = "std"), no_std)] - -#[cfg_attr(unix, path = "unix.rs")] -#[cfg_attr(windows, path = "windows.rs")] -#[cfg_attr(target_os = "wasi", path = "wasi.rs")] -#[cfg_attr(target_os = "hermit", path = "hermit.rs")] -mod sys; - -use core::fmt; -#[cfg(feature = "std")] -use std::error::Error; -#[cfg(feature = "std")] -use std::io; - -/// Wraps a platform-specific error code. -/// -/// The `Display` instance maps the code to a human-readable string. It -/// calls [`strerror_r`][1] under POSIX, and [`FormatMessageW`][2] on -/// Windows. -/// -/// [1]: http://pubs.opengroup.org/onlinepubs/009695399/functions/strerror.html -/// [2]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351%28v=vs.85%29.aspx -#[derive(Copy, Clone, Eq, Ord, PartialEq, PartialOrd, Hash)] -pub struct Errno(pub i32); - -impl fmt::Debug for Errno { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - sys::with_description(*self, |desc| { - fmt.debug_struct("Errno") - .field("code", &self.0) - .field("description", &desc.ok()) - .finish() - }) - } -} - -impl fmt::Display for Errno { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - sys::with_description(*self, |desc| match desc { - Ok(desc) => fmt.write_str(desc), - Err(fm_err) => write!( - fmt, - "OS error {} ({} returned error {})", - self.0, - sys::STRERROR_NAME, - fm_err.0 - ), - }) - } -} - -impl From for i32 { - fn from(e: Errno) -> Self { - e.0 - } -} - -#[cfg(feature = "std")] -impl Error for Errno { - // TODO: Remove when MSRV >= 1.27 - #[allow(deprecated)] - fn description(&self) -> &str { - "system error" - } -} - -#[cfg(feature = "std")] -impl From for io::Error { - fn from(errno: Errno) -> Self { - io::Error::from_raw_os_error(errno.0) - } -} - -/// Returns the platform-specific value of `errno`. -pub fn errno() -> Errno { - sys::errno() -} - -/// Sets the platform-specific value of `errno`. -pub fn set_errno(err: Errno) { - sys::set_errno(err) -} - -#[test] -fn it_works() { - let x = errno(); - set_errno(x); -} - -#[cfg(feature = "std")] -#[test] -fn it_works_with_to_string() { - let x = errno(); - let _ = x.to_string(); -} - -#[cfg(feature = "std")] -#[test] -fn check_description() { - let expect = if cfg!(windows) { - "Incorrect function." - } else if cfg!(target_os = "illumos") { - "Not owner" - } else if cfg!(target_os = "wasi") { - "Argument list too long" - } else if cfg!(target_os = "haiku") { - "Operation not allowed" - } else { - "Operation not permitted" - }; - - let errno_code = if cfg!(target_os = "haiku") { - -2147483633 - } else { - 1 - }; - set_errno(Errno(errno_code)); - - assert_eq!(errno().to_string(), expect); - assert_eq!( - format!("{:?}", errno()), - format!( - "Errno {{ code: {}, description: Some({:?}) }}", - errno_code, expect - ) - ); -} - -#[cfg(feature = "std")] -#[test] -fn check_error_into_errno() { - const ERROR_CODE: i32 = 1; - - let error = io::Error::from_raw_os_error(ERROR_CODE); - let new_error: io::Error = Errno(ERROR_CODE).into(); - assert_eq!(error.kind(), new_error.kind()); -} diff --git a/third_party/rust/errno/src/unix.rs b/third_party/rust/errno/src/unix.rs deleted file mode 100644 index ff0659119204..000000000000 --- a/third_party/rust/errno/src/unix.rs +++ /dev/null @@ -1,90 +0,0 @@ -//! Implementation of `errno` functionality for Unix systems. -//! -//! Adapted from `src/libstd/sys/unix/os.rs` in the Rust distribution. - -// Copyright 2015 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -use core::str; -#[cfg(target_os = "dragonfly")] -use errno_dragonfly::errno_location; -use libc::{self, c_char, c_int, size_t, strlen}; - -use crate::Errno; - -fn from_utf8_lossy(input: &[u8]) -> &str { - match str::from_utf8(input) { - Ok(valid) => valid, - Err(error) => unsafe { str::from_utf8_unchecked(&input[..error.valid_up_to()]) }, - } -} - -pub fn with_description(err: Errno, callback: F) -> T -where - F: FnOnce(Result<&str, Errno>) -> T, -{ - let mut buf = [0u8; 1024]; - let c_str = unsafe { - if strerror_r(err.0, buf.as_mut_ptr() as *mut _, buf.len() as size_t) < 0 { - let fm_err = errno(); - if fm_err != Errno(libc::ERANGE) { - return callback(Err(fm_err)); - } - } - let c_str_len = strlen(buf.as_ptr() as *const _); - &buf[..c_str_len] - }; - callback(Ok(from_utf8_lossy(c_str))) -} - -pub const STRERROR_NAME: &str = "strerror_r"; - -pub fn errno() -> Errno { - unsafe { Errno(*errno_location()) } -} - -pub fn set_errno(Errno(errno): Errno) { - unsafe { - *errno_location() = errno; - } -} - -extern "C" { - #[cfg(not(target_os = "dragonfly"))] - #[cfg_attr( - any(target_os = "macos", target_os = "ios", target_os = "freebsd"), - link_name = "__error" - )] - #[cfg_attr( - any( - target_os = "openbsd", - target_os = "netbsd", - target_os = "bitrig", - target_os = "android", - target_os = "espidf" - ), - link_name = "__errno" - )] - #[cfg_attr( - any(target_os = "solaris", target_os = "illumos"), - link_name = "___errno" - )] - #[cfg_attr(target_os = "haiku", link_name = "_errnop")] - #[cfg_attr( - any(target_os = "linux", target_os = "redox"), - link_name = "__errno_location" - )] - #[cfg_attr(target_os = "aix", link_name = "_Errno")] - #[cfg_attr(target_os = "nto", link_name = "__get_errno_ptr")] - fn errno_location() -> *mut c_int; - - #[cfg_attr(target_os = "linux", link_name = "__xpg_strerror_r")] - fn strerror_r(errnum: c_int, buf: *mut c_char, buflen: size_t) -> c_int; -} diff --git a/third_party/rust/errno/src/wasi.rs b/third_party/rust/errno/src/wasi.rs deleted file mode 100644 index b18fa9b2c35e..000000000000 --- a/third_party/rust/errno/src/wasi.rs +++ /dev/null @@ -1,60 +0,0 @@ -//! Implementation of `errno` functionality for WASI. -//! -//! Adapted from `unix.rs`. - -// Copyright 2015 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -use core::str; -use libc::{self, c_char, c_int, size_t, strlen}; - -use crate::Errno; - -fn from_utf8_lossy(input: &[u8]) -> &str { - match str::from_utf8(input) { - Ok(valid) => valid, - Err(error) => unsafe { str::from_utf8_unchecked(&input[..error.valid_up_to()]) }, - } -} - -pub fn with_description(err: Errno, callback: F) -> T -where - F: FnOnce(Result<&str, Errno>) -> T, -{ - let mut buf = [0u8; 1024]; - let c_str = unsafe { - if strerror_r(err.0, buf.as_mut_ptr() as *mut _, buf.len() as size_t) < 0 { - let fm_err = errno(); - if fm_err != Errno(libc::ERANGE) { - return callback(Err(fm_err)); - } - } - let c_str_len = strlen(buf.as_ptr() as *const _); - &buf[..c_str_len] - }; - callback(Ok(from_utf8_lossy(c_str))) -} - -pub const STRERROR_NAME: &str = "strerror_r"; - -pub fn errno() -> Errno { - unsafe { Errno(*__errno_location()) } -} - -pub fn set_errno(Errno(new_errno): Errno) { - unsafe { - *__errno_location() = new_errno; - } -} - -extern "C" { - fn __errno_location() -> *mut c_int; - fn strerror_r(errnum: c_int, buf: *mut c_char, buflen: size_t) -> c_int; -} diff --git a/third_party/rust/errno/src/windows.rs b/third_party/rust/errno/src/windows.rs deleted file mode 100644 index 9c7c0e400194..000000000000 --- a/third_party/rust/errno/src/windows.rs +++ /dev/null @@ -1,81 +0,0 @@ -//! Implementation of `errno` functionality for Windows. -//! -//! Adapted from `src/libstd/sys/windows/os.rs` in the Rust distribution. - -// Copyright 2014 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -use core::char::{self, REPLACEMENT_CHARACTER}; -use core::ptr; -use core::str; -use windows_sys::Win32::Foundation::{GetLastError, SetLastError, WIN32_ERROR}; -use windows_sys::Win32::System::Diagnostics::Debug::{ - FormatMessageW, FORMAT_MESSAGE_FROM_SYSTEM, FORMAT_MESSAGE_IGNORE_INSERTS, -}; - -use crate::Errno; - -fn from_utf16_lossy<'a>(input: &[u16], output: &'a mut [u8]) -> &'a str { - let mut output_len = 0; - for c in char::decode_utf16(input.iter().copied().take_while(|&x| x != 0)) - .map(|x| x.unwrap_or(REPLACEMENT_CHARACTER)) - { - let c_len = c.len_utf8(); - if c_len > output.len() - output_len { - break; - } - c.encode_utf8(&mut output[output_len..]); - output_len += c_len; - } - unsafe { str::from_utf8_unchecked(&output[..output_len]) } -} - -pub fn with_description(err: Errno, callback: F) -> T -where - F: FnOnce(Result<&str, Errno>) -> T, -{ - // This value is calculated from the macro - // MAKELANGID(LANG_SYSTEM_DEFAULT, SUBLANG_SYS_DEFAULT) - let lang_id = 0x0800_u32; - - let mut buf = [0u16; 2048]; - - unsafe { - let res = FormatMessageW( - FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - ptr::null_mut(), - err.0 as u32, - lang_id, - buf.as_mut_ptr(), - buf.len() as u32, - ptr::null_mut(), - ); - if res == 0 { - // Sometimes FormatMessageW can fail e.g. system doesn't like lang_id - let fm_err = errno(); - return callback(Err(fm_err)); - } - - let mut msg = [0u8; 2048]; - let msg = from_utf16_lossy(&buf[..res as usize], &mut msg[..]); - // Trim trailing CRLF inserted by FormatMessageW - callback(Ok(msg.trim_end())) - } -} - -pub const STRERROR_NAME: &str = "FormatMessageW"; - -pub fn errno() -> Errno { - unsafe { Errno(GetLastError() as i32) } -} - -pub fn set_errno(Errno(errno): Errno) { - unsafe { SetLastError(errno as WIN32_ERROR) } -} diff --git a/third_party/rust/fastrand/.cargo-checksum.json b/third_party/rust/fastrand/.cargo-checksum.json dissimilarity index 85% index 18aedbd35762..17c4515ea09c 100644 --- a/third_party/rust/fastrand/.cargo-checksum.json +++ b/third_party/rust/fastrand/.cargo-checksum.json @@ -1 +1 @@ -{"files":{"CHANGELOG.md":"a88b4ec120e965c0219c8d4a95e0868ed9396acb47d171ca864608eacda7efb8","Cargo.toml":"f0bc7071d293be9565d4a960fa914317f00f319901e9578e7a49a3a86959d90a","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3","README.md":"ba09e4125cf5450a26d1bd2236bd079d668b118df639d9055e61eaa4d3c23336","benches/bench.rs":"95df618eeb6f3432e11295d75267c0ececcda35a6d230e9ca504e5d772fa2b62","src/global_rng.rs":"43a74ba2c3c15ebdbbacff65d6da5a90b4c062dedc43c6bf3fcf05499beaeece","src/lib.rs":"67568c53a27b34c5e2eb5e613a9656bcc9da1688a85070c4c36b60c216e3da8b","tests/char.rs":"a530b41837f5bf43701d983ef0267d9b44779d455f24cbf30b881cd348de9ee1","tests/smoke.rs":"8eac48144705364d142882538be43b8d69018959579404c3b1e638827888e62e"},"package":"6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764"} \ No newline at end of file +{"files":{"CHANGELOG.md":"64192695962b6d2ec5f1f57f3b7909c216611a5de5cd5d0d28d863477eef0a12","Cargo.toml":"9d3bf85fff7d7228a8aae6e0c20a43f19a846412e598ee0b7d1f6f2a30bac880","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3","README.md":"dec6b96d3549746937d7e0e62e35e206e6f5b7e2d1886451281905f4edf096d4","benches/bench.rs":"234b2e5f725102ed0ff7686def089de23e433eeecaf03542af31fc60725e85e3","src/lib.rs":"88bf8a952c723b28b989c7b998b2ec0de6a1351f6891088d6237300c8982f36d","tests/char.rs":"a530b41837f5bf43701d983ef0267d9b44779d455f24cbf30b881cd348de9ee1","tests/smoke.rs":"aac00322cce06f15378aacbf247a37e9602c46cfd2bd588a0887b266cbc4770a"},"package":"e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be"} \ No newline at end of file diff --git a/third_party/rust/fastrand/CHANGELOG.md b/third_party/rust/fastrand/CHANGELOG.md index be0bf5c386e0..869f3148f677 100644 --- a/third_party/rust/fastrand/CHANGELOG.md +++ b/third_party/rust/fastrand/CHANGELOG.md @@ -1,12 +1,3 @@ -# Version 2.0.0 - -- **Breaking:** Remove interior mutability from `Rng`. (#47) -- Add a `fork()` method. (#49) -- Add a `no_std` mode. (#50) -- Add an iterator selection function. (#51) -- Add a `choose_multiple()` function for sampling several elements from an iterator. (#55) -- Use the `getrandom` crate for seeding on WebAssembly targets if the `js` feature is enabled. (#60) - # Version 1.9.0 - Add `Rng::fill()` (#35, #43) diff --git a/third_party/rust/fastrand/Cargo.toml b/third_party/rust/fastrand/Cargo.toml index 43f68ea3536f..7cc602f17152 100644 --- a/third_party/rust/fastrand/Cargo.toml +++ b/third_party/rust/fastrand/Cargo.toml @@ -11,9 +11,9 @@ [package] edition = "2018" -rust-version = "1.36" +rust-version = "1.34" name = "fastrand" -version = "2.0.0" +version = "1.9.0" authors = ["Stjepan Glavina "] exclude = ["/.*"] description = "A simple and fast random number generator" @@ -29,13 +29,6 @@ categories = ["algorithms"] license = "Apache-2.0 OR MIT" repository = "https://github.com/smol-rs/fastrand" -[package.metadata.docs.rs] -all-features = true -rustdoc-args = [ - "--cfg", - "docsrs", -] - [dev-dependencies.getrandom] version = "0.2" @@ -45,23 +38,16 @@ version = "0.8" [dev-dependencies.wyhash] version = "0.5" -[features] -alloc = [] -default = ["std"] -js = [ - "std", - "getrandom", -] -std = ["alloc"] +[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dependencies.instant] +version = "0.1" -[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dependencies.getrandom] +[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dev-dependencies.getrandom] version = "0.2" features = ["js"] -optional = true -[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dev-dependencies.getrandom] -version = "0.2" -features = ["js"] +[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dev-dependencies.instant] +version = "0.1" +features = ["wasm-bindgen"] -[target."cfg(all(any(target_arch = \"wasm32\", target_arch = \"wasm64\"), target_os = \"unknown\"))".dev-dependencies.wasm-bindgen-test] +[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"wasi\")))".dev-dependencies.wasm-bindgen-test] version = "0.3" diff --git a/third_party/rust/fastrand/README.md b/third_party/rust/fastrand/README.md index 70da00bc6da3..0da0612ea4c0 100644 --- a/third_party/rust/fastrand/README.md +++ b/third_party/rust/fastrand/README.md @@ -40,13 +40,6 @@ let i = fastrand::usize(..v.len()); let elem = v[i]; ``` -Sample values from an array with `O(n)` complexity (`n` is the length of array): - -```rust -fastrand::choose_multiple(vec![1, 4, 5].iter(), 2); -fastrand::choose_multiple(0..20, 12); -``` - Shuffle an array: ```rust @@ -83,12 +76,6 @@ let rng = fastrand::Rng::new(); let mut bytes: Vec = repeat_with(|| rng.u8(..)).take(10_000).collect(); ``` -# Features - -- `std` (enabled by default): Enables the `std` library. This is required for the global - generator and global entropy. Without this feature, [`Rng`] can only be instantiated using - the [`with_seed`](Rng::with_seed) method. - ## License Licensed under either of diff --git a/third_party/rust/fastrand/benches/bench.rs b/third_party/rust/fastrand/benches/bench.rs index a940aac48017..4b882b74f99f 100644 --- a/third_party/rust/fastrand/benches/bench.rs +++ b/third_party/rust/fastrand/benches/bench.rs @@ -18,7 +18,7 @@ fn shuffle_wyhash(b: &mut Bencher) { #[bench] fn shuffle_fastrand(b: &mut Bencher) { - let mut rng = fastrand::Rng::new(); + let rng = fastrand::Rng::new(); let mut x = (0..100).collect::>(); b.iter(|| { rng.shuffle(&mut x); @@ -40,7 +40,7 @@ fn u8_wyhash(b: &mut Bencher) { #[bench] fn u8_fastrand(b: &mut Bencher) { - let mut rng = fastrand::Rng::new(); + let rng = fastrand::Rng::new(); b.iter(|| { let mut sum = 0u8; for _ in 0..10_000 { @@ -64,7 +64,7 @@ fn u32_wyhash(b: &mut Bencher) { #[bench] fn u32_fastrand(b: &mut Bencher) { - let mut rng = fastrand::Rng::new(); + let rng = fastrand::Rng::new(); b.iter(|| { let mut sum = 0u32; for _ in 0..10_000 { @@ -76,7 +76,7 @@ fn u32_fastrand(b: &mut Bencher) { #[bench] fn fill(b: &mut Bencher) { - let mut rng = fastrand::Rng::new(); + let rng = fastrand::Rng::new(); b.iter(|| { // Pick a size that isn't divisble by 8. let mut bytes = [0u8; 367]; @@ -87,7 +87,7 @@ fn fill(b: &mut Bencher) { #[bench] fn fill_naive(b: &mut Bencher) { - let mut rng = fastrand::Rng::new(); + let rng = fastrand::Rng::new(); b.iter(|| { let mut bytes = [0u8; 367]; for item in &mut bytes { diff --git a/third_party/rust/fastrand/src/global_rng.rs b/third_party/rust/fastrand/src/global_rng.rs deleted file mode 100644 index f994902ec3a3..000000000000 --- a/third_party/rust/fastrand/src/global_rng.rs +++ /dev/null @@ -1,218 +0,0 @@ -//! A global, thread-local random number generator. - -use crate::Rng; - -use std::cell::Cell; -use std::ops::RangeBounds; - -// Chosen by fair roll of the dice. -const DEFAULT_RNG_SEED: u64 = 0xef6f79ed30ba75a; - -impl Default for Rng { - /// Initialize the `Rng` from the system's random number generator. - /// - /// This is equivalent to [`Rng::new()`]. - #[inline] - fn default() -> Rng { - Rng::new() - } -} - -impl Rng { - /// Creates a new random number generator. - #[inline] - pub fn new() -> Rng { - try_with_rng(Rng::fork).unwrap_or_else(|_| Rng::with_seed(0x4d595df4d0f33173)) - } -} - -thread_local! { - static RNG: Cell = Cell::new(Rng(random_seed().unwrap_or(DEFAULT_RNG_SEED))); -} - -/// Run an operation with the current thread-local generator. -#[inline] -fn with_rng(f: impl FnOnce(&mut Rng) -> R) -> R { - RNG.with(|rng| { - let current = rng.replace(Rng(0)); - - let mut restore = RestoreOnDrop { rng, current }; - - f(&mut restore.current) - }) -} - -/// Try to run an operation with the current thread-local generator. -#[inline] -fn try_with_rng(f: impl FnOnce(&mut Rng) -> R) -> Result { - RNG.try_with(|rng| { - let current = rng.replace(Rng(0)); - - let mut restore = RestoreOnDrop { rng, current }; - - f(&mut restore.current) - }) -} - -/// Make sure the original RNG is restored even on panic. -struct RestoreOnDrop<'a> { - rng: &'a Cell, - current: Rng, -} - -impl Drop for RestoreOnDrop<'_> { - fn drop(&mut self) { - self.rng.set(Rng(self.current.0)); - } -} - -/// Initializes the thread-local generator with the given seed. -#[inline] -pub fn seed(seed: u64) { - with_rng(|r| r.seed(seed)); -} - -/// Gives back **current** seed that is being held by the thread-local generator. -#[inline] -pub fn get_seed() -> u64 { - with_rng(|r| r.get_seed()) -} - -/// Generates a random `bool`. -#[inline] -pub fn bool() -> bool { - with_rng(|r| r.bool()) -} - -/// Generates a random `char` in ranges a-z and A-Z. -#[inline] -pub fn alphabetic() -> char { - with_rng(|r| r.alphabetic()) -} - -/// Generates a random `char` in ranges a-z, A-Z and 0-9. -#[inline] -pub fn alphanumeric() -> char { - with_rng(|r| r.alphanumeric()) -} - -/// Generates a random `char` in range a-z. -#[inline] -pub fn lowercase() -> char { - with_rng(|r| r.lowercase()) -} - -/// Generates a random `char` in range A-Z. -#[inline] -pub fn uppercase() -> char { - with_rng(|r| r.uppercase()) -} - -/// Choose an item from an iterator at random. -/// -/// This function may have an unexpected result if the `len()` property of the -/// iterator does not match the actual number of items in the iterator. If -/// the iterator is empty, this returns `None`. -#[inline] -pub fn choice(iter: I) -> Option -where - I: IntoIterator, - I::IntoIter: ExactSizeIterator, -{ - with_rng(|r| r.choice(iter)) -} - -/// Generates a random digit in the given `base`. -/// -/// Digits are represented by `char`s in ranges 0-9 and a-z. -/// -/// Panics if the base is zero or greater than 36. -#[inline] -pub fn digit(base: u32) -> char { - with_rng(|r| r.digit(base)) -} - -/// Shuffles a slice randomly. -#[inline] -pub fn shuffle(slice: &mut [T]) { - with_rng(|r| r.shuffle(slice)) -} - -macro_rules! integer { - ($t:tt, $doc:tt) => { - #[doc = $doc] - /// - /// Panics if the range is empty. - #[inline] - pub fn $t(range: impl RangeBounds<$t>) -> $t { - with_rng(|r| r.$t(range)) - } - }; -} - -integer!(u8, "Generates a random `u8` in the given range."); -integer!(i8, "Generates a random `i8` in the given range."); -integer!(u16, "Generates a random `u16` in the given range."); -integer!(i16, "Generates a random `i16` in the given range."); -integer!(u32, "Generates a random `u32` in the given range."); -integer!(i32, "Generates a random `i32` in the given range."); -integer!(u64, "Generates a random `u64` in the given range."); -integer!(i64, "Generates a random `i64` in the given range."); -integer!(u128, "Generates a random `u128` in the given range."); -integer!(i128, "Generates a random `i128` in the given range."); -integer!(usize, "Generates a random `usize` in the given range."); -integer!(isize, "Generates a random `isize` in the given range."); -integer!(char, "Generates a random `char` in the given range."); - -/// Generates a random `f32` in range `0..1`. -pub fn f32() -> f32 { - with_rng(|r| r.f32()) -} - -/// Generates a random `f64` in range `0..1`. -pub fn f64() -> f64 { - with_rng(|r| r.f64()) -} - -/// Collects `amount` values at random from the iterator into a vector. -pub fn choose_multiple(source: T, amount: usize) -> Vec { - with_rng(|rng| rng.choose_multiple(source, amount)) -} - -#[cfg(not(all( - any(target_arch = "wasm32", target_arch = "wasm64"), - target_os = "unknown" -)))] -fn random_seed() -> Option { - use std::collections::hash_map::DefaultHasher; - use std::hash::{Hash, Hasher}; - use std::thread; - use std::time::Instant; - - let mut hasher = DefaultHasher::new(); - Instant::now().hash(&mut hasher); - thread::current().id().hash(&mut hasher); - let hash = hasher.finish(); - Some((hash << 1) | 1) -} - -#[cfg(all( - any(target_arch = "wasm32", target_arch = "wasm64"), - target_os = "unknown", - feature = "js" -))] -fn random_seed() -> Option { - // TODO(notgull): Failures should be logged somewhere. - let mut seed = [0u8; 8]; - getrandom::getrandom(&mut seed).ok()?; - Some(u64::from_ne_bytes(seed)) -} - -#[cfg(all( - any(target_arch = "wasm32", target_arch = "wasm64"), - target_os = "unknown", - not(feature = "js") -))] -fn random_seed() -> Option { - None -} diff --git a/third_party/rust/fastrand/src/lib.rs b/third_party/rust/fastrand/src/lib.rs index 415aae98614d..3f3ec3d9f421 100644 --- a/third_party/rust/fastrand/src/lib.rs +++ b/third_party/rust/fastrand/src/lib.rs @@ -29,14 +29,6 @@ //! let elem = v[i]; //! ``` //! -//! Sample values from an array with `O(n)` complexity (`n` is the length of array): -//! -//! ``` -//! fastrand::choose_multiple(vec![1, 4, 5].iter(), 2); -//! fastrand::choose_multiple(0..20, 12); -//! ``` -//! -//! //! Shuffle an array: //! //! ``` @@ -69,88 +61,87 @@ //! ``` //! use std::iter::repeat_with; //! -//! let mut rng = fastrand::Rng::new(); +//! let rng = fastrand::Rng::new(); //! let mut bytes: Vec = repeat_with(|| rng.u8(..)).take(10_000).collect(); //! ``` -//! -//! # Features -//! -//! - `std` (enabled by default): Enables the `std` library. This is required for the global -//! generator and global entropy. Without this feature, [`Rng`] can only be instantiated using -//! the [`with_seed`](Rng::with_seed) method. -//! - `js`: Assumes that WebAssembly targets are being run in a JavaScript environment. See the -//! [WebAssembly Notes](#webassembly-notes) section for more information. -//! -//! # WebAssembly Notes -//! -//! For non-WASI WASM targets, there is additional sublety to consider when utilizing the global RNG. -//! By default, `std` targets will use entropy sources in the standard library to seed the global RNG. -//! However, these sources are not available by default on WASM targets outside of WASI. -//! -//! If the `js` feature is enabled, this crate will assume that it is running in a JavaScript -//! environment. At this point, the [`getrandom`] crate will be used in order to access the available -//! entropy sources and seed the global RNG. If the `js` feature is not enabled, the global RNG will -//! use a predefined seed. -//! -//! [`getrandom`]: https://crates.io/crates/getrandom -#![cfg_attr(not(feature = "std"), no_std)] -#![cfg_attr(docsrs, feature(doc_cfg))] #![forbid(unsafe_code)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] -#[cfg(feature = "alloc")] -extern crate alloc; - -use core::convert::{TryFrom, TryInto}; -use core::ops::{Bound, RangeBounds}; +use std::cell::Cell; +use std::collections::hash_map::DefaultHasher; +use std::convert::TryInto; +use std::hash::{Hash, Hasher}; +use std::ops::{Bound, RangeBounds}; +use std::thread; -#[cfg(feature = "alloc")] -use alloc::vec::Vec; - -#[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] -mod global_rng; - -#[cfg(feature = "std")] -pub use global_rng::*; +#[cfg(all(target_arch = "wasm32", not(target_os = "wasi")))] +use instant::Instant; +#[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))] +use std::time::Instant; /// A random number generator. #[derive(Debug, PartialEq, Eq)] -pub struct Rng(u64); +pub struct Rng(Cell); + +impl Default for Rng { + #[inline] + fn default() -> Rng { + Rng::new() + } +} impl Clone for Rng { - /// Clones the generator by creating a new generator with the same seed. + /// Clones the generator by deterministically deriving a new generator based on the initial + /// seed. + /// + /// # Example + /// + /// ``` + /// // Seed two generators equally, and clone both of them. + /// let base1 = fastrand::Rng::new(); + /// base1.seed(0x4d595df4d0f33173); + /// base1.bool(); // Use the generator once. + /// + /// let base2 = fastrand::Rng::new(); + /// base2.seed(0x4d595df4d0f33173); + /// base2.bool(); // Use the generator once. + /// + /// let rng1 = base1.clone(); + /// let rng2 = base2.clone(); + /// + /// assert_eq!(rng1.u64(..), rng2.u64(..), "the cloned generators are identical"); + /// ``` fn clone(&self) -> Rng { - Rng::with_seed(self.0) + Rng::with_seed(self.gen_u64()) } } impl Rng { /// Generates a random `u32`. #[inline] - fn gen_u32(&mut self) -> u32 { + fn gen_u32(&self) -> u32 { self.gen_u64() as u32 } /// Generates a random `u64`. #[inline] - fn gen_u64(&mut self) -> u64 { - let s = self.0.wrapping_add(0xA0761D6478BD642F); - self.0 = s; + fn gen_u64(&self) -> u64 { + let s = self.0.get().wrapping_add(0xA0761D6478BD642F); + self.0.set(s); let t = u128::from(s) * u128::from(s ^ 0xE7037ED1A0B428DB); (t as u64) ^ (t >> 64) as u64 } /// Generates a random `u128`. #[inline] - fn gen_u128(&mut self) -> u128 { + fn gen_u128(&self) -> u128 { (u128::from(self.gen_u64()) << 64) | u128::from(self.gen_u64()) } /// Generates a random `u32` in `0..n`. #[inline] - fn gen_mod_u32(&mut self, n: u32) -> u32 { + fn gen_mod_u32(&self, n: u32) -> u32 { // Adapted from: https://lemire.me/blog/2016/06/30/fast-random-shuffling/ let mut r = self.gen_u32(); let mut hi = mul_high_u32(r, n); @@ -168,7 +159,7 @@ impl Rng { /// Generates a random `u64` in `0..n`. #[inline] - fn gen_mod_u64(&mut self, n: u64) -> u64 { + fn gen_mod_u64(&self, n: u64) -> u64 { // Adapted from: https://lemire.me/blog/2016/06/30/fast-random-shuffling/ let mut r = self.gen_u64(); let mut hi = mul_high_u64(r, n); @@ -186,7 +177,7 @@ impl Rng { /// Generates a random `u128` in `0..n`. #[inline] - fn gen_mod_u128(&mut self, n: u128) -> u128 { + fn gen_mod_u128(&self, n: u128) -> u128 { // Adapted from: https://lemire.me/blog/2016/06/30/fast-random-shuffling/ let mut r = self.gen_u128(); let mut hi = mul_high_u128(r, n); @@ -203,6 +194,16 @@ impl Rng { } } +thread_local! { + static RNG: Rng = Rng(Cell::new({ + let mut hasher = DefaultHasher::new(); + Instant::now().hash(&mut hasher); + thread::current().id().hash(&mut hasher); + let hash = hasher.finish(); + (hash << 1) | 1 + })); +} + /// Computes `(a * b) >> 32`. #[inline] fn mul_high_u32(a: u32, b: u32) -> u32 { @@ -234,7 +235,7 @@ macro_rules! rng_integer { /// /// Panics if the range is empty. #[inline] - pub fn $t(&mut self, range: impl RangeBounds<$t>) -> $t { + pub fn $t(&self, range: impl RangeBounds<$t>) -> $t { let panic_empty_range = || { panic!( "empty range: {:?}..{:?}", @@ -244,13 +245,13 @@ macro_rules! rng_integer { }; let low = match range.start_bound() { - Bound::Unbounded => core::$t::MIN, + Bound::Unbounded => std::$t::MIN, Bound::Included(&x) => x, Bound::Excluded(&x) => x.checked_add(1).unwrap_or_else(panic_empty_range), }; let high = match range.end_bound() { - Bound::Unbounded => core::$t::MAX, + Bound::Unbounded => std::$t::MAX, Bound::Included(&x) => x, Bound::Excluded(&x) => x.checked_sub(1).unwrap_or_else(panic_empty_range), }; @@ -259,7 +260,7 @@ macro_rules! rng_integer { panic_empty_range(); } - if low == core::$t::MIN && high == core::$t::MAX { + if low == std::$t::MIN && high == std::$t::MAX { self.$gen() as $t } else { let len = high.wrapping_sub(low).wrapping_add(1); @@ -270,59 +271,46 @@ macro_rules! rng_integer { } impl Rng { + /// Creates a new random number generator. + #[inline] + pub fn new() -> Rng { + Rng::with_seed( + RNG.try_with(|rng| rng.u64(..)) + .unwrap_or(0x4d595df4d0f33173), + ) + } + /// Creates a new random number generator with the initial seed. #[inline] #[must_use = "this creates a new instance of `Rng`; if you want to initialize the thread-local generator, use `fastrand::seed()` instead"] pub fn with_seed(seed: u64) -> Self { - let mut rng = Rng(0); + let rng = Rng(Cell::new(0)); rng.seed(seed); rng } - /// Clones the generator by deterministically deriving a new generator based on the initial - /// seed. - /// - /// # Example - /// - /// ``` - /// // Seed two generators equally, and clone both of them. - /// let mut base1 = fastrand::Rng::new(); - /// base1.seed(0x4d595df4d0f33173); - /// base1.bool(); // Use the generator once. - /// - /// let mut base2 = fastrand::Rng::new(); - /// base2.seed(0x4d595df4d0f33173); - /// base2.bool(); // Use the generator once. - /// - /// let mut rng1 = base1.clone(); - /// let mut rng2 = base2.clone(); - /// - /// assert_eq!(rng1.u64(..), rng2.u64(..), "the cloned generators are identical"); - /// ``` - #[inline] - #[must_use = "this creates a new instance of `Rng`"] - pub fn fork(&mut self) -> Self { - Rng::with_seed(self.gen_u64()) - } - /// Generates a random `char` in ranges a-z and A-Z. #[inline] - pub fn alphabetic(&mut self) -> char { + pub fn alphabetic(&self) -> char { const CHARS: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; - *self.choice(CHARS).unwrap() as char + let len = CHARS.len() as u8; + let i = self.u8(..len); + CHARS[i as usize] as char } /// Generates a random `char` in ranges a-z, A-Z and 0-9. #[inline] - pub fn alphanumeric(&mut self) -> char { + pub fn alphanumeric(&self) -> char { const CHARS: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - *self.choice(CHARS).unwrap() as char + let len = CHARS.len() as u8; + let i = self.u8(..len); + CHARS[i as usize] as char } /// Generates a random `bool`. #[inline] - pub fn bool(&mut self) -> bool { + pub fn bool(&self) -> bool { self.u8(..) % 2 == 0 } @@ -332,7 +320,7 @@ impl Rng { /// /// Panics if the base is zero or greater than 36. #[inline] - pub fn digit(&mut self, base: u32) -> char { + pub fn digit(&self, base: u32) -> char { if base == 0 { panic!("base cannot be zero"); } @@ -348,57 +336,19 @@ impl Rng { } /// Generates a random `f32` in range `0..1`. - pub fn f32(&mut self) -> f32 { + pub fn f32(&self) -> f32 { let b = 32; - let f = core::f32::MANTISSA_DIGITS - 1; + let f = std::f32::MANTISSA_DIGITS - 1; f32::from_bits((1 << (b - 2)) - (1 << f) + (self.u32(..) >> (b - f))) - 1.0 } /// Generates a random `f64` in range `0..1`. - pub fn f64(&mut self) -> f64 { + pub fn f64(&self) -> f64 { let b = 64; - let f = core::f64::MANTISSA_DIGITS - 1; + let f = std::f64::MANTISSA_DIGITS - 1; f64::from_bits((1 << (b - 2)) - (1 << f) + (self.u64(..) >> (b - f))) - 1.0 } - /// Collects `amount` values at random from the iterator into a vector. - /// - /// The length of the returned vector equals `amount` unless the iterator - /// contains insufficient elements, in which case it equals the number of - /// elements available. - /// - /// Complexity is `O(n)` where `n` is the length of the iterator. - #[cfg(feature = "alloc")] - #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] - pub fn choose_multiple(&mut self, mut source: T, amount: usize) -> Vec { - // Adapted from: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose_multiple - let mut reservoir = Vec::with_capacity(amount); - - reservoir.extend(source.by_ref().take(amount)); - - // Continue unless the iterator was exhausted - // - // note: this prevents iterators that "restart" from causing problems. - // If the iterator stops once, then so do we. - if reservoir.len() == amount { - for (i, elem) in source.enumerate() { - let end = i + 1 + amount; - let k = self.usize(0..end); - if let Some(slot) = reservoir.get_mut(k) { - *slot = elem; - } - } - } else { - // If less than one third of the `Vec` was used, reallocate - // so that the unused space is not wasted. There is a corner - // case where `amount` was much less than `self.len()`. - if reservoir.capacity() > 3 * reservoir.len() { - reservoir.shrink_to_fit(); - } - } - reservoir - } - rng_integer!( i8, u8, @@ -466,49 +416,28 @@ impl Rng { /// Generates a random `char` in range a-z. #[inline] - pub fn lowercase(&mut self) -> char { + pub fn lowercase(&self) -> char { const CHARS: &[u8] = b"abcdefghijklmnopqrstuvwxyz"; - *self.choice(CHARS).unwrap() as char + let len = CHARS.len() as u8; + let i = self.u8(..len); + CHARS[i as usize] as char } /// Initializes this generator with the given seed. #[inline] - pub fn seed(&mut self, seed: u64) { - self.0 = seed; + pub fn seed(&self, seed: u64) { + self.0.set(seed); } /// Gives back **current** seed that is being held by this generator. #[inline] pub fn get_seed(&self) -> u64 { - self.0 - } - - /// Choose an item from an iterator at random. - /// - /// This function may have an unexpected result if the `len()` property of the - /// iterator does not match the actual number of items in the iterator. If - /// the iterator is empty, this returns `None`. - #[inline] - pub fn choice(&mut self, iter: I) -> Option - where - I: IntoIterator, - I::IntoIter: ExactSizeIterator, - { - let mut iter = iter.into_iter(); - - // Get the item at a random index. - let len = iter.len(); - if len == 0 { - return None; - } - let index = self.usize(0..len); - - iter.nth(index) + self.0.get() } /// Shuffles a slice randomly. #[inline] - pub fn shuffle(&mut self, slice: &mut [T]) { + pub fn shuffle(&self, slice: &mut [T]) { for i in 1..slice.len() { slice.swap(i, self.usize(..=i)); } @@ -516,7 +445,7 @@ impl Rng { /// Fill a byte slice with random data. #[inline] - pub fn fill(&mut self, slice: &mut [u8]) { + pub fn fill(&self, slice: &mut [u8]) { // We fill the slice by chunks of 8 bytes, or one block of // WyRand output per new state. let mut chunks = slice.chunks_exact_mut(core::mem::size_of::()); @@ -613,16 +542,20 @@ impl Rng { /// Generates a random `char` in range A-Z. #[inline] - pub fn uppercase(&mut self) -> char { + pub fn uppercase(&self) -> char { const CHARS: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - *self.choice(CHARS).unwrap() as char + let len = CHARS.len() as u8; + let i = self.u8(..len); + CHARS[i as usize] as char } /// Generates a random `char` in the given range. /// /// Panics if the range is empty. #[inline] - pub fn char(&mut self, range: impl RangeBounds) -> char { + pub fn char(&self, range: impl RangeBounds) -> char { + use std::convert::TryFrom; + let panic_empty_range = || { panic!( "empty range: {:?}..{:?}", @@ -648,7 +581,7 @@ impl Rng { }; let high = match range.end_bound() { - Bound::Unbounded => core::char::MAX, + Bound::Unbounded => std::char::MAX, Bound::Included(&x) => x, Bound::Excluded(&x) => { let scalar = if x as u32 == surrogate_start + surrogate_len { @@ -677,3 +610,97 @@ impl Rng { val.try_into().unwrap() } } + +/// Initializes the thread-local generator with the given seed. +#[inline] +pub fn seed(seed: u64) { + RNG.with(|rng| rng.seed(seed)) +} + +/// Gives back **current** seed that is being held by the thread-local generator. +#[inline] +pub fn get_seed() -> u64 { + RNG.with(|rng| rng.get_seed()) +} + +/// Generates a random `bool`. +#[inline] +pub fn bool() -> bool { + RNG.with(|rng| rng.bool()) +} + +/// Generates a random `char` in ranges a-z and A-Z. +#[inline] +pub fn alphabetic() -> char { + RNG.with(|rng| rng.alphabetic()) +} + +/// Generates a random `char` in ranges a-z, A-Z and 0-9. +#[inline] +pub fn alphanumeric() -> char { + RNG.with(|rng| rng.alphanumeric()) +} + +/// Generates a random `char` in range a-z. +#[inline] +pub fn lowercase() -> char { + RNG.with(|rng| rng.lowercase()) +} + +/// Generates a random `char` in range A-Z. +#[inline] +pub fn uppercase() -> char { + RNG.with(|rng| rng.uppercase()) +} + +/// Generates a random digit in the given `base`. +/// +/// Digits are represented by `char`s in ranges 0-9 and a-z. +/// +/// Panics if the base is zero or greater than 36. +#[inline] +pub fn digit(base: u32) -> char { + RNG.with(|rng| rng.digit(base)) +} + +/// Shuffles a slice randomly. +#[inline] +pub fn shuffle(slice: &mut [T]) { + RNG.with(|rng| rng.shuffle(slice)) +} + +macro_rules! integer { + ($t:tt, $doc:tt) => { + #[doc = $doc] + /// + /// Panics if the range is empty. + #[inline] + pub fn $t(range: impl RangeBounds<$t>) -> $t { + RNG.with(|rng| rng.$t(range)) + } + }; +} + +integer!(u8, "Generates a random `u8` in the given range."); +integer!(i8, "Generates a random `i8` in the given range."); +integer!(u16, "Generates a random `u16` in the given range."); +integer!(i16, "Generates a random `i16` in the given range."); +integer!(u32, "Generates a random `u32` in the given range."); +integer!(i32, "Generates a random `i32` in the given range."); +integer!(u64, "Generates a random `u64` in the given range."); +integer!(i64, "Generates a random `i64` in the given range."); +integer!(u128, "Generates a random `u128` in the given range."); +integer!(i128, "Generates a random `i128` in the given range."); +integer!(usize, "Generates a random `usize` in the given range."); +integer!(isize, "Generates a random `isize` in the given range."); +integer!(char, "Generates a random `char` in the given range."); + +/// Generates a random `f32` in range `0..1`. +pub fn f32() -> f32 { + RNG.with(|rng| rng.f32()) +} + +/// Generates a random `f64` in range `0..1`. +pub fn f64() -> f64 { + RNG.with(|rng| rng.f64()) +} diff --git a/third_party/rust/fastrand/tests/smoke.rs b/third_party/rust/fastrand/tests/smoke.rs index 7c92ee52ef63..ff3cea66db3b 100644 --- a/third_party/rust/fastrand/tests/smoke.rs +++ b/third_party/rust/fastrand/tests/smoke.rs @@ -77,7 +77,7 @@ fn u128() { #[test] fn fill() { - let mut r = fastrand::Rng::new(); + let r = fastrand::Rng::new(); let mut a = [0u8; 64]; let mut b = [0u8; 64]; @@ -89,7 +89,7 @@ fn fill() { #[test] fn rng() { - let mut r = fastrand::Rng::new(); + let r = fastrand::Rng::new(); assert_ne!(r.u64(..), r.u64(..)); @@ -102,8 +102,8 @@ fn rng() { #[test] fn rng_init() { - let mut a = fastrand::Rng::new(); - let mut b = fastrand::Rng::new(); + let a = fastrand::Rng::new(); + let b = fastrand::Rng::new(); assert_ne!(a.u64(..), b.u64(..)); a.seed(7); @@ -113,31 +113,8 @@ fn rng_init() { #[test] fn with_seed() { - let mut a = fastrand::Rng::with_seed(7); - let mut b = fastrand::Rng::new(); + let a = fastrand::Rng::with_seed(7); + let b = fastrand::Rng::new(); b.seed(7); assert_eq!(a.u64(..), b.u64(..)); } - -#[test] -fn choose_multiple() { - let mut a = fastrand::Rng::new(); - let mut elements = (0..20).collect::>(); - - while !elements.is_empty() { - let chosen = a.choose_multiple(0..20, 5); - for &x in &chosen { - elements.retain(|&y| y != x); - } - } -} - -#[test] -fn choice() { - let items = [1, 4, 9, 5, 2, 3, 6, 7, 8, 0]; - let mut r = fastrand::Rng::new(); - - for item in &items { - while r.choice(&items).unwrap() != item {} - } -} diff --git a/third_party/rust/instant/.cargo-checksum.json b/third_party/rust/instant/.cargo-checksum.json new file mode 100644 index 000000000000..42dbf0c43bee --- /dev/null +++ b/third_party/rust/instant/.cargo-checksum.json @@ -0,0 +1 @@ +{"files":{"AUTHORS":"451a1be16acafff0cb0eaedc49b46063cc6ce087d0c36f6d64d67aa93d20e485","CHANGELOGS.md":"bb587c08dd9b1f04cba934a241a99655f9d7e38bc70e4d45feca95efa09bd799","Cargo.toml":"a64c7ab3a5906d2e7360fb30cc23e5042bd7c22aa640e8e47bb3dad1a3dbf8eb","LICENSE":"2510d4cde8c4e13d8c54b9fe2a9d144daf567ec8d02832f1454e7ca2d58cdda6","README.md":"22b54b9f16ad18144f29e50d1b1f16791c5e8f1afee81265bad9b72f6efb8e62","src/lib.rs":"cc4822f1c4ac7926859045608d91e3f855914468039bffb75bc9b455c0950ab3","src/native.rs":"bd4cd1f888b83a9eaf07f640bef51c4f16138ceb427a685d3ab07152eec53d1c","src/wasm.rs":"c17c7bf8a28fee134444201212d1cf62bff49650f297e42367ec1b7aeaddc7c9","tests/wasm.rs":"1b81ff541bec36bac824a7ec41cd15f68d9919c3c7522290aa003fa4c253e840"},"package":"7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"} \ No newline at end of file diff --git a/third_party/rust/instant/AUTHORS b/third_party/rust/instant/AUTHORS new file mode 100644 index 000000000000..a4432b168198 --- /dev/null +++ b/third_party/rust/instant/AUTHORS @@ -0,0 +1,2 @@ +Main developer: + * Sébastien Crozet \ No newline at end of file diff --git a/third_party/rust/instant/CHANGELOGS.md b/third_party/rust/instant/CHANGELOGS.md new file mode 100644 index 000000000000..092d8aea3ae2 --- /dev/null +++ b/third_party/rust/instant/CHANGELOGS.md @@ -0,0 +1,7 @@ +# v0.1.12 +## Added +- Add `SystemTime` which works in both native and WASM environments. + +## Modified +- The `now` function is always available now: there is no need to enable the `now` feature any more. The `now` feature + still exists (but doesn’t do anything) for backwards compatibility. \ No newline at end of file diff --git a/third_party/rust/instant/Cargo.toml b/third_party/rust/instant/Cargo.toml new file mode 100644 index 000000000000..fcd0adff1aba --- /dev/null +++ b/third_party/rust/instant/Cargo.toml @@ -0,0 +1,81 @@ +# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO +# +# When uploading crates to the registry Cargo will automatically +# "normalize" Cargo.toml files for maximal compatibility +# with all versions of Cargo and also rewrite `path` dependencies +# to registry (e.g., crates.io) dependencies. +# +# If you are reading this file be aware that the original Cargo.toml +# will likely look very different (and much more reasonable). +# See Cargo.toml.orig for the original contents. + +[package] +edition = "2018" +name = "instant" +version = "0.1.12" +authors = ["sebcrozet "] +description = "A partial replacement for std::time::Instant that works on WASM too." +readme = "README.md" +keywords = ["time", "wasm"] +license = "BSD-3-Clause" +repository = "https://github.com/sebcrozet/instant" +[dependencies.cfg-if] +version = "1.0" +[dev-dependencies.wasm-bindgen-test] +version = "0.3" + +[features] +inaccurate = [] +now = [] +wasm-bindgen = ["js-sys", "wasm-bindgen_rs", "web-sys"] +[target.asmjs-unknown-emscripten.dependencies.js-sys] +version = "0.3" +optional = true + +[target.asmjs-unknown-emscripten.dependencies.stdweb] +version = "0.4" +optional = true + +[target.asmjs-unknown-emscripten.dependencies.wasm-bindgen_rs] +version = "0.2" +optional = true +package = "wasm-bindgen" + +[target.asmjs-unknown-emscripten.dependencies.web-sys] +version = "0.3" +features = ["Window", "Performance", "PerformanceTiming"] +optional = true +[target.wasm32-unknown-emscripten.dependencies.js-sys] +version = "0.3" +optional = true + +[target.wasm32-unknown-emscripten.dependencies.stdweb] +version = "0.4" +optional = true + +[target.wasm32-unknown-emscripten.dependencies.wasm-bindgen_rs] +version = "0.2" +optional = true +package = "wasm-bindgen" + +[target.wasm32-unknown-emscripten.dependencies.web-sys] +version = "0.3" +features = ["Window", "Performance", "PerformanceTiming"] +optional = true +[target.wasm32-unknown-unknown.dependencies.js-sys] +version = "0.3" +optional = true + +[target.wasm32-unknown-unknown.dependencies.stdweb] +version = "0.4" +optional = true + +[target.wasm32-unknown-unknown.dependencies.wasm-bindgen_rs] +version = "0.2" +optional = true +package = "wasm-bindgen" + +[target.wasm32-unknown-unknown.dependencies.web-sys] +version = "0.3" +features = ["Window", "Performance", "PerformanceTiming"] +optional = true diff --git a/third_party/rust/instant/LICENSE b/third_party/rust/instant/LICENSE new file mode 100644 index 000000000000..f8062f39a67b --- /dev/null +++ b/third_party/rust/instant/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2019, Sébastien Crozet +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the author nor the names of its contributors may be used + to endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/third_party/rust/instant/README.md b/third_party/rust/instant/README.md new file mode 100644 index 000000000000..0e35ad656c30 --- /dev/null +++ b/third_party/rust/instant/README.md @@ -0,0 +1,143 @@ +# Instant + +If you call `std::time::Instant::now()` on a WASM platform, it will panic. This crate provides a partial +replacement for `std::time::Instant` that works on WASM too. This defines the type `instant::Instant` which is: + +* A struct emulating the behavior of **std::time::Instant** if you are targeting `wasm32-unknown-unknown` or `wasm32-unknown-asmjs` +**and** you enabled either the `stdweb` or the `wasm-bindgen` feature. This emulation is based on the javascript `performance.now()` function. +* A type alias for `std::time::Instant` otherwise. + + + +Note that even if the **stdweb** or **wasm-bindgen** feature is enabled, this crate will continue to rely on `std::time::Instant` +as long as you are not targeting wasm32. This allows for portable code that will work on both native and WASM platforms. + +This crate also exports the function `instant::now()` which returns a representation of the current time as an `f64`, expressed in milliseconds, in a platform-agnostic way. `instant::now()` will either: + +* Call `performance.now()` when compiling for a WASM platform with the features **stdweb** or **wasm-bindgen** enabled, or using a custom javascript function. +* Return the time elapsed since the *Unix Epoch* on *native*, *non-WASM* platforms. + +*Note*: The old feature, `now`, has been deprecated. `instant::now()` is always exported and the `now` feature flag no longer has any effect. It remains listed in `Cargo.toml` to avoid introducing breaking changes and may be removed in future versions. + +## Examples +### Using `instant` for a native platform. +_Cargo.toml_: +```toml +[dependencies] +instant = "0.1" +``` + +_main.rs_: +```rust +fn main() { + // Will be the same as `std::time::Instant`. + let now = instant::Instant::now(); +} +``` + +----- + +### Using `instant` for a WASM platform. +This example shows the use of the `stdweb` feature. It would be similar with `wasm-bindgen`. + +_Cargo.toml_: +```toml +[dependencies] +instant = { version = "0.1", features = [ "stdweb" ] } +``` + +_main.rs_: +```rust +fn main() { + // Will emulate `std::time::Instant` based on `performance.now()`. + let now = instant::Instant::now(); +} +``` + +----- + +### Using `instant` for a WASM platform where `performance.now()` is not available. +This example shows the use of the `inaccurate` feature. + +_Cargo.toml_: +```toml +[dependencies] +instant = { version = "0.1", features = [ "wasm-bindgen", "inaccurate" ] } +``` + +_main.rs_: +```rust +fn main() { + // Will emulate `std::time::Instant` based on `Date.now()`. + let now = instant::Instant::now(); +} +``` + + +----- + +### Using `instant` for any platform enabling a feature transitively. +_Cargo.toml_: +```toml +[features] +stdweb = [ "instant/stdweb" ] +wasm-bindgen = [ "instant/wasm-bindgen" ] + +[dependencies] +instant = "0.1" +``` + +_lib.rs_: +```rust +fn my_function() { + // Will select the proper implementation depending on the + // feature selected by the user. + let now = instant::Instant::now(); +} +``` + +----- + +### Using `instant::now()` +_Cargo.toml_: +```toml +[features] +stdweb = [ "instant/stdweb" ] +wasm-bindgen = [ "instant/wasm-bindgen" ] + +[dependencies] +instant = "0.1" +``` + +_lib.rs_: +```rust +fn my_function() { + // Will select the proper implementation depending on the + // feature selected by the user. + let now_instant = instant::Instant::now(); + let now_milliseconds = instant::now(); // In milliseconds. +} +``` + +### Using the feature `now` without `stdweb` or `wasm-bindgen`. +_Cargo.toml_: +```toml +[dependencies] +instant = "0.1" +``` + +_lib.rs_: +```rust +fn my_function() { + // Will use the 'now' javascript implementation. + let now_instant = instant::Instant::now(); + let now_milliseconds = instant::now(); // In milliseconds. +} +``` + +_javascript WASM bindings file_: +```js +function now() { + return Date.now() / 1000.0; +} +``` diff --git a/third_party/rust/instant/src/lib.rs b/third_party/rust/instant/src/lib.rs new file mode 100644 index 000000000000..00d59e7f167e --- /dev/null +++ b/third_party/rust/instant/src/lib.rs @@ -0,0 +1,22 @@ +cfg_if::cfg_if! { + if #[cfg(any( + all(target_arch = "wasm32", not(target_os = "wasi")), + target_arch = "asmjs" + ))] { + #[cfg(all(feature = "stdweb", not(feature = "wasm-bindgen")))] + #[macro_use] + extern crate stdweb; + + mod wasm; + pub use wasm::Instant; + pub use crate::wasm::now; + pub use wasm::SystemTime; + } else { + mod native; + pub use native::Instant; + pub use native::now; + pub use native::SystemTime; + } +} + +pub use std::time::Duration; diff --git a/third_party/rust/instant/src/native.rs b/third_party/rust/instant/src/native.rs new file mode 100644 index 000000000000..37b34f3e8b45 --- /dev/null +++ b/third_party/rust/instant/src/native.rs @@ -0,0 +1,9 @@ +pub type Instant = std::time::Instant; +pub type SystemTime = std::time::SystemTime; + +/// The current time, expressed in milliseconds since the Unix Epoch. +pub fn now() -> f64 { + std::time::SystemTime::now().duration_since(std::time::SystemTime::UNIX_EPOCH) + .expect("System clock was before 1970.") + .as_secs_f64() * 1000.0 +} diff --git a/third_party/rust/instant/src/wasm.rs b/third_party/rust/instant/src/wasm.rs new file mode 100644 index 000000000000..f11b82a70314 --- /dev/null +++ b/third_party/rust/instant/src/wasm.rs @@ -0,0 +1,240 @@ +use std::cmp::Ordering; +use std::ops::{Add, AddAssign, Sub, SubAssign}; +use std::time::Duration; + +#[derive(Copy, Clone, Debug, PartialEq, PartialOrd, Hash)] +pub struct Instant(Duration); + +impl Ord for Instant { + fn cmp(&self, other: &Self) -> std::cmp::Ordering { + self.partial_cmp(other) + .expect("an instant should never be NaN or Inf.") + } +} +impl Eq for Instant {} + +impl Instant { + #[inline] + pub fn now() -> Self { + Instant(duration_from_f64(now())) + } + + #[inline] + pub fn duration_since(&self, earlier: Instant) -> Duration { + assert!( + earlier.0 <= self.0, + "`earlier` cannot be later than `self`." + ); + self.0 - earlier.0 + } + + #[inline] + pub fn elapsed(&self) -> Duration { + Self::now().duration_since(*self) + } + + /// Returns `Some(t)` where `t` is the time `self + duration` if `t` can be represented as + /// `Instant` (which means it's inside the bounds of the underlying data structure), `None` + /// otherwise. + #[inline] + pub fn checked_add(&self, duration: Duration) -> Option { + self.0.checked_add(duration).map(Instant) + } + + /// Returns `Some(t)` where `t` is the time `self - duration` if `t` can be represented as + /// `Instant` (which means it's inside the bounds of the underlying data structure), `None` + /// otherwise. + #[inline] + pub fn checked_sub(&self, duration: Duration) -> Option { + self.0.checked_sub(duration).map(Instant) + } + + /// Returns the amount of time elapsed from another instant to this one, or None if that + /// instant is later than this one. + #[inline] + pub fn checked_duration_since(&self, earlier: Instant) -> Option { + if earlier.0 > self.0 { + None + } else { + Some(self.0 - earlier.0) + } + } + + /// Returns the amount of time elapsed from another instant to this one, or zero duration if + /// that instant is later than this one. + #[inline] + pub fn saturating_duration_since(&self, earlier: Instant) -> Duration { + self.checked_duration_since(earlier).unwrap_or_default() + } +} + +impl Add for Instant { + type Output = Self; + + #[inline] + fn add(self, rhs: Duration) -> Self { + Instant(self.0 + rhs) + } +} + +impl AddAssign for Instant { + #[inline] + fn add_assign(&mut self, rhs: Duration) { + self.0 += rhs + } +} + +impl Sub for Instant { + type Output = Self; + + #[inline] + fn sub(self, rhs: Duration) -> Self { + Instant(self.0 - rhs) + } +} + +impl Sub for Instant { + type Output = Duration; + + #[inline] + fn sub(self, rhs: Instant) -> Duration { + self.duration_since(rhs) + } +} + +impl SubAssign for Instant { + #[inline] + fn sub_assign(&mut self, rhs: Duration) { + self.0 -= rhs + } +} + +fn duration_from_f64(millis: f64) -> Duration { + Duration::from_millis(millis.trunc() as u64) + + Duration::from_nanos((millis.fract() * 1.0e6) as u64) +} + +#[cfg(all(feature = "stdweb", not(feature = "wasm-bindgen")))] +#[allow(unused_results)] // Needed because the js macro triggers it. +pub fn now() -> f64 { + use stdweb::unstable::TryInto; + + // https://developer.mozilla.org/en-US/docs/Web/API/Performance/now + #[cfg(not(feature = "inaccurate"))] + let v = js! { return performance.now(); }; + #[cfg(feature = "inaccurate")] + let v = js! { return Date.now(); }; + v.try_into().unwrap() +} + +#[cfg(feature = "wasm-bindgen")] +pub fn now() -> f64 { + #[cfg(not(feature = "inaccurate"))] + let now = { + use wasm_bindgen_rs::prelude::*; + use wasm_bindgen_rs::JsCast; + js_sys::Reflect::get(&js_sys::global(), &JsValue::from_str("performance")) + .expect("failed to get performance from global object") + .unchecked_into::() + .now() + }; + #[cfg(feature = "inaccurate")] + let now = js_sys::Date::now(); + now +} + +// The JS now function is in a module so it won't have to be renamed +#[cfg(not(any(feature = "wasm-bindgen", feature = "stdweb")))] +mod js { + extern "C" { + #[cfg(not(target_os = "emscripten"))] + pub fn now() -> f64; + #[cfg(target_os = "emscripten")] + pub fn _emscripten_get_now() -> f64; + } +} +// Make the unsafe extern function "safe" so it can be called like the other 'now' functions +#[cfg(not(any(feature = "wasm-bindgen", feature = "stdweb")))] +pub fn now() -> f64 { + #[cfg(not(target_os = "emscripten"))] + return unsafe { js::now() }; + #[cfg(target_os = "emscripten")] + return unsafe { js::_emscripten_get_now() }; +} + +/// Returns the number of millisecods elapsed since January 1, 1970 00:00:00 UTC. +#[cfg(any(feature = "wasm-bindgen", feature = "stdweb"))] +fn get_time() -> f64 { + #[cfg(feature = "wasm-bindgen")] + return js_sys::Date::now(); + #[cfg(all(feature = "stdweb", not(feature = "wasm-bindgen")))] + { + let v = js! { return Date.now(); }; + return v.try_into().unwrap(); + } +} + +#[derive(Copy, Clone, Debug, PartialEq, PartialOrd)] +pub struct SystemTime(f64); + +impl SystemTime { + pub const UNIX_EPOCH: SystemTime = SystemTime(0.0); + + pub fn now() -> SystemTime { + cfg_if::cfg_if! { + if #[cfg(any(feature = "wasm-bindgen", feature = "stdweb"))] { + SystemTime(get_time()) + } else { + SystemTime(now()) + } + } + } + + pub fn duration_since(&self, earlier: SystemTime) -> Result { + let dur_ms = self.0 - earlier.0; + if dur_ms < 0.0 { + return Err(()); + } + Ok(Duration::from_millis(dur_ms as u64)) + } + + pub fn elapsed(&self) -> Result { + self.duration_since(SystemTime::now()) + } + + pub fn checked_add(&self, duration: Duration) -> Option { + Some(*self + duration) + } + + pub fn checked_sub(&self, duration: Duration) -> Option { + Some(*self - duration) + } +} + +impl Add for SystemTime { + type Output = SystemTime; + + fn add(self, other: Duration) -> SystemTime { + SystemTime(self.0 + other.as_millis() as f64) + } +} + +impl Sub for SystemTime { + type Output = SystemTime; + + fn sub(self, other: Duration) -> SystemTime { + SystemTime(self.0 - other.as_millis() as f64) + } +} + +impl AddAssign for SystemTime { + fn add_assign(&mut self, rhs: Duration) { + *self = *self + rhs; + } +} + +impl SubAssign for SystemTime { + fn sub_assign(&mut self, rhs: Duration) { + *self = *self - rhs; + } +} diff --git a/third_party/rust/instant/tests/wasm.rs b/third_party/rust/instant/tests/wasm.rs new file mode 100644 index 000000000000..7dacdc4f9eca --- /dev/null +++ b/third_party/rust/instant/tests/wasm.rs @@ -0,0 +1,57 @@ +extern crate wasm_bindgen_test; + +use instant::{Instant, SystemTime}; +use std::time::Duration; +use wasm_bindgen_test::*; + +wasm_bindgen_test_configure!(run_in_browser); +// run these tests using: wasm-pack test --chrome --headless -- --features wasm-bindgen + +#[wasm_bindgen_test] +fn test_instant_now() { + let now = Instant::now(); + #[cfg(feature = "inaccurate")] + while now.elapsed().as_millis() == 0 {} + #[cfg(not(feature = "inaccurate"))] + assert!(now.elapsed().as_nanos() > 0); +} + +#[wasm_bindgen_test] +fn test_duration() { + let now = Instant::now(); + let one_sec = Duration::from_secs(1); + assert!(now.elapsed() < one_sec); +} + +// Duration::new will overflow when you have u64::MAX seconds and one billion nanoseconds. +// +const ONE_BILLION: u32 = 1_000_000_000; + +#[wasm_bindgen_test] +fn test_checked_add() { + let now = Instant::now(); + + assert!(now.checked_add(Duration::from_millis(1)).is_some()); + assert_eq!( + None, + now.checked_add(Duration::new(u64::MAX, ONE_BILLION - 1)) + ); +} + +#[wasm_bindgen_test] +fn test_checked_sub() { + let now = Instant::now(); + + assert!(now.checked_sub(Duration::from_millis(1)).is_some()); + assert!(now + .checked_sub(Duration::new(u64::MAX, ONE_BILLION - 1)) + .is_none()); +} + +#[wasm_bindgen_test] +fn test_system_time() { + assert!(SystemTime::UNIX_EPOCH + .duration_since(SystemTime::now()) + .is_err()); +} + diff --git a/third_party/rust/libc/.cargo-checksum.json b/third_party/rust/libc/.cargo-checksum.json dissimilarity index 97% index 44ef53c6cf3f..e90619c72945 100644 --- a/third_party/rust/libc/.cargo-checksum.json +++ b/third_party/rust/libc/.cargo-checksum.json @@ -1 +1 @@ -{"files":{"CONTRIBUTING.md":"bdc90b52cf803faac96e594069a86dd8ea150d5ba7fb3e6cadfc08dac4c7b0ce","Cargo.toml":"a58e58fa9bde015e08609ea2f17e56c5df7c82aa6f3fa1a144c02ee4715227b9","LICENSE-APACHE":"62c7a1e35f56406896d7aa7ca52d0cc0d272ac022b5d2796e7d6905db8a3636a","LICENSE-MIT":"a8d47ff51ca256f56a8932dba07660672dbfe3004257ca8de708aac1415937a1","README.md":"ecc47e284f8d007fc048666d5108dd41cdc440ab9eedfe8c47d1634613522787","build.rs":"9e94683e94db80e8282fce07549cf748d9037852fb06df1c7596bea2ed130d50","rustfmt.toml":"eaa2ea84fc1ba0359b77680804903e07bb38d257ab11986b95b158e460f787b2","src/fixed_width_ints.rs":"7f986e5f5e68d25ef04d386fd2f640e8be8f15427a8d4a458ea01d26b8dca0ca","src/fuchsia/aarch64.rs":"893fcec48142d273063ffd814dca33fbec92205fd39ada97075f85201d803996","src/fuchsia/align.rs":"ae1cf8f011a99737eabeb14ffff768e60f13b13363d7646744dbb0f443dab3d6","src/fuchsia/mod.rs":"30f4dc83ef120300d61896696512436377c5f36f1431d98ab7e01e498c0c47d5","src/fuchsia/no_align.rs":"303f3f1b255e0088b5715094353cf00476131d8e94e6aebb3f469557771c8b8a","src/fuchsia/riscv64.rs":"617cd75e79e0e20f664db764a4dc2a396d9fd11a4d95371acd91ed4811293b11","src/fuchsia/x86_64.rs":"93a3632b5cf67d2a6bcb7dc0a558605252d5fe689e0f38d8aa2ec5852255ac87","src/hermit/aarch64.rs":"86048676e335944c37a63d0083d0f368ae10ceccefeed9debb3bbe08777fc682","src/hermit/mod.rs":"d3bfce41e4463d4be8020a2d063c9bfa8b665f45f1cc6cbf3163f5d01e7cb21f","src/hermit/x86_64.rs":"ab832b7524e5fb15c49ff7431165ab1a37dc4667ae0b58e8306f4c539bfa110c","src/lib.rs":"24111461547739f3646f95bcb66c43f2ae679a727ff5938299434c522c02e458","src/macros.rs":"b457eb028b8e8ab3c24bb7292b874ad4e491edbb83594f6a3da024df5348c088","src/psp.rs":"dd31aabd46171d474ec5828372e28588935120e7355c90c105360d8fa9264c1c","src/sgx.rs":"16a95cdefc81c5ee00d8353a60db363c4cc3e0f75abcd5d0144723f2a306ed1b","src/solid/aarch64.rs":"a726e47f324adf73a4a0b67a2c183408d0cad105ae66acf36db37a42ab7f8707","src/solid/arm.rs":"e39a4f74ebbef3b97b8c95758ad741123d84ed3eb48d9cf4f1f4872097fc27fe","src/solid/mod.rs":"5f4151dca5132e4b4e4c23ab9737e12856dddbdc0ca3f7dbc004328ef3c8acde","src/switch.rs":"9da3dd39b3de45a7928789926e8572d00e1e11a39e6f7289a1349aadce90edba","src/unix/aix/mod.rs":"54229b5e774669c16912112e8b50fa938db76f534971222a11723a05195a0948","src/unix/aix/powerpc64.rs":"cf374d81139d45f9d77c6a764f640bfbf7e0a5903689652c8296f8e10d55169b","src/unix/align.rs":"2cdc7c826ef7ae61f5171c5ae8c445a743d86f1a7f2d9d7e4ceeec56d6874f65","src/unix/bsd/apple/b32/align.rs":"ec833a747866fe19ca2d9b4d3c9ff0385faba5edf4bd0d15fa68884c40b0e26c","src/unix/bsd/apple/b32/mod.rs":"2546ad3eb6aecb95f916648bc63264117c92b4b4859532b34cb011e4c75a5a72","src/unix/bsd/apple/b64/aarch64/align.rs":"2eaf0f561a32bdcbf4e0477c8895d5e7bcb5cdebd5fef7b4df2ca8e38e144d94","src/unix/bsd/apple/b64/aarch64/mod.rs":"44c217a4f263afe7a97435de9323d20a96c37836f899ca0925306d4b7e073c27","src/unix/bsd/apple/b64/align.rs":"ec833a747866fe19ca2d9b4d3c9ff0385faba5edf4bd0d15fa68884c40b0e26c","src/unix/bsd/apple/b64/mod.rs":"f5e278a1af7fb358891d1c9be4eb7e815aaca0c5cb738d0c3604ba2208a856f7","src/unix/bsd/apple/b64/x86_64/align.rs":"ec833a747866fe19ca2d9b4d3c9ff0385faba5edf4bd0d15fa68884c40b0e26c","src/unix/bsd/apple/b64/x86_64/mod.rs":"8c87c5855038aae5d433c8f5eb3b29b0a175879a0245342b3bfd83bdf4cfd936","src/unix/bsd/apple/long_array.rs":"3cf1f19b812e6d093c819dc65ce55b13491963e0780eda0d0bd1577603e81948","src/unix/bsd/apple/mod.rs":"0931fd351d585728e6384d7b952b8d816e9acdb9c86c172324445f3c33f692ca","src/unix/bsd/freebsdlike/dragonfly/errno.rs":"8295b8bb0dfd38d2cdb4d9192cdeeb534cc6c3b208170e64615fa3e0edb3e578","src/unix/bsd/freebsdlike/dragonfly/mod.rs":"f2e78625fe1eb14f43e730a3987eba888cb8ac04c23008e7c2d2f7c72258b9e6","src/unix/bsd/freebsdlike/freebsd/aarch64.rs":"6c8e216385f53a4bf5f171749b57602fc34a4e4b160a44ca31c058cb0c8a2126","src/unix/bsd/freebsdlike/freebsd/arm.rs":"59d6a670eea562fb87686e243e0a84603d29a2028a3d4b3f99ccc01bd04d2f47","src/unix/bsd/freebsdlike/freebsd/freebsd11/b64.rs":"9808d152c1196aa647f1b0f0cf84dac8c930da7d7f897a44975545e3d9d17681","src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs":"e243ae0e89623d4fa9f85afe14369cc5fd5f2028ea715773dbec722ba80dac1f","src/unix/bsd/freebsdlike/freebsd/freebsd12/b64.rs":"61cbe45f8499bedb168106b686d4f8239472f25c7553b069eec2afe197ff2df6","src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs":"bef9fae288a4f29e941ea369be1cd20b170040e60665a4d49a4a9e79009b72d8","src/unix/bsd/freebsdlike/freebsd/freebsd12/x86_64.rs":"2df36a7f122f6d6e5753cfb4d22e915cc80f6bc91c0161b3daae55a481bfd052","src/unix/bsd/freebsdlike/freebsd/freebsd13/b64.rs":"61cbe45f8499bedb168106b686d4f8239472f25c7553b069eec2afe197ff2df6","src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs":"3c514e037694ce22724abb3c9c4687defda7f0e3456b615ca73593e860e38b16","src/unix/bsd/freebsdlike/freebsd/freebsd13/x86_64.rs":"2df36a7f122f6d6e5753cfb4d22e915cc80f6bc91c0161b3daae55a481bfd052","src/unix/bsd/freebsdlike/freebsd/freebsd14/b64.rs":"61cbe45f8499bedb168106b686d4f8239472f25c7553b069eec2afe197ff2df6","src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs":"318abe48bfdd1c74ecd6afbd6c9329c5c72ce4f7d420edd6be2fc12b223ae32f","src/unix/bsd/freebsdlike/freebsd/freebsd14/x86_64.rs":"e7b5863e222d6cc416b6b0fbe71690fad909e899b4c4ae810bbca117e4fcb650","src/unix/bsd/freebsdlike/freebsd/mod.rs":"4c3cd57aaf7fbce072e28e0d2d285b5fda9702e924561d2fd01e49e6ee186a98","src/unix/bsd/freebsdlike/freebsd/powerpc.rs":"9ca3f82f88974e6db5569f2d76a5a3749b248a31747a6c0da5820492bdfeca42","src/unix/bsd/freebsdlike/freebsd/powerpc64.rs":"2dae3ecc87eac3b11657aa98915def55fc4b5c0de11fe26aae23329a54628a9a","src/unix/bsd/freebsdlike/freebsd/riscv64.rs":"fa4bed4c58cad24ba3395941c7fa6b11e089551a04714f9561078e400f5b2b62","src/unix/bsd/freebsdlike/freebsd/x86.rs":"6766e2ce85e187b306cd3b0b8d7e15b8f4042c5cff81d89b3af69ecc99c70ab0","src/unix/bsd/freebsdlike/freebsd/x86_64/align.rs":"0e1f69a88fca1c32874b1daf5db3d446fefbe518dca497f096cc9168c39dde70","src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs":"51e4dd0c8ae247bb652feda5adad9333ea3bb30c750c3a3935e0b0e47d7803eb","src/unix/bsd/freebsdlike/mod.rs":"0eacafac87fb3a32ef1b85980fece2792e70eba9856af18a7407cc35be68ea57","src/unix/bsd/mod.rs":"dad51a24a524e92bfe9de3ac3b7d394d86058b9b8a1ccd4efa9bbb5c78e7fa1a","src/unix/bsd/netbsdlike/mod.rs":"0a66f7de43710e35a6a546e6c39066aa8b91a6efadb71db88738b0a577fd5537","src/unix/bsd/netbsdlike/netbsd/aarch64.rs":"65dcb58d11e8d8028401a9d07ca3eb4cb4f053e04249cc877353449d84ccc4cb","src/unix/bsd/netbsdlike/netbsd/arm.rs":"58cdbb70b0d6f536551f0f3bb3725d2d75c4690db12c26c034e7d6ec4a924452","src/unix/bsd/netbsdlike/netbsd/mod.rs":"90dd33ef20dc3be8aef5bd152a6a06e7ab34f9527b3978487b593aaa16a907bd","src/unix/bsd/netbsdlike/netbsd/powerpc.rs":"ee7ff5d89d0ed22f531237b5059aa669df93a3b5c489fa641465ace8d405bf41","src/unix/bsd/netbsdlike/netbsd/sparc64.rs":"9489f4b3e4566f43bb12dfb92238960613dac7f6a45cc13068a8d152b902d7d9","src/unix/bsd/netbsdlike/netbsd/x86.rs":"20692320e36bfe028d1a34d16fe12ca77aa909cb02bda167376f98f1a09aefe7","src/unix/bsd/netbsdlike/netbsd/x86_64.rs":"1afe5ef46b14397cdd68664b5b232e4f5b035b6db1d4cf411c899d51ebca9f30","src/unix/bsd/netbsdlike/openbsd/aarch64.rs":"dd91931d373b7ecaf6e2de25adadee10d16fa9b12c2cbacdff3eb291e1ba36af","src/unix/bsd/netbsdlike/openbsd/arm.rs":"01580d261bc6447bb327a0d982181b7bdabfa066cee65a30373d3ced729ad307","src/unix/bsd/netbsdlike/openbsd/mips64.rs":"8532a189ae10c7d668d9d4065da8b05d124e09bd39442c9f74a7f231c43eca48","src/unix/bsd/netbsdlike/openbsd/mod.rs":"c27c6673bd3628549083a094219831fd9343129f91067b562781617d2a887148","src/unix/bsd/netbsdlike/openbsd/powerpc.rs":"01580d261bc6447bb327a0d982181b7bdabfa066cee65a30373d3ced729ad307","src/unix/bsd/netbsdlike/openbsd/powerpc64.rs":"1dd5449dd1fd3d51e30ffdeeaece91d0aaf05c710e0ac699fecc5461cfa2c28e","src/unix/bsd/netbsdlike/openbsd/riscv64.rs":"1dd5449dd1fd3d51e30ffdeeaece91d0aaf05c710e0ac699fecc5461cfa2c28e","src/unix/bsd/netbsdlike/openbsd/sparc64.rs":"d04fd287afbaa2c5df9d48c94e8374a532a3ba491b424ddf018270c7312f4085","src/unix/bsd/netbsdlike/openbsd/x86.rs":"6f7f5c4fde2a2259eb547890cbd86570cea04ef85347d7569e94e679448bec87","src/unix/bsd/netbsdlike/openbsd/x86_64.rs":"d31db31630289c85af3339dbe357998a21ca584cbae31607448fe2cf7675a4e1","src/unix/haiku/b32.rs":"a2efdbf7158a6da341e1db9176b0ab193ba88b449616239ed95dced11f54d87b","src/unix/haiku/b64.rs":"ff8115367d3d7d354f792d6176dfaaa26353f57056197b563bf4681f91ff7985","src/unix/haiku/mod.rs":"d7ec086b73db4f72799179627aa6330a513dcf786b06e19c75ff884d1235948e","src/unix/haiku/native.rs":"dbfcbf4954a79d1df2ff58e0590bbcb8c57dfc7a32392aa73ee4726b66bd6cc8","src/unix/haiku/x86_64.rs":"3ec3aeeb7ed208b8916f3e32d42bfd085ff5e16936a1a35d9a52789f043b7237","src/unix/hermit/aarch64.rs":"86048676e335944c37a63d0083d0f368ae10ceccefeed9debb3bbe08777fc682","src/unix/hermit/mod.rs":"a1494a0bddf301cceb0d9b8529a84b5882fe855ceae77a1c4e8d6034e705e26c","src/unix/hermit/x86_64.rs":"ab832b7524e5fb15c49ff7431165ab1a37dc4667ae0b58e8306f4c539bfa110c","src/unix/linux_like/android/b32/arm.rs":"ce582de7e983a33d3bfad13075c53aac9016cee35f06ad8653ee9072c3ec2564","src/unix/linux_like/android/b32/mod.rs":"7c173e0375119bf06a3081652faede95e5bcd6858e7576b7533d037978737c8f","src/unix/linux_like/android/b32/x86/align.rs":"812914e4241df82e32b12375ca3374615dc3a4bdd4cf31f0423c5815320c0dab","src/unix/linux_like/android/b32/x86/mod.rs":"e6d107efbcd37b5b85dfa18f683300cbf768ffa0237997a9fa52b184a53323ac","src/unix/linux_like/android/b64/aarch64/align.rs":"2179c3b1608fa4bf68840482bfc2b2fa3ee2faf6fcae3770f9e505cddca35c7b","src/unix/linux_like/android/b64/aarch64/int128.rs":"1735f6f5c56770d20dd426442f09724d9b2052b46a7cd82f23f3288a4a7276de","src/unix/linux_like/android/b64/aarch64/mod.rs":"10e963e29ff209703de6336c99cca96fd79789438d34c82a693eae56e8916c3c","src/unix/linux_like/android/b64/mod.rs":"71e4fcbe952bfa4a5f9022f3972e906917b38f729b9d8ef57cd5d179104894ac","src/unix/linux_like/android/b64/riscv64/align.rs":"0bf138f84e5327d8339bcd4adf071a6832b516445e597552c82bbd881095e3a8","src/unix/linux_like/android/b64/riscv64/mod.rs":"19d4bf2237c47127eba9144e0b82e995bc079315e719179a91813b0ae7b0e49d","src/unix/linux_like/android/b64/x86_64/align.rs":"7169d07a9fd4716f7512719aec9fda5d8bed306dc0720ffc1b21696c9951e3c6","src/unix/linux_like/android/b64/x86_64/mod.rs":"4ec2de11a9b65c4325b7b991f0b99a414975e0e61ba8668caca5d921e9b314d1","src/unix/linux_like/android/mod.rs":"66a9e38a47493a42b3b1c325524f3c944e74d1e3e8ecce3cc276ec08fecab13b","src/unix/linux_like/emscripten/align.rs":"86c95cbed7a7161b1f23ee06843e7b0e2340ad92b2cb86fe2a8ef3e0e8c36216","src/unix/linux_like/emscripten/mod.rs":"67d6b90f539f746aa3290ea7f9d3f3f8d2d8a6557233584004ed5697f7821a50","src/unix/linux_like/emscripten/no_align.rs":"0128e4aa721a9902754828b61b5ec7d8a86619983ed1e0544a85d35b1051fad6","src/unix/linux_like/linux/align.rs":"bc5abcd38e2320171e0981e773c9c5fe3e0d5a66fdff049228f6a1acad80ef8b","src/unix/linux_like/linux/arch/generic/mod.rs":"fb5de1368cabae03d3ea0152159b7685a9d91efdecee4c5b83efc085ffef8a73","src/unix/linux_like/linux/arch/mips/mod.rs":"75814e198d1a9a6808be3a5e5edb1bfdc57f75b06394e9040739be363c09d82f","src/unix/linux_like/linux/arch/mod.rs":"5bd5361f8a6ab4e18bbba6da9f92c164ae252b15a0ed10064812544aa1fdf198","src/unix/linux_like/linux/arch/powerpc/mod.rs":"bef6b7af9e5e2b4e5545c9c7e3e23a8b743277a0ed95853e7eddc38e44299f02","src/unix/linux_like/linux/arch/sparc/mod.rs":"91593ec0440f1dd8f8e612028f432c44c14089286e2aca50e10511ab942db8c3","src/unix/linux_like/linux/gnu/align.rs":"e4a3c27fe20a57b8d612c34cb05bc70646edb5cec7251957315afa53a7b9f936","src/unix/linux_like/linux/gnu/b32/arm/align.rs":"6ec0eb3ee93f7ae99fd714b4deabfb5e97fbcefd8c26f5a45fb8e7150899cdeb","src/unix/linux_like/linux/gnu/b32/arm/mod.rs":"9ab3e97b579a9122690cd01026e14528862860346b700aafbb755a7e04054f7f","src/unix/linux_like/linux/gnu/b32/csky/align.rs":"3fed009dc9af3cc81be7087da9d2d7d1f39845e4497e290259c5cdbae25f039d","src/unix/linux_like/linux/gnu/b32/csky/mod.rs":"4c21d6e7463bb22f00b984294893d12c84018d5d26ec661d6a30f4a9625ba639","src/unix/linux_like/linux/gnu/b32/m68k/align.rs":"8faa92f77a9232c035418d45331774e64a9a841d99c91791570a203bf2b45bcb","src/unix/linux_like/linux/gnu/b32/m68k/mod.rs":"6aab7f1b864e9691d14aa7d389f717c4077b8eed72a7f11e3b8c7fef245e4046","src/unix/linux_like/linux/gnu/b32/mips/align.rs":"429fb5e005cb7143602d430098b6ebfb7d360685b194f333dfd587472ae954ee","src/unix/linux_like/linux/gnu/b32/mips/mod.rs":"6b9a5dac6f937ddc1453e808e3c43502c87143332df9e43ac64fb8b1eda6c116","src/unix/linux_like/linux/gnu/b32/mod.rs":"b56625dd20dd48a8699034d349ef089c540c0ddcbf8a3481d598d101f8b40b78","src/unix/linux_like/linux/gnu/b32/powerpc.rs":"5c5d90326b54b57b98eff4745fe7a3fb02f053b2dc782241a73e807b491936a3","src/unix/linux_like/linux/gnu/b32/riscv32/align.rs":"d321491612be8d5c61b6ec2dc0111beb3a22e58803f99cd37543efe86621b119","src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs":"491a9a97cf712985b75d3ad714691ef60898d88c78bc386a6917de0a6774cc26","src/unix/linux_like/linux/gnu/b32/sparc/align.rs":"21adbed27df73e2d1ed934aaf733a643003d7baf2bde9c48ea440895bcca6d41","src/unix/linux_like/linux/gnu/b32/sparc/mod.rs":"80894eece66e9348f45d1b07ad37c757ea694bbd10ed49d3f920b34e9f51a9a3","src/unix/linux_like/linux/gnu/b32/x86/align.rs":"e4bafdc4a519a7922a81b37a62bbfd1177a2f620890eef8f1fbc47162e9eb413","src/unix/linux_like/linux/gnu/b32/x86/mod.rs":"c703cc5e9de2dc31d9e5831bfb6f354d6e3518b2ae02263f68a9a70f1c0167e2","src/unix/linux_like/linux/gnu/b64/aarch64/align.rs":"fdf1c72375a2167699157e0dd825422690bb6719f7bc69515a2e5846d0431d7c","src/unix/linux_like/linux/gnu/b64/aarch64/fallback.rs":"832e7487249c1c0bb6e9911ce3f7d32ca22378e42392ab83c56915cbc59d8be3","src/unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs":"bf4611b737813deef6787babf6c01698605f3b75482269b8546318667bc68e29","src/unix/linux_like/linux/gnu/b64/aarch64/int128.rs":"1735f6f5c56770d20dd426442f09724d9b2052b46a7cd82f23f3288a4a7276de","src/unix/linux_like/linux/gnu/b64/aarch64/lp64.rs":"11a950697fdda0258c6e37c6b13993348c8de4134105ed4faa79358e53175072","src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs":"172495fbfdf659b9b825148bffc2b62704f63fc872428617e868eb15802c9978","src/unix/linux_like/linux/gnu/b64/loongarch64/align.rs":"060aa33cc737966c691aab8511c5c5729e551458ce18d0e284e0d45f39beeb60","src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs":"18edada8aa5d4127d9aa1bd81c62b5a4209f1efd8b2b2631e801c9e855ab1480","src/unix/linux_like/linux/gnu/b64/mips64/align.rs":"7169d07a9fd4716f7512719aec9fda5d8bed306dc0720ffc1b21696c9951e3c6","src/unix/linux_like/linux/gnu/b64/mips64/mod.rs":"628c410b9aaec3c8f43838a28616b577a1d6de60a9799b09bb884d80281f96eb","src/unix/linux_like/linux/gnu/b64/mod.rs":"6a160ef25439c4fecdb0e3bd0b818742263c791364da874d4febd3aa644ec8e2","src/unix/linux_like/linux/gnu/b64/powerpc64/align.rs":"e29c4868bbecfa4a6cd8a2ad06193f3bbc78a468cc1dc9df83f002f1268130d9","src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs":"c778a136f06c2ffeacea19fa14ce79b828f91b67a002dec5ce87289bae36234e","src/unix/linux_like/linux/gnu/b64/riscv64/align.rs":"d321491612be8d5c61b6ec2dc0111beb3a22e58803f99cd37543efe86621b119","src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs":"c8f07efc5ddd5d874f1ebc329cd6907818d132ac3e30f4f2a4b04be3fb388551","src/unix/linux_like/linux/gnu/b64/s390x.rs":"a2fd9277c2dcf76f7a16a3bcca745d5a9932c765c0dc2feb31c3641be25eb0aa","src/unix/linux_like/linux/gnu/b64/sparc64/align.rs":"e29c4868bbecfa4a6cd8a2ad06193f3bbc78a468cc1dc9df83f002f1268130d9","src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs":"e8047e9966a2b90063e0151a0278c54885e7b323286cf5ab55cbaf151fc772d3","src/unix/linux_like/linux/gnu/b64/x86_64/align.rs":"62e822478356db4a73b6bbd1b36d825b893939ab4b308ec11b0578bcc4b49769","src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs":"891e595d33714b9883b92f0554d1d361fba2b6c3f6cac09a288252f44c6ec667","src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs":"38f74ce15d9662ce4818815a2b87be1618d5e45f190f7e4db84ff3285b4421fb","src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs":"b20218a11364a6dec87f96d6c0d8b19e660697ab09ad5ee0e9b3a9dafedaaebb","src/unix/linux_like/linux/gnu/mod.rs":"47dd970aedda9c70429741d7c9892a0d5d264e9abcb1c41d5bb913a86f0a5362","src/unix/linux_like/linux/gnu/no_align.rs":"9cd223135de75315840ff9c3fd5441ba1cb632b96b5c85a76f8316c86653db25","src/unix/linux_like/linux/mod.rs":"1582c09db7b752af0f796a4cba8aa2bb4ecea895c551a2219e76047bcce74a23","src/unix/linux_like/linux/musl/b32/arm/align.rs":"3e8ac052c1043764776b54c93ba4260e061df998631737a897d9d47d54f7b80c","src/unix/linux_like/linux/musl/b32/arm/mod.rs":"f5b217a93f99c2852f7fd1459f529798372fa7df84ee0cfd3d8cdd5b2021b8cf","src/unix/linux_like/linux/musl/b32/hexagon.rs":"226a8b64ce9c75abbbee6d2dceb0b44f7b6c750c4102ebd4d015194afee6666e","src/unix/linux_like/linux/musl/b32/mips/align.rs":"429fb5e005cb7143602d430098b6ebfb7d360685b194f333dfd587472ae954ee","src/unix/linux_like/linux/musl/b32/mips/mod.rs":"16f614dd59695497a01b542deacd1669335678bdd0b14d16dde482fb5c4e02f4","src/unix/linux_like/linux/musl/b32/mod.rs":"31677597fd9544c4b1ec1477628288f6273fabbc06e38f33da862ad55f019ce1","src/unix/linux_like/linux/musl/b32/powerpc.rs":"ebf73f570b11512adc4a7b513aedff02a55125ead167fe5dbd45c39afb87cddb","src/unix/linux_like/linux/musl/b32/riscv32/align.rs":"efd2accf33b87de7c7547903359a5da896edc33cd6c719552c7474b60d4a5d48","src/unix/linux_like/linux/musl/b32/riscv32/mod.rs":"7b067c7989a80e35daa9987af799d97dd1fb3df71ef82285137f51fbad2354d9","src/unix/linux_like/linux/musl/b32/x86/align.rs":"08e77fbd7435d7dec2ff56932433bece3f02e47ce810f89004a275a86d39cbe1","src/unix/linux_like/linux/musl/b32/x86/mod.rs":"de632ac323bd2bb4f83d4826d6eb7e29d4b0e6293aa0c4cb9c99ef0fcabc71b7","src/unix/linux_like/linux/musl/b64/aarch64/align.rs":"6ba32725d24d7d8e6aa111f3b57aafa318f83b606abe96561329151829821133","src/unix/linux_like/linux/musl/b64/aarch64/int128.rs":"1735f6f5c56770d20dd426442f09724d9b2052b46a7cd82f23f3288a4a7276de","src/unix/linux_like/linux/musl/b64/aarch64/mod.rs":"31e75179cbb4e26425b3f5b052e358f593153da662884655e60801d852e55dc2","src/unix/linux_like/linux/musl/b64/mips64.rs":"9a5d29f666332bb056d0e2951e9de989aa1dc016075f009db3f2f628e0cdda8c","src/unix/linux_like/linux/musl/b64/mod.rs":"884243eb5af7df963d858d5baf47e622b45f04e0ae701728b134e986191b614b","src/unix/linux_like/linux/musl/b64/powerpc64.rs":"e77f4cf5d65320023043e4354725397f6b079c1b7b6b3cef2c3293350b46b303","src/unix/linux_like/linux/musl/b64/riscv64/align.rs":"d321491612be8d5c61b6ec2dc0111beb3a22e58803f99cd37543efe86621b119","src/unix/linux_like/linux/musl/b64/riscv64/mod.rs":"a80b1813148dec8bc396c02638978c0b4e5e040edafd56d98f8683fe2ae51ab5","src/unix/linux_like/linux/musl/b64/s390x.rs":"80a92e54e47016d051c7bd55bee9580cbedd298164199d71a67d49167e744432","src/unix/linux_like/linux/musl/b64/x86_64/align.rs":"77309276ad7a42cbe59ca381f23590b7a143aded05555b34a5b307b808cbca6e","src/unix/linux_like/linux/musl/b64/x86_64/mod.rs":"032863c74d3ca73cb75483218f9bd774ae1ae7d3646d2ffb21e4cc7d4b5e0e3d","src/unix/linux_like/linux/musl/lfs64.rs":"3e4fb381f3a0756520bde0f1692d4fa45e4ae8133bf7d7c64b0e3fdd512f235f","src/unix/linux_like/linux/musl/mod.rs":"f79e4d7bef14f422c6a77f1573ff503a82305bfa5ac3e4c6f571c09212b75620","src/unix/linux_like/linux/no_align.rs":"62cdca0e011937aaf09a51ca86d9f0ee0fdb05f61ec3c058e6a5d5fa6357d784","src/unix/linux_like/linux/non_exhaustive.rs":"181a05bf94fdb911db83ce793b993bd6548a4115b306a7ef3c10f745a8fea3e9","src/unix/linux_like/linux/uclibc/align.rs":"9ed16138d8e439bd90930845a65eafa7ebd67366e6bf633936d44014f6e4c959","src/unix/linux_like/linux/uclibc/arm/align.rs":"e4a3c27fe20a57b8d612c34cb05bc70646edb5cec7251957315afa53a7b9f936","src/unix/linux_like/linux/uclibc/arm/mod.rs":"50288ff9e411ab0966da24838f2c2a5618021bc19c422a04f577b2979ef4081e","src/unix/linux_like/linux/uclibc/arm/no_align.rs":"9cd223135de75315840ff9c3fd5441ba1cb632b96b5c85a76f8316c86653db25","src/unix/linux_like/linux/uclibc/mips/mips32/align.rs":"e4a3c27fe20a57b8d612c34cb05bc70646edb5cec7251957315afa53a7b9f936","src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs":"d0c4434e2bf813372c418a8f516c706cdccc9f7be2f0921b2207b0afdb66fe81","src/unix/linux_like/linux/uclibc/mips/mips32/no_align.rs":"9cd223135de75315840ff9c3fd5441ba1cb632b96b5c85a76f8316c86653db25","src/unix/linux_like/linux/uclibc/mips/mips64/align.rs":"a7bdcb18a37a2d91e64d5fad83ea3edc78f5412adb28f77ab077dbb26dd08b2d","src/unix/linux_like/linux/uclibc/mips/mips64/mod.rs":"3f38ee6a4690b9d7594be20d216467a34d955f7653c2c8ce1e6147daeb53f1e0","src/unix/linux_like/linux/uclibc/mips/mips64/no_align.rs":"4a18e3875698c85229599225ac3401a2a40da87e77b2ad4ef47c6fcd5a24ed30","src/unix/linux_like/linux/uclibc/mips/mod.rs":"a048fce1c2d9b1ad57305642e8ad05ca0f0c7e4753267a2e2d6b4fee5db3b072","src/unix/linux_like/linux/uclibc/mod.rs":"1c3d25cddcfefa2bd17bdc81550826be31a08eef235e13f825f169a5029c8bca","src/unix/linux_like/linux/uclibc/no_align.rs":"3f28637046524618adaa1012e26cb7ffe94b9396e6b518cccdc69d59f274d709","src/unix/linux_like/linux/uclibc/x86_64/l4re.rs":"024eba5753e852dbdd212427351affe7e83f9916c1864bce414d7aa2618f192e","src/unix/linux_like/linux/uclibc/x86_64/mod.rs":"196d03affbefb85716937c15904831e731eb222ee906e05e42102d639a8152ea","src/unix/linux_like/linux/uclibc/x86_64/other.rs":"42c3f71e58cabba373f6a55a623f3c31b85049eb64824c09c2b082b3b2d6a0a8","src/unix/linux_like/mod.rs":"45c98e7a0fad03b03c4c76f11a80e2423873f0a6563e35c60309a29b2c8ff44f","src/unix/mod.rs":"dd4ce377ba9517182e718848739a5c3f58cdbbcd4ee467eef9aaf8df5aed5053","src/unix/newlib/aarch64/mod.rs":"bac93836a9a57b2c710f32f852e92a4d11ad6759ab0fb6ad33e71d60e53278af","src/unix/newlib/align.rs":"28aaf87fafbc6b312622719d472d8cf65f9e5467d15339df5f73e66d8502b28a","src/unix/newlib/arm/mod.rs":"cbba6b3e957eceb496806e60de8725a23ff3fa0015983b4b4fa27b233732b526","src/unix/newlib/espidf/mod.rs":"816f235f4aa4baabba7f2606b31d0fdb03988c52194c966728de8690bf17299d","src/unix/newlib/generic.rs":"eab066d9f0a0f3eb53cc1073d01496bba0110989e1f6a59838afd19f870cd599","src/unix/newlib/horizon/mod.rs":"7cc5cc120437421db139bfa6a90b18168cd3070bdd0f5be96d40fe4c996f3ca1","src/unix/newlib/mod.rs":"9e36de3fd78e10cb6b9a59dc5ebe5a1b44a63ccb91433bb33653fb30d0c303c6","src/unix/newlib/no_align.rs":"e0743b2179495a9514bc3a4d1781e492878c4ec834ee0085d0891dd1712e82fb","src/unix/newlib/powerpc/mod.rs":"0202ffd57caf75b6afa2c9717750ffb96e375ac33df0ae9609a3f831be393b67","src/unix/newlib/vita/mod.rs":"68e0ce186b44e0b3031eb824710e7454dc2a9df98db98120840c3c6f4d885871","src/unix/no_align.rs":"c06e95373b9088266e0b14bba0954eef95f93fb2b01d951855e382d22de78e53","src/unix/nto/aarch64.rs":"4709c9afdc8d583be876598e7c238499ee3e8da5bd2baa614d9c7dd414851555","src/unix/nto/mod.rs":"59ab89a8fb6e0a6d22fa968ed4873c2bafa19a0f60a90c9a5148816cb7440889","src/unix/nto/neutrino.rs":"799bff4ab01a6424db6c5a2b76aa5679826d41495f9d13c63485bf13bc80026b","src/unix/nto/x86_64.rs":"a3e18e93c2999da1cd7a6f748a4b60c07aefb73d8ea2aafec19a84cfb040bc8e","src/unix/redox/mod.rs":"73658b0d28c82a122875aa2b45c489834f4de58c378add7932bbaf3ffb2ae789","src/unix/solarish/compat.rs":"00f1ee3faec9da69204e42f025f6735dd13d894071a154425dcc43ecbdd06e7f","src/unix/solarish/illumos.rs":"cd93c2d84722bbf9933a92842a8998eb0b2afc962f50bc2546ad127b82809fa7","src/unix/solarish/mod.rs":"b1660c631a599a3355116e7485b88ab2f8f2929c2e37851a763431387b902f14","src/unix/solarish/solaris.rs":"41b350a89ddf01cd12a10f93640f92be53be0b0d976021cdc08da17bf3e72edf","src/unix/solarish/x86.rs":"e86e806df0caed72765040eaa2f3c883198d1aa91508540adf9b7008c77f522e","src/unix/solarish/x86_64.rs":"ec2b01f194eb8a6a27133c57681da195a949e03098f3ea1e847227a9c09ef5fc","src/unix/solarish/x86_common.rs":"ac869d9c3c95645c22460468391eb1982023c3a8e02b9e06a72e3aef3d5f1eac","src/vxworks/aarch64.rs":"98f0afdc511cd02557e506c21fed6737585490a1dce7a9d4941d08c437762b99","src/vxworks/arm.rs":"acb7968ce99fe3f4abdf39d98f8133d21a4fba435b8ef7084777cb181d788e88","src/vxworks/mod.rs":"e4edcbcf43a325e738c9465507594d0c87abf3f0e2b9b046c1425f8d44bdad0f","src/vxworks/powerpc.rs":"acb7968ce99fe3f4abdf39d98f8133d21a4fba435b8ef7084777cb181d788e88","src/vxworks/powerpc64.rs":"98f0afdc511cd02557e506c21fed6737585490a1dce7a9d4941d08c437762b99","src/vxworks/x86.rs":"552f007f38317620b23889cb7c49d1d115841252439060122f52f434fbc6e5ba","src/vxworks/x86_64.rs":"018d92be3ad628a129eff9f2f5dfbc0883d8b8e5f2fa917b900a7f98ed6b514a","src/wasi.rs":"09ee3b3348b212b050f6ca8ae008a28679ea44a375674307a4e7c9ca0d3ed7d5","src/windows/gnu/align.rs":"b2c13ec1b9f3b39a75c452c80c951dff9d0215e31d77e883b4502afb31794647","src/windows/gnu/mod.rs":"3c8c7edb7cdf5d0c44af936db2a94869585c69dfabeef30571b4f4e38375767a","src/windows/mod.rs":"9fdc5e1c62c441abef7bc62a7343efb2041edc24db9ac0efc0f74df55b69e249","src/windows/msvc/mod.rs":"c068271e00fca6b62bc4bf44bcf142cfc38caeded9b6c4e01d1ceef3ccf986f4","src/xous.rs":"eb0675f25ba01f73072d2b70907fb8abb1148facefe5a20756c49250f3d65fae","tests/const_fn.rs":"cb75a1f0864f926aebe79118fc34d51a0d1ade2c20a394e7774c7e545f21f1f4"},"package":"9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b"} \ No newline at end of file +{"files":{"CONTRIBUTING.md":"bdc90b52cf803faac96e594069a86dd8ea150d5ba7fb3e6cadfc08dac4c7b0ce","Cargo.toml":"cec0b42b20e776ac9165b5a5eedfbd8fc033700cacabfa4209c60d35833e42f1","LICENSE-APACHE":"62c7a1e35f56406896d7aa7ca52d0cc0d272ac022b5d2796e7d6905db8a3636a","LICENSE-MIT":"a8d47ff51ca256f56a8932dba07660672dbfe3004257ca8de708aac1415937a1","README.md":"776affa26b66843a2b4f1a1c8f88d92f6461b74568911450fea717e9db6f877b","build.rs":"cecfa3f926ab4a9c87cd59cc0d687f98eceb6035b0dde185152e5206d090f8d0","rustfmt.toml":"eaa2ea84fc1ba0359b77680804903e07bb38d257ab11986b95b158e460f787b2","src/fixed_width_ints.rs":"7f986e5f5e68d25ef04d386fd2f640e8be8f15427a8d4a458ea01d26b8dca0ca","src/fuchsia/aarch64.rs":"378776a9e40766154a54c94c2a7b4675b5c302a38e6e42da99e67bfbaee60e56","src/fuchsia/align.rs":"ae1cf8f011a99737eabeb14ffff768e60f13b13363d7646744dbb0f443dab3d6","src/fuchsia/mod.rs":"1b4e6c34b01b4c970f4d4c044d1642020e0fc2ea1b8442e8f1a9b698569ab1f6","src/fuchsia/no_align.rs":"303f3f1b255e0088b5715094353cf00476131d8e94e6aebb3f469557771c8b8a","src/fuchsia/x86_64.rs":"93a3632b5cf67d2a6bcb7dc0a558605252d5fe689e0f38d8aa2ec5852255ac87","src/hermit/aarch64.rs":"86048676e335944c37a63d0083d0f368ae10ceccefeed9debb3bbe08777fc682","src/hermit/mod.rs":"d3bfce41e4463d4be8020a2d063c9bfa8b665f45f1cc6cbf3163f5d01e7cb21f","src/hermit/x86_64.rs":"ab832b7524e5fb15c49ff7431165ab1a37dc4667ae0b58e8306f4c539bfa110c","src/lib.rs":"ce753ef318b300bbd441feabdd77d00322dfb6ce9eee8c78a38afe02b57aa4c0","src/macros.rs":"b457eb028b8e8ab3c24bb7292b874ad4e491edbb83594f6a3da024df5348c088","src/psp.rs":"dd31aabd46171d474ec5828372e28588935120e7355c90c105360d8fa9264c1c","src/sgx.rs":"16a95cdefc81c5ee00d8353a60db363c4cc3e0f75abcd5d0144723f2a306ed1b","src/solid/aarch64.rs":"a726e47f324adf73a4a0b67a2c183408d0cad105ae66acf36db37a42ab7f8707","src/solid/arm.rs":"e39a4f74ebbef3b97b8c95758ad741123d84ed3eb48d9cf4f1f4872097fc27fe","src/solid/mod.rs":"5f4151dca5132e4b4e4c23ab9737e12856dddbdc0ca3f7dbc004328ef3c8acde","src/switch.rs":"9da3dd39b3de45a7928789926e8572d00e1e11a39e6f7289a1349aadce90edba","src/unix/align.rs":"2cdc7c826ef7ae61f5171c5ae8c445a743d86f1a7f2d9d7e4ceeec56d6874f65","src/unix/bsd/apple/b32/align.rs":"ec833a747866fe19ca2d9b4d3c9ff0385faba5edf4bd0d15fa68884c40b0e26c","src/unix/bsd/apple/b32/mod.rs":"2546ad3eb6aecb95f916648bc63264117c92b4b4859532b34cb011e4c75a5a72","src/unix/bsd/apple/b64/aarch64/align.rs":"e8eb38d064b5fefec6f37d42873820a0483e7c758ed336cc59a7155455ca89c9","src/unix/bsd/apple/b64/aarch64/mod.rs":"44c217a4f263afe7a97435de9323d20a96c37836f899ca0925306d4b7e073c27","src/unix/bsd/apple/b64/align.rs":"ec833a747866fe19ca2d9b4d3c9ff0385faba5edf4bd0d15fa68884c40b0e26c","src/unix/bsd/apple/b64/mod.rs":"f5e278a1af7fb358891d1c9be4eb7e815aaca0c5cb738d0c3604ba2208a856f7","src/unix/bsd/apple/b64/x86_64/align.rs":"ec833a747866fe19ca2d9b4d3c9ff0385faba5edf4bd0d15fa68884c40b0e26c","src/unix/bsd/apple/b64/x86_64/mod.rs":"8c87c5855038aae5d433c8f5eb3b29b0a175879a0245342b3bfd83bdf4cfd936","src/unix/bsd/apple/mod.rs":"1cc76b056d5925aedae04ead411057dc5c6c9bd3948609fdb30164ac1fb6565e","src/unix/bsd/freebsdlike/dragonfly/errno.rs":"8295b8bb0dfd38d2cdb4d9192cdeeb534cc6c3b208170e64615fa3e0edb3e578","src/unix/bsd/freebsdlike/dragonfly/mod.rs":"8986a8c79bcadfbdb58ec1a72e1aff8ce9b341c9392d7b0b7449bddf6db59058","src/unix/bsd/freebsdlike/freebsd/aarch64.rs":"6c8e216385f53a4bf5f171749b57602fc34a4e4b160a44ca31c058cb0c8a2126","src/unix/bsd/freebsdlike/freebsd/arm.rs":"59d6a670eea562fb87686e243e0a84603d29a2028a3d4b3f99ccc01bd04d2f47","src/unix/bsd/freebsdlike/freebsd/freebsd11/b64.rs":"9808d152c1196aa647f1b0f0cf84dac8c930da7d7f897a44975545e3d9d17681","src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs":"badda6f0f7666f38345b1f4ca78817a47bc92bbdcdc3a1377f376f4e08c316e5","src/unix/bsd/freebsdlike/freebsd/freebsd12/b64.rs":"61cbe45f8499bedb168106b686d4f8239472f25c7553b069eec2afe197ff2df6","src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs":"327700c5668be863f1fea205c82b0402e2936b883df63dda677716c30a50a284","src/unix/bsd/freebsdlike/freebsd/freebsd12/x86_64.rs":"2df36a7f122f6d6e5753cfb4d22e915cc80f6bc91c0161b3daae55a481bfd052","src/unix/bsd/freebsdlike/freebsd/freebsd13/b64.rs":"61cbe45f8499bedb168106b686d4f8239472f25c7553b069eec2afe197ff2df6","src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs":"7f689e9a944c919834ec852b30c224f98e14b4b4087571adefeea5abad5d6374","src/unix/bsd/freebsdlike/freebsd/freebsd13/x86_64.rs":"2df36a7f122f6d6e5753cfb4d22e915cc80f6bc91c0161b3daae55a481bfd052","src/unix/bsd/freebsdlike/freebsd/freebsd14/b64.rs":"61cbe45f8499bedb168106b686d4f8239472f25c7553b069eec2afe197ff2df6","src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs":"9b6fa1c3f5217f9482e0bed3bd0ea2905cdf56d628307cea48e49d8e00a6b09d","src/unix/bsd/freebsdlike/freebsd/freebsd14/x86_64.rs":"2df36a7f122f6d6e5753cfb4d22e915cc80f6bc91c0161b3daae55a481bfd052","src/unix/bsd/freebsdlike/freebsd/mod.rs":"26bda8cf730ab4868523a6ed7c513f51885cad30cdd02da905ff35b597576415","src/unix/bsd/freebsdlike/freebsd/powerpc.rs":"9ca3f82f88974e6db5569f2d76a5a3749b248a31747a6c0da5820492bdfeca42","src/unix/bsd/freebsdlike/freebsd/powerpc64.rs":"2dae3ecc87eac3b11657aa98915def55fc4b5c0de11fe26aae23329a54628a9a","src/unix/bsd/freebsdlike/freebsd/riscv64.rs":"fa4bed4c58cad24ba3395941c7fa6b11e089551a04714f9561078e400f5b2b62","src/unix/bsd/freebsdlike/freebsd/x86.rs":"c5005e3249eb7c93cfbac72a9e9272320d80ce7983da990ceb05a447f59a02c5","src/unix/bsd/freebsdlike/freebsd/x86_64/align.rs":"0e1f69a88fca1c32874b1daf5db3d446fefbe518dca497f096cc9168c39dde70","src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs":"51e4dd0c8ae247bb652feda5adad9333ea3bb30c750c3a3935e0b0e47d7803eb","src/unix/bsd/freebsdlike/mod.rs":"bd80ce2ff628ed5eaa856ebe8b6a8fb0e89d1c9728040b9ee6b967beb4bcf3a7","src/unix/bsd/mod.rs":"0c672b075b5616fca2cc56c00ee31c3f554dcbd2e88a7c2ba1437aa6e5604319","src/unix/bsd/netbsdlike/mod.rs":"34f60d73631f3c59936c87db1f62ddb8f693901c3cb199f7f370882e84d509fa","src/unix/bsd/netbsdlike/netbsd/aarch64.rs":"65dcb58d11e8d8028401a9d07ca3eb4cb4f053e04249cc877353449d84ccc4cb","src/unix/bsd/netbsdlike/netbsd/arm.rs":"58cdbb70b0d6f536551f0f3bb3725d2d75c4690db12c26c034e7d6ec4a924452","src/unix/bsd/netbsdlike/netbsd/mod.rs":"107a4aa396b8383c66e0ace2f941450b4b69146558cdc4d9fbe33eeab51760f1","src/unix/bsd/netbsdlike/netbsd/powerpc.rs":"ee7ff5d89d0ed22f531237b5059aa669df93a3b5c489fa641465ace8d405bf41","src/unix/bsd/netbsdlike/netbsd/sparc64.rs":"9489f4b3e4566f43bb12dfb92238960613dac7f6a45cc13068a8d152b902d7d9","src/unix/bsd/netbsdlike/netbsd/x86.rs":"20692320e36bfe028d1a34d16fe12ca77aa909cb02bda167376f98f1a09aefe7","src/unix/bsd/netbsdlike/netbsd/x86_64.rs":"1afe5ef46b14397cdd68664b5b232e4f5b035b6db1d4cf411c899d51ebca9f30","src/unix/bsd/netbsdlike/openbsd/aarch64.rs":"dd91931d373b7ecaf6e2de25adadee10d16fa9b12c2cbacdff3eb291e1ba36af","src/unix/bsd/netbsdlike/openbsd/arm.rs":"01580d261bc6447bb327a0d982181b7bdabfa066cee65a30373d3ced729ad307","src/unix/bsd/netbsdlike/openbsd/mips64.rs":"8532a189ae10c7d668d9d4065da8b05d124e09bd39442c9f74a7f231c43eca48","src/unix/bsd/netbsdlike/openbsd/mod.rs":"38b7d65a86701a75a9047a3ef3b006f09ffbb33ab2312174bcee889efb74e100","src/unix/bsd/netbsdlike/openbsd/powerpc.rs":"01580d261bc6447bb327a0d982181b7bdabfa066cee65a30373d3ced729ad307","src/unix/bsd/netbsdlike/openbsd/powerpc64.rs":"1dd5449dd1fd3d51e30ffdeeaece91d0aaf05c710e0ac699fecc5461cfa2c28e","src/unix/bsd/netbsdlike/openbsd/riscv64.rs":"1dd5449dd1fd3d51e30ffdeeaece91d0aaf05c710e0ac699fecc5461cfa2c28e","src/unix/bsd/netbsdlike/openbsd/sparc64.rs":"d04fd287afbaa2c5df9d48c94e8374a532a3ba491b424ddf018270c7312f4085","src/unix/bsd/netbsdlike/openbsd/x86.rs":"6f7f5c4fde2a2259eb547890cbd86570cea04ef85347d7569e94e679448bec87","src/unix/bsd/netbsdlike/openbsd/x86_64.rs":"d31db31630289c85af3339dbe357998a21ca584cbae31607448fe2cf7675a4e1","src/unix/haiku/b32.rs":"a2efdbf7158a6da341e1db9176b0ab193ba88b449616239ed95dced11f54d87b","src/unix/haiku/b64.rs":"ff8115367d3d7d354f792d6176dfaaa26353f57056197b563bf4681f91ff7985","src/unix/haiku/mod.rs":"891f77891349938ffb2048db0446e28f2b7f78a0286042d0f0a9af6c2d4570af","src/unix/haiku/native.rs":"dbfcbf4954a79d1df2ff58e0590bbcb8c57dfc7a32392aa73ee4726b66bd6cc8","src/unix/haiku/x86_64.rs":"3ec3aeeb7ed208b8916f3e32d42bfd085ff5e16936a1a35d9a52789f043b7237","src/unix/hermit/aarch64.rs":"86048676e335944c37a63d0083d0f368ae10ceccefeed9debb3bbe08777fc682","src/unix/hermit/mod.rs":"a1494a0bddf301cceb0d9b8529a84b5882fe855ceae77a1c4e8d6034e705e26c","src/unix/hermit/x86_64.rs":"ab832b7524e5fb15c49ff7431165ab1a37dc4667ae0b58e8306f4c539bfa110c","src/unix/linux_like/android/b32/arm.rs":"007391f35663762d8097a8a5ae301accb82c729713da0dfd9631c4bc69d9305e","src/unix/linux_like/android/b32/mod.rs":"7c173e0375119bf06a3081652faede95e5bcd6858e7576b7533d037978737c8f","src/unix/linux_like/android/b32/x86/align.rs":"812914e4241df82e32b12375ca3374615dc3a4bdd4cf31f0423c5815320c0dab","src/unix/linux_like/android/b32/x86/mod.rs":"81b4ab3ffc347e819f2f62c09dcd923d9d12d14b3d0e66ddc06ab78fa75a4b88","src/unix/linux_like/android/b64/aarch64/align.rs":"2179c3b1608fa4bf68840482bfc2b2fa3ee2faf6fcae3770f9e505cddca35c7b","src/unix/linux_like/android/b64/aarch64/int128.rs":"1735f6f5c56770d20dd426442f09724d9b2052b46a7cd82f23f3288a4a7276de","src/unix/linux_like/android/b64/aarch64/mod.rs":"f12594f7a57654ea63794822761c1ef9029ee5cef6bbad498c928a5bff2dfade","src/unix/linux_like/android/b64/mod.rs":"71e4fcbe952bfa4a5f9022f3972e906917b38f729b9d8ef57cd5d179104894ac","src/unix/linux_like/android/b64/riscv64/align.rs":"0bf138f84e5327d8339bcd4adf071a6832b516445e597552c82bbd881095e3a8","src/unix/linux_like/android/b64/riscv64/mod.rs":"80e9f93fed838a48b4e2e8d77b95c72cfd7c0647bcce63851555c5ad16dad143","src/unix/linux_like/android/b64/x86_64/align.rs":"7169d07a9fd4716f7512719aec9fda5d8bed306dc0720ffc1b21696c9951e3c6","src/unix/linux_like/android/b64/x86_64/mod.rs":"40be3b9dac9b52f3fd341fae4593a8c8c11a79ed694bcccf82f8810253c77492","src/unix/linux_like/android/mod.rs":"bf37384b99034eb1817303d9e1b35fe895da1010b024ada128e84059dad2c73b","src/unix/linux_like/emscripten/align.rs":"86c95cbed7a7161b1f23ee06843e7b0e2340ad92b2cb86fe2a8ef3e0e8c36216","src/unix/linux_like/emscripten/mod.rs":"24a6b0eadc011ee75c5bcbd18fe9f30d64006b71ec1416f6352e6015917240fc","src/unix/linux_like/emscripten/no_align.rs":"0128e4aa721a9902754828b61b5ec7d8a86619983ed1e0544a85d35b1051fad6","src/unix/linux_like/linux/align.rs":"d6c259942c8e843373accd180fc8f4f45f03544dfd21b93a8d02641ead3ef63e","src/unix/linux_like/linux/arch/generic/mod.rs":"46dd6634e564fb1b60c8a2d1018ef8f365d1a8ed26f162c99528922d06d14134","src/unix/linux_like/linux/arch/mips/mod.rs":"2d166054a586bb4bf6e4a4ba35f7574907b217225eff8f1a43adc4277e142460","src/unix/linux_like/linux/arch/mod.rs":"466a29622e47c6c7f1500682b2eb17f5566dd81b322cd6348f0fdd355cec593a","src/unix/linux_like/linux/arch/powerpc/mod.rs":"3f6da7b0fa7b394c7d4eea2bb3caa7a7729ab0d6c1491fef02206a912c41b815","src/unix/linux_like/linux/arch/sparc/mod.rs":"91593ec0440f1dd8f8e612028f432c44c14089286e2aca50e10511ab942db8c3","src/unix/linux_like/linux/gnu/align.rs":"e4a3c27fe20a57b8d612c34cb05bc70646edb5cec7251957315afa53a7b9f936","src/unix/linux_like/linux/gnu/b32/arm/align.rs":"6ec0eb3ee93f7ae99fd714b4deabfb5e97fbcefd8c26f5a45fb8e7150899cdeb","src/unix/linux_like/linux/gnu/b32/arm/mod.rs":"5bd3f6b3484e049ddaac95f411b0d82cbf1cd28e6a5defbc927bd917f5f7d299","src/unix/linux_like/linux/gnu/b32/m68k/align.rs":"8faa92f77a9232c035418d45331774e64a9a841d99c91791570a203bf2b45bcb","src/unix/linux_like/linux/gnu/b32/m68k/mod.rs":"a2a0a9400dae44086ebf579e0448e0676d4a3214d1ae7d13a024857251e23b6b","src/unix/linux_like/linux/gnu/b32/mips/align.rs":"429fb5e005cb7143602d430098b6ebfb7d360685b194f333dfd587472ae954ee","src/unix/linux_like/linux/gnu/b32/mips/mod.rs":"6b9a5dac6f937ddc1453e808e3c43502c87143332df9e43ac64fb8b1eda6c116","src/unix/linux_like/linux/gnu/b32/mod.rs":"8da281da578cdee972e952b118b903b370320897a7e335342a15e1359864bef2","src/unix/linux_like/linux/gnu/b32/powerpc.rs":"5c5d90326b54b57b98eff4745fe7a3fb02f053b2dc782241a73e807b491936a3","src/unix/linux_like/linux/gnu/b32/riscv32/align.rs":"d321491612be8d5c61b6ec2dc0111beb3a22e58803f99cd37543efe86621b119","src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs":"5e7c1e29aeb82fc422f45b73fb0cf3d13d0902300f9150d2755a9074f8d96999","src/unix/linux_like/linux/gnu/b32/sparc/align.rs":"21adbed27df73e2d1ed934aaf733a643003d7baf2bde9c48ea440895bcca6d41","src/unix/linux_like/linux/gnu/b32/sparc/mod.rs":"80894eece66e9348f45d1b07ad37c757ea694bbd10ed49d3f920b34e9f51a9a3","src/unix/linux_like/linux/gnu/b32/x86/align.rs":"e4bafdc4a519a7922a81b37a62bbfd1177a2f620890eef8f1fbc47162e9eb413","src/unix/linux_like/linux/gnu/b32/x86/mod.rs":"c703cc5e9de2dc31d9e5831bfb6f354d6e3518b2ae02263f68a9a70f1c0167e2","src/unix/linux_like/linux/gnu/b64/aarch64/align.rs":"ea39d5fd8ca5a71314127d1e1f542bca34ac566eac9a95662076d91ea4bee548","src/unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs":"21a21503ef2e095f4371044915d4bfb07a8578011cb5c713cd9f45947b0b5730","src/unix/linux_like/linux/gnu/b64/aarch64/int128.rs":"1735f6f5c56770d20dd426442f09724d9b2052b46a7cd82f23f3288a4a7276de","src/unix/linux_like/linux/gnu/b64/aarch64/lp64.rs":"e78c3cd197f44832338b414d1a9bc0d194f44c74db77bd7bf830c1fff62b2690","src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs":"666beae35371cb54a4ad091764e0e3ca4983d5205179c119a8ff97d3ae301869","src/unix/linux_like/linux/gnu/b64/loongarch64/align.rs":"6616c38bf8cab53034dce9f968adae8fb7771334445a93876d000cfd08f117a8","src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs":"17e9478b6a5830f6b8f6bea4ccab712cfd1972cdfb43b97408a068e4ea924106","src/unix/linux_like/linux/gnu/b64/mips64/align.rs":"7169d07a9fd4716f7512719aec9fda5d8bed306dc0720ffc1b21696c9951e3c6","src/unix/linux_like/linux/gnu/b64/mips64/mod.rs":"80b4b97a41564290c510e68a1fb20cfd8424206f010e71a596f12877de886a71","src/unix/linux_like/linux/gnu/b64/mod.rs":"3c6555f30a7a8852757b31a542ea73fb6a16a6e27e838397e819278ad56e57a4","src/unix/linux_like/linux/gnu/b64/powerpc64/align.rs":"e29c4868bbecfa4a6cd8a2ad06193f3bbc78a468cc1dc9df83f002f1268130d9","src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs":"a595e37c2325ceb40ef66c634bd3c255ad184a1d70ff8025e98a075f0ec67704","src/unix/linux_like/linux/gnu/b64/riscv64/align.rs":"d321491612be8d5c61b6ec2dc0111beb3a22e58803f99cd37543efe86621b119","src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs":"ef4b13477ffd8532fb6705ca3fa63a1f13e8d19ee39b083c5355dfce430c1a5b","src/unix/linux_like/linux/gnu/b64/s390x.rs":"788fde4fa1919859cc028b59da31de00449edd2b2c1530ae76134beac418b73c","src/unix/linux_like/linux/gnu/b64/sparc64/align.rs":"e29c4868bbecfa4a6cd8a2ad06193f3bbc78a468cc1dc9df83f002f1268130d9","src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs":"c4fa0ede3f78b21a9982667922cccd0681bee3cb6d42208ea9958f65e93d6308","src/unix/linux_like/linux/gnu/b64/x86_64/align.rs":"62e822478356db4a73b6bbd1b36d825b893939ab4b308ec11b0578bcc4b49769","src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs":"e37e0421290b152fe508883181c41225e09dd5452a6b085e8d807b3b54823028","src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs":"c1b6345ce14f67d1b2e2f7f2c0ff9a074c07acbd348df69cb4558bda8c8fb9ae","src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs":"3f4d2aeadb7d2620cad09564abdbfc5cf02eeb5a27f2bab8a4e9b4bdbdb258a5","src/unix/linux_like/linux/gnu/mod.rs":"e31aa4bd147c83d05dcd13baca4b9f676320a7713ff50de08b51d0c88f8241a3","src/unix/linux_like/linux/gnu/no_align.rs":"9cd223135de75315840ff9c3fd5441ba1cb632b96b5c85a76f8316c86653db25","src/unix/linux_like/linux/mod.rs":"8862912e65ae64dd26728ced492eacbdd3753b7a19432fc8fdf5a673ff7526c9","src/unix/linux_like/linux/musl/b32/arm/align.rs":"3e8ac052c1043764776b54c93ba4260e061df998631737a897d9d47d54f7b80c","src/unix/linux_like/linux/musl/b32/arm/mod.rs":"f5b217a93f99c2852f7fd1459f529798372fa7df84ee0cfd3d8cdd5b2021b8cf","src/unix/linux_like/linux/musl/b32/hexagon.rs":"226a8b64ce9c75abbbee6d2dceb0b44f7b6c750c4102ebd4d015194afee6666e","src/unix/linux_like/linux/musl/b32/mips/align.rs":"429fb5e005cb7143602d430098b6ebfb7d360685b194f333dfd587472ae954ee","src/unix/linux_like/linux/musl/b32/mips/mod.rs":"16a7a03d998a5db11be9ee81525c7faec4623383260e8bc125b1c53a050fde75","src/unix/linux_like/linux/musl/b32/mod.rs":"580e27c5ce3344df686f1ffc08fdfa2c282d1ceb623d778c50d210d4bd65ec7e","src/unix/linux_like/linux/musl/b32/powerpc.rs":"dc52adc264c34bce80753d6bd064e8fc4b8237fa1e5c5315ccb6c72df74c2813","src/unix/linux_like/linux/musl/b32/riscv32/align.rs":"efd2accf33b87de7c7547903359a5da896edc33cd6c719552c7474b60d4a5d48","src/unix/linux_like/linux/musl/b32/riscv32/mod.rs":"e57dc5562553aab6d0765e0ec266254aa52975f8757bfe97e0c6028fa7d5d37c","src/unix/linux_like/linux/musl/b32/x86/align.rs":"08e77fbd7435d7dec2ff56932433bece3f02e47ce810f89004a275a86d39cbe1","src/unix/linux_like/linux/musl/b32/x86/mod.rs":"7a1586f77bb693f0b319ec720c35963da056287fc42f8e2ccf1d5b2bcccf4fd6","src/unix/linux_like/linux/musl/b64/aarch64/align.rs":"6ba32725d24d7d8e6aa111f3b57aafa318f83b606abe96561329151829821133","src/unix/linux_like/linux/musl/b64/aarch64/int128.rs":"1735f6f5c56770d20dd426442f09724d9b2052b46a7cd82f23f3288a4a7276de","src/unix/linux_like/linux/musl/b64/aarch64/mod.rs":"31e75179cbb4e26425b3f5b052e358f593153da662884655e60801d852e55dc2","src/unix/linux_like/linux/musl/b64/mips64.rs":"9a5d29f666332bb056d0e2951e9de989aa1dc016075f009db3f2f628e0cdda8c","src/unix/linux_like/linux/musl/b64/mod.rs":"8c10627bd582cb272514e7350ae4743a65d489356eae039d2e7e55cd533fbbc8","src/unix/linux_like/linux/musl/b64/powerpc64.rs":"455dc0ffa55afc1db6ffaf461f6f2a7b49d31658bfebe0bb4efac5967a6f956c","src/unix/linux_like/linux/musl/b64/riscv64/align.rs":"d321491612be8d5c61b6ec2dc0111beb3a22e58803f99cd37543efe86621b119","src/unix/linux_like/linux/musl/b64/riscv64/mod.rs":"42d4b6d36807f37759094a732a321080cccdf498b174d632cebba147051de294","src/unix/linux_like/linux/musl/b64/s390x.rs":"d8a4fdfea0960ec284cae4facb8b0fb342e8aa41544cffacdcaf08c5a92a43f8","src/unix/linux_like/linux/musl/b64/x86_64/align.rs":"77309276ad7a42cbe59ca381f23590b7a143aded05555b34a5b307b808cbca6e","src/unix/linux_like/linux/musl/b64/x86_64/mod.rs":"7a877cd23b64be66d28e6b8dddae32d59a88d69115637539daf19381f4e39330","src/unix/linux_like/linux/musl/mod.rs":"8d8b50a0bf7ec53bd4d2ea92e8bfae14529f0beb3f22a65b55623f7086fee8ac","src/unix/linux_like/linux/no_align.rs":"da2a8721becaaaa528781f97f5d9aae6a982ae5d4f5f6d2ffc0150bed72319b3","src/unix/linux_like/linux/non_exhaustive.rs":"181a05bf94fdb911db83ce793b993bd6548a4115b306a7ef3c10f745a8fea3e9","src/unix/linux_like/linux/uclibc/align.rs":"9ed16138d8e439bd90930845a65eafa7ebd67366e6bf633936d44014f6e4c959","src/unix/linux_like/linux/uclibc/arm/align.rs":"e4a3c27fe20a57b8d612c34cb05bc70646edb5cec7251957315afa53a7b9f936","src/unix/linux_like/linux/uclibc/arm/mod.rs":"bf2dcf0a468f386899f572324f3bc14be1974f570afdfff1075ca6c5dd57710d","src/unix/linux_like/linux/uclibc/arm/no_align.rs":"9cd223135de75315840ff9c3fd5441ba1cb632b96b5c85a76f8316c86653db25","src/unix/linux_like/linux/uclibc/mips/mips32/align.rs":"e4a3c27fe20a57b8d612c34cb05bc70646edb5cec7251957315afa53a7b9f936","src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs":"d2fc251754458b697ef6e599f0a670ebca18f61e4026bf681be4e2baa896b9df","src/unix/linux_like/linux/uclibc/mips/mips32/no_align.rs":"9cd223135de75315840ff9c3fd5441ba1cb632b96b5c85a76f8316c86653db25","src/unix/linux_like/linux/uclibc/mips/mips64/align.rs":"a7bdcb18a37a2d91e64d5fad83ea3edc78f5412adb28f77ab077dbb26dd08b2d","src/unix/linux_like/linux/uclibc/mips/mips64/mod.rs":"256a428290a560163ef7dc7d18b27bd3c6ce9748a0f28d5dc7f82203ee228220","src/unix/linux_like/linux/uclibc/mips/mips64/no_align.rs":"4a18e3875698c85229599225ac3401a2a40da87e77b2ad4ef47c6fcd5a24ed30","src/unix/linux_like/linux/uclibc/mips/mod.rs":"367ec5483ad317e6ccba1ac0888da6cf088a8d32689214cc8d16129aa692260c","src/unix/linux_like/linux/uclibc/mod.rs":"1c3d25cddcfefa2bd17bdc81550826be31a08eef235e13f825f169a5029c8bca","src/unix/linux_like/linux/uclibc/no_align.rs":"3f28637046524618adaa1012e26cb7ffe94b9396e6b518cccdc69d59f274d709","src/unix/linux_like/linux/uclibc/x86_64/l4re.rs":"024eba5753e852dbdd212427351affe7e83f9916c1864bce414d7aa2618f192e","src/unix/linux_like/linux/uclibc/x86_64/mod.rs":"420dbea99e99091f333641e202960fa4bed0733de2a834e610708555be6bab4c","src/unix/linux_like/linux/uclibc/x86_64/other.rs":"42c3f71e58cabba373f6a55a623f3c31b85049eb64824c09c2b082b3b2d6a0a8","src/unix/linux_like/mod.rs":"759e65c13f7e49a6efd1a979c821c53c478648f7f00cb29da65d92904c7c6814","src/unix/mod.rs":"a55d80aae47b642e25810c2321626f4cc5168170230a1d73953dfca58709b774","src/unix/newlib/aarch64/mod.rs":"bac93836a9a57b2c710f32f852e92a4d11ad6759ab0fb6ad33e71d60e53278af","src/unix/newlib/align.rs":"28aaf87fafbc6b312622719d472d8cf65f9e5467d15339df5f73e66d8502b28a","src/unix/newlib/arm/mod.rs":"cbba6b3e957eceb496806e60de8725a23ff3fa0015983b4b4fa27b233732b526","src/unix/newlib/espidf/mod.rs":"816f235f4aa4baabba7f2606b31d0fdb03988c52194c966728de8690bf17299d","src/unix/newlib/generic.rs":"eab066d9f0a0f3eb53cc1073d01496bba0110989e1f6a59838afd19f870cd599","src/unix/newlib/horizon/mod.rs":"7cc5cc120437421db139bfa6a90b18168cd3070bdd0f5be96d40fe4c996f3ca1","src/unix/newlib/mod.rs":"47d853beaa42b4aa17532d7687715e00e1da6632fccbcdcb079382dbde5412ff","src/unix/newlib/no_align.rs":"e0743b2179495a9514bc3a4d1781e492878c4ec834ee0085d0891dd1712e82fb","src/unix/newlib/powerpc/mod.rs":"0202ffd57caf75b6afa2c9717750ffb96e375ac33df0ae9609a3f831be393b67","src/unix/no_align.rs":"c06e95373b9088266e0b14bba0954eef95f93fb2b01d951855e382d22de78e53","src/unix/nto/aarch64.rs":"4709c9afdc8d583be876598e7c238499ee3e8da5bd2baa614d9c7dd414851555","src/unix/nto/mod.rs":"a4ed355f33ab18041cf642e2f4d1a50dc96b5bce778715f04352c34d020961b5","src/unix/nto/neutrino.rs":"62198d95ccc0fe7ece6f9d5c0b29fc22303ef458886efb5e09aad524eca2ab7b","src/unix/nto/x86_64.rs":"a3e18e93c2999da1cd7a6f748a4b60c07aefb73d8ea2aafec19a84cfb040bc8e","src/unix/redox/mod.rs":"c8afea39f81e73ad4e9bf8a8f25138a200e616048e189debad80a6b7e08f710f","src/unix/solarish/compat.rs":"00f1ee3faec9da69204e42f025f6735dd13d894071a154425dcc43ecbdd06e7f","src/unix/solarish/illumos.rs":"cd93c2d84722bbf9933a92842a8998eb0b2afc962f50bc2546ad127b82809fa7","src/unix/solarish/mod.rs":"b1c0a1d347b30d45c85429b7236d234f5b2c86b9eec439e897c9371d856c187a","src/unix/solarish/solaris.rs":"41b350a89ddf01cd12a10f93640f92be53be0b0d976021cdc08da17bf3e72edf","src/unix/solarish/x86.rs":"e86e806df0caed72765040eaa2f3c883198d1aa91508540adf9b7008c77f522e","src/unix/solarish/x86_64.rs":"ec2b01f194eb8a6a27133c57681da195a949e03098f3ea1e847227a9c09ef5fc","src/unix/solarish/x86_common.rs":"ac869d9c3c95645c22460468391eb1982023c3a8e02b9e06a72e3aef3d5f1eac","src/vxworks/aarch64.rs":"98f0afdc511cd02557e506c21fed6737585490a1dce7a9d4941d08c437762b99","src/vxworks/arm.rs":"acb7968ce99fe3f4abdf39d98f8133d21a4fba435b8ef7084777cb181d788e88","src/vxworks/mod.rs":"ff063860fc4fe3bca6332742764e29c1506884added21aa7722144c1fb3f4018","src/vxworks/powerpc.rs":"acb7968ce99fe3f4abdf39d98f8133d21a4fba435b8ef7084777cb181d788e88","src/vxworks/powerpc64.rs":"98f0afdc511cd02557e506c21fed6737585490a1dce7a9d4941d08c437762b99","src/vxworks/x86.rs":"552f007f38317620b23889cb7c49d1d115841252439060122f52f434fbc6e5ba","src/vxworks/x86_64.rs":"018d92be3ad628a129eff9f2f5dfbc0883d8b8e5f2fa917b900a7f98ed6b514a","src/wasi.rs":"b9a2ecc75fd2359a2484e93fdd1c539d2abc109cd9455d8f566476bcfb19df3d","src/windows/gnu/align.rs":"b2c13ec1b9f3b39a75c452c80c951dff9d0215e31d77e883b4502afb31794647","src/windows/gnu/mod.rs":"3c8c7edb7cdf5d0c44af936db2a94869585c69dfabeef30571b4f4e38375767a","src/windows/mod.rs":"5421b92f47cb69845f4323b1a14e533d8a17acc6412c58e67f4d41def749de2f","src/windows/msvc/mod.rs":"c068271e00fca6b62bc4bf44bcf142cfc38caeded9b6c4e01d1ceef3ccf986f4","tests/const_fn.rs":"cb75a1f0864f926aebe79118fc34d51a0d1ade2c20a394e7774c7e545f21f1f4"},"package":"201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"} \ No newline at end of file diff --git a/third_party/rust/libc/Cargo.toml b/third_party/rust/libc/Cargo.toml dissimilarity index 70% index b62faf51c665..60e7b1674e86 100644 --- a/third_party/rust/libc/Cargo.toml +++ b/third_party/rust/libc/Cargo.toml @@ -1,173 +1,64 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - -[package] -name = "libc" -version = "0.2.148" -authors = ["The Rust Project Developers"] -build = "build.rs" -exclude = [ - "/ci/*", - "/.github/*", - "/.cirrus.yml", - "/triagebot.toml", -] -description = """ -Raw FFI bindings to platform libraries like libc. -""" -homepage = "https://github.com/rust-lang/libc" -documentation = "https://docs.rs/libc/" -readme = "README.md" -keywords = [ - "libc", - "ffi", - "bindings", - "operating", - "system", -] -categories = [ - "external-ffi-bindings", - "no-std", - "os", -] -license = "MIT OR Apache-2.0" -repository = "https://github.com/rust-lang/libc" - -[package.metadata.docs.rs] -cargo-args = ["-Zbuild-std=core"] -default-target = "x86_64-unknown-linux-gnu" -features = [ - "const-extern-fn", - "extra_traits", -] -targets = [ - "aarch64-apple-ios", - "aarch64-linux-android", - "aarch64-pc-windows-msvc", - "aarch64-unknown-freebsd", - "aarch64-unknown-fuchsia", - "aarch64-unknown-hermit", - "aarch64-unknown-linux-gnu", - "aarch64-unknown-linux-musl", - "aarch64-unknown-netbsd", - "aarch64-unknown-openbsd", - "aarch64-wrs-vxworks", - "arm-linux-androideabi", - "arm-unknown-linux-gnueabi", - "arm-unknown-linux-gnueabihf", - "arm-unknown-linux-musleabi", - "arm-unknown-linux-musleabihf", - "armebv7r-none-eabi", - "armebv7r-none-eabihf", - "armv5te-unknown-linux-gnueabi", - "armv5te-unknown-linux-musleabi", - "armv7-linux-androideabi", - "armv7-unknown-linux-gnueabihf", - "armv7-unknown-linux-musleabihf", - "armv7-wrs-vxworks-eabihf", - "armv7r-none-eabi", - "armv7r-none-eabihf", - "hexagon-unknown-linux-musl", - "i586-pc-windows-msvc", - "i586-unknown-linux-gnu", - "i586-unknown-linux-musl", - "i686-linux-android", - "i686-pc-windows-gnu", - "i686-pc-windows-msvc", - "i686-pc-windows-msvc", - "i686-unknown-freebsd", - "i686-unknown-haiku", - "i686-unknown-linux-gnu", - "i686-unknown-linux-musl", - "i686-unknown-netbsd", - "i686-unknown-openbsd", - "i686-wrs-vxworks", - "mips-unknown-linux-gnu", - "mips-unknown-linux-musl", - "mips64-unknown-linux-gnuabi64", - "mips64-unknown-linux-muslabi64", - "mips64el-unknown-linux-gnuabi64", - "mips64el-unknown-linux-muslabi64", - "mipsel-sony-psp", - "mipsel-unknown-linux-gnu", - "mipsel-unknown-linux-musl", - "nvptx64-nvidia-cuda", - "powerpc-unknown-linux-gnu", - "powerpc-unknown-linux-gnuspe", - "powerpc-unknown-netbsd", - "powerpc-wrs-vxworks", - "powerpc-wrs-vxworks-spe", - "powerpc64-unknown-freebsd", - "powerpc64-unknown-linux-gnu", - "powerpc64-wrs-vxworks", - "powerpc64le-unknown-linux-gnu", - "riscv32gc-unknown-linux-gnu", - "riscv32i-unknown-none-elf", - "riscv32imac-unknown-none-elf", - "riscv32imc-unknown-none-elf", - "riscv64gc-unknown-freebsd", - "riscv64gc-unknown-linux-gnu", - "riscv64gc-unknown-linux-musl", - "riscv64gc-unknown-none-elf", - "riscv64imac-unknown-none-elf", - "s390x-unknown-linux-gnu", - "s390x-unknown-linux-musl", - "sparc-unknown-linux-gnu", - "sparc64-unknown-linux-gnu", - "sparc64-unknown-netbsd", - "sparcv9-sun-solaris", - "thumbv6m-none-eabi", - "thumbv7em-none-eabi", - "thumbv7em-none-eabihf", - "thumbv7m-none-eabi", - "thumbv7neon-linux-androideabi", - "thumbv7neon-unknown-linux-gnueabihf", - "wasm32-unknown-emscripten", - "wasm32-unknown-unknown", - "wasm32-wasi", - "x86_64-apple-darwin", - "x86_64-apple-ios", - "x86_64-fortanix-unknown-sgx", - "x86_64-linux-android", - "x86_64-pc-solaris", - "x86_64-pc-windows-gnu", - "x86_64-pc-windows-msvc", - "x86_64-unknown-dragonfly", - "x86_64-unknown-freebsd", - "x86_64-unknown-fuchsia", - "x86_64-unknown-haiku", - "x86_64-unknown-hermit", - "x86_64-unknown-illumos", - "x86_64-unknown-l4re-uclibc", - "x86_64-unknown-linux-gnu", - "x86_64-unknown-linux-gnux32", - "x86_64-unknown-linux-musl", - "x86_64-unknown-netbsd", - "x86_64-unknown-openbsd", - "x86_64-unknown-redox", - "x86_64-wrs-vxworks", -] - -[dependencies.rustc-std-workspace-core] -version = "1.0.0" -optional = true - -[features] -align = [] -const-extern-fn = [] -default = ["std"] -extra_traits = [] -rustc-dep-of-std = [ - "align", - "rustc-std-workspace-core", -] -std = [] -use_std = ["std"] +# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO +# +# When uploading crates to the registry Cargo will automatically +# "normalize" Cargo.toml files for maximal compatibility +# with all versions of Cargo and also rewrite `path` dependencies +# to registry (e.g., crates.io) dependencies. +# +# If you are reading this file be aware that the original Cargo.toml +# will likely look very different (and much more reasonable). +# See Cargo.toml.orig for the original contents. + +[package] +name = "libc" +version = "0.2.139" +authors = ["The Rust Project Developers"] +build = "build.rs" +exclude = [ + "/ci/*", + "/.github/*", + "/.cirrus.yml", + "/triagebot.toml", +] +description = """ +Raw FFI bindings to platform libraries like libc. +""" +homepage = "https://github.com/rust-lang/libc" +documentation = "https://docs.rs/libc/" +readme = "README.md" +keywords = [ + "libc", + "ffi", + "bindings", + "operating", + "system", +] +categories = [ + "external-ffi-bindings", + "no-std", + "os", +] +license = "MIT OR Apache-2.0" +repository = "https://github.com/rust-lang/libc" + +[package.metadata.docs.rs] +features = [ + "const-extern-fn", + "extra_traits", +] + +[dependencies.rustc-std-workspace-core] +version = "1.0.0" +optional = true + +[features] +align = [] +const-extern-fn = [] +default = ["std"] +extra_traits = [] +rustc-dep-of-std = [ + "align", + "rustc-std-workspace-core", +] +std = [] +use_std = ["std"] diff --git a/third_party/rust/libc/README.md b/third_party/rust/libc/README.md index 43d706d0f2a6..bc5ad18f6b1b 100644 --- a/third_party/rust/libc/README.md +++ b/third_party/rust/libc/README.md @@ -14,7 +14,7 @@ of all the exported APIs match the platform that libc is compiled for. More detailed information about the design of this library can be found in its [associated RFC][rfc]. -[rfc]: https://github.com/rust-lang/rfcs/blob/HEAD/text/1291-promote-libc.md +[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1291-promote-libc.md ## Usage @@ -60,10 +60,10 @@ newer Rust features are only available on newer Rust toolchains: ## Platform support -[Platform-specific documentation (HEAD)][docs.head]. +[Platform-specific documentation (master branch)][docs.master]. See -[`ci/build.sh`](https://github.com/rust-lang/libc/blob/HEAD/ci/build.sh) +[`ci/build.sh`](https://github.com/rust-lang/libc/blob/master/ci/build.sh) for the platforms on which `libc` is guaranteed to build for each Rust toolchain. The test-matrix at [GitHub Actions] and [Cirrus CI] show the platforms in which `libc` tests are run. @@ -75,10 +75,10 @@ platforms in which `libc` tests are run. This project is licensed under either of * [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) - ([LICENSE-APACHE](https://github.com/rust-lang/libc/blob/HEAD/LICENSE-APACHE)) + ([LICENSE-APACHE](https://github.com/rust-lang/libc/blob/master/LICENSE-APACHE)) * [MIT License](https://opensource.org/licenses/MIT) - ([LICENSE-MIT](https://github.com/rust-lang/libc/blob/HEAD/LICENSE-MIT)) + ([LICENSE-MIT](https://github.com/rust-lang/libc/blob/master/LICENSE-MIT)) at your option. @@ -87,7 +87,7 @@ at your option. We welcome all people who want to contribute. Please see the [contributing instructions] for more information. -[contributing instructions]: https://github.com/rust-lang/libc/blob/HEAD/CONTRIBUTING.md +[contributing instructions]: https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md Contributions in any form (issues, pull requests, etc.) to this project must adhere to Rust's [Code of Conduct]. @@ -107,4 +107,4 @@ dual licensed as above, without any additional terms or conditions. [Documentation]: https://docs.rs/libc/badge.svg [docs.rs]: https://docs.rs/libc [License]: https://img.shields.io/crates/l/libc.svg -[docs.head]: https://rust-lang.github.io/libc/#platform-specific-documentation +[docs.master]: https://rust-lang.github.io/libc/#platform-specific-documentation diff --git a/third_party/rust/libc/build.rs b/third_party/rust/libc/build.rs index 787b8b86a236..bbee2d28a178 100644 --- a/third_party/rust/libc/build.rs +++ b/third_party/rust/libc/build.rs @@ -1,45 +1,6 @@ use std::env; use std::process::Command; use std::str; -use std::string::String; - -// List of cfgs this build script is allowed to set. The list is needed to support check-cfg, as we -// need to know all the possible cfgs that this script will set. If you need to set another cfg -// make sure to add it to this list as well. -const ALLOWED_CFGS: &'static [&'static str] = &[ - "emscripten_new_stat_abi", - "freebsd10", - "freebsd11", - "freebsd12", - "freebsd13", - "freebsd14", - "libc_align", - "libc_cfg_target_vendor", - "libc_const_extern_fn", - "libc_const_extern_fn_unstable", - "libc_const_size_of", - "libc_core_cvoid", - "libc_deny_warnings", - "libc_int128", - "libc_long_array", - "libc_non_exhaustive", - "libc_packedN", - "libc_priv_mod_use", - "libc_ptr_addr_of", - "libc_thread_local", - "libc_underscore_const_names", - "libc_union", -]; - -// Extra values to allow for check-cfg. -const CHECK_CFG_EXTRA: &'static [(&'static str, &'static [&'static str])] = &[ - ("target_os", &["switch", "aix", "ohos"]), - ("target_env", &["illumos", "wasi", "aix", "ohos"]), - ( - "target_arch", - &["loongarch64", "mips32r6", "mips64r6", "csky"], - ), -]; fn main() { // Avoid unnecessary re-building. @@ -50,7 +11,6 @@ fn main() { let align_cargo_feature = env::var("CARGO_FEATURE_ALIGN").is_ok(); let const_extern_fn_cargo_feature = env::var("CARGO_FEATURE_CONST_EXTERN_FN").is_ok(); let libc_ci = env::var("LIBC_CI").is_ok(); - let libc_check_cfg = env::var("LIBC_CHECK_CFG").is_ok(); if env::var("CARGO_FEATURE_USE_STD").is_ok() { println!( @@ -65,113 +25,89 @@ fn main() { // On CI, we detect the actual FreeBSD version and match its ABI exactly, // running tests to ensure that the ABI is correct. match which_freebsd() { - Some(10) if libc_ci || rustc_dep_of_std => set_cfg("freebsd10"), - Some(11) if libc_ci => set_cfg("freebsd11"), - Some(12) if libc_ci => set_cfg("freebsd12"), - Some(13) if libc_ci => set_cfg("freebsd13"), - Some(14) if libc_ci => set_cfg("freebsd14"), - Some(_) | None => set_cfg("freebsd11"), - } - - match emcc_version_code() { - Some(v) if (v >= 30142) => set_cfg("emscripten_new_stat_abi"), - // Non-Emscripten or version < 3.1.42. - Some(_) | None => (), + Some(10) if libc_ci || rustc_dep_of_std => { + println!("cargo:rustc-cfg=freebsd10") + } + Some(11) if libc_ci => println!("cargo:rustc-cfg=freebsd11"), + Some(12) if libc_ci => println!("cargo:rustc-cfg=freebsd12"), + Some(13) if libc_ci => println!("cargo:rustc-cfg=freebsd13"), + Some(14) if libc_ci => println!("cargo:rustc-cfg=freebsd14"), + Some(_) | None => println!("cargo:rustc-cfg=freebsd11"), } // On CI: deny all warnings if libc_ci { - set_cfg("libc_deny_warnings"); + println!("cargo:rustc-cfg=libc_deny_warnings"); } // Rust >= 1.15 supports private module use: if rustc_minor_ver >= 15 || rustc_dep_of_std { - set_cfg("libc_priv_mod_use"); + println!("cargo:rustc-cfg=libc_priv_mod_use"); } // Rust >= 1.19 supports unions: if rustc_minor_ver >= 19 || rustc_dep_of_std { - set_cfg("libc_union"); + println!("cargo:rustc-cfg=libc_union"); } // Rust >= 1.24 supports const mem::size_of: if rustc_minor_ver >= 24 || rustc_dep_of_std { - set_cfg("libc_const_size_of"); + println!("cargo:rustc-cfg=libc_const_size_of"); } // Rust >= 1.25 supports repr(align): if rustc_minor_ver >= 25 || rustc_dep_of_std || align_cargo_feature { - set_cfg("libc_align"); + println!("cargo:rustc-cfg=libc_align"); } // Rust >= 1.26 supports i128 and u128: if rustc_minor_ver >= 26 || rustc_dep_of_std { - set_cfg("libc_int128"); + println!("cargo:rustc-cfg=libc_int128"); } // Rust >= 1.30 supports `core::ffi::c_void`, so libc can just re-export it. // Otherwise, it defines an incompatible type to retaining // backwards-compatibility. if rustc_minor_ver >= 30 || rustc_dep_of_std { - set_cfg("libc_core_cvoid"); + println!("cargo:rustc-cfg=libc_core_cvoid"); } // Rust >= 1.33 supports repr(packed(N)) and cfg(target_vendor). if rustc_minor_ver >= 33 || rustc_dep_of_std { - set_cfg("libc_packedN"); - set_cfg("libc_cfg_target_vendor"); + println!("cargo:rustc-cfg=libc_packedN"); + println!("cargo:rustc-cfg=libc_cfg_target_vendor"); } // Rust >= 1.40 supports #[non_exhaustive]. if rustc_minor_ver >= 40 || rustc_dep_of_std { - set_cfg("libc_non_exhaustive"); - } - - // Rust >= 1.47 supports long array: - if rustc_minor_ver >= 47 || rustc_dep_of_std { - set_cfg("libc_long_array"); + println!("cargo:rustc-cfg=libc_non_exhaustive"); } if rustc_minor_ver >= 51 || rustc_dep_of_std { - set_cfg("libc_ptr_addr_of"); + println!("cargo:rustc-cfg=libc_ptr_addr_of"); } // Rust >= 1.37.0 allows underscores as anonymous constant names. if rustc_minor_ver >= 37 || rustc_dep_of_std { - set_cfg("libc_underscore_const_names"); + println!("cargo:rustc-cfg=libc_underscore_const_names"); } // #[thread_local] is currently unstable if rustc_dep_of_std { - set_cfg("libc_thread_local"); + println!("cargo:rustc-cfg=libc_thread_local"); } // Rust >= 1.62.0 allows to use `const_extern_fn` for "Rust" and "C". if rustc_minor_ver >= 62 { - set_cfg("libc_const_extern_fn"); + println!("cargo:rustc-cfg=libc_const_extern_fn"); } else { // Rust < 1.62.0 requires a crate feature and feature gate. if const_extern_fn_cargo_feature { if !is_nightly || rustc_minor_ver < 40 { panic!("const-extern-fn requires a nightly compiler >= 1.40"); } - set_cfg("libc_const_extern_fn_unstable"); - set_cfg("libc_const_extern_fn"); - } - } - - // check-cfg is a nightly cargo/rustc feature to warn when unknown cfgs are used across the - // codebase. libc can configure it if the appropriate environment variable is passed. Since - // rust-lang/rust enforces it, this is useful when using a custom libc fork there. - // - // https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg - if libc_check_cfg { - for cfg in ALLOWED_CFGS { - println!("cargo:rustc-check-cfg=values({})", cfg); - } - for &(name, values) in CHECK_CFG_EXTRA { - let values = values.join("\",\""); - println!("cargo:rustc-check-cfg=values({},\"{}\")", name, values); + println!("cargo:rustc-cfg=libc_const_extern_fn_unstable"); + println!("cargo:rustc-cfg=libc_const_extern_fn"); } } } @@ -192,13 +128,6 @@ fn rustc_minor_nightly() -> (u32, bool) { .output() .ok() .expect("Failed to get rustc version"); - if !output.status.success() { - panic!( - "failed to run rustc: {}", - String::from_utf8_lossy(output.stderr.as_slice()) - ); - } - let version = otry!(str::from_utf8(&output.stdout).ok()); let mut pieces = version.split('.'); @@ -247,37 +176,3 @@ fn which_freebsd() -> Option { _ => None, } } - -fn emcc_version_code() -> Option { - let output = std::process::Command::new("emcc") - .arg("-dumpversion") - .output() - .ok(); - if output.is_none() { - return None; - } - let output = output.unwrap(); - if !output.status.success() { - return None; - } - - let stdout = String::from_utf8(output.stdout).ok(); - if stdout.is_none() { - return None; - } - let version = stdout.unwrap(); - let mut pieces = version.trim().split('.'); - - let major = pieces.next().and_then(|x| x.parse().ok()).unwrap_or(0); - let minor = pieces.next().and_then(|x| x.parse().ok()).unwrap_or(0); - let patch = pieces.next().and_then(|x| x.parse().ok()).unwrap_or(0); - - Some(major * 10000 + minor * 100 + patch) -} - -fn set_cfg(cfg: &str) { - if !ALLOWED_CFGS.contains(&cfg) { - panic!("trying to set cfg {}, but it is not in ALLOWED_CFGS", cfg); - } - println!("cargo:rustc-cfg={}", cfg); -} diff --git a/third_party/rust/libc/src/fuchsia/aarch64.rs b/third_party/rust/libc/src/fuchsia/aarch64.rs index 33e3934d661a..259893c0fa84 100644 --- a/third_party/rust/libc/src/fuchsia/aarch64.rs +++ b/third_party/rust/libc/src/fuchsia/aarch64.rs @@ -62,6 +62,5 @@ s! { } } -// From https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/third_party/ulib/musl/include/bits/signal.h;l=20-21;drc=0827b18ab9540c46f8037f407d17ea15a79e9ba7 pub const MINSIGSTKSZ: ::size_t = 6144; pub const SIGSTKSZ: ::size_t = 12288; diff --git a/third_party/rust/libc/src/fuchsia/mod.rs b/third_party/rust/libc/src/fuchsia/mod.rs index 3e922e766cba..5c6aebde23b0 100644 --- a/third_party/rust/libc/src/fuchsia/mod.rs +++ b/third_party/rust/libc/src/fuchsia/mod.rs @@ -2602,7 +2602,6 @@ pub const PR_SET_MM_MAP: ::c_int = 14; pub const PR_SET_MM_MAP_SIZE: ::c_int = 15; pub const PR_SET_PTRACER: ::c_int = 0x59616d61; -pub const PR_SET_PTRACER_ANY: ::c_ulong = 0xffffffffffffffff; pub const PR_SET_CHILD_SUBREAPER: ::c_int = 36; pub const PR_GET_CHILD_SUBREAPER: ::c_int = 37; @@ -3271,7 +3270,7 @@ f! { as ::c_uint } - pub {const} fn CMSG_LEN(len: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(len: ::c_uint) -> ::c_uint { (CMSG_ALIGN(::mem::size_of::()) + len as ::size_t) as ::c_uint } } @@ -4260,9 +4259,6 @@ cfg_if! { } else if #[cfg(any(target_arch = "x86_64"))] { mod x86_64; pub use self::x86_64::*; - } else if #[cfg(any(target_arch = "riscv64"))] { - mod riscv64; - pub use self::riscv64::*; } else { // Unknown target_arch } diff --git a/third_party/rust/libc/src/fuchsia/riscv64.rs b/third_party/rust/libc/src/fuchsia/riscv64.rs deleted file mode 100644 index de2b7197d75c..000000000000 --- a/third_party/rust/libc/src/fuchsia/riscv64.rs +++ /dev/null @@ -1,44 +0,0 @@ -// From psABI Calling Convention for RV64 -pub type c_char = u8; -pub type __u64 = ::c_ulonglong; -pub type wchar_t = i32; - -pub type nlink_t = ::c_ulong; -pub type blksize_t = ::c_long; - -pub type stat64 = stat; -s! { - pub struct stat { - pub st_dev: ::dev_t, - pub st_ino: ::ino_t, - pub st_nlink: ::nlink_t, - pub st_mode: ::mode_t, - pub st_uid: ::uid_t, - pub st_gid: ::gid_t, - __pad0: ::c_int, - pub st_rdev: ::dev_t, - pub st_size: ::off_t, - pub st_blksize: ::blksize_t, - pub st_blocks: ::blkcnt_t, - pub st_atime: ::time_t, - pub st_atime_nsec: ::c_long, - pub st_mtime: ::time_t, - pub st_mtime_nsec: ::c_long, - pub st_ctime: ::time_t, - pub st_ctime_nsec: ::c_long, - __unused: [::c_long; 3], - } - - // Not actually used, IPC calls just return ENOSYS - pub struct ipc_perm { - pub __ipc_perm_key: ::key_t, - pub uid: ::uid_t, - pub gid: ::gid_t, - pub cuid: ::uid_t, - pub cgid: ::gid_t, - pub mode: ::mode_t, - pub __seq: ::c_ushort, - __unused1: ::c_ulong, - __unused2: ::c_ulong, - } -} diff --git a/third_party/rust/libc/src/lib.rs b/third_party/rust/libc/src/lib.rs index d9bd318d1dfb..acda09159202 100644 --- a/third_party/rust/libc/src/lib.rs +++ b/third_party/rust/libc/src/lib.rs @@ -151,12 +151,6 @@ cfg_if! { mod wasi; pub use wasi::*; - } else if #[cfg(target_os = "xous")] { - mod fixed_width_ints; - pub use fixed_width_ints::*; - - mod xous; - pub use xous::*; } else { // non-supported targets: empty... } diff --git a/third_party/rust/libc/src/unix/aix/mod.rs b/third_party/rust/libc/src/unix/aix/mod.rs deleted file mode 100644 index 325d7d654fd7..000000000000 --- a/third_party/rust/libc/src/unix/aix/mod.rs +++ /dev/null @@ -1,3355 +0,0 @@ -pub type c_char = i8; -pub type caddr_t = *mut ::c_char; -// FIXME: clockid_t must be c_long, but time.rs accepts only i32 -pub type clockid_t = ::c_int; -pub type blkcnt_t = ::c_long; -pub type clock_t = ::c_int; -pub type daddr_t = ::c_long; -pub type dev_t = ::c_ulong; -pub type fpos64_t = ::c_longlong; -pub type fsblkcnt_t = ::c_ulong; -pub type fsfilcnt_t = ::c_ulong; -pub type idtype_t = ::c_int; -pub type ino_t = ::c_ulong; -pub type key_t = ::c_int; -pub type mode_t = ::c_uint; -pub type nlink_t = ::c_short; -pub type rlim_t = ::c_ulong; -pub type speed_t = ::c_uint; -pub type tcflag_t = ::c_uint; -pub type time_t = ::c_long; -pub type time64_t = ::int64_t; -pub type timer_t = ::c_long; -pub type wchar_t = ::c_uint; -pub type nfds_t = ::c_int; -pub type projid_t = ::c_int; -pub type id_t = ::c_uint; -pub type blksize64_t = ::c_ulonglong; -pub type blkcnt64_t = ::c_ulonglong; -pub type sctp_assoc_t = ::uint32_t; - -pub type suseconds_t = ::c_int; -pub type useconds_t = ::c_uint; -pub type off_t = ::c_long; -pub type off64_t = ::c_longlong; - -pub type socklen_t = ::c_uint; -pub type sa_family_t = ::c_uchar; -pub type in_port_t = ::c_ushort; -pub type in_addr_t = ::c_uint; - -pub type signal_t = ::c_int; -pub type pthread_t = ::c_uint; -pub type pthread_key_t = ::c_uint; -pub type thread_t = pthread_t; -pub type blksize_t = ::c_long; -pub type nl_item = ::c_int; -pub type mqd_t = ::c_int; -pub type shmatt_t = ::c_ulong; -pub type regoff_t = ::c_long; -pub type rlim64_t = ::c_ulonglong; - -pub type sem_t = ::c_int; -pub type pollset_t = ::c_int; - -pub type pthread_rwlockattr_t = *mut ::c_void; -pub type pthread_condattr_t = *mut ::c_void; -pub type pthread_mutexattr_t = *mut ::c_void; -pub type pthread_attr_t = *mut ::c_void; -pub type pthread_barrierattr_t = *mut ::c_void; -pub type posix_spawn_file_actions_t = *mut ::c_char; -pub type iconv_t = *mut ::c_void; - -e! { - pub enum uio_rw { - UIO_READ = 0, - UIO_WRITE, - UIO_READ_NO_MOVE, - UIO_WRITE_NO_MOVE, - UIO_PWRITE, - } -} - -s! { - pub struct fsid_t { - pub val: [::c_uint; 2], - } - - pub struct fsid64_t { - pub val: [::uint64_t; 2], - } - - pub struct timezone { - pub tz_minuteswest: ::c_int, - pub tz_dsttime: ::c_int, - } - - pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - } - - pub struct dirent { - pub d_offset: ::c_ulong, - pub d_ino: ::ino_t, - pub d_reclen: ::c_ushort, - pub d_namlen: ::c_ushort, - pub d_name: [::c_char; 256] - } - - pub struct termios { - pub c_iflag: ::tcflag_t, - pub c_oflag: ::tcflag_t, - pub c_cflag: ::tcflag_t, - pub c_lflag: ::tcflag_t, - pub c_cc: [::cc_t; ::NCCS] - } - - pub struct flock64 { - pub l_type: ::c_short, - pub l_whence: ::c_short, - pub l_sysid: ::c_uint, - pub l_pid: ::pid_t, - pub l_vfs: ::c_int, - pub l_start: ::off64_t, - pub l_len: ::off64_t, - } - - pub struct msghdr { - pub msg_name: *mut ::c_void, - pub msg_namelen: ::socklen_t, - pub msg_iov: *mut ::iovec, - pub msg_iovlen: ::c_int, - pub msg_control: *mut ::c_void, - pub msg_controllen: socklen_t, - pub msg_flags: ::c_int, - } - - pub struct statvfs64 { - pub f_bsize: ::blksize64_t, - pub f_frsize: ::blksize64_t, - pub f_blocks: ::blkcnt64_t, - pub f_bfree: ::blkcnt64_t, - pub f_bavail: ::blkcnt64_t, - pub f_files: ::blkcnt64_t, - pub f_ffree: ::blkcnt64_t, - pub f_favail: ::blkcnt64_t, - pub f_fsid: fsid64_t, - pub f_basetype: [::c_char; 16], - pub f_flag: ::c_ulong, - pub f_namemax: ::c_ulong, - pub f_fstr: [::c_char; 32], - pub f_filler: [::c_ulong; 16] - } - - pub struct lconv { - pub decimal_point: *mut ::c_char, - pub thousands_sep: *mut ::c_char, - pub grouping: *mut ::c_char, - pub int_curr_symbol: *mut ::c_char, - pub currency_symbol: *mut ::c_char, - pub mon_decimal_point: *mut ::c_char, - pub mon_thousands_sep: *mut ::c_char, - pub mon_grouping: *mut ::c_char, - pub positive_sign: *mut ::c_char, - pub negative_sign: *mut ::c_char, - pub int_frac_digits: ::c_char, - pub frac_digits: ::c_char, - pub p_cs_precedes: ::c_char, - pub p_sep_by_space: ::c_char, - pub n_cs_precedes: ::c_char, - pub n_sep_by_space: ::c_char, - pub p_sign_posn: ::c_char, - pub n_sign_posn: ::c_char, - pub left_parenthesis: *mut ::c_char, - pub right_parenthesis: *mut ::c_char, - pub int_p_cs_precedes: ::c_char, - pub int_p_sep_by_space: ::c_char, - pub int_n_cs_precedes: ::c_char, - pub int_n_sep_by_space: ::c_char, - pub int_p_sign_posn: ::c_char, - pub int_n_sign_posn: ::c_char, - } - - pub struct tm { - pub tm_sec: ::c_int, - pub tm_min: ::c_int, - pub tm_hour: ::c_int, - pub tm_mday: ::c_int, - pub tm_mon: ::c_int, - pub tm_year: ::c_int, - pub tm_wday: ::c_int, - pub tm_yday: ::c_int, - pub tm_isdst: ::c_int - } - - pub struct addrinfo { - pub ai_flags: ::c_int, - pub ai_family: ::c_int, - pub ai_socktype: ::c_int, - pub ai_protocol: ::c_int, - pub ai_addrlen: ::c_ulong, - pub ai_canonname: *mut ::c_char, - pub ai_addr: *mut ::sockaddr, - pub ai_next: *mut addrinfo, - pub ai_eflags: ::c_int, - } - - pub struct in_addr { - pub s_addr: in_addr_t - } - - pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_sourceaddr: in_addr, - pub imr_interface: in_addr, - } - - pub struct sockaddr { - pub sa_len: ::c_uchar, - pub sa_family: sa_family_t, - pub sa_data: [::c_char; 14], - } - - pub struct sockaddr_dl { - pub sdl_len: ::c_uchar, - pub sdl_family: ::c_uchar, - pub sdl_index: ::c_ushort, - pub sdl_type: ::c_uchar, - pub sdl_nlen: ::c_uchar, - pub sdl_alen: ::c_uchar, - pub sdl_slen: ::c_uchar, - pub sdl_data: [::c_char; 120], - } - - pub struct sockaddr_in { - pub sin_len: ::c_uchar, - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::c_char; 8] - } - - pub struct sockaddr_in6 { - pub sin6_len: ::c_uchar, - pub sin6_family: ::c_uchar, - pub sin6_port: ::uint16_t, - pub sin6_flowinfo: ::uint32_t, - pub sin6_addr: ::in6_addr, - pub sin6_scope_id: ::uint32_t - } - - pub struct sockaddr_storage { - pub __ss_len: ::c_uchar, - pub ss_family: sa_family_t, - __ss_pad1: [::c_char; 6], - __ss_align: ::int64_t, - __ss_pad2: [::c_char; 1265], - } - - pub struct sockaddr_un { - pub sun_len: ::c_uchar, - pub sun_family: sa_family_t, - pub sun_path: [::c_char; 1023] - } - - pub struct st_timespec { - pub tv_sec: ::time_t, - pub tv_nsec: ::c_int, - } - - pub struct statfs64 { - pub f_version: ::c_int, - pub f_type: ::c_int, - pub f_bsize: blksize64_t, - pub f_blocks: blkcnt64_t, - pub f_bfree: blkcnt64_t, - pub f_bavail: blkcnt64_t, - pub f_files: ::uint64_t, - pub f_ffree: ::uint64_t, - pub f_fsid: fsid64_t, - pub f_vfstype: ::c_int, - pub f_fsize: blksize64_t, - pub f_vfsnumber: ::c_int, - pub f_vfsoff: ::c_int, - pub f_vfslen: ::c_int, - pub f_vfsvers: ::c_int, - pub f_fname: [::c_char; 32], - pub f_fpack: [::c_char; 32], - pub f_name_max: ::c_int, - } - - pub struct passwd { - pub pw_name: *mut ::c_char, - pub pw_passwd: *mut ::c_char, - pub pw_uid: ::uid_t, - pub pw_gid: ::gid_t, - pub pw_gecos: *mut ::c_char, - pub pw_dir: *mut ::c_char, - pub pw_shell: *mut ::c_char - } - - pub struct utsname { - pub sysname: [::c_char; 32], - pub nodename: [::c_char; 32], - pub release: [::c_char; 32], - pub version: [::c_char; 32], - pub machine: [::c_char; 32], - } - - pub struct xutsname { - pub nid: ::c_uint, - pub reserved: ::c_int, - pub longnid: ::c_ulonglong, - } - - pub struct cmsghdr { - pub cmsg_len: ::socklen_t, - pub cmsg_level: ::c_int, - pub cmsg_type: ::c_int, - } - - pub struct sigevent { - pub sigev_value: ::sigval, - pub sigev_signo: ::c_int, - pub sigev_notify: ::c_int, - pub sigev_notify_function: extern fn(val: ::sigval), - pub sigev_notify_attributes: *mut pthread_attr_t, - } - - // Should be union with another 'sival_int' - pub struct sigval64 { - pub sival_ptr: ::c_ulonglong, - } - - pub struct sigevent64 { - pub sigev_value: sigval64, - pub sigev_signo: ::c_int, - pub sigev_notify: ::c_int, - pub sigev_notify_function: ::c_ulonglong, - pub sigev_notify_attributes: ::c_ulonglong, - } - - pub struct osigevent { - pub sevt_value: *mut ::c_void, - pub sevt_signo: signal_t, - } - - pub struct poll_ctl { - pub cmd: ::c_short, - pub events: ::c_short, - pub fd: ::c_int, - } - - pub struct sf_parms { - pub header_data: *mut ::c_void, - pub header_length: ::c_uint, - pub file_descriptor: ::c_int, - pub file_size: ::uint64_t, - pub file_offset: ::uint64_t, - pub file_bytes: ::int64_t, - pub trailer_data: *mut ::c_void, - pub trailer_length: ::c_uint, - pub bytes_sent: ::uint64_t, - } - - pub struct mmsghdr { - pub msg_hdr: ::msghdr, - pub msg_len: ::c_uint, - } - - pub struct sched_param { - pub sched_priority: ::c_int, - pub sched_policy: ::c_int, - pub sched_reserved: [::c_int; 6], - } - - pub struct stack_t { - pub ss_sp: *mut ::c_void, - pub ss_size: ::size_t, - pub ss_flags: ::c_int, - pub __pad: [::c_int; 4], - } - - pub struct posix_spawnattr_t { - pub posix_attr_flags: ::c_short, - pub posix_attr_pgroup: ::pid_t, - pub posix_attr_sigmask: ::sigset_t, - pub posix_attr_sigdefault: ::sigset_t, - pub posix_attr_schedpolicy: ::c_int, - pub posix_attr_schedparam: sched_param, - } - - pub struct glob_t { - pub gl_pathc: ::size_t, - pub gl_pathv: *mut *mut c_char, - pub gl_offs: ::size_t, - pub gl_padr: *mut ::c_void, - pub gl_ptx: *mut ::c_void, - } - - pub struct mallinfo { - pub arena: ::c_ulong, - pub ordblks: ::c_int, - pub smblks: ::c_int, - pub hblks: ::c_int, - pub hblkhd: ::c_int, - pub usmblks: ::c_ulong, - pub fsmblks: ::c_ulong, - pub uordblks: ::c_ulong, - pub fordblks: ::c_ulong, - pub keepcost: ::c_int, - } - - pub struct utmp_exit_status { - pub e_termination: ::c_short, - pub e_exit: ::c_short, - } - - pub struct utmp { - pub ut_user: [::c_char; 256], - pub ut_id: [::c_char; 14], - pub ut_line: [::c_char; 64], - pub ut_pid: ::pid_t, - pub ut_type: ::c_short, - pub ut_time: time64_t, - pub ut_exit: utmp_exit_status, - pub ut_host: [::c_char; 256], - pub __dbl_word_pad: ::c_int, - pub __reservedA: [::c_int; 2], - pub __reservedV: [::c_int; 6], - } - - pub struct regmatch_t { - pub rm_so: regoff_t, - pub rm_eo: regoff_t, - } - - pub struct regex_t { - pub re_nsub: ::size_t, - pub re_comp: *mut ::c_void, - pub re_cflags: ::c_int, - pub re_erroff: ::size_t, - pub re_len: ::size_t, - pub re_ucoll: [::wchar_t; 2], - pub re_lsub: [*mut ::c_void; 24], - pub re_esub: [*mut ::c_void; 24], - pub re_map: *mut ::c_uchar, - pub __maxsub: ::c_int, - pub __unused: [*mut ::c_void; 34], - } - - pub struct rlimit64 { - pub rlim_cur: rlim64_t, - pub rlim_max: rlim64_t, - } - - pub struct shmid_ds { - pub shm_perm: ipc_perm, - pub shm_segsz: ::size_t, - pub shm_lpid: ::pid_t, - pub shm_cpid: ::pid_t, - pub shm_nattch: shmatt_t, - pub shm_cnattch: shmatt_t, - pub shm_atime: time_t, - pub shm_dtime: time_t, - pub shm_ctime: time_t, - pub shm_handle: ::uint32_t, - pub shm_extshm: ::c_int, - pub shm_pagesize: ::int64_t, - pub shm_lba: ::uint64_t, - pub shm_reserved: ::int64_t, - pub shm_reserved1: ::int64_t, - } - - pub struct stat64 { - pub st_dev: dev_t, - pub st_ino: ino_t, - pub st_mode: mode_t, - pub st_nlink: nlink_t, - pub st_flag: ::c_ushort, - pub st_uid: ::uid_t, - pub st_gid: ::gid_t, - pub st_rdev: dev_t, - pub st_ssize: ::c_int, - pub st_atim: st_timespec, - pub st_mtim: st_timespec, - pub st_ctim: st_timespec, - pub st_blksize: blksize_t, - pub st_blocks: blkcnt_t, - pub st_vfstype: ::c_int, - pub st_vfs: ::c_uint, - pub st_type: ::c_uint, - pub st_gen: ::c_uint, - pub st_reserved: [::c_uint; 10], - pub st_size: off64_t, - } - - pub struct mntent { - pub mnt_fsname: *mut ::c_char, - pub mnt_dir: *mut ::c_char, - pub mnt_type: *mut ::c_char, - pub mnt_opts: *mut ::c_char, - pub mnt_freq: ::c_int, - pub mnt_passno: ::c_int, - } - - pub struct ipc_perm { - pub uid: ::uid_t, - pub gid: ::gid_t, - pub cuid: ::uid_t, - pub cgid: ::gid_t, - pub mode: mode_t, - pub seq: ::c_ushort, - pub __reserved: ::c_ushort, - pub key: key_t, - } - - pub struct entry { - pub key: *mut ::c_char, - pub data: *mut ::c_void, - } - - pub struct mq_attr { - pub mq_flags: ::c_long, - pub mq_maxmsg: ::c_long, - pub mq_msgsize: ::c_long, - pub mq_curmsgs: ::c_long, - } - - pub struct sembuf { - pub sem_num: ::c_ushort, - pub sem_op: ::c_short, - pub sem_flg: ::c_short, - } - - pub struct if_nameindex { - pub if_index: ::c_uint, - pub if_name: *mut ::c_char, - } - - pub struct itimerspec { - pub it_interval: ::timespec, - pub it_value: ::timespec, - } -} - -s_no_extra_traits! { - #[cfg(libc_union)] - pub union __sigaction_sa_union { - pub __su_handler: extern fn(c: ::c_int), - pub __su_sigaction: extern fn(c: ::c_int, info: *mut siginfo_t, ptr: *mut ::c_void), - } - - pub struct sigaction { - #[cfg(libc_union)] - pub sa_union: __sigaction_sa_union, - pub sa_mask: sigset_t, - pub sa_flags: ::c_int, - } - - #[cfg(libc_union)] - pub union __poll_ctl_ext_u { - pub addr: *mut ::c_void, - pub data32: u32, - pub data: u64, - } - - pub struct poll_ctl_ext { - pub version: u8, - pub command: u8, - pub events: ::c_short, - pub fd: ::c_int, - #[cfg(libc_union)] - pub u: __poll_ctl_ext_u, - pub reversed64: [u64; 6], - } -} - -cfg_if! { - if #[cfg(feature = "extra_traits")] { - #[cfg(libc_union)] - impl PartialEq for __sigaction_sa_union { - fn eq(&self, other: &__sigaction_sa_union) -> bool { - unsafe { - self.__su_handler == other.__su_handler - && self.__su_sigaction == other.__su_sigaction - } - } - } - #[cfg(libc_union)] - impl Eq for __sigaction_sa_union {} - #[cfg(libc_union)] - impl ::fmt::Debug for __sigaction_sa_union { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("__sigaction_sa_union") - .field("__su_handler", unsafe { &self.__su_handler }) - .field("__su_sigaction", unsafe { &self.__su_sigaction }) - .finish() - } - } - #[cfg(libc_union)] - impl ::hash::Hash for __sigaction_sa_union { - fn hash(&self, state: &mut H) { - unsafe { - self.__su_handler.hash(state); - self.__su_sigaction.hash(state); - } - } - } - - impl PartialEq for sigaction { - fn eq(&self, other: &sigaction) -> bool { - #[cfg(libc_union)] - let union_eq = self.sa_union == other.sa_union; - #[cfg(not(libc_union))] - let union_eq = true; - self.sa_mask == other.sa_mask - && self.sa_flags == other.sa_flags - && union_eq - } - } - impl Eq for sigaction {} - impl ::fmt::Debug for sigaction { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let mut struct_formatter = f.debug_struct("sigaction"); - #[cfg(libc_union)] - struct_formatter.field("sa_union", &self.sa_union); - struct_formatter.field("sa_mask", &self.sa_mask); - struct_formatter.field("sa_flags", &self.sa_flags); - struct_formatter.finish() - } - } - impl ::hash::Hash for sigaction { - fn hash(&self, state: &mut H) { - #[cfg(libc_union)] - self.sa_union.hash(state); - self.sa_mask.hash(state); - self.sa_flags.hash(state); - } - } - - #[cfg(libc_union)] - impl PartialEq for __poll_ctl_ext_u { - fn eq(&self, other: &__poll_ctl_ext_u) -> bool { - unsafe { - self.addr == other.addr - && self.data32 == other.data32 - && self.data == other.data - } - } - } - #[cfg(libc_union)] - impl Eq for __poll_ctl_ext_u {} - #[cfg(libc_union)] - impl ::fmt::Debug for __poll_ctl_ext_u { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("__poll_ctl_ext_u") - .field("addr", unsafe { &self.addr }) - .field("data32", unsafe { &self.data32 }) - .field("data", unsafe { &self.data }) - .finish() - } - } - #[cfg(libc_union)] - impl ::hash::Hash for __poll_ctl_ext_u { - fn hash(&self, state: &mut H) { - unsafe { - self.addr.hash(state); - self.data32.hash(state); - self.data.hash(state); - } - } - } - - impl PartialEq for poll_ctl_ext { - fn eq(&self, other: &poll_ctl_ext) -> bool { - #[cfg(libc_union)] - let union_eq = self.u == other.u; - #[cfg(not(libc_union))] - let union_eq = true; - self.version == other.version - && self.command == other.command - && self.events == other.events - && self.fd == other.fd - && self.reversed64 == other.reversed64 - && union_eq - } - } - impl Eq for poll_ctl_ext {} - impl ::fmt::Debug for poll_ctl_ext { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let mut struct_formatter = f.debug_struct("poll_ctl_ext"); - struct_formatter.field("version", &self.version); - struct_formatter.field("command", &self.command); - struct_formatter.field("events", &self.events); - struct_formatter.field("fd", &self.fd); - #[cfg(libc_union)] - struct_formatter.field("u", &self.u); - struct_formatter.field("reversed64", &self.reversed64); - struct_formatter.finish() - } - } - impl ::hash::Hash for poll_ctl_ext { - fn hash(&self, state: &mut H) { - self.version.hash(state); - self.command.hash(state); - self.events.hash(state); - self.fd.hash(state); - #[cfg(libc_union)] - self.u.hash(state); - self.reversed64.hash(state); - } - } - } -} - -// dlfcn.h -pub const RTLD_LAZY: ::c_int = 0x4; -pub const RTLD_NOW: ::c_int = 0x2; -pub const RTLD_GLOBAL: ::c_int = 0x10000; -pub const RTLD_LOCAL: ::c_int = 0x80000; -pub const RTLD_DEFAULT: *mut ::c_void = -1isize as *mut ::c_void; -pub const RTLD_MYSELF: *mut ::c_void = -2isize as *mut ::c_void; -pub const RTLD_NEXT: *mut ::c_void = -3isize as *mut ::c_void; - -// fcntl.h -pub const O_RDONLY: ::c_int = 0x0; -pub const O_WRONLY: ::c_int = 0x1; -pub const O_RDWR: ::c_int = 0x2; -pub const O_NDELAY: ::c_int = 0x8000; -pub const O_APPEND: ::c_int = 0x8; -pub const O_DSYNC: ::c_int = 0x400000; -pub const O_CREAT: ::c_int = 0x100; -pub const O_EXCL: ::c_int = 0x400; -pub const O_NOCTTY: ::c_int = 0x800; -pub const O_TRUNC: ::c_int = 0x200; -pub const O_NOFOLLOW: ::c_int = 0x1000000; -pub const O_DIRECTORY: ::c_int = 0x80000; -pub const O_SEARCH: ::c_int = 0x20; -pub const O_EXEC: ::c_int = 0x20; -pub const O_CLOEXEC: ::c_int = 0x800000; -pub const O_ACCMODE: ::c_int = O_RDONLY | O_WRONLY | O_RDWR; -pub const O_DIRECT: ::c_int = 0x8000000; -pub const O_TTY_INIT: ::c_int = 0; -pub const O_RSYNC: ::c_int = 0x200000; -pub const O_LARGEFILE: ::c_int = 0x4000000; -pub const F_CLOSEM: ::c_int = 10; -pub const F_DUPFD_CLOEXEC: ::c_int = 16; -pub const F_GETLK64: ::c_int = 11; -pub const F_SETLK64: ::c_int = 12; -pub const F_SETLKW64: ::c_int = 13; -pub const F_DUP2FD: ::c_int = 14; -pub const F_TSTLK: ::c_int = 15; -pub const F_GETLK: ::c_int = F_GETLK64; -pub const F_SETLK: ::c_int = F_SETLK64; -pub const F_SETLKW: ::c_int = F_SETLKW64; -pub const F_GETOWN: ::c_int = 8; -pub const F_SETOWN: ::c_int = 9; -pub const AT_FDCWD: ::c_int = -2; -pub const AT_SYMLINK_NOFOLLOW: ::c_int = 1; -pub const AT_SYMLINK_FOLLOW: ::c_int = 2; -pub const AT_REMOVEDIR: ::c_int = 1; -pub const AT_EACCESS: ::c_int = 1; -pub const F_DUPFD: ::c_int = 0; -pub const F_GETFD: ::c_int = 1; -pub const F_SETFD: ::c_int = 2; -pub const F_GETFL: ::c_int = 3; -pub const F_SETFL: ::c_int = 4; -pub const O_SYNC: ::c_int = 16; -pub const O_NONBLOCK: ::c_int = 4; -pub const FASYNC: ::c_int = 0x20000; -pub const POSIX_FADV_NORMAL: ::c_int = 1; -pub const POSIX_FADV_SEQUENTIAL: ::c_int = 2; -pub const POSIX_FADV_RANDOM: ::c_int = 3; -pub const POSIX_FADV_WILLNEED: ::c_int = 4; -pub const POSIX_FADV_DONTNEED: ::c_int = 5; -pub const POSIX_FADV_NOREUSE: ::c_int = 6; - -// glob.h -pub const GLOB_APPEND: ::c_int = 0x1; -pub const GLOB_DOOFFS: ::c_int = 0x2; -pub const GLOB_ERR: ::c_int = 0x4; -pub const GLOB_MARK: ::c_int = 0x8; -pub const GLOB_NOCHECK: ::c_int = 0x10; -pub const GLOB_NOSORT: ::c_int = 0x20; -pub const GLOB_NOESCAPE: ::c_int = 0x80; -pub const GLOB_NOSPACE: ::c_int = 0x2000; -pub const GLOB_ABORTED: ::c_int = 0x1000; -pub const GLOB_NOMATCH: ::c_int = 0x4000; -pub const GLOB_NOSYS: ::c_int = 0x8000; - -// langinfo.h -pub const DAY_1: ::nl_item = 13; -pub const DAY_2: ::nl_item = 14; -pub const DAY_3: ::nl_item = 15; -pub const DAY_4: ::nl_item = 16; -pub const DAY_5: ::nl_item = 17; -pub const DAY_6: ::nl_item = 18; -pub const DAY_7: ::nl_item = 19; -pub const ABDAY_1: ::nl_item = 6; -pub const ABDAY_2: ::nl_item = 7; -pub const ABDAY_3: ::nl_item = 8; -pub const ABDAY_4: ::nl_item = 9; -pub const ABDAY_5: ::nl_item = 10; -pub const ABDAY_6: ::nl_item = 11; -pub const ABDAY_7: ::nl_item = 12; -pub const MON_1: ::nl_item = 32; -pub const MON_2: ::nl_item = 33; -pub const MON_3: ::nl_item = 34; -pub const MON_4: ::nl_item = 35; -pub const MON_5: ::nl_item = 36; -pub const MON_6: ::nl_item = 37; -pub const MON_7: ::nl_item = 38; -pub const MON_8: ::nl_item = 39; -pub const MON_9: ::nl_item = 40; -pub const MON_10: ::nl_item = 41; -pub const MON_11: ::nl_item = 42; -pub const MON_12: ::nl_item = 43; -pub const ABMON_1: ::nl_item = 20; -pub const ABMON_2: ::nl_item = 21; -pub const ABMON_3: ::nl_item = 22; -pub const ABMON_4: ::nl_item = 23; -pub const ABMON_5: ::nl_item = 24; -pub const ABMON_6: ::nl_item = 25; -pub const ABMON_7: ::nl_item = 26; -pub const ABMON_8: ::nl_item = 27; -pub const ABMON_9: ::nl_item = 28; -pub const ABMON_10: ::nl_item = 29; -pub const ABMON_11: ::nl_item = 30; -pub const ABMON_12: ::nl_item = 31; -pub const RADIXCHAR: ::nl_item = 44; -pub const THOUSEP: ::nl_item = 45; -pub const YESSTR: ::nl_item = 46; -pub const NOSTR: ::nl_item = 47; -pub const CRNCYSTR: ::nl_item = 48; -pub const D_T_FMT: ::nl_item = 1; -pub const D_FMT: ::nl_item = 2; -pub const T_FMT: ::nl_item = 3; -pub const AM_STR: ::nl_item = 4; -pub const PM_STR: ::nl_item = 5; -pub const CODESET: ::nl_item = 49; -pub const T_FMT_AMPM: ::nl_item = 55; -pub const ERA: ::nl_item = 56; -pub const ERA_D_FMT: ::nl_item = 57; -pub const ERA_D_T_FMT: ::nl_item = 58; -pub const ERA_T_FMT: ::nl_item = 59; -pub const ALT_DIGITS: ::nl_item = 60; -pub const YESEXPR: ::nl_item = 61; -pub const NOEXPR: ::nl_item = 62; - -// locale.h -pub const LC_GLOBAL_LOCALE: ::locale_t = -1isize as ::locale_t; -pub const LC_CTYPE: ::c_int = 1; -pub const LC_NUMERIC: ::c_int = 3; -pub const LC_TIME: ::c_int = 4; -pub const LC_COLLATE: ::c_int = 0; -pub const LC_MONETARY: ::c_int = 2; -pub const LC_MESSAGES: ::c_int = 4; -pub const LC_ALL: ::c_int = -1; -pub const LC_CTYPE_MASK: ::c_int = 2; -pub const LC_NUMERIC_MASK: ::c_int = 16; -pub const LC_TIME_MASK: ::c_int = 32; -pub const LC_COLLATE_MASK: ::c_int = 1; -pub const LC_MONETARY_MASK: ::c_int = 8; -pub const LC_MESSAGES_MASK: ::c_int = 4; -pub const LC_ALL_MASK: ::c_int = LC_CTYPE_MASK - | LC_NUMERIC_MASK - | LC_TIME_MASK - | LC_COLLATE_MASK - | LC_MONETARY_MASK - | LC_MESSAGES_MASK; - -// netdb.h -pub const NI_MAXHOST: ::socklen_t = 1025; -pub const NI_MAXSERV: ::socklen_t = 32; -pub const NI_NOFQDN: ::socklen_t = 0x1; -pub const NI_NUMERICHOST: ::socklen_t = 0x2; -pub const NI_NAMEREQD: ::socklen_t = 0x4; -pub const NI_NUMERICSERV: ::socklen_t = 0x8; -pub const NI_DGRAM: ::socklen_t = 0x10; -pub const NI_NUMERICSCOPE: ::socklen_t = 0x40; -pub const EAI_AGAIN: ::c_int = 2; -pub const EAI_BADFLAGS: ::c_int = 3; -pub const EAI_FAIL: ::c_int = 4; -pub const EAI_FAMILY: ::c_int = 5; -pub const EAI_MEMORY: ::c_int = 6; -pub const EAI_NODATA: ::c_int = 7; -pub const EAI_NONAME: ::c_int = 8; -pub const EAI_SERVICE: ::c_int = 9; -pub const EAI_SOCKTYPE: ::c_int = 10; -pub const EAI_SYSTEM: ::c_int = 11; -pub const EAI_OVERFLOW: ::c_int = 13; -pub const AI_CANONNAME: ::c_int = 0x01; -pub const AI_PASSIVE: ::c_int = 0x02; -pub const AI_NUMERICHOST: ::c_int = 0x04; -pub const AI_ADDRCONFIG: ::c_int = 0x08; -pub const AI_V4MAPPED: ::c_int = 0x10; -pub const AI_ALL: ::c_int = 0x20; -pub const AI_NUMERICSERV: ::c_int = 0x40; -pub const AI_EXTFLAGS: ::c_int = 0x80; -pub const AI_DEFAULT: ::c_int = AI_V4MAPPED | AI_ADDRCONFIG; -pub const IPV6_ADDRFORM: ::c_int = 22; -pub const IPV6_ADDR_PREFERENCES: ::c_int = 74; -pub const IPV6_CHECKSUM: ::c_int = 39; -pub const IPV6_DONTFRAG: ::c_int = 45; -pub const IPV6_DSTOPTS: ::c_int = 54; -pub const IPV6_FLOWINFO_FLOWLABEL: ::c_int = 16777215; -pub const IPV6_FLOWINFO_PRIORITY: ::c_int = 251658240; -pub const IPV6_HOPLIMIT: ::c_int = 40; -pub const IPV6_HOPOPTS: ::c_int = 52; -pub const IPV6_NEXTHOP: ::c_int = 48; -pub const IPV6_PATHMTU: ::c_int = 46; -pub const IPV6_PKTINFO: ::c_int = 33; -pub const IPV6_PREFER_SRC_CGA: ::c_int = 16; -pub const IPV6_PREFER_SRC_COA: ::c_int = 2; -pub const IPV6_PREFER_SRC_HOME: ::c_int = 1; -pub const IPV6_PREFER_SRC_NONCGA: ::c_int = 32; -pub const IPV6_PREFER_SRC_PUBLIC: ::c_int = 4; -pub const IPV6_PREFER_SRC_TMP: ::c_int = 8; -pub const IPV6_RECVDSTOPTS: ::c_int = 56; -pub const IPV6_RECVHOPLIMIT: ::c_int = 41; -pub const IPV6_RECVHOPOPTS: ::c_int = 53; -pub const IPV6_RECVPATHMTU: ::c_int = 47; -pub const IPV6_RECVRTHDR: ::c_int = 51; -pub const IPV6_RECVTCLASS: ::c_int = 42; -pub const IPV6_RTHDR: ::c_int = 50; -pub const IPV6_RTHDRDSTOPTS: ::c_int = 55; -pub const IPV6_TCLASS: ::c_int = 43; - -// net/bpf.h -pub const DLT_NULL: ::c_int = 0x18; -pub const DLT_EN10MB: ::c_int = 0x6; -pub const DLT_EN3MB: ::c_int = 0x1a; -pub const DLT_AX25: ::c_int = 0x5; -pub const DLT_PRONET: ::c_int = 0xd; -pub const DLT_IEEE802: ::c_int = 0x7; -pub const DLT_ARCNET: ::c_int = 0x23; -pub const DLT_SLIP: ::c_int = 0x1c; -pub const DLT_PPP: ::c_int = 0x17; -pub const DLT_FDDI: ::c_int = 0xf; -pub const DLT_ATM: ::c_int = 0x25; -pub const DLT_IPOIB: ::c_int = 0xc7; -pub const BIOCSETF: ::c_ulong = 0x80104267; -pub const BIOCGRTIMEOUT: ::c_ulong = 0x4010426e; -pub const BIOCGBLEN: ::c_int = 0x40044266; -pub const BIOCSBLEN: ::c_int = 0xc0044266; -pub const BIOCFLUSH: ::c_int = 0x20004268; -pub const BIOCPROMISC: ::c_int = 0x20004269; -pub const BIOCGDLT: ::c_int = 0x4004426a; -pub const BIOCSRTIMEOUT: ::c_int = 0x8010426d; -pub const BIOCGSTATS: ::c_int = 0x4008426f; -pub const BIOCIMMEDIATE: ::c_int = 0x80044270; -pub const BIOCVERSION: ::c_int = 0x40044271; -pub const BIOCSDEVNO: ::c_int = 0x20004272; -pub const BIOCGETIF: ::c_ulong = 0x4020426b; -pub const BIOCSETIF: ::c_ulong = 0xffffffff8020426c; -pub const BPF_ABS: ::c_int = 32; -pub const BPF_ADD: ::c_int = 0; -pub const BPF_ALIGNMENT: ::c_ulong = 4; -pub const BPF_ALU: ::c_int = 4; -pub const BPF_AND: ::c_int = 80; -pub const BPF_B: ::c_int = 16; -pub const BPF_DIV: ::c_int = 48; -pub const BPF_H: ::c_int = 8; -pub const BPF_IMM: ::c_int = 0; -pub const BPF_IND: ::c_int = 64; -pub const BPF_JA: ::c_int = 0; -pub const BPF_JEQ: ::c_int = 16; -pub const BPF_JGE: ::c_int = 48; -pub const BPF_JGT: ::c_int = 32; -pub const BPF_JMP: ::c_int = 5; -pub const BPF_JSET: ::c_int = 64; -pub const BPF_K: ::c_int = 0; -pub const BPF_LD: ::c_int = 0; -pub const BPF_LDX: ::c_int = 1; -pub const BPF_LEN: ::c_int = 128; -pub const BPF_LSH: ::c_int = 96; -pub const BPF_MAXINSNS: ::c_int = 512; -pub const BPF_MEM: ::c_int = 96; -pub const BPF_MEMWORDS: ::c_int = 16; -pub const BPF_MISC: ::c_int = 7; -pub const BPF_MSH: ::c_int = 160; -pub const BPF_MUL: ::c_int = 32; -pub const BPF_NEG: ::c_int = 128; -pub const BPF_OR: ::c_int = 64; -pub const BPF_RET: ::c_int = 6; -pub const BPF_RSH: ::c_int = 112; -pub const BPF_ST: ::c_int = 2; -pub const BPF_STX: ::c_int = 3; -pub const BPF_SUB: ::c_int = 16; -pub const BPF_W: ::c_int = 0; -pub const BPF_X: ::c_int = 8; - -// net/if.h -pub const IFNET_SLOWHZ: ::c_int = 1; -pub const IFQ_MAXLEN: ::c_int = 50; -pub const IF_NAMESIZE: ::c_int = 16; -pub const IFNAMSIZ: ::c_int = 16; -pub const IFF_UP: ::c_int = 0x1; -pub const IFF_BROADCAST: ::c_int = 0x2; -pub const IFF_DEBUG: ::c_int = 0x4; -pub const IFF_LOOPBACK: ::c_int = 0x8; -pub const IFF_POINTOPOINT: ::c_int = 0x10; -pub const IFF_NOTRAILERS: ::c_int = 0x20; -pub const IFF_RUNNING: ::c_int = 0x40; -pub const IFF_NOARP: ::c_int = 0x80; -pub const IFF_PROMISC: ::c_int = 0x100; -pub const IFF_ALLMULTI: ::c_int = 0x200; -pub const IFF_MULTICAST: ::c_int = 0x80000; -pub const IFF_LINK0: ::c_int = 0x100000; -pub const IFF_LINK1: ::c_int = 0x200000; -pub const IFF_LINK2: ::c_int = 0x400000; -pub const IFF_OACTIVE: ::c_int = 0x400; -pub const IFF_SIMPLEX: ::c_int = 0x800; - -// net/if_arp.h -pub const ARPHRD_ETHER: ::c_int = 1; -pub const ARPHRD_802_5: ::c_int = 6; -pub const ARPHRD_802_3: ::c_int = 6; -pub const ARPHRD_FDDI: ::c_int = 1; -pub const ARPOP_REQUEST: ::c_int = 1; -pub const ARPOP_REPLY: ::c_int = 2; - -// net/route.h -pub const RTM_ADD: ::c_int = 0x1; -pub const RTM_DELETE: ::c_int = 0x2; -pub const RTM_CHANGE: ::c_int = 0x3; -pub const RTM_GET: ::c_int = 0x4; -pub const RTM_LOSING: ::c_int = 0x5; -pub const RTM_REDIRECT: ::c_int = 0x6; -pub const RTM_MISS: ::c_int = 0x7; -pub const RTM_LOCK: ::c_int = 0x8; -pub const RTM_OLDADD: ::c_int = 0x9; -pub const RTM_OLDDEL: ::c_int = 0xa; -pub const RTM_RESOLVE: ::c_int = 0xb; -pub const RTM_NEWADDR: ::c_int = 0xc; -pub const RTM_DELADDR: ::c_int = 0xd; -pub const RTM_IFINFO: ::c_int = 0xe; -pub const RTM_EXPIRE: ::c_int = 0xf; -pub const RTM_RTLOST: ::c_int = 0x10; -pub const RTM_GETNEXT: ::c_int = 0x11; -pub const RTM_SAMEADDR: ::c_int = 0x12; -pub const RTM_SET: ::c_int = 0x13; -pub const RTV_MTU: ::c_int = 0x1; -pub const RTV_HOPCOUNT: ::c_int = 0x2; -pub const RTV_EXPIRE: ::c_int = 0x4; -pub const RTV_RPIPE: ::c_int = 0x8; -pub const RTV_SPIPE: ::c_int = 0x10; -pub const RTV_SSTHRESH: ::c_int = 0x20; -pub const RTV_RTT: ::c_int = 0x40; -pub const RTV_RTTVAR: ::c_int = 0x80; -pub const RTA_DST: ::c_int = 0x1; -pub const RTA_GATEWAY: ::c_int = 0x2; -pub const RTA_NETMASK: ::c_int = 0x4; -pub const RTA_GENMASK: ::c_int = 0x8; -pub const RTA_IFP: ::c_int = 0x10; -pub const RTA_IFA: ::c_int = 0x20; -pub const RTA_AUTHOR: ::c_int = 0x40; -pub const RTA_BRD: ::c_int = 0x80; -pub const RTA_DOWNSTREAM: ::c_int = 0x100; -pub const RTAX_DST: ::c_int = 0; -pub const RTAX_GATEWAY: ::c_int = 1; -pub const RTAX_NETMASK: ::c_int = 2; -pub const RTAX_GENMASK: ::c_int = 3; -pub const RTAX_IFP: ::c_int = 4; -pub const RTAX_IFA: ::c_int = 5; -pub const RTAX_AUTHOR: ::c_int = 6; -pub const RTAX_BRD: ::c_int = 7; -pub const RTAX_MAX: ::c_int = 8; -pub const RTF_UP: ::c_int = 0x1; -pub const RTF_GATEWAY: ::c_int = 0x2; -pub const RTF_HOST: ::c_int = 0x4; -pub const RTF_REJECT: ::c_int = 0x8; -pub const RTF_DYNAMIC: ::c_int = 0x10; -pub const RTF_MODIFIED: ::c_int = 0x20; -pub const RTF_DONE: ::c_int = 0x40; -pub const RTF_MASK: ::c_int = 0x80; -pub const RTF_CLONING: ::c_int = 0x100; -pub const RTF_XRESOLVE: ::c_int = 0x200; -pub const RTF_LLINFO: ::c_int = 0x400; -pub const RTF_STATIC: ::c_int = 0x800; -pub const RTF_BLACKHOLE: ::c_int = 0x1000; -pub const RTF_BUL: ::c_int = 0x2000; -pub const RTF_PROTO2: ::c_int = 0x4000; -pub const RTF_PROTO1: ::c_int = 0x8000; -pub const RTF_CLONE: ::c_int = 0x10000; -pub const RTF_CLONED: ::c_int = 0x20000; -pub const RTF_PROTO3: ::c_int = 0x40000; -pub const RTF_BCE: ::c_int = 0x80000; -pub const RTF_PINNED: ::c_int = 0x100000; -pub const RTF_LOCAL: ::c_int = 0x200000; -pub const RTF_BROADCAST: ::c_int = 0x400000; -pub const RTF_MULTICAST: ::c_int = 0x800000; -pub const RTF_ACTIVE_DGD: ::c_int = 0x1000000; -pub const RTF_STOPSRCH: ::c_int = 0x2000000; -pub const RTF_FREE_IN_PROG: ::c_int = 0x4000000; -pub const RTF_PERMANENT6: ::c_int = 0x8000000; -pub const RTF_UNREACHABLE: ::c_int = 0x10000000; -pub const RTF_CACHED: ::c_int = 0x20000000; -pub const RTF_SMALLMTU: ::c_int = 0x40000; - -// netinet/in.h -pub const IPPROTO_HOPOPTS: ::c_int = 0; -pub const IPPROTO_IGMP: ::c_int = 2; -pub const IPPROTO_GGP: ::c_int = 3; -pub const IPPROTO_IPIP: ::c_int = 4; -pub const IPPROTO_EGP: ::c_int = 8; -pub const IPPROTO_PUP: ::c_int = 12; -pub const IPPROTO_IDP: ::c_int = 22; -pub const IPPROTO_TP: ::c_int = 29; -pub const IPPROTO_ROUTING: ::c_int = 43; -pub const IPPROTO_FRAGMENT: ::c_int = 44; -pub const IPPROTO_QOS: ::c_int = 45; -pub const IPPROTO_RSVP: ::c_int = 46; -pub const IPPROTO_GRE: ::c_int = 47; -pub const IPPROTO_ESP: ::c_int = 50; -pub const IPPROTO_AH: ::c_int = 51; -pub const IPPROTO_NONE: ::c_int = 59; -pub const IPPROTO_DSTOPTS: ::c_int = 60; -pub const IPPROTO_LOCAL: ::c_int = 63; -pub const IPPROTO_EON: ::c_int = 80; -pub const IPPROTO_BIP: ::c_int = 0x53; -pub const IPPROTO_SCTP: ::c_int = 132; -pub const IPPROTO_MH: ::c_int = 135; -pub const IPPROTO_GIF: ::c_int = 140; -pub const IPPROTO_RAW: ::c_int = 255; -pub const IPPROTO_MAX: ::c_int = 256; -pub const IP_OPTIONS: ::c_int = 1; -pub const IP_HDRINCL: ::c_int = 2; -pub const IP_TOS: ::c_int = 3; -pub const IP_TTL: ::c_int = 4; -pub const IP_UNICAST_HOPS: ::c_int = 4; -pub const IP_RECVOPTS: ::c_int = 5; -pub const IP_RECVRETOPTS: ::c_int = 6; -pub const IP_RECVDSTADDR: ::c_int = 7; -pub const IP_RETOPTS: ::c_int = 8; -pub const IP_MULTICAST_IF: ::c_int = 9; -pub const IP_MULTICAST_TTL: ::c_int = 10; -pub const IP_MULTICAST_HOPS: ::c_int = 10; -pub const IP_MULTICAST_LOOP: ::c_int = 11; -pub const IP_ADD_MEMBERSHIP: ::c_int = 12; -pub const IP_DROP_MEMBERSHIP: ::c_int = 13; -pub const IP_RECVMACHDR: ::c_int = 14; -pub const IP_RECVIFINFO: ::c_int = 15; -pub const IP_BROADCAST_IF: ::c_int = 16; -pub const IP_DHCPMODE: ::c_int = 17; -pub const IP_RECVIF: ::c_int = 20; -pub const IP_ADDRFORM: ::c_int = 22; -pub const IP_DONTFRAG: ::c_int = 25; -pub const IP_FINDPMTU: ::c_int = 26; -pub const IP_PMTUAGE: ::c_int = 27; -pub const IP_RECVINTERFACE: ::c_int = 32; -pub const IP_RECVTTL: ::c_int = 34; -pub const IP_BLOCK_SOURCE: ::c_int = 58; -pub const IP_UNBLOCK_SOURCE: ::c_int = 59; -pub const IP_ADD_SOURCE_MEMBERSHIP: ::c_int = 60; -pub const IP_DROP_SOURCE_MEMBERSHIP: ::c_int = 61; -pub const IP_DEFAULT_MULTICAST_TTL: ::c_int = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: ::c_int = 1; -pub const IP_INC_MEMBERSHIPS: ::c_int = 20; -pub const IP_INIT_MEMBERSHIP: ::c_int = 20; -pub const IPV6_UNICAST_HOPS: ::c_int = IP_TTL; -pub const IPV6_MULTICAST_IF: ::c_int = IP_MULTICAST_IF; -pub const IPV6_MULTICAST_HOPS: ::c_int = IP_MULTICAST_TTL; -pub const IPV6_MULTICAST_LOOP: ::c_int = IP_MULTICAST_LOOP; -pub const IPV6_RECVPKTINFO: ::c_int = 35; -pub const IPV6_V6ONLY: ::c_int = 37; -pub const IPV6_ADD_MEMBERSHIP: ::c_int = IP_ADD_MEMBERSHIP; -pub const IPV6_DROP_MEMBERSHIP: ::c_int = IP_DROP_MEMBERSHIP; -pub const IPV6_JOIN_GROUP: ::c_int = IP_ADD_MEMBERSHIP; -pub const IPV6_LEAVE_GROUP: ::c_int = IP_DROP_MEMBERSHIP; -pub const MCAST_BLOCK_SOURCE: ::c_int = 64; -pub const MCAST_EXCLUDE: ::c_int = 2; -pub const MCAST_INCLUDE: ::c_int = 1; -pub const MCAST_JOIN_GROUP: ::c_int = 62; -pub const MCAST_JOIN_SOURCE_GROUP: ::c_int = 66; -pub const MCAST_LEAVE_GROUP: ::c_int = 63; -pub const MCAST_LEAVE_SOURCE_GROUP: ::c_int = 67; -pub const MCAST_UNBLOCK_SOURCE: ::c_int = 65; - -// netinet/ip.h -pub const MAXTTL: ::c_int = 255; -pub const IPDEFTTL: ::c_int = 64; -pub const IPOPT_CONTROL: ::c_int = 0; -pub const IPOPT_EOL: ::c_int = 0; -pub const IPOPT_LSRR: ::c_int = 131; -pub const IPOPT_MINOFF: ::c_int = 4; -pub const IPOPT_NOP: ::c_int = 1; -pub const IPOPT_OFFSET: ::c_int = 2; -pub const IPOPT_OLEN: ::c_int = 1; -pub const IPOPT_OPTVAL: ::c_int = 0; -pub const IPOPT_RESERVED1: ::c_int = 0x20; -pub const IPOPT_RESERVED2: ::c_int = 0x60; -pub const IPOPT_RR: ::c_int = 7; -pub const IPOPT_SSRR: ::c_int = 137; -pub const IPOPT_TS: ::c_int = 68; -pub const IPOPT_TS_PRESPEC: ::c_int = 3; -pub const IPOPT_TS_TSANDADDR: ::c_int = 1; -pub const IPOPT_TS_TSONLY: ::c_int = 0; -pub const IPTOS_LOWDELAY: ::c_int = 16; -pub const IPTOS_PREC_CRITIC_ECP: ::c_int = 160; -pub const IPTOS_PREC_FLASH: ::c_int = 96; -pub const IPTOS_PREC_FLASHOVERRIDE: ::c_int = 128; -pub const IPTOS_PREC_IMMEDIATE: ::c_int = 64; -pub const IPTOS_PREC_INTERNETCONTROL: ::c_int = 192; -pub const IPTOS_PREC_NETCONTROL: ::c_int = 224; -pub const IPTOS_PREC_PRIORITY: ::c_int = 32; -pub const IPTOS_PREC_ROUTINE: ::c_int = 16; -pub const IPTOS_RELIABILITY: ::c_int = 4; -pub const IPTOS_THROUGHPUT: ::c_int = 8; -pub const IPVERSION: ::c_int = 4; - -// netinet/tcp.h -pub const TCP_NODELAY: ::c_int = 0x1; -pub const TCP_MAXSEG: ::c_int = 0x2; -pub const TCP_RFC1323: ::c_int = 0x4; -pub const TCP_KEEPALIVE: ::c_int = 0x8; -pub const TCP_KEEPIDLE: ::c_int = 0x11; -pub const TCP_KEEPINTVL: ::c_int = 0x12; -pub const TCP_KEEPCNT: ::c_int = 0x13; -pub const TCP_NODELAYACK: ::c_int = 0x14; - -// pthread.h -pub const PTHREAD_CREATE_JOINABLE: ::c_int = 0; -pub const PTHREAD_CREATE_DETACHED: ::c_int = 1; -pub const PTHREAD_PROCESS_SHARED: ::c_int = 0; -pub const PTHREAD_PROCESS_PRIVATE: ::c_ushort = 1; -pub const PTHREAD_STACK_MIN: ::size_t = PAGESIZE as ::size_t * 4; -pub const PTHREAD_MUTEX_NORMAL: ::c_int = 5; -pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 3; -pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 4; -pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL; -pub const PTHREAD_MUTEX_ROBUST: ::c_int = 1; -pub const PTHREAD_MUTEX_STALLED: ::c_int = 0; -pub const PTHREAD_PRIO_INHERIT: ::c_int = 3; -pub const PTHREAD_PRIO_NONE: ::c_int = 1; -pub const PTHREAD_PRIO_PROTECT: ::c_int = 2; - -// regex.h -pub const REG_EXTENDED: ::c_int = 1; -pub const REG_ICASE: ::c_int = 2; -pub const REG_NEWLINE: ::c_int = 4; -pub const REG_NOSUB: ::c_int = 8; -pub const REG_NOTBOL: ::c_int = 0x100; -pub const REG_NOTEOL: ::c_int = 0x200; -pub const REG_NOMATCH: ::c_int = 1; -pub const REG_BADPAT: ::c_int = 2; -pub const REG_ECOLLATE: ::c_int = 3; -pub const REG_ECTYPE: ::c_int = 4; -pub const REG_EESCAPE: ::c_int = 5; -pub const REG_ESUBREG: ::c_int = 6; -pub const REG_EBRACK: ::c_int = 7; -pub const REG_EPAREN: ::c_int = 8; -pub const REG_EBRACE: ::c_int = 9; -pub const REG_BADBR: ::c_int = 10; -pub const REG_ERANGE: ::c_int = 11; -pub const REG_ESPACE: ::c_int = 12; -pub const REG_BADRPT: ::c_int = 13; -pub const REG_ECHAR: ::c_int = 14; -pub const REG_EBOL: ::c_int = 15; -pub const REG_EEOL: ::c_int = 16; -pub const REG_ENOSYS: ::c_int = 17; - -// rpcsvc/mount.h -pub const NFSMNT_ACDIRMAX: ::c_int = 2048; -pub const NFSMNT_ACDIRMIN: ::c_int = 1024; -pub const NFSMNT_ACREGMAX: ::c_int = 512; -pub const NFSMNT_ACREGMIN: ::c_int = 256; -pub const NFSMNT_INT: ::c_int = 64; -pub const NFSMNT_NOAC: ::c_int = 128; -pub const NFSMNT_RETRANS: ::c_int = 16; -pub const NFSMNT_RSIZE: ::c_int = 4; -pub const NFSMNT_SOFT: ::c_int = 1; -pub const NFSMNT_TIMEO: ::c_int = 8; -pub const NFSMNT_WSIZE: ::c_int = 2; - -// rpcsvc/rstat.h -pub const CPUSTATES: ::c_int = 4; - -// search.h -pub const FIND: ::c_int = 0; -pub const ENTER: ::c_int = 1; - -// semaphore.h -pub const SEM_FAILED: *mut sem_t = -1isize as *mut ::sem_t; - -// spawn.h -pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x1; -pub const POSIX_SPAWN_SETSIGMASK: ::c_int = 0x2; -pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x4; -pub const POSIX_SPAWN_SETSCHEDULER: ::c_int = 0x8; -pub const POSIX_SPAWN_SETSCHEDPARAM: ::c_int = 0x10; -pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x20; -pub const POSIX_SPAWN_FORK_HANDLERS: ::c_int = 0x1000; - -// stdio.h -pub const EOF: ::c_int = -1; -pub const SEEK_SET: ::c_int = 0; -pub const SEEK_CUR: ::c_int = 1; -pub const SEEK_END: ::c_int = 2; -pub const _IOFBF: ::c_int = 0o000; -pub const _IONBF: ::c_int = 0o004; -pub const _IOLBF: ::c_int = 0o100; -pub const BUFSIZ: ::c_uint = 4096; -pub const FOPEN_MAX: ::c_uint = 32767; -pub const FILENAME_MAX: ::c_uint = 255; -pub const L_tmpnam: ::c_uint = 21; -pub const TMP_MAX: ::c_uint = 16384; - -// stdlib.h -pub const EXIT_FAILURE: ::c_int = 1; -pub const EXIT_SUCCESS: ::c_int = 0; -pub const RAND_MAX: ::c_int = 32767; - -// sys/access.h -pub const F_OK: ::c_int = 0; -pub const R_OK: ::c_int = 4; -pub const W_OK: ::c_int = 2; -pub const X_OK: ::c_int = 1; - -// sys/aio.h -pub const LIO_NOP: ::c_int = 0; -pub const LIO_READ: ::c_int = 1; -pub const LIO_WRITE: ::c_int = 2; -pub const LIO_NOWAIT: ::c_int = 0; -pub const LIO_WAIT: ::c_int = 1; -pub const AIO_ALLDONE: ::c_int = 2; -pub const AIO_CANCELED: ::c_int = 0; -pub const AIO_NOTCANCELED: ::c_int = 1; - -// sys/errno.h -pub const EPERM: ::c_int = 1; -pub const ENOENT: ::c_int = 2; -pub const ESRCH: ::c_int = 3; -pub const EINTR: ::c_int = 4; -pub const EIO: ::c_int = 5; -pub const ENXIO: ::c_int = 6; -pub const E2BIG: ::c_int = 7; -pub const ENOEXEC: ::c_int = 8; -pub const EBADF: ::c_int = 9; -pub const ECHILD: ::c_int = 10; -pub const EAGAIN: ::c_int = 11; -pub const ENOMEM: ::c_int = 12; -pub const EACCES: ::c_int = 13; -pub const EFAULT: ::c_int = 14; -pub const ENOTBLK: ::c_int = 15; -pub const EBUSY: ::c_int = 16; -pub const EEXIST: ::c_int = 17; -pub const EXDEV: ::c_int = 18; -pub const ENODEV: ::c_int = 19; -pub const ENOTDIR: ::c_int = 20; -pub const EISDIR: ::c_int = 21; -pub const EINVAL: ::c_int = 22; -pub const ENFILE: ::c_int = 23; -pub const EMFILE: ::c_int = 24; -pub const ENOTTY: ::c_int = 25; -pub const ETXTBSY: ::c_int = 26; -pub const EFBIG: ::c_int = 27; -pub const ENOSPC: ::c_int = 28; -pub const ESPIPE: ::c_int = 29; -pub const EROFS: ::c_int = 30; -pub const EMLINK: ::c_int = 31; -pub const EPIPE: ::c_int = 32; -pub const EDOM: ::c_int = 33; -pub const ERANGE: ::c_int = 34; -pub const ENOMSG: ::c_int = 35; -pub const EIDRM: ::c_int = 36; -pub const ECHRNG: ::c_int = 37; -pub const EL2NSYNC: ::c_int = 38; -pub const EL3HLT: ::c_int = 39; -pub const EL3RST: ::c_int = 40; -pub const ELNRNG: ::c_int = 41; -pub const EUNATCH: ::c_int = 42; -pub const ENOCSI: ::c_int = 43; -pub const EL2HLT: ::c_int = 44; -pub const EDEADLK: ::c_int = 45; -pub const ENOLCK: ::c_int = 49; -pub const ECANCELED: ::c_int = 117; -pub const ENOTSUP: ::c_int = 124; -pub const EPROCLIM: ::c_int = 83; -pub const EDQUOT: ::c_int = 88; -pub const EOWNERDEAD: ::c_int = 95; -pub const ENOTRECOVERABLE: ::c_int = 94; -pub const ENOSTR: ::c_int = 123; -pub const ENODATA: ::c_int = 122; -pub const ETIME: ::c_int = 119; -pub const ENOSR: ::c_int = 118; -pub const EREMOTE: ::c_int = 93; -pub const ENOATTR: ::c_int = 112; -pub const ESAD: ::c_int = 113; -pub const ENOTRUST: ::c_int = 114; -pub const ENOLINK: ::c_int = 126; -pub const EPROTO: ::c_int = 121; -pub const EMULTIHOP: ::c_int = 125; -pub const EBADMSG: ::c_int = 120; -pub const ENAMETOOLONG: ::c_int = 86; -pub const EOVERFLOW: ::c_int = 127; -pub const EILSEQ: ::c_int = 116; -pub const ENOSYS: ::c_int = 109; -pub const ELOOP: ::c_int = 85; -pub const ERESTART: ::c_int = 82; -pub const ENOTEMPTY: ::c_int = 87; -pub const EUSERS: ::c_int = 84; -pub const ENOTSOCK: ::c_int = 57; -pub const EDESTADDRREQ: ::c_int = 58; -pub const EMSGSIZE: ::c_int = 59; -pub const EPROTOTYPE: ::c_int = 60; -pub const ENOPROTOOPT: ::c_int = 61; -pub const EPROTONOSUPPORT: ::c_int = 62; -pub const ESOCKTNOSUPPORT: ::c_int = 63; -pub const EOPNOTSUPP: ::c_int = 64; -pub const EPFNOSUPPORT: ::c_int = 65; -pub const EAFNOSUPPORT: ::c_int = 66; -pub const EADDRINUSE: ::c_int = 67; -pub const EADDRNOTAVAIL: ::c_int = 68; -pub const ENETDOWN: ::c_int = 69; -pub const ENETUNREACH: ::c_int = 70; -pub const ENETRESET: ::c_int = 71; -pub const ECONNABORTED: ::c_int = 72; -pub const ECONNRESET: ::c_int = 73; -pub const ENOBUFS: ::c_int = 74; -pub const EISCONN: ::c_int = 75; -pub const ENOTCONN: ::c_int = 76; -pub const ESHUTDOWN: ::c_int = 77; -pub const ETOOMANYREFS: ::c_int = 115; -pub const ETIMEDOUT: ::c_int = 78; -pub const ECONNREFUSED: ::c_int = 79; -pub const EHOSTDOWN: ::c_int = 80; -pub const EHOSTUNREACH: ::c_int = 81; -pub const EWOULDBLOCK: ::c_int = EAGAIN; -pub const EALREADY: ::c_int = 56; -pub const EINPROGRESS: ::c_int = 55; -pub const ESTALE: ::c_int = 52; - -// sys/dr.h -pub const LPAR_INFO_FORMAT1: ::c_int = 1; -pub const LPAR_INFO_FORMAT2: ::c_int = 2; -pub const WPAR_INFO_FORMAT: ::c_int = 3; -pub const PROC_MODULE_INFO: ::c_int = 4; -pub const NUM_PROC_MODULE_TYPES: ::c_int = 5; -pub const LPAR_INFO_VRME_NUM_POOLS: ::c_int = 6; -pub const LPAR_INFO_VRME_POOLS: ::c_int = 7; -pub const LPAR_INFO_VRME_LPAR: ::c_int = 8; -pub const LPAR_INFO_VRME_RESET_HWMARKS: ::c_int = 9; -pub const LPAR_INFO_VRME_ALLOW_DESIRED: ::c_int = 10; -pub const EMTP_INFO_FORMAT: ::c_int = 11; -pub const LPAR_INFO_LPM_CAPABILITY: ::c_int = 12; -pub const ENERGYSCALE_INFO: ::c_int = 13; - -// sys/file.h -pub const LOCK_SH: ::c_int = 1; -pub const LOCK_EX: ::c_int = 2; -pub const LOCK_NB: ::c_int = 4; -pub const LOCK_UN: ::c_int = 8; - -// sys/flock.h -pub const F_RDLCK: ::c_short = 0o01; -pub const F_WRLCK: ::c_short = 0o02; -pub const F_UNLCK: ::c_short = 0o03; - -// sys/fs/quota_common.h -pub const Q_QUOTAON: ::c_int = 0x100; -pub const Q_QUOTAOFF: ::c_int = 0x200; -pub const Q_SETUSE: ::c_int = 0x500; -pub const Q_SYNC: ::c_int = 0x600; -pub const Q_GETQUOTA: ::c_int = 0x300; -pub const Q_SETQLIM: ::c_int = 0x400; -pub const Q_SETQUOTA: ::c_int = 0x400; - -// sys/ioctl.h -pub const IOCPARM_MASK: ::c_int = 0x7f; -pub const IOC_VOID: ::c_int = 0x20000000; -pub const IOC_OUT: ::c_int = 0x40000000; -pub const IOC_IN: ::c_int = 0x40000000 << 1; -pub const IOC_INOUT: ::c_int = IOC_IN | IOC_OUT; -pub const FIOCLEX: ::c_int = 536897025; -pub const FIONCLEX: ::c_int = 536897026; -pub const FIONREAD: ::c_int = 1074030207; -pub const FIONBIO: ::c_int = -2147195266; -pub const FIOASYNC: ::c_int = -2147195267; -pub const FIOSETOWN: ::c_int = -2147195268; -pub const FIOGETOWN: ::c_int = 1074030203; -pub const TIOCGETD: ::c_int = 0x40047400; -pub const TIOCSETD: ::c_int = 0x80047401; -pub const TIOCHPCL: ::c_int = 0x20007402; -pub const TIOCMODG: ::c_int = 0x40047403; -pub const TIOCMODS: ::c_int = 0x80047404; -pub const TIOCM_LE: ::c_int = 0x1; -pub const TIOCM_DTR: ::c_int = 0x2; -pub const TIOCM_RTS: ::c_int = 0x4; -pub const TIOCM_ST: ::c_int = 0x8; -pub const TIOCM_SR: ::c_int = 0x10; -pub const TIOCM_CTS: ::c_int = 0x20; -pub const TIOCM_CAR: ::c_int = 0x40; -pub const TIOCM_CD: ::c_int = 0x40; -pub const TIOCM_RNG: ::c_int = 0x80; -pub const TIOCM_RI: ::c_int = 0x80; -pub const TIOCM_DSR: ::c_int = 0x100; -pub const TIOCGETP: ::c_int = 0x40067408; -pub const TIOCSETP: ::c_int = 0x80067409; -pub const TIOCSETN: ::c_int = 0x8006740a; -pub const TIOCEXCL: ::c_int = 0x2000740d; -pub const TIOCNXCL: ::c_int = 0x2000740e; -pub const TIOCFLUSH: ::c_int = 0x80047410; -pub const TIOCSETC: ::c_int = 0x80067411; -pub const TIOCGETC: ::c_int = 0x40067412; -pub const TANDEM: ::c_int = 0x1; -pub const CBREAK: ::c_int = 0x2; -pub const LCASE: ::c_int = 0x4; -pub const MDMBUF: ::c_int = 0x800000; -pub const XTABS: ::c_int = 0xc00; -pub const SIOCADDMULTI: ::c_int = -2145359567; -pub const SIOCADDRT: ::c_int = -2143784438; -pub const SIOCDARP: ::c_int = -2142476000; -pub const SIOCDELMULTI: ::c_int = -2145359566; -pub const SIOCDELRT: ::c_int = -2143784437; -pub const SIOCDIFADDR: ::c_int = -2144835303; -pub const SIOCGARP: ::c_int = -1068734170; -pub const SIOCGIFADDR: ::c_int = -1071093471; -pub const SIOCGIFBRDADDR: ::c_int = -1071093469; -pub const SIOCGIFCONF: ::c_int = -1072666299; -pub const SIOCGIFDSTADDR: ::c_int = -1071093470; -pub const SIOCGIFFLAGS: ::c_int = -1071093487; -pub const SIOCGIFHWADDR: ::c_int = -1068209771; -pub const SIOCGIFMETRIC: ::c_int = -1071093481; -pub const SIOCGIFMTU: ::c_int = -1071093418; -pub const SIOCGIFNETMASK: ::c_int = -1071093467; -pub const SIOCSARP: ::c_int = -2142476002; -pub const SIOCSIFADDR: ::c_int = -2144835316; -pub const SIOCSIFBRDADDR: ::c_int = -2144835309; -pub const SIOCSIFDSTADDR: ::c_int = -2144835314; -pub const SIOCSIFFLAGS: ::c_int = -2144835312; -pub const SIOCSIFMETRIC: ::c_int = -2144835304; -pub const SIOCSIFMTU: ::c_int = -2144835240; -pub const SIOCSIFNETMASK: ::c_int = -2144835306; -pub const TIOCUCNTL: ::c_int = -2147191706; -pub const TIOCCONS: ::c_int = -2147191710; -pub const TIOCPKT: ::c_int = -2147191696; -pub const TIOCPKT_DATA: ::c_int = 0; -pub const TIOCPKT_FLUSHREAD: ::c_int = 1; -pub const TIOCPKT_FLUSHWRITE: ::c_int = 2; -pub const TIOCPKT_NOSTOP: ::c_int = 0x10; -pub const TIOCPKT_DOSTOP: ::c_int = 0x20; -pub const TIOCPKT_START: ::c_int = 8; -pub const TIOCPKT_STOP: ::c_int = 4; - -// sys/ipc.h -pub const IPC_ALLOC: ::c_int = 0o100000; -pub const IPC_CREAT: ::c_int = 0o020000; -pub const IPC_EXCL: ::c_int = 0o002000; -pub const IPC_NOWAIT: ::c_int = 0o004000; -pub const IPC_RMID: ::c_int = 0; -pub const IPC_SET: ::c_int = 101; -pub const IPC_R: ::c_int = 0o0400; -pub const IPC_W: ::c_int = 0o0200; -pub const IPC_O: ::c_int = 0o1000; -pub const IPC_NOERROR: ::c_int = 0o10000; -pub const IPC_STAT: ::c_int = 102; -pub const IPC_PRIVATE: ::key_t = -1; -pub const SHM_LOCK: ::c_int = 201; -pub const SHM_UNLOCK: ::c_int = 202; - -// sys/ldr.h -pub const L_GETINFO: ::c_int = 2; -pub const L_GETMESSAGE: ::c_int = 1; -pub const L_GETLIBPATH: ::c_int = 3; -pub const L_GETXINFO: ::c_int = 8; - -// sys/limits.h -pub const PATH_MAX: ::c_int = 1023; -pub const PAGESIZE: ::c_int = 4096; -pub const IOV_MAX: ::c_int = 16; -pub const AIO_LISTIO_MAX: ::c_int = 4096; -pub const PIPE_BUF: usize = 32768; -pub const OPEN_MAX: ::c_int = 65534; -pub const MAX_INPUT: ::c_int = 512; -pub const MAX_CANON: ::c_int = 256; -pub const ARG_MAX: ::c_int = 1048576; -pub const BC_BASE_MAX: ::c_int = 99; -pub const BC_DIM_MAX: ::c_int = 0x800; -pub const BC_SCALE_MAX: ::c_int = 99; -pub const BC_STRING_MAX: ::c_int = 0x800; -pub const CHARCLASS_NAME_MAX: ::c_int = 14; -pub const CHILD_MAX: ::c_int = 128; -pub const COLL_WEIGHTS_MAX: ::c_int = 4; -pub const EXPR_NEST_MAX: ::c_int = 32; -pub const NZERO: ::c_int = 20; - -// sys/lockf.h -pub const F_LOCK: ::c_int = 1; -pub const F_TEST: ::c_int = 3; -pub const F_TLOCK: ::c_int = 2; -pub const F_ULOCK: ::c_int = 0; - -// sys/machine.h -pub const BIG_ENDIAN: ::c_int = 4321; -pub const LITTLE_ENDIAN: ::c_int = 1234; -pub const PDP_ENDIAN: ::c_int = 3412; - -// sys/mman.h -pub const PROT_NONE: ::c_int = 0; -pub const PROT_READ: ::c_int = 1; -pub const PROT_WRITE: ::c_int = 2; -pub const PROT_EXEC: ::c_int = 4; -pub const MAP_FILE: ::c_int = 0; -pub const MAP_SHARED: ::c_int = 1; -pub const MAP_PRIVATE: ::c_int = 2; -pub const MAP_FIXED: ::c_int = 0x100; -pub const MAP_ANON: ::c_int = 0x10; -pub const MAP_ANONYMOUS: ::c_int = 0x10; -pub const MAP_FAILED: *mut ::c_void = !0 as *mut ::c_void; -pub const MAP_TYPE: ::c_int = 0xf0; -pub const MCL_CURRENT: ::c_int = 0x100; -pub const MCL_FUTURE: ::c_int = 0x200; -pub const MS_SYNC: ::c_int = 0x20; -pub const MS_ASYNC: ::c_int = 0x10; -pub const MS_INVALIDATE: ::c_int = 0x40; -pub const POSIX_MADV_NORMAL: ::c_int = 1; -pub const POSIX_MADV_RANDOM: ::c_int = 3; -pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2; -pub const POSIX_MADV_WILLNEED: ::c_int = 4; -pub const POSIX_MADV_DONTNEED: ::c_int = 5; -pub const MADV_NORMAL: ::c_int = 0; -pub const MADV_RANDOM: ::c_int = 1; -pub const MADV_SEQUENTIAL: ::c_int = 2; -pub const MADV_WILLNEED: ::c_int = 3; -pub const MADV_DONTNEED: ::c_int = 4; - -// sys/mode.h -pub const S_IFMT: mode_t = 0o170000; -pub const S_IFREG: mode_t = 0o100000; -pub const S_IFDIR: mode_t = 0o40000; -pub const S_IFBLK: mode_t = 0o60000; -pub const S_IFCHR: mode_t = 0o20000; -pub const S_IFIFO: mode_t = 0o10000; -pub const S_IRWXU: mode_t = 0o700; -pub const S_IRUSR: mode_t = 0o400; -pub const S_IWUSR: mode_t = 0o200; -pub const S_IXUSR: mode_t = 0o100; -pub const S_IRWXG: mode_t = 0o70; -pub const S_IRGRP: mode_t = 0o40; -pub const S_IWGRP: mode_t = 0o20; -pub const S_IXGRP: mode_t = 0o10; -pub const S_IRWXO: mode_t = 7; -pub const S_IROTH: mode_t = 4; -pub const S_IWOTH: mode_t = 2; -pub const S_IXOTH: mode_t = 1; -pub const S_IFLNK: mode_t = 0o120000; -pub const S_IFSOCK: mode_t = 0o140000; -pub const S_IEXEC: mode_t = 0o100; -pub const S_IWRITE: mode_t = 0o200; -pub const S_IREAD: mode_t = 0o400; - -// sys/msg.h -pub const MSG_NOERROR: ::c_int = 0o10000; - -// sys/m_signal.h -pub const SIGSTKSZ: ::size_t = 4096; -pub const MINSIGSTKSZ: ::size_t = 1200; - -// sys/params.h -pub const MAXPATHLEN: ::c_int = PATH_MAX + 1; -pub const MAXSYMLINKS: ::c_int = 20; -pub const MAXHOSTNAMELEN: ::c_int = 256; -pub const MAXUPRC: ::c_int = 128; -pub const NGROUPS_MAX: ::c_ulong = 2048; -pub const NGROUPS: ::c_ulong = NGROUPS_MAX; -pub const NOFILE: ::c_int = OPEN_MAX; - -// sys/poll.h -pub const POLLIN: ::c_short = 0x0001; -pub const POLLPRI: ::c_short = 0x0004; -pub const POLLOUT: ::c_short = 0x0002; -pub const POLLERR: ::c_short = 0x4000; -pub const POLLHUP: ::c_short = 0x2000; -pub const POLLMSG: ::c_short = 0x0080; -pub const POLLSYNC: ::c_short = 0x8000; -pub const POLLNVAL: ::c_short = POLLSYNC; -pub const POLLNORM: ::c_short = POLLIN; -pub const POLLRDNORM: ::c_short = 0x0010; -pub const POLLWRNORM: ::c_short = POLLOUT; -pub const POLLRDBAND: ::c_short = 0x0020; -pub const POLLWRBAND: ::c_short = 0x0040; - -// sys/pollset.h -pub const PS_ADD: ::c_uchar = 0; -pub const PS_MOD: ::c_uchar = 1; -pub const PS_DELETE: ::c_uchar = 2; -pub const PS_REPLACE: ::c_uchar = 3; - -// sys/ptrace.h -pub const PT_TRACE_ME: ::c_int = 0; -pub const PT_READ_I: ::c_int = 1; -pub const PT_READ_D: ::c_int = 2; -pub const PT_WRITE_I: ::c_int = 4; -pub const PT_WRITE_D: ::c_int = 5; -pub const PT_CONTINUE: ::c_int = 7; -pub const PT_KILL: ::c_int = 8; -pub const PT_STEP: ::c_int = 9; -pub const PT_READ_GPR: ::c_int = 11; -pub const PT_READ_FPR: ::c_int = 12; -pub const PT_WRITE_GPR: ::c_int = 14; -pub const PT_WRITE_FPR: ::c_int = 15; -pub const PT_READ_BLOCK: ::c_int = 17; -pub const PT_WRITE_BLOCK: ::c_int = 19; -pub const PT_ATTACH: ::c_int = 30; -pub const PT_DETACH: ::c_int = 31; -pub const PT_REGSET: ::c_int = 32; -pub const PT_REATT: ::c_int = 33; -pub const PT_LDINFO: ::c_int = 34; -pub const PT_MULTI: ::c_int = 35; -pub const PT_NEXT: ::c_int = 36; -pub const PT_SET: ::c_int = 37; -pub const PT_CLEAR: ::c_int = 38; -pub const PT_LDXINFO: ::c_int = 39; -pub const PT_QUERY: ::c_int = 40; -pub const PT_WATCH: ::c_int = 41; -pub const PTT_CONTINUE: ::c_int = 50; -pub const PTT_STEP: ::c_int = 51; -pub const PTT_READ_SPRS: ::c_int = 52; -pub const PTT_WRITE_SPRS: ::c_int = 53; -pub const PTT_READ_GPRS: ::c_int = 54; -pub const PTT_WRITE_GPRS: ::c_int = 55; -pub const PTT_READ_FPRS: ::c_int = 56; -pub const PTT_WRITE_FPRS: ::c_int = 57; -pub const PTT_READ_VEC: ::c_int = 58; -pub const PTT_WRITE_VEC: ::c_int = 59; -pub const PTT_WATCH: ::c_int = 60; -pub const PTT_SET_TRAP: ::c_int = 61; -pub const PTT_CLEAR_TRAP: ::c_int = 62; -pub const PTT_READ_UKEYSET: ::c_int = 63; -pub const PT_GET_UKEY: ::c_int = 64; -pub const PTT_READ_FPSCR_HI: ::c_int = 65; -pub const PTT_WRITE_FPSCR_HI: ::c_int = 66; -pub const PTT_READ_VSX: ::c_int = 67; -pub const PTT_WRITE_VSX: ::c_int = 68; -pub const PTT_READ_TM: ::c_int = 69; -pub const PTRACE_ATTACH: ::c_int = 14; -pub const PTRACE_CONT: ::c_int = 7; -pub const PTRACE_DETACH: ::c_int = 15; -pub const PTRACE_GETFPREGS: ::c_int = 12; -pub const PTRACE_GETREGS: ::c_int = 10; -pub const PTRACE_KILL: ::c_int = 8; -pub const PTRACE_PEEKDATA: ::c_int = 2; -pub const PTRACE_PEEKTEXT: ::c_int = 1; -pub const PTRACE_PEEKUSER: ::c_int = 3; -pub const PTRACE_POKEDATA: ::c_int = 5; -pub const PTRACE_POKETEXT: ::c_int = 4; -pub const PTRACE_POKEUSER: ::c_int = 6; -pub const PTRACE_SETFPREGS: ::c_int = 13; -pub const PTRACE_SETREGS: ::c_int = 11; -pub const PTRACE_SINGLESTEP: ::c_int = 9; -pub const PTRACE_SYSCALL: ::c_int = 16; -pub const PTRACE_TRACEME: ::c_int = 0; - -// sys/resource.h -pub const RLIMIT_CPU: ::c_int = 0; -pub const RLIMIT_FSIZE: ::c_int = 1; -pub const RLIMIT_DATA: ::c_int = 2; -pub const RLIMIT_STACK: ::c_int = 3; -pub const RLIMIT_CORE: ::c_int = 4; -pub const RLIMIT_RSS: ::c_int = 5; -pub const RLIMIT_AS: ::c_int = 6; -pub const RLIMIT_NOFILE: ::c_int = 7; -pub const RLIMIT_THREADS: ::c_int = 8; -pub const RLIMIT_NPROC: ::c_int = 9; -pub const RUSAGE_SELF: ::c_int = 0; -pub const RUSAGE_CHILDREN: ::c_int = -1; -pub const PRIO_PROCESS: ::c_int = 0; -pub const PRIO_PGRP: ::c_int = 1; -pub const PRIO_USER: ::c_int = 2; -pub const RUSAGE_THREAD: ::c_int = 1; -pub const RLIM_SAVED_MAX: ::c_ulong = RLIM_INFINITY - 1; -pub const RLIM_SAVED_CUR: ::c_ulong = RLIM_INFINITY - 2; -pub const RLIM_NLIMITS: ::c_int = 10; - -// sys/sched.h -pub const SCHED_OTHER: ::c_int = 0; -pub const SCHED_FIFO: ::c_int = 1; -pub const SCHED_RR: ::c_int = 2; -pub const SCHED_LOCAL: ::c_int = 3; -pub const SCHED_GLOBAL: ::c_int = 4; -pub const SCHED_FIFO2: ::c_int = 5; -pub const SCHED_FIFO3: ::c_int = 6; -pub const SCHED_FIFO4: ::c_int = 7; - -// sys/sem.h -pub const SEM_UNDO: ::c_int = 0o10000; -pub const GETNCNT: ::c_int = 3; -pub const GETPID: ::c_int = 4; -pub const GETVAL: ::c_int = 5; -pub const GETALL: ::c_int = 6; -pub const GETZCNT: ::c_int = 7; -pub const SETVAL: ::c_int = 8; -pub const SETALL: ::c_int = 9; - -// sys/shm.h -pub const SHMLBA: ::c_int = 0x10000000; -pub const SHMLBA_EXTSHM: ::c_int = 0x1000; -pub const SHM_SHMAT: ::c_int = 0x80000000; -pub const SHM_RDONLY: ::c_int = 0o10000; -pub const SHM_RND: ::c_int = 0o20000; -pub const SHM_PIN: ::c_int = 0o4000; -pub const SHM_LGPAGE: ::c_int = 0o20000000000; -pub const SHM_MAP: ::c_int = 0o4000; -pub const SHM_FMAP: ::c_int = 0o2000; -pub const SHM_COPY: ::c_int = 0o40000; -pub const SHM_CLEAR: ::c_int = 0; -pub const SHM_HGSEG: ::c_int = 0o10000000000; -pub const SHM_R: ::c_int = IPC_R; -pub const SHM_W: ::c_int = IPC_W; -pub const SHM_DEST: ::c_int = 0o2000; - -// sys/signal.h -pub const SA_ONSTACK: ::c_int = 0x00000001; -pub const SA_RESETHAND: ::c_int = 0x00000002; -pub const SA_RESTART: ::c_int = 0x00000008; -pub const SA_SIGINFO: ::c_int = 0x00000100; -pub const SA_NODEFER: ::c_int = 0x00000200; -pub const SA_NOCLDWAIT: ::c_int = 0x00000400; -pub const SA_NOCLDSTOP: ::c_int = 0x00000004; -pub const SS_ONSTACK: ::c_int = 0x00000001; -pub const SS_DISABLE: ::c_int = 0x00000002; -pub const SIGCHLD: ::c_int = 20; -pub const SIGBUS: ::c_int = 10; -pub const SIG_BLOCK: ::c_int = 0; -pub const SIG_UNBLOCK: ::c_int = 1; -pub const SIG_SETMASK: ::c_int = 2; -pub const SIGEV_NONE: ::c_int = 1; -pub const SIGEV_SIGNAL: ::c_int = 2; -pub const SIGEV_THREAD: ::c_int = 3; -pub const SIGHUP: ::c_int = 1; -pub const SIGINT: ::c_int = 2; -pub const SIGQUIT: ::c_int = 3; -pub const SIGILL: ::c_int = 4; -pub const SIGABRT: ::c_int = 6; -pub const SIGEMT: ::c_int = 7; -pub const SIGFPE: ::c_int = 8; -pub const SIGKILL: ::c_int = 9; -pub const SIGSEGV: ::c_int = 11; -pub const SIGSYS: ::c_int = 12; -pub const SIGPIPE: ::c_int = 13; -pub const SIGALRM: ::c_int = 14; -pub const SIGTERM: ::c_int = 15; -pub const SIGUSR1: ::c_int = 30; -pub const SIGUSR2: ::c_int = 31; -pub const SIGPWR: ::c_int = 29; -pub const SIGWINCH: ::c_int = 28; -pub const SIGURG: ::c_int = 16; -pub const SIGPOLL: ::c_int = SIGIO; -pub const SIGIO: ::c_int = 23; -pub const SIGSTOP: ::c_int = 17; -pub const SIGTSTP: ::c_int = 18; -pub const SIGCONT: ::c_int = 19; -pub const SIGTTIN: ::c_int = 21; -pub const SIGTTOU: ::c_int = 22; -pub const SIGVTALRM: ::c_int = 34; -pub const SIGPROF: ::c_int = 32; -pub const SIGXCPU: ::c_int = 24; -pub const SIGXFSZ: ::c_int = 25; -pub const SIGTRAP: ::c_int = 5; -pub const SIGCLD: ::c_int = 20; -pub const SIGRTMAX: ::c_int = 57; -pub const SIGRTMIN: ::c_int = 50; -pub const SI_USER: ::c_int = 0; -pub const SI_UNDEFINED: ::c_int = 8; -pub const SI_EMPTY: ::c_int = 9; -pub const BUS_ADRALN: ::c_int = 1; -pub const BUS_ADRERR: ::c_int = 2; -pub const BUS_OBJERR: ::c_int = 3; -pub const BUS_UEGARD: ::c_int = 4; -pub const CLD_EXITED: ::c_int = 10; -pub const CLD_KILLED: ::c_int = 11; -pub const CLD_DUMPED: ::c_int = 12; -pub const CLD_TRAPPED: ::c_int = 13; -pub const CLD_STOPPED: ::c_int = 14; -pub const CLD_CONTINUED: ::c_int = 15; -pub const FPE_INTDIV: ::c_int = 20; -pub const FPE_INTOVF: ::c_int = 21; -pub const FPE_FLTDIV: ::c_int = 22; -pub const FPE_FLTOVF: ::c_int = 23; -pub const FPE_FLTUND: ::c_int = 24; -pub const FPE_FLTRES: ::c_int = 25; -pub const FPE_FLTINV: ::c_int = 26; -pub const FPE_FLTSUB: ::c_int = 27; -pub const ILL_ILLOPC: ::c_int = 30; -pub const ILL_ILLOPN: ::c_int = 31; -pub const ILL_ILLADR: ::c_int = 32; -pub const ILL_ILLTRP: ::c_int = 33; -pub const ILL_PRVOPC: ::c_int = 34; -pub const ILL_PRVREG: ::c_int = 35; -pub const ILL_COPROC: ::c_int = 36; -pub const ILL_BADSTK: ::c_int = 37; -pub const ILL_TMBADTHING: ::c_int = 38; -pub const POLL_IN: ::c_int = 40; -pub const POLL_OUT: ::c_int = 41; -pub const POLL_MSG: ::c_int = -3; -pub const POLL_ERR: ::c_int = 43; -pub const POLL_PRI: ::c_int = 44; -pub const POLL_HUP: ::c_int = 45; -pub const SEGV_MAPERR: ::c_int = 50; -pub const SEGV_ACCERR: ::c_int = 51; -pub const SEGV_KEYERR: ::c_int = 52; -pub const TRAP_BRKPT: ::c_int = 60; -pub const TRAP_TRACE: ::c_int = 61; -pub const SI_QUEUE: ::c_int = 71; -pub const SI_TIMER: ::c_int = 72; -pub const SI_ASYNCIO: ::c_int = 73; -pub const SI_MESGQ: ::c_int = 74; - -// sys/socket.h -pub const AF_UNSPEC: ::c_int = 0; -pub const AF_UNIX: ::c_int = 1; -pub const AF_INET: ::c_int = 2; -pub const AF_IMPLINK: ::c_int = 3; -pub const AF_PUP: ::c_int = 4; -pub const AF_CHAOS: ::c_int = 5; -pub const AF_NS: ::c_int = 6; -pub const AF_ECMA: ::c_int = 8; -pub const AF_DATAKIT: ::c_int = 9; -pub const AF_CCITT: ::c_int = 10; -pub const AF_SNA: ::c_int = 11; -pub const AF_DECnet: ::c_int = 12; -pub const AF_DLI: ::c_int = 13; -pub const AF_LAT: ::c_int = 14; -pub const SO_TIMESTAMPNS: ::c_int = 0x100a; -pub const SOMAXCONN: ::c_int = 1024; -pub const AF_LOCAL: ::c_int = AF_UNIX; -pub const UIO_MAXIOV: ::c_int = 1024; -pub const pseudo_AF_XTP: ::c_int = 19; -pub const AF_HYLINK: ::c_int = 15; -pub const AF_APPLETALK: ::c_int = 16; -pub const AF_ISO: ::c_int = 7; -pub const AF_OSI: ::c_int = AF_ISO; -pub const AF_ROUTE: ::c_int = 17; -pub const AF_LINK: ::c_int = 18; -pub const AF_INET6: ::c_int = 24; -pub const AF_INTF: ::c_int = 20; -pub const AF_RIF: ::c_int = 21; -pub const AF_NDD: ::c_int = 23; -pub const AF_MAX: ::c_int = 30; -pub const PF_UNSPEC: ::c_int = AF_UNSPEC; -pub const PF_UNIX: ::c_int = AF_UNIX; -pub const PF_INET: ::c_int = AF_INET; -pub const PF_IMPLINK: ::c_int = AF_IMPLINK; -pub const PF_PUP: ::c_int = AF_PUP; -pub const PF_CHAOS: ::c_int = AF_CHAOS; -pub const PF_NS: ::c_int = AF_NS; -pub const PF_ISO: ::c_int = AF_ISO; -pub const PF_OSI: ::c_int = AF_ISO; -pub const PF_ECMA: ::c_int = AF_ECMA; -pub const PF_DATAKIT: ::c_int = AF_DATAKIT; -pub const PF_CCITT: ::c_int = AF_CCITT; -pub const PF_SNA: ::c_int = AF_SNA; -pub const PF_DECnet: ::c_int = AF_DECnet; -pub const PF_DLI: ::c_int = AF_DLI; -pub const PF_LAT: ::c_int = AF_LAT; -pub const PF_HYLINK: ::c_int = AF_HYLINK; -pub const PF_APPLETALK: ::c_int = AF_APPLETALK; -pub const PF_ROUTE: ::c_int = AF_ROUTE; -pub const PF_LINK: ::c_int = AF_LINK; -pub const PF_XTP: ::c_int = 19; -pub const PF_RIF: ::c_int = AF_RIF; -pub const PF_INTF: ::c_int = AF_INTF; -pub const PF_NDD: ::c_int = AF_NDD; -pub const PF_INET6: ::c_int = AF_INET6; -pub const PF_MAX: ::c_int = AF_MAX; -pub const SF_CLOSE: ::c_int = 1; -pub const SF_REUSE: ::c_int = 2; -pub const SF_DONT_CACHE: ::c_int = 4; -pub const SF_SYNC_CACHE: ::c_int = 8; -pub const SOCK_DGRAM: ::c_int = 2; -pub const SOCK_STREAM: ::c_int = 1; -pub const SOCK_RAW: ::c_int = 3; -pub const SOCK_RDM: ::c_int = 4; -pub const SOCK_SEQPACKET: ::c_int = 5; -pub const SOL_SOCKET: ::c_int = 0xffff; -pub const SO_DEBUG: ::c_int = 0x0001; -pub const SO_ACCEPTCONN: ::c_int = 0x0002; -pub const SO_REUSEADDR: ::c_int = 0x0004; -pub const SO_KEEPALIVE: ::c_int = 0x0008; -pub const SO_DONTROUTE: ::c_int = 0x0010; -pub const SO_BROADCAST: ::c_int = 0x0020; -pub const SO_USELOOPBACK: ::c_int = 0x0040; -pub const SO_LINGER: ::c_int = 0x0080; -pub const SO_OOBINLINE: ::c_int = 0x0100; -pub const SO_REUSEPORT: ::c_int = 0x0200; -pub const SO_USE_IFBUFS: ::c_int = 0x0400; -pub const SO_CKSUMRECV: ::c_int = 0x0800; -pub const SO_NOREUSEADDR: ::c_int = 0x1000; -pub const SO_KERNACCEPT: ::c_int = 0x2000; -pub const SO_NOMULTIPATH: ::c_int = 0x4000; -pub const SO_AUDIT: ::c_int = 0x8000; -pub const SO_SNDBUF: ::c_int = 0x1001; -pub const SO_RCVBUF: ::c_int = 0x1002; -pub const SO_SNDLOWAT: ::c_int = 0x1003; -pub const SO_RCVLOWAT: ::c_int = 0x1004; -pub const SO_SNDTIMEO: ::c_int = 0x1005; -pub const SO_RCVTIMEO: ::c_int = 0x1006; -pub const SO_ERROR: ::c_int = 0x1007; -pub const SO_TYPE: ::c_int = 0x1008; -pub const SCM_RIGHTS: ::c_int = 0x01; -pub const MSG_OOB: ::c_int = 0x1; -pub const MSG_PEEK: ::c_int = 0x2; -pub const MSG_DONTROUTE: ::c_int = 0x4; -pub const MSG_EOR: ::c_int = 0x8; -pub const MSG_TRUNC: ::c_int = 0x10; -pub const MSG_CTRUNC: ::c_int = 0x20; -pub const MSG_WAITALL: ::c_int = 0x40; -pub const MSG_MPEG2: ::c_int = 0x80; -pub const MSG_NOSIGNAL: ::c_int = 0x100; -pub const MSG_WAITFORONE: ::c_int = 0x200; -pub const MSG_ARGEXT: ::c_int = 0x400; -pub const MSG_NONBLOCK: ::c_int = 0x4000; -pub const MSG_COMPAT: ::c_int = 0x8000; -pub const MSG_MAXIOVLEN: ::c_int = 16; -pub const SHUT_RD: ::c_int = 0; -pub const SHUT_WR: ::c_int = 1; -pub const SHUT_RDWR: ::c_int = 2; - -// sys/stat.h -pub const UTIME_NOW: ::c_int = -2; -pub const UTIME_OMIT: ::c_int = -3; - -// sys/statvfs.h -pub const ST_RDONLY: ::c_ulong = 0x0001; -pub const ST_NOSUID: ::c_ulong = 0x0040; -pub const ST_NODEV: ::c_ulong = 0x0080; - -// sys/stropts.h -pub const I_NREAD: ::c_int = 0x20005301; -pub const I_PUSH: ::c_int = 0x20005302; -pub const I_POP: ::c_int = 0x20005303; -pub const I_LOOK: ::c_int = 0x20005304; -pub const I_FLUSH: ::c_int = 0x20005305; -pub const I_SRDOPT: ::c_int = 0x20005306; -pub const I_GRDOPT: ::c_int = 0x20005307; -pub const I_STR: ::c_int = 0x20005308; -pub const I_SETSIG: ::c_int = 0x20005309; -pub const I_GETSIG: ::c_int = 0x2000530a; -pub const I_FIND: ::c_int = 0x2000530b; -pub const I_LINK: ::c_int = 0x2000530c; -pub const I_UNLINK: ::c_int = 0x2000530d; -pub const I_PEEK: ::c_int = 0x2000530f; -pub const I_FDINSERT: ::c_int = 0x20005310; -pub const I_SENDFD: ::c_int = 0x20005311; -pub const I_RECVFD: ::c_int = 0x20005312; -pub const I_SWROPT: ::c_int = 0x20005314; -pub const I_GWROPT: ::c_int = 0x20005315; -pub const I_LIST: ::c_int = 0x20005316; -pub const I_PLINK: ::c_int = 0x2000531d; -pub const I_PUNLINK: ::c_int = 0x2000531e; -pub const I_FLUSHBAND: ::c_int = 0x20005313; -pub const I_CKBAND: ::c_int = 0x20005318; -pub const I_GETBAND: ::c_int = 0x20005319; -pub const I_ATMARK: ::c_int = 0x20005317; -pub const I_SETCLTIME: ::c_int = 0x2000531b; -pub const I_GETCLTIME: ::c_int = 0x2000531c; -pub const I_CANPUT: ::c_int = 0x2000531a; - -// sys/syslog.h -pub const LOG_CRON: ::c_int = 9 << 3; -pub const LOG_AUTHPRIV: ::c_int = 10 << 3; -pub const LOG_NFACILITIES: ::c_int = 24; -pub const LOG_PERROR: ::c_int = 0x20; - -// sys/systemcfg.h -pub const SC_ARCH: ::c_int = 1; -pub const SC_IMPL: ::c_int = 2; -pub const SC_VERS: ::c_int = 3; -pub const SC_WIDTH: ::c_int = 4; -pub const SC_NCPUS: ::c_int = 5; -pub const SC_L1C_ATTR: ::c_int = 6; -pub const SC_L1C_ISZ: ::c_int = 7; -pub const SC_L1C_DSZ: ::c_int = 8; -pub const SC_L1C_ICA: ::c_int = 9; -pub const SC_L1C_DCA: ::c_int = 10; -pub const SC_L1C_IBS: ::c_int = 11; -pub const SC_L1C_DBS: ::c_int = 12; -pub const SC_L1C_ILS: ::c_int = 13; -pub const SC_L1C_DLS: ::c_int = 14; -pub const SC_L2C_SZ: ::c_int = 15; -pub const SC_L2C_AS: ::c_int = 16; -pub const SC_TLB_ATTR: ::c_int = 17; -pub const SC_ITLB_SZ: ::c_int = 18; -pub const SC_DTLB_SZ: ::c_int = 19; -pub const SC_ITLB_ATT: ::c_int = 20; -pub const SC_DTLB_ATT: ::c_int = 21; -pub const SC_RESRV_SZ: ::c_int = 22; -pub const SC_PRI_LC: ::c_int = 23; -pub const SC_PRO_LC: ::c_int = 24; -pub const SC_RTC_TYPE: ::c_int = 25; -pub const SC_VIRT_AL: ::c_int = 26; -pub const SC_CAC_CONG: ::c_int = 27; -pub const SC_MOD_ARCH: ::c_int = 28; -pub const SC_MOD_IMPL: ::c_int = 29; -pub const SC_XINT: ::c_int = 30; -pub const SC_XFRAC: ::c_int = 31; -pub const SC_KRN_ATTR: ::c_int = 32; -pub const SC_PHYSMEM: ::c_int = 33; -pub const SC_SLB_ATTR: ::c_int = 34; -pub const SC_SLB_SZ: ::c_int = 35; -pub const SC_MAX_NCPUS: ::c_int = 37; -pub const SC_MAX_REALADDR: ::c_int = 38; -pub const SC_ORIG_ENT_CAP: ::c_int = 39; -pub const SC_ENT_CAP: ::c_int = 40; -pub const SC_DISP_WHE: ::c_int = 41; -pub const SC_CAPINC: ::c_int = 42; -pub const SC_VCAPW: ::c_int = 43; -pub const SC_SPLP_STAT: ::c_int = 44; -pub const SC_SMT_STAT: ::c_int = 45; -pub const SC_SMT_TC: ::c_int = 46; -pub const SC_VMX_VER: ::c_int = 47; -pub const SC_LMB_SZ: ::c_int = 48; -pub const SC_MAX_XCPU: ::c_int = 49; -pub const SC_EC_LVL: ::c_int = 50; -pub const SC_AME_STAT: ::c_int = 51; -pub const SC_ECO_STAT: ::c_int = 52; -pub const SC_DFP_VER: ::c_int = 53; -pub const SC_VRM_STAT: ::c_int = 54; -pub const SC_PHYS_IMP: ::c_int = 55; -pub const SC_PHYS_VER: ::c_int = 56; -pub const SC_SPCM_STATUS: ::c_int = 57; -pub const SC_SPCM_MAX: ::c_int = 58; -pub const SC_TM_VER: ::c_int = 59; -pub const SC_NX_CAP: ::c_int = 60; -pub const SC_PKS_STATE: ::c_int = 61; -pub const SC_MMA_VER: ::c_int = 62; -pub const POWER_RS: ::c_int = 1; -pub const POWER_PC: ::c_int = 2; -pub const IA64: ::c_int = 3; -pub const POWER_RS1: ::c_int = 0x1; -pub const POWER_RSC: ::c_int = 0x2; -pub const POWER_RS2: ::c_int = 0x4; -pub const POWER_601: ::c_int = 0x8; -pub const POWER_604: ::c_int = 0x10; -pub const POWER_603: ::c_int = 0x20; -pub const POWER_620: ::c_int = 0x40; -pub const POWER_630: ::c_int = 0x80; -pub const POWER_A35: ::c_int = 0x100; -pub const POWER_RS64II: ::c_int = 0x200; -pub const POWER_RS64III: ::c_int = 0x400; -pub const POWER_4: ::c_int = 0x800; -pub const POWER_RS64IV: ::c_int = POWER_4; -pub const POWER_MPC7450: ::c_int = 0x1000; -pub const POWER_5: ::c_int = 0x2000; -pub const POWER_6: ::c_int = 0x4000; -pub const POWER_7: ::c_int = 0x8000; -pub const POWER_8: ::c_int = 0x10000; -pub const POWER_9: ::c_int = 0x20000; - -// sys/time.h -pub const FD_SETSIZE: usize = 65534; -pub const TIMEOFDAY: ::c_int = 9; -pub const CLOCK_REALTIME: ::clockid_t = TIMEOFDAY as clockid_t; -pub const CLOCK_MONOTONIC: ::clockid_t = 10; -pub const TIMER_ABSTIME: ::c_int = 999; -pub const ITIMER_REAL: ::c_int = 0; -pub const ITIMER_VIRTUAL: ::c_int = 1; -pub const ITIMER_PROF: ::c_int = 2; -pub const ITIMER_VIRT: ::c_int = 3; -pub const ITIMER_REAL1: ::c_int = 20; -pub const ITIMER_REAL_TH: ::c_int = ITIMER_REAL1; -pub const DST_AUST: ::c_int = 2; -pub const DST_CAN: ::c_int = 6; -pub const DST_EET: ::c_int = 5; -pub const DST_MET: ::c_int = 4; -pub const DST_NONE: ::c_int = 0; -pub const DST_USA: ::c_int = 1; -pub const DST_WET: ::c_int = 3; - -// sys/termio.h -pub const CSTART: ::tcflag_t = 0o21; -pub const CSTOP: ::tcflag_t = 0o23; -pub const TCGETA: ::c_int = TIOC | 5; -pub const TCSETA: ::c_int = TIOC | 6; -pub const TCSETAW: ::c_int = TIOC | 7; -pub const TCSETAF: ::c_int = TIOC | 8; -pub const TCSBRK: ::c_int = TIOC | 9; -pub const TCXONC: ::c_int = TIOC | 11; -pub const TCFLSH: ::c_int = TIOC | 12; -pub const TCGETS: ::c_int = TIOC | 1; -pub const TCSETS: ::c_int = TIOC | 2; -pub const TCSANOW: ::c_int = 0; -pub const TCSETSW: ::c_int = TIOC | 3; -pub const TCSADRAIN: ::c_int = 1; -pub const TCSETSF: ::c_int = TIOC | 4; -pub const TCSAFLUSH: ::c_int = 2; -pub const TCIFLUSH: ::c_int = 0; -pub const TCOFLUSH: ::c_int = 1; -pub const TCIOFLUSH: ::c_int = 2; -pub const TCOOFF: ::c_int = 0; -pub const TCOON: ::c_int = 1; -pub const TCIOFF: ::c_int = 2; -pub const TCION: ::c_int = 3; -pub const TIOC: ::c_int = 0x5400; -pub const TIOCGWINSZ: ::c_int = 0x40087468; -pub const TIOCSWINSZ: ::c_int = 0x80087467; -pub const TIOCLBIS: ::c_int = 0x8004747f; -pub const TIOCLBIC: ::c_int = 0x8004747e; -pub const TIOCLSET: ::c_int = 0x8004747d; -pub const TIOCLGET: ::c_int = 0x4004747c; -pub const TIOCSBRK: ::c_int = 0x2000747b; -pub const TIOCCBRK: ::c_int = 0x2000747a; -pub const TIOCSDTR: ::c_int = 0x20007479; -pub const TIOCCDTR: ::c_int = 0x20007478; -pub const TIOCSLTC: ::c_int = 0x80067475; -pub const TIOCGLTC: ::c_int = 0x40067474; -pub const TIOCOUTQ: ::c_int = 0x40047473; -pub const TIOCNOTTY: ::c_int = 0x20007471; -pub const TIOCSTOP: ::c_int = 0x2000746f; -pub const TIOCSTART: ::c_int = 0x2000746e; -pub const TIOCGPGRP: ::c_int = 0x40047477; -pub const TIOCSPGRP: ::c_int = 0x80047476; -pub const TIOCGSID: ::c_int = 0x40047448; -pub const TIOCSTI: ::c_int = 0x80017472; -pub const TIOCMSET: ::c_int = 0x8004746d; -pub const TIOCMBIS: ::c_int = 0x8004746c; -pub const TIOCMBIC: ::c_int = 0x8004746b; -pub const TIOCMGET: ::c_int = 0x4004746a; -pub const TIOCREMOTE: ::c_int = 0x80047469; - -// sys/user.h -pub const MAXCOMLEN: ::c_int = 32; -pub const UF_SYSTEM: ::c_int = 0x1000; - -// sys/vattr.h -pub const AT_FLAGS: ::c_int = 0x80; -pub const AT_GID: ::c_int = 8; -pub const AT_UID: ::c_int = 4; - -// sys/wait.h -pub const P_ALL: ::c_int = 0; -pub const P_PID: ::c_int = 1; -pub const P_PGID: ::c_int = 2; -pub const WNOHANG: ::c_int = 0x1; -pub const WUNTRACED: ::c_int = 0x2; -pub const WEXITED: ::c_int = 0x04; -pub const WCONTINUED: ::c_int = 0x01000000; -pub const WNOWAIT: ::c_int = 0x10; -pub const WSTOPPED: ::c_int = _W_STOPPED; -pub const _W_STOPPED: ::c_int = 0x00000040; -pub const _W_SLWTED: ::c_int = 0x0000007c; -pub const _W_SEWTED: ::c_int = 0x0000007d; -pub const _W_SFWTED: ::c_int = 0x0000007e; -pub const _W_STRC: ::c_int = 0x0000007f; - -// termios.h -pub const NCCS: usize = 16; -pub const OLCUC: ::tcflag_t = 2; -pub const CSIZE: ::tcflag_t = 0x00000030; -pub const CS5: ::tcflag_t = 0x00000000; -pub const CS6: ::tcflag_t = 0x00000010; -pub const CS7: ::tcflag_t = 0x00000020; -pub const CS8: ::tcflag_t = 0x00000030; -pub const CSTOPB: ::tcflag_t = 0x00000040; -pub const ECHO: ::tcflag_t = 0x20000; -pub const ECHOE: ::tcflag_t = 0x00000010; -pub const ECHOK: ::tcflag_t = 0x00000020; -pub const ECHONL: ::tcflag_t = 0x00000040; -pub const ECHOCTL: ::tcflag_t = 0x00020000; -pub const ECHOPRT: ::tcflag_t = 0x00040000; -pub const ECHOKE: ::tcflag_t = 0x00080000; -pub const IGNBRK: ::tcflag_t = 0x00000001; -pub const BRKINT: ::tcflag_t = 0x00000002; -pub const IGNPAR: ::tcflag_t = 0x00000004; -pub const PARMRK: ::tcflag_t = 0x00000008; -pub const INPCK: ::tcflag_t = 0x00000010; -pub const ISTRIP: ::tcflag_t = 0x00000020; -pub const INLCR: ::tcflag_t = 0x00000040; -pub const IGNCR: ::tcflag_t = 0x00000080; -pub const ICRNL: ::tcflag_t = 0x00000100; -pub const IXON: ::tcflag_t = 0x0001; -pub const IXOFF: ::tcflag_t = 0x00000400; -pub const IXANY: ::tcflag_t = 0x00001000; -pub const IMAXBEL: ::tcflag_t = 0x00010000; -pub const OPOST: ::tcflag_t = 0x00000001; -pub const ONLCR: ::tcflag_t = 0x00000004; -pub const OCRNL: ::tcflag_t = 0x00000008; -pub const ONOCR: ::tcflag_t = 0x00000010; -pub const ONLRET: ::tcflag_t = 0x00000020; -pub const CREAD: ::tcflag_t = 0x00000080; -pub const IEXTEN: ::tcflag_t = 0x00200000; -pub const TOSTOP: ::tcflag_t = 0x00010000; -pub const FLUSHO: ::tcflag_t = 0x00100000; -pub const PENDIN: ::tcflag_t = 0x20000000; -pub const NOFLSH: ::tcflag_t = 0x00000080; -pub const VINTR: usize = 0; -pub const VQUIT: usize = 1; -pub const VERASE: usize = 2; -pub const VKILL: usize = 3; -pub const VEOF: usize = 4; -pub const VEOL: usize = 5; -pub const VSTART: usize = 7; -pub const VSTOP: usize = 8; -pub const VSUSP: usize = 9; -pub const VMIN: usize = 4; -pub const VTIME: usize = 5; -pub const VEOL2: usize = 6; -pub const VDSUSP: usize = 10; -pub const VREPRINT: usize = 11; -pub const VDISCRD: usize = 12; -pub const VWERSE: usize = 13; -pub const VLNEXT: usize = 14; -pub const B0: ::speed_t = 0x0; -pub const B50: ::speed_t = 0x1; -pub const B75: ::speed_t = 0x2; -pub const B110: ::speed_t = 0x3; -pub const B134: ::speed_t = 0x4; -pub const B150: ::speed_t = 0x5; -pub const B200: ::speed_t = 0x6; -pub const B300: ::speed_t = 0x7; -pub const B600: ::speed_t = 0x8; -pub const B1200: ::speed_t = 0x9; -pub const B1800: ::speed_t = 0xa; -pub const B2400: ::speed_t = 0xb; -pub const B4800: ::speed_t = 0xc; -pub const B9600: ::speed_t = 0xd; -pub const B19200: ::speed_t = 0xe; -pub const B38400: ::speed_t = 0xf; -pub const EXTA: ::speed_t = B19200; -pub const EXTB: ::speed_t = B38400; -pub const IUCLC: ::tcflag_t = 0x00000800; -pub const OFILL: ::tcflag_t = 0x00000040; -pub const OFDEL: ::tcflag_t = 0x00000080; -pub const CRDLY: ::tcflag_t = 0x00000300; -pub const CR0: ::tcflag_t = 0x00000000; -pub const CR1: ::tcflag_t = 0x00000100; -pub const CR2: ::tcflag_t = 0x00000200; -pub const CR3: ::tcflag_t = 0x00000300; -pub const TABDLY: ::tcflag_t = 0x00000c00; -pub const TAB0: ::tcflag_t = 0x00000000; -pub const TAB1: ::tcflag_t = 0x00000400; -pub const TAB2: ::tcflag_t = 0x00000800; -pub const TAB3: ::tcflag_t = 0x00000c00; -pub const BSDLY: ::tcflag_t = 0x00001000; -pub const BS0: ::tcflag_t = 0x00000000; -pub const BS1: ::tcflag_t = 0x00001000; -pub const FFDLY: ::tcflag_t = 0x00002000; -pub const FF0: ::tcflag_t = 0x00000000; -pub const FF1: ::tcflag_t = 0x00002000; -pub const NLDLY: ::tcflag_t = 0x00004000; -pub const NL0: ::tcflag_t = 0x00000000; -pub const NL1: ::tcflag_t = 0x00004000; -pub const VTDLY: ::tcflag_t = 0x00008000; -pub const VT0: ::tcflag_t = 0x00000000; -pub const VT1: ::tcflag_t = 0x00008000; -pub const OXTABS: ::tcflag_t = 0x00040000; -pub const ONOEOT: ::tcflag_t = 0x00080000; -pub const CBAUD: ::tcflag_t = 0x0000000f; -pub const PARENB: ::tcflag_t = 0x00000100; -pub const PARODD: ::tcflag_t = 0x00000200; -pub const HUPCL: ::tcflag_t = 0x00000400; -pub const CLOCAL: ::tcflag_t = 0x00000800; -pub const CIBAUD: ::tcflag_t = 0x000f0000; -pub const IBSHIFT: ::tcflag_t = 16; -pub const PAREXT: ::tcflag_t = 0x00100000; -pub const ISIG: ::tcflag_t = 0x00000001; -pub const ICANON: ::tcflag_t = 0x00000002; -pub const XCASE: ::tcflag_t = 0x00000004; -pub const ALTWERASE: ::tcflag_t = 0x00400000; - -// time.h -pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 11; -pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 12; - -// unistd.h -pub const STDIN_FILENO: ::c_int = 0; -pub const STDOUT_FILENO: ::c_int = 1; -pub const STDERR_FILENO: ::c_int = 2; -pub const _POSIX_VDISABLE: ::c_int = 0xff; -pub const _PC_LINK_MAX: ::c_int = 11; -pub const _PC_MAX_CANON: ::c_int = 12; -pub const _PC_MAX_INPUT: ::c_int = 13; -pub const _PC_NAME_MAX: ::c_int = 14; -pub const _PC_PATH_MAX: ::c_int = 16; -pub const _PC_PIPE_BUF: ::c_int = 17; -pub const _PC_NO_TRUNC: ::c_int = 15; -pub const _PC_VDISABLE: ::c_int = 18; -pub const _PC_CHOWN_RESTRICTED: ::c_int = 10; -pub const _PC_ASYNC_IO: ::c_int = 19; -pub const _PC_PRIO_IO: ::c_int = 21; -pub const _PC_SYNC_IO: ::c_int = 20; -pub const _PC_ALLOC_SIZE_MIN: ::c_int = 26; -pub const _PC_REC_INCR_XFER_SIZE: ::c_int = 27; -pub const _PC_REC_MAX_XFER_SIZE: ::c_int = 28; -pub const _PC_REC_MIN_XFER_SIZE: ::c_int = 29; -pub const _PC_REC_XFER_ALIGN: ::c_int = 30; -pub const _PC_SYMLINK_MAX: ::c_int = 25; -pub const _PC_2_SYMLINKS: ::c_int = 31; -pub const _PC_TIMESTAMP_RESOLUTION: ::c_int = 32; -pub const _PC_FILESIZEBITS: ::c_int = 22; -pub const _SC_ARG_MAX: ::c_int = 0; -pub const _SC_CHILD_MAX: ::c_int = 1; -pub const _SC_CLK_TCK: ::c_int = 2; -pub const _SC_NGROUPS_MAX: ::c_int = 3; -pub const _SC_OPEN_MAX: ::c_int = 4; -pub const _SC_JOB_CONTROL: ::c_int = 7; -pub const _SC_SAVED_IDS: ::c_int = 8; -pub const _SC_VERSION: ::c_int = 9; -pub const _SC_PASS_MAX: ::c_int = 45; -pub const _SC_PAGESIZE: ::c_int = _SC_PAGE_SIZE; -pub const _SC_PAGE_SIZE: ::c_int = 48; -pub const _SC_XOPEN_VERSION: ::c_int = 46; -pub const _SC_NPROCESSORS_CONF: ::c_int = 71; -pub const _SC_NPROCESSORS_ONLN: ::c_int = 72; -pub const _SC_STREAM_MAX: ::c_int = 5; -pub const _SC_TZNAME_MAX: ::c_int = 6; -pub const _SC_AIO_LISTIO_MAX: ::c_int = 75; -pub const _SC_AIO_MAX: ::c_int = 76; -pub const _SC_AIO_PRIO_DELTA_MAX: ::c_int = 77; -pub const _SC_ASYNCHRONOUS_IO: ::c_int = 78; -pub const _SC_DELAYTIMER_MAX: ::c_int = 79; -pub const _SC_FSYNC: ::c_int = 80; -pub const _SC_MAPPED_FILES: ::c_int = 84; -pub const _SC_MEMLOCK: ::c_int = 85; -pub const _SC_MEMLOCK_RANGE: ::c_int = 86; -pub const _SC_MEMORY_PROTECTION: ::c_int = 87; -pub const _SC_MESSAGE_PASSING: ::c_int = 88; -pub const _SC_MQ_OPEN_MAX: ::c_int = 89; -pub const _SC_MQ_PRIO_MAX: ::c_int = 90; -pub const _SC_PRIORITIZED_IO: ::c_int = 91; -pub const _SC_PRIORITY_SCHEDULING: ::c_int = 92; -pub const _SC_REALTIME_SIGNALS: ::c_int = 93; -pub const _SC_RTSIG_MAX: ::c_int = 94; -pub const _SC_SEMAPHORES: ::c_int = 95; -pub const _SC_SEM_NSEMS_MAX: ::c_int = 96; -pub const _SC_SEM_VALUE_MAX: ::c_int = 97; -pub const _SC_SHARED_MEMORY_OBJECTS: ::c_int = 98; -pub const _SC_SIGQUEUE_MAX: ::c_int = 99; -pub const _SC_SYNCHRONIZED_IO: ::c_int = 100; -pub const _SC_TIMERS: ::c_int = 102; -pub const _SC_TIMER_MAX: ::c_int = 103; -pub const _SC_2_C_BIND: ::c_int = 51; -pub const _SC_2_C_DEV: ::c_int = 32; -pub const _SC_2_C_VERSION: ::c_int = 52; -pub const _SC_2_FORT_DEV: ::c_int = 33; -pub const _SC_2_FORT_RUN: ::c_int = 34; -pub const _SC_2_LOCALEDEF: ::c_int = 35; -pub const _SC_2_SW_DEV: ::c_int = 36; -pub const _SC_2_UPE: ::c_int = 53; -pub const _SC_2_VERSION: ::c_int = 31; -pub const _SC_BC_BASE_MAX: ::c_int = 23; -pub const _SC_BC_DIM_MAX: ::c_int = 24; -pub const _SC_BC_SCALE_MAX: ::c_int = 25; -pub const _SC_BC_STRING_MAX: ::c_int = 26; -pub const _SC_COLL_WEIGHTS_MAX: ::c_int = 50; -pub const _SC_EXPR_NEST_MAX: ::c_int = 28; -pub const _SC_LINE_MAX: ::c_int = 29; -pub const _SC_RE_DUP_MAX: ::c_int = 30; -pub const _SC_XOPEN_CRYPT: ::c_int = 56; -pub const _SC_XOPEN_ENH_I18N: ::c_int = 57; -pub const _SC_XOPEN_SHM: ::c_int = 55; -pub const _SC_2_CHAR_TERM: ::c_int = 54; -pub const _SC_XOPEN_XCU_VERSION: ::c_int = 109; -pub const _SC_ATEXIT_MAX: ::c_int = 47; -pub const _SC_IOV_MAX: ::c_int = 58; -pub const _SC_XOPEN_UNIX: ::c_int = 73; -pub const _SC_T_IOV_MAX: ::c_int = 0; -pub const _SC_PHYS_PAGES: ::c_int = 113; -pub const _SC_AVPHYS_PAGES: ::c_int = 114; -pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: ::c_int = 101; -pub const _SC_GETGR_R_SIZE_MAX: ::c_int = 81; -pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 82; -pub const _SC_LOGIN_NAME_MAX: ::c_int = 83; -pub const _SC_THREAD_KEYS_MAX: ::c_int = 68; -pub const _SC_THREAD_STACK_MIN: ::c_int = 69; -pub const _SC_THREAD_THREADS_MAX: ::c_int = 70; -pub const _SC_TTY_NAME_MAX: ::c_int = 104; -pub const _SC_THREADS: ::c_int = 60; -pub const _SC_THREAD_ATTR_STACKADDR: ::c_int = 61; -pub const _SC_THREAD_ATTR_STACKSIZE: ::c_int = 62; -pub const _SC_THREAD_PRIORITY_SCHEDULING: ::c_int = 64; -pub const _SC_THREAD_PRIO_INHERIT: ::c_int = 65; -pub const _SC_THREAD_PRIO_PROTECT: ::c_int = 66; -pub const _SC_THREAD_PROCESS_SHARED: ::c_int = 67; -pub const _SC_THREAD_SAFE_FUNCTIONS: ::c_int = 59; -pub const _SC_XOPEN_LEGACY: ::c_int = 112; -pub const _SC_XOPEN_REALTIME: ::c_int = 110; -pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 111; -pub const _SC_XBS5_ILP32_OFF32: ::c_int = 105; -pub const _SC_XBS5_ILP32_OFFBIG: ::c_int = 106; -pub const _SC_XBS5_LP64_OFF64: ::c_int = 107; -pub const _SC_XBS5_LPBIG_OFFBIG: ::c_int = 108; -pub const _SC_2_PBS: ::c_int = 132; -pub const _SC_2_PBS_ACCOUNTING: ::c_int = 133; -pub const _SC_2_PBS_CHECKPOINT: ::c_int = 134; -pub const _SC_2_PBS_LOCATE: ::c_int = 135; -pub const _SC_2_PBS_MESSAGE: ::c_int = 136; -pub const _SC_2_PBS_TRACK: ::c_int = 137; -pub const _SC_ADVISORY_INFO: ::c_int = 130; -pub const _SC_BARRIERS: ::c_int = 138; -pub const _SC_CLOCK_SELECTION: ::c_int = 139; -pub const _SC_CPUTIME: ::c_int = 140; -pub const _SC_HOST_NAME_MAX: ::c_int = 126; -pub const _SC_MONOTONIC_CLOCK: ::c_int = 141; -pub const _SC_READER_WRITER_LOCKS: ::c_int = 142; -pub const _SC_REGEXP: ::c_int = 127; -pub const _SC_SHELL: ::c_int = 128; -pub const _SC_SPAWN: ::c_int = 143; -pub const _SC_SPIN_LOCKS: ::c_int = 144; -pub const _SC_SPORADIC_SERVER: ::c_int = 145; -pub const _SC_SS_REPL_MAX: ::c_int = 156; -pub const _SC_SYMLOOP_MAX: ::c_int = 129; -pub const _SC_THREAD_CPUTIME: ::c_int = 146; -pub const _SC_THREAD_SPORADIC_SERVER: ::c_int = 147; -pub const _SC_TIMEOUTS: ::c_int = 148; -pub const _SC_TRACE: ::c_int = 149; -pub const _SC_TRACE_EVENT_FILTER: ::c_int = 150; -pub const _SC_TRACE_EVENT_NAME_MAX: ::c_int = 157; -pub const _SC_TRACE_INHERIT: ::c_int = 151; -pub const _SC_TRACE_LOG: ::c_int = 152; -pub const _SC_TRACE_NAME_MAX: ::c_int = 158; -pub const _SC_TRACE_SYS_MAX: ::c_int = 159; -pub const _SC_TRACE_USER_EVENT_MAX: ::c_int = 160; -pub const _SC_TYPED_MEMORY_OBJECTS: ::c_int = 153; -pub const _SC_V6_ILP32_OFF32: ::c_int = 121; -pub const _SC_V6_ILP32_OFFBIG: ::c_int = 122; -pub const _SC_V6_LP64_OFF64: ::c_int = 123; -pub const _SC_V6_LPBIG_OFFBIG: ::c_int = 124; -pub const _SC_XOPEN_STREAMS: ::c_int = 125; -pub const _SC_IPV6: ::c_int = 154; -pub const _SC_RAW_SOCKETS: ::c_int = 155; - -// utmp.h -pub const EMPTY: ::c_short = -1; -pub const RUN_LVL: ::c_short = 1; -pub const BOOT_TIME: ::c_short = 2; -pub const OLD_TIME: ::c_short = 3; -pub const NEW_TIME: ::c_short = 4; -pub const INIT_PROCESS: ::c_short = 5; -pub const LOGIN_PROCESS: ::c_short = 6; -pub const USER_PROCESS: ::c_short = 7; -pub const DEAD_PROCESS: ::c_short = 8; -pub const ACCOUNTING: ::c_short = 9; - -f! { - pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { - if (*mhdr).msg_controllen as usize >= ::mem::size_of::() { - (*mhdr).msg_control as *mut cmsghdr - } else { - 0 as *mut cmsghdr - } - } - - pub fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr { - if cmsg.is_null() { - CMSG_FIRSTHDR(mhdr) - } else { - if (cmsg as usize + (*cmsg).cmsg_len as usize + ::mem::size_of::<::cmsghdr>()) > - ((*mhdr).msg_control as usize + (*mhdr).msg_controllen as usize) { - 0 as *mut ::cmsghdr - } else { - // AIX does not have any alignment/padding for ancillary data, so we don't need _CMSG_ALIGN here. - (cmsg as usize + (*cmsg).cmsg_len as usize) as *mut cmsghdr - } - } - } - - pub fn CMSG_DATA(cmsg: *const ::cmsghdr) -> *mut ::c_uchar { - (cmsg as *mut ::c_uchar).offset(::mem::size_of::<::cmsghdr>() as isize) - } - - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { - ::mem::size_of::<::cmsghdr>() as ::c_uint + length - } - - pub {const} fn CMSG_SPACE(length: ::c_uint) -> ::c_uint { - ::mem::size_of::<::cmsghdr>() as ::c_uint + length - } - - pub fn FD_ZERO(set: *mut fd_set) -> () { - for slot in (*set).fds_bits.iter_mut() { - *slot = 0; - } - } - - pub fn FD_SET(fd: ::c_int, set: *mut fd_set) -> () { - let bits = ::mem::size_of::<::c_long>() * 8; - let fd = fd as usize; - (*set).fds_bits[fd / bits] |= 1 << (fd % bits); - return - } - - pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () { - let bits = ::mem::size_of::<::c_long>() * 8; - let fd = fd as usize; - (*set).fds_bits[fd / bits] &= !(1 << (fd % bits)); - return - } - - pub fn FD_ISSET(fd: ::c_int, set: *const fd_set) -> bool { - let bits = ::mem::size_of::<::c_long>() * 8; - let fd = fd as usize; - return ((*set).fds_bits[fd / bits] & (1 << (fd % bits))) != 0 - } - - pub fn major(dev: ::dev_t) -> ::c_uint { - let x = dev >> 16; - x as ::c_uint - } - - pub fn minor(dev: ::dev_t) -> ::c_uint { - let y = dev & 0xFFFF; - y as ::c_uint - } - - pub fn makedev(major: ::c_uint, minor: ::c_uint) -> ::dev_t { - let major = major as ::dev_t; - let minor = minor as ::dev_t; - let mut dev = 0; - dev |= major << 16; - dev |= minor; - dev - } -} - -safe_f! { - pub {const} fn WIFSTOPPED(status: ::c_int) -> bool { - (status & _W_STOPPED) != 0 - } - - pub {const} fn WSTOPSIG(status: ::c_int) -> ::c_int { - if WIFSTOPPED(status) { - (((status as ::c_uint) >> 8) & 0xff) as ::c_int - } else { - -1 - } - } - - pub {const} fn WIFEXITED(status: ::c_int) -> bool { - (status & 0xFF) == 0 - } - - pub {const} fn WEXITSTATUS(status: ::c_int) -> ::c_int { - if WIFEXITED(status) { - (((status as ::c_uint) >> 8) & 0xff) as ::c_int - } else { - -1 - } - } - - pub {const} fn WIFSIGNALED(status: ::c_int) -> bool { - !WIFEXITED(status) && !WIFSTOPPED(status) - } - - pub {const} fn WTERMSIG(status: ::c_int) -> ::c_int { - if WIFSIGNALED(status) { - (((status as ::c_uint) >> 16) & 0xff) as ::c_int - } else { - -1 - } - } - - pub {const} fn WIFCONTINUED(status: ::c_int) -> bool { - (status & WCONTINUED) != 0 - } - - // AIX doesn't have native WCOREDUMP. - pub {const} fn WCOREDUMP(_status: ::c_int) -> bool { - false - } -} - -#[link(name = "thread")] -extern "C" { - pub fn thr_kill(id: thread_t, sig: ::c_int) -> ::c_int; - pub fn thr_self() -> thread_t; -} - -#[link(name = "pthread")] -extern "C" { - pub fn pthread_atfork( - prepare: ::Option, - parent: ::Option, - child: ::Option, - ) -> ::c_int; - pub fn pthread_attr_getguardsize( - attr: *const ::pthread_attr_t, - guardsize: *mut ::size_t, - ) -> ::c_int; - pub fn pthread_attr_getschedparam( - attr: *const ::pthread_attr_t, - param: *mut sched_param, - ) -> ::c_int; - pub fn pthread_attr_getstack( - attr: *const ::pthread_attr_t, - stackaddr: *mut *mut ::c_void, - stacksize: *mut ::size_t, - ) -> ::c_int; - pub fn pthread_attr_setschedparam( - attr: *mut ::pthread_attr_t, - param: *const sched_param, - ) -> ::c_int; - pub fn pthread_barrier_destroy(barrier: *mut pthread_barrier_t) -> ::c_int; - pub fn pthread_barrier_init( - barrier: *mut pthread_barrier_t, - attr: *const ::pthread_barrierattr_t, - count: ::c_uint, - ) -> ::c_int; - pub fn pthread_barrier_wait(barrier: *mut pthread_barrier_t) -> ::c_int; - pub fn pthread_barrierattr_destroy(attr: *mut ::pthread_barrierattr_t) -> ::c_int; - pub fn pthread_barrierattr_getpshared( - attr: *const ::pthread_barrierattr_t, - shared: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_barrierattr_init(attr: *mut ::pthread_barrierattr_t) -> ::c_int; - pub fn pthread_barrierattr_setpshared( - attr: *mut ::pthread_barrierattr_t, - shared: ::c_int, - ) -> ::c_int; - pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int; - pub fn pthread_condattr_getclock( - attr: *const pthread_condattr_t, - clock_id: *mut clockid_t, - ) -> ::c_int; - pub fn pthread_condattr_getpshared( - attr: *const pthread_condattr_t, - pshared: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_condattr_setclock( - attr: *mut pthread_condattr_t, - clock_id: ::clockid_t, - ) -> ::c_int; - pub fn pthread_condattr_setpshared(attr: *mut pthread_condattr_t, pshared: ::c_int) -> ::c_int; - pub fn pthread_create( - native: *mut ::pthread_t, - attr: *const ::pthread_attr_t, - f: extern "C" fn(*mut ::c_void) -> *mut ::c_void, - value: *mut ::c_void, - ) -> ::c_int; - pub fn pthread_getattr_np(native: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int; - pub fn pthread_getcpuclockid(thread: ::pthread_t, clk_id: *mut ::clockid_t) -> ::c_int; - pub fn pthread_getschedparam( - thread: ::pthread_t, - policy: *mut ::c_int, - param: *mut sched_param, - ) -> ::c_int; - pub fn pthread_kill(thread: ::pthread_t, signal: ::c_int) -> ::c_int; - pub fn pthread_mutex_consistent(mutex: *mut ::pthread_mutex_t) -> ::c_int; - pub fn pthread_mutex_timedlock( - lock: *mut pthread_mutex_t, - abstime: *const ::timespec, - ) -> ::c_int; - pub fn pthread_mutexattr_getprotocol( - attr: *const pthread_mutexattr_t, - protocol: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_mutexattr_getpshared( - attr: *const pthread_mutexattr_t, - pshared: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_mutexattr_getrobust( - attr: *mut ::pthread_mutexattr_t, - robust: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_mutexattr_setprotocol( - attr: *mut pthread_mutexattr_t, - protocol: ::c_int, - ) -> ::c_int; - pub fn pthread_mutexattr_setpshared( - attr: *mut pthread_mutexattr_t, - pshared: ::c_int, - ) -> ::c_int; - pub fn pthread_mutexattr_setrobust( - attr: *mut ::pthread_mutexattr_t, - robust: ::c_int, - ) -> ::c_int; - pub fn pthread_rwlockattr_getpshared( - attr: *const pthread_rwlockattr_t, - val: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_rwlockattr_setpshared(attr: *mut pthread_rwlockattr_t, val: ::c_int) -> ::c_int; - pub fn pthread_setschedparam( - thread: ::pthread_t, - policy: ::c_int, - param: *const sched_param, - ) -> ::c_int; - pub fn pthread_setschedprio(native: ::pthread_t, priority: ::c_int) -> ::c_int; - pub fn pthread_sigmask(how: ::c_int, set: *const sigset_t, oldset: *mut sigset_t) -> ::c_int; - pub fn pthread_spin_destroy(lock: *mut pthread_spinlock_t) -> ::c_int; - pub fn pthread_spin_init(lock: *mut pthread_spinlock_t, pshared: ::c_int) -> ::c_int; - pub fn pthread_spin_lock(lock: *mut pthread_spinlock_t) -> ::c_int; - pub fn pthread_spin_trylock(lock: *mut pthread_spinlock_t) -> ::c_int; - pub fn pthread_spin_unlock(lock: *mut pthread_spinlock_t) -> ::c_int; -} - -#[link(name = "iconv")] -extern "C" { - pub fn iconv( - cd: iconv_t, - inbuf: *mut *mut ::c_char, - inbytesleft: *mut ::size_t, - outbuf: *mut *mut ::c_char, - outbytesleft: *mut ::size_t, - ) -> ::size_t; - pub fn iconv_close(cd: iconv_t) -> ::c_int; - pub fn iconv_open(tocode: *const ::c_char, fromcode: *const ::c_char) -> iconv_t; -} - -extern "C" { - pub fn acct(filename: *const ::c_char) -> ::c_int; - pub fn aio_cancel(fildes: ::c_int, aiocbp: *mut ::aiocb) -> ::c_int; - pub fn aio_error(aiocbp: *mut ::aiocb) -> ::c_int; - #[link_name = "_posix_aio_fsync"] - pub fn aio_fsync(op: ::c_int, aiocbp: *mut ::aiocb) -> ::c_int; - pub fn aio_read(aiocbp: *mut ::aiocb) -> ::c_int; - // pub fn aio_suspend - // pub fn aio_write - pub fn basename(path: *mut ::c_char) -> *mut ::c_char; - pub fn bind(socket: ::c_int, address: *const ::sockaddr, address_len: ::socklen_t) -> ::c_int; - pub fn brk(addr: *mut ::c_void) -> ::c_int; - pub fn clearenv() -> ::c_int; - pub fn clock_getcpuclockid(pid: ::pid_t, clk_id: *mut ::clockid_t) -> ::c_int; - pub fn clock_getres(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; - pub fn clock_gettime(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; - pub fn clock_nanosleep( - clk_id: ::clockid_t, - flags: ::c_int, - rqtp: *const ::timespec, - rmtp: *mut ::timespec, - ) -> ::c_int; - pub fn clock_settime(clock_id: ::clockid_t, tp: *const ::timespec) -> ::c_int; - pub fn creat64(path: *const c_char, mode: mode_t) -> ::c_int; - pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char; - pub fn dirfd(dirp: *mut ::DIR) -> ::c_int; - pub fn dirname(path: *mut ::c_char) -> *mut ::c_char; - pub fn drand48() -> ::c_double; - pub fn duplocale(arg1: ::locale_t) -> ::locale_t; - pub fn endgrent(); - pub fn endmntent(streamp: *mut ::FILE) -> ::c_int; - pub fn endpwent(); - pub fn endutent(); - pub fn endutxent(); - pub fn erand48(xseed: *mut ::c_ushort) -> ::c_double; - pub fn faccessat( - dirfd: ::c_int, - pathname: *const ::c_char, - mode: ::c_int, - flags: ::c_int, - ) -> ::c_int; - pub fn fattach(fildes: ::c_int, path: *const ::c_char) -> ::c_int; - pub fn fdatasync(fd: ::c_int) -> ::c_int; - pub fn fexecve( - fd: ::c_int, - argv: *const *const ::c_char, - envp: *const *const ::c_char, - ) -> ::c_int; - pub fn ffs(value: ::c_int) -> ::c_int; - pub fn ffsl(value: ::c_long) -> ::c_int; - pub fn ffsll(value: ::c_longlong) -> ::c_int; - pub fn fgetgrent(file: *mut ::FILE) -> *mut ::group; - pub fn fgetpos64(stream: *mut ::FILE, ptr: *mut fpos64_t) -> ::c_int; - pub fn fgetpwent(file: *mut ::FILE) -> *mut ::passwd; - pub fn fopen64(filename: *const c_char, mode: *const c_char) -> *mut ::FILE; - pub fn freelocale(loc: ::locale_t); - pub fn freopen64( - filename: *const c_char, - mode: *const c_char, - file: *mut ::FILE, - ) -> *mut ::FILE; - pub fn fseeko64(stream: *mut ::FILE, offset: ::off64_t, whence: ::c_int) -> ::c_int; - pub fn fsetpos64(stream: *mut ::FILE, ptr: *const fpos64_t) -> ::c_int; - pub fn fstat64(fildes: ::c_int, buf: *mut stat64) -> ::c_int; - pub fn fstatfs(fd: ::c_int, buf: *mut statfs) -> ::c_int; - pub fn fstatfs64(fd: ::c_int, buf: *mut statfs64) -> ::c_int; - pub fn fstatvfs64(fd: ::c_int, buf: *mut statvfs64) -> ::c_int; - pub fn ftello64(stream: *mut ::FILE) -> ::off64_t; - pub fn ftok(path: *const ::c_char, id: ::c_int) -> ::key_t; - pub fn ftruncate64(fd: ::c_int, length: off64_t) -> ::c_int; - pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int; - pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int; - pub fn getdomainname(name: *mut ::c_char, len: ::c_int) -> ::c_int; - pub fn getdtablesize() -> ::c_int; - pub fn getgrent() -> *mut ::group; - pub fn getgrgid(gid: ::gid_t) -> *mut ::group; - pub fn getgrgid_r( - gid: ::gid_t, - grp: *mut ::group, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut ::group, - ) -> ::c_int; - pub fn getgrnam(name: *const ::c_char) -> *mut ::group; - pub fn getgrnam_r( - name: *const ::c_char, - grp: *mut ::group, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut ::group, - ) -> ::c_int; - pub fn getgrset(user: *mut ::c_char) -> *mut ::c_char; - pub fn gethostid() -> ::c_long; - pub fn getmntent(stream: *mut ::FILE) -> *mut ::mntent; - pub fn getnameinfo( - sa: *const ::sockaddr, - salen: ::size_t, - host: *mut ::c_char, - hostlen: ::size_t, - serv: *mut ::c_char, - sevlen: ::size_t, - flags: ::c_int, - ) -> ::c_int; - pub fn getpagesize() -> ::c_int; - pub fn getpeereid(socket: ::c_int, euid: *mut ::uid_t, egid: *mut ::gid_t) -> ::c_int; - pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; - pub fn getpwent() -> *mut ::passwd; - pub fn getpwnam_r( - name: *const ::c_char, - pwd: *mut passwd, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut passwd, - ) -> ::c_int; - pub fn getpwuid_r( - uid: ::uid_t, - pwd: *mut passwd, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut passwd, - ) -> ::c_int; - pub fn getrlimit(resource: ::c_int, rlim: *mut ::rlimit) -> ::c_int; - pub fn getrlimit64(resource: ::c_int, rlim: *mut rlimit64) -> ::c_int; - pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int; - pub fn getitimer(which: ::c_int, curr_value: *mut ::itimerval) -> ::c_int; - pub fn getutent() -> *mut utmp; - pub fn getutid(u: *const utmp) -> *mut utmp; - pub fn getutline(u: *const utmp) -> *mut utmp; - pub fn getutxent() -> *mut utmpx; - pub fn getutxid(ut: *const utmpx) -> *mut utmpx; - pub fn getutxline(ut: *const utmpx) -> *mut utmpx; - pub fn glob( - pattern: *const ::c_char, - flags: ::c_int, - errfunc: ::Option ::c_int>, - pglob: *mut ::glob_t, - ) -> ::c_int; - pub fn globfree(pglob: *mut ::glob_t); - pub fn hasmntopt(mnt: *const ::mntent, opt: *const ::c_char) -> *mut ::c_char; - pub fn hcreate(nelt: ::size_t) -> ::c_int; - pub fn hdestroy(); - pub fn hsearch(entry: entry, action: ::c_int) -> *mut entry; - pub fn if_freenameindex(ptr: *mut if_nameindex); - pub fn if_nameindex() -> *mut if_nameindex; - pub fn initgroups(name: *const ::c_char, basegid: ::gid_t) -> ::c_int; - pub fn ioctl(fildes: ::c_int, request: ::c_int, ...) -> ::c_int; - pub fn jrand48(xseed: *mut ::c_ushort) -> ::c_long; - pub fn lcong48(p: *mut ::c_ushort); - pub fn lfind( - key: *const ::c_void, - base: *const ::c_void, - nelp: *mut ::size_t, - width: ::size_t, - compar: ::Option ::c_int>, - ) -> *mut ::c_void; - pub fn lio_listio( - mode: ::c_int, - aiocb_list: *const *mut aiocb, - nitems: ::c_int, - sevp: *mut sigevent, - ) -> ::c_int; - pub fn loadquery(flags: ::c_int, buf: *mut ::c_char, buflen: ::c_uint) -> ::c_int; - pub fn lpar_get_info(command: ::c_int, buf: *mut ::c_void, bufsize: ::size_t) -> ::c_int; - pub fn lpar_set_resources(id: ::c_int, resource: *mut ::c_void) -> ::c_int; - pub fn lrand48() -> c_long; - pub fn lsearch( - key: *const ::c_void, - base: *mut ::c_void, - nelp: *mut ::size_t, - width: ::size_t, - compar: ::Option ::c_int>, - ) -> *mut ::c_void; - pub fn lseek64(fd: ::c_int, offset: off64_t, whence: ::c_int) -> off64_t; - pub fn lstat64(path: *const c_char, buf: *mut stat64) -> ::c_int; - pub fn madvise(addr: *mut ::c_void, len: ::size_t, advice: ::c_int) -> ::c_int; - pub fn makecontext(ucp: *mut ::ucontext_t, func: extern "C" fn(), argc: ::c_int, ...); - pub fn mallinfo() -> ::mallinfo; - pub fn mallopt(param: ::c_int, value: ::c_int) -> ::c_int; - pub fn memmem( - haystack: *const ::c_void, - haystacklen: ::size_t, - needle: *const ::c_void, - needlelen: ::size_t, - ) -> *mut ::c_void; - pub fn memset_s(s: *mut ::c_void, smax: ::size_t, c: ::c_int, n: ::size_t) -> ::c_int; - pub fn mincore(addr: *const ::c_void, len: ::size_t, vec: *mut ::c_char) -> ::c_int; - pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int; - pub fn mknodat( - dirfd: ::c_int, - pathname: *const ::c_char, - mode: ::mode_t, - dev: dev_t, - ) -> ::c_int; - pub fn mount(device: *const ::c_char, path: *const ::c_char, flags: ::c_int) -> ::c_int; - pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int) -> ::c_int; - pub fn mq_close(mqd: ::mqd_t) -> ::c_int; - pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; - pub fn mq_notify(mqd: ::mqd_t, notification: *const ::sigevent) -> ::c_int; - pub fn mq_open(name: *const ::c_char, oflag: ::c_int, ...) -> ::mqd_t; - pub fn mq_receive( - mqd: ::mqd_t, - msg_ptr: *mut ::c_char, - msg_len: ::size_t, - msg_prio: *mut ::c_uint, - ) -> ::ssize_t; - pub fn mq_send( - mqd: ::mqd_t, - msg_ptr: *const ::c_char, - msg_len: ::size_t, - msg_prio: ::c_uint, - ) -> ::c_int; - pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int; - pub fn mq_timedreceive( - mqd: ::mqd_t, - msg_ptr: *mut ::c_char, - msg_len: ::size_t, - msg_prio: *mut ::c_uint, - abs_timeout: *const ::timespec, - ) -> ::ssize_t; - pub fn mq_timedsend( - mqd: ::mqd_t, - msg_ptr: *const ::c_char, - msg_len: ::size_t, - msg_prio: ::c_uint, - abs_timeout: *const ::timespec, - ) -> ::c_int; - pub fn mq_unlink(name: *const ::c_char) -> ::c_int; - pub fn mrand48() -> c_long; - pub fn msgctl(msqid: ::c_int, cmd: ::c_int, buf: *mut msqid_ds) -> ::c_int; - pub fn msgget(key: ::key_t, msgflg: ::c_int) -> ::c_int; - pub fn msgrcv( - msqid: ::c_int, - msgp: *mut ::c_void, - msgsz: ::size_t, - msgtyp: ::c_long, - msgflg: ::c_int, - ) -> ::ssize_t; - pub fn msgsnd( - msqid: ::c_int, - msgp: *const ::c_void, - msgsz: ::size_t, - msgflg: ::c_int, - ) -> ::c_int; - pub fn msync(addr: *mut ::c_void, len: ::size_t, flags: ::c_int) -> ::c_int; - pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t; - pub fn nl_langinfo(item: ::nl_item) -> *mut ::c_char; - pub fn nl_langinfo_l(item: ::nl_item, loc: ::locale_t) -> *mut ::c_char; - pub fn nrand48(xseed: *mut ::c_ushort) -> ::c_long; - pub fn open64(path: *const c_char, oflag: ::c_int, ...) -> ::c_int; - pub fn pollset_create(maxfd: ::c_int) -> pollset_t; - pub fn pollset_ctl( - ps: pollset_t, - pollctl_array: *mut poll_ctl, - array_length: ::c_int, - ) -> ::c_int; - pub fn pollset_destroy(ps: pollset_t) -> ::c_int; - pub fn pollset_poll( - ps: pollset_t, - polldata_array: *mut ::pollfd, - array_length: ::c_int, - timeout: ::c_int, - ) -> ::c_int; - pub fn pollset_query(ps: pollset_t, pollfd_query: *mut ::pollfd) -> ::c_int; - pub fn popen(command: *const c_char, mode: *const c_char) -> *mut ::FILE; - pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int; - pub fn posix_fadvise64( - fd: ::c_int, - offset: ::off64_t, - len: ::off64_t, - advise: ::c_int, - ) -> ::c_int; - pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; - pub fn posix_fallocate64(fd: ::c_int, offset: ::off64_t, len: ::off64_t) -> ::c_int; - pub fn posix_madvise(addr: *mut ::c_void, len: ::size_t, advice: ::c_int) -> ::c_int; - pub fn posix_spawn( - pid: *mut ::pid_t, - path: *const ::c_char, - file_actions: *const ::posix_spawn_file_actions_t, - attrp: *const ::posix_spawnattr_t, - argv: *const *mut ::c_char, - envp: *const *mut ::c_char, - ) -> ::c_int; - pub fn posix_spawn_file_actions_addclose( - actions: *mut posix_spawn_file_actions_t, - fd: ::c_int, - ) -> ::c_int; - pub fn posix_spawn_file_actions_adddup2( - actions: *mut posix_spawn_file_actions_t, - fd: ::c_int, - newfd: ::c_int, - ) -> ::c_int; - pub fn posix_spawn_file_actions_addopen( - actions: *mut posix_spawn_file_actions_t, - fd: ::c_int, - path: *const ::c_char, - oflag: ::c_int, - mode: ::mode_t, - ) -> ::c_int; - pub fn posix_spawn_file_actions_destroy(actions: *mut posix_spawn_file_actions_t) -> ::c_int; - pub fn posix_spawn_file_actions_init(actions: *mut posix_spawn_file_actions_t) -> ::c_int; - pub fn posix_spawnattr_destroy(attr: *mut posix_spawnattr_t) -> ::c_int; - pub fn posix_spawnattr_getflags( - attr: *const posix_spawnattr_t, - flags: *mut ::c_short, - ) -> ::c_int; - pub fn posix_spawnattr_getpgroup( - attr: *const posix_spawnattr_t, - flags: *mut ::pid_t, - ) -> ::c_int; - pub fn posix_spawnattr_getschedparam( - attr: *const posix_spawnattr_t, - param: *mut ::sched_param, - ) -> ::c_int; - pub fn posix_spawnattr_getschedpolicy( - attr: *const posix_spawnattr_t, - flags: *mut ::c_int, - ) -> ::c_int; - pub fn posix_spawnattr_getsigdefault( - attr: *const posix_spawnattr_t, - default: *mut sigset_t, - ) -> ::c_int; - pub fn posix_spawnattr_getsigmask( - attr: *const posix_spawnattr_t, - default: *mut sigset_t, - ) -> ::c_int; - pub fn posix_spawnattr_init(attr: *mut posix_spawnattr_t) -> ::c_int; - pub fn posix_spawnattr_setflags(attr: *mut posix_spawnattr_t, flags: ::c_short) -> ::c_int; - pub fn posix_spawnattr_setpgroup(attr: *mut posix_spawnattr_t, flags: ::pid_t) -> ::c_int; - pub fn posix_spawnattr_setschedparam( - attr: *mut posix_spawnattr_t, - param: *const ::sched_param, - ) -> ::c_int; - pub fn posix_spawnattr_setschedpolicy(attr: *mut posix_spawnattr_t, flags: ::c_int) -> ::c_int; - pub fn posix_spawnattr_setsigdefault( - attr: *mut posix_spawnattr_t, - default: *const ::sigset_t, - ) -> ::c_int; - pub fn posix_spawnattr_setsigmask( - attr: *mut posix_spawnattr_t, - default: *const ::sigset_t, - ) -> ::c_int; - pub fn posix_spawnp( - pid: *mut ::pid_t, - file: *const ::c_char, - file_actions: *const ::posix_spawn_file_actions_t, - attrp: *const ::posix_spawnattr_t, - argv: *const *mut ::c_char, - envp: *const *mut ::c_char, - ) -> ::c_int; - pub fn pread64(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off64_t) -> ::ssize_t; - pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t; - pub fn ptrace64( - request: ::c_int, - id: ::c_longlong, - addr: ::c_longlong, - data: ::c_int, - buff: *mut ::c_int, - ) -> ::c_int; - pub fn pututline(u: *const utmp) -> *mut utmp; - pub fn pututxline(ut: *const utmpx) -> *mut utmpx; - pub fn pwrite64( - fd: ::c_int, - buf: *const ::c_void, - count: ::size_t, - offset: off64_t, - ) -> ::ssize_t; - pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) - -> ::ssize_t; - #[link_name = "__linux_quotactl"] - pub fn quotactl( - cmd: ::c_int, - special: *const ::c_char, - id: ::c_int, - data: *mut ::c_char, - ) -> ::c_int; - pub fn rand() -> ::c_int; - pub fn readv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t; - pub fn recvfrom( - socket: ::c_int, - buf: *mut ::c_void, - len: ::size_t, - flags: ::c_int, - addr: *mut ::sockaddr, - addrlen: *mut ::socklen_t, - ) -> ::ssize_t; - pub fn recvmmsg( - sockfd: ::c_int, - msgvec: *mut ::mmsghdr, - vlen: ::c_uint, - flags: ::c_int, - timeout: *mut ::timespec, - ) -> ::c_int; - pub fn recvmsg(sockfd: ::c_int, msg: *mut msghdr, flags: ::c_int) -> ::ssize_t; - pub fn regcomp(preg: *mut regex_t, pattern: *const ::c_char, cflags: ::c_int) -> ::c_int; - pub fn regerror( - errcode: ::c_int, - preg: *const ::regex_t, - errbuf: *mut ::c_char, - errbuf_size: ::size_t, - ) -> ::size_t; - pub fn regexec( - preg: *const regex_t, - input: *const ::c_char, - nmatch: ::size_t, - pmatch: *mut regmatch_t, - eflags: ::c_int, - ) -> ::c_int; - pub fn regfree(preg: *mut regex_t); - pub fn sbrk(increment: ::intptr_t) -> *mut ::c_void; - pub fn sched_getparam(pid: ::pid_t, param: *mut sched_param) -> ::c_int; - pub fn sched_getscheduler(pid: ::pid_t) -> ::c_int; - pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int; - pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int; - pub fn sched_rr_get_interval(pid: ::pid_t, tp: *mut ::timespec) -> ::c_int; - pub fn sched_setparam(pid: ::pid_t, param: *const ::sched_param) -> ::c_int; - pub fn sched_setscheduler( - pid: ::pid_t, - policy: ::c_int, - param: *const ::sched_param, - ) -> ::c_int; - pub fn sctp_opt_info( - sd: ::c_int, - id: ::sctp_assoc_t, - opt: ::c_int, - arg_size: *mut ::c_void, - size: *mut ::size_t, - ) -> ::c_int; - pub fn sctp_peeloff(s: ::c_int, id: ::sctp_assoc_t) -> ::c_int; - pub fn seed48(xseed: *mut ::c_ushort) -> *mut ::c_ushort; - pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long); - pub fn sem_close(sem: *mut sem_t) -> ::c_int; - pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; - pub fn sem_getvalue(sem: *mut sem_t, sval: *mut ::c_int) -> ::c_int; - pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; - pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t; - pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int; - pub fn sem_unlink(name: *const ::c_char) -> ::c_int; - pub fn semctl(semid: ::c_int, semnum: ::c_int, cmd: ::c_int, ...) -> ::c_int; - pub fn semget(key: ::key_t, nsems: ::c_int, semflag: ::c_int) -> ::c_int; - pub fn semop(semid: ::c_int, sops: *mut sembuf, nsops: ::size_t) -> ::c_int; - pub fn send_file(socket: *mut ::c_int, iobuf: *mut sf_parms, flags: ::c_uint) -> ::ssize_t; - pub fn sendmmsg( - sockfd: ::c_int, - msgvec: *mut mmsghdr, - vlen: ::c_uint, - flags: ::c_int, - ) -> ::c_int; - pub fn sendmsg(sockfd: ::c_int, msg: *const msghdr, flags: ::c_int) -> ::ssize_t; - pub fn setcontext(ucp: *const ucontext_t) -> ::c_int; - pub fn setdomainname(name: *const ::c_char, len: ::c_int) -> ::c_int; - pub fn setgroups(ngroups: ::c_int, ptr: *const ::gid_t) -> ::c_int; - pub fn setgrent(); - pub fn sethostid(hostid: ::c_int) -> ::c_int; - pub fn sethostname(name: *const ::c_char, len: ::c_int) -> ::c_int; - pub fn setmntent(filename: *const ::c_char, ty: *const ::c_char) -> *mut ::FILE; - pub fn setpriority(which: ::c_int, who: id_t, priority: ::c_int) -> ::c_int; - pub fn setpwent(); - pub fn setrlimit(resource: ::c_int, rlim: *const ::rlimit) -> ::c_int; - pub fn setrlimit64(resource: ::c_int, rlim: *const rlimit64) -> ::c_int; - pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int; - pub fn setitimer( - which: ::c_int, - new_value: *const ::itimerval, - old_value: *mut ::itimerval, - ) -> ::c_int; - pub fn setutent(); - pub fn setutxent(); - pub fn sigaltstack(ss: *const stack_t, oss: *mut stack_t) -> ::c_int; - pub fn sigsuspend(mask: *const ::sigset_t) -> ::c_int; - pub fn sigtimedwait( - set: *const sigset_t, - info: *mut siginfo_t, - timeout: *const ::timespec, - ) -> ::c_int; - pub fn sigwait(set: *const sigset_t, sig: *mut ::c_int) -> ::c_int; - pub fn sigwaitinfo(set: *const sigset_t, info: *mut siginfo_t) -> ::c_int; - pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void; - pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int; - pub fn shmctl(shmid: ::c_int, cmd: ::c_int, buf: *mut ::shmid_ds) -> ::c_int; - pub fn shmget(key: key_t, size: ::size_t, shmflg: ::c_int) -> ::c_int; - pub fn shm_open(name: *const ::c_char, oflag: ::c_int, mode: ::mode_t) -> ::c_int; - pub fn shm_unlink(name: *const ::c_char) -> ::c_int; - pub fn splice(socket1: ::c_int, socket2: ::c_int, flags: ::c_int) -> ::c_int; - pub fn srand(seed: ::c_uint); - pub fn srand48(seed: ::c_long); - pub fn stat64(path: *const c_char, buf: *mut stat64) -> ::c_int; - pub fn statfs(path: *const ::c_char, buf: *mut statfs) -> ::c_int; - pub fn statfs64(path: *const ::c_char, buf: *mut statfs64) -> ::c_int; - pub fn statvfs64(path: *const ::c_char, buf: *mut statvfs64) -> ::c_int; - pub fn statx( - path: *const ::c_char, - buf: *mut stat, - length: ::c_int, - command: ::c_int, - ) -> ::c_int; - pub fn strcasecmp_l( - string1: *const ::c_char, - string2: *const ::c_char, - locale: ::locale_t, - ) -> ::c_int; - pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int; - pub fn strftime( - arg1: *mut c_char, - arg2: ::size_t, - arg3: *const c_char, - arg4: *const tm, - ) -> ::size_t; - pub fn strncasecmp_l( - string1: *const ::c_char, - string2: *const ::c_char, - length: ::size_t, - locale: ::locale_t, - ) -> ::c_int; - pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char; - pub fn strsep(string: *mut *mut ::c_char, delim: *const ::c_char) -> *mut ::c_char; - pub fn swapcontext(uocp: *mut ucontext_t, ucp: *const ucontext_t) -> ::c_int; - pub fn swapoff(puath: *const ::c_char) -> ::c_int; - pub fn swapon(path: *const ::c_char) -> ::c_int; - pub fn sync(); - pub fn telldir(dirp: *mut ::DIR) -> ::c_long; - pub fn timer_create( - clockid: ::clockid_t, - sevp: *mut ::sigevent, - timerid: *mut ::timer_t, - ) -> ::c_int; - pub fn timer_delete(timerid: timer_t) -> ::c_int; - pub fn timer_getoverrun(timerid: timer_t) -> ::c_int; - pub fn timer_gettime(timerid: timer_t, value: *mut itimerspec) -> ::c_int; - pub fn timer_settime( - timerid: ::timer_t, - flags: ::c_int, - new_value: *const ::itimerspec, - old_value: *mut ::itimerspec, - ) -> ::c_int; - pub fn truncate64(path: *const c_char, length: off64_t) -> ::c_int; - pub fn uname(buf: *mut ::utsname) -> ::c_int; - pub fn updwtmp(file: *const ::c_char, u: *mut utmp); - pub fn uselocale(loc: ::locale_t) -> ::locale_t; - pub fn utmpname(file: *const ::c_char) -> ::c_int; - pub fn utimensat( - dirfd: ::c_int, - path: *const ::c_char, - times: *const ::timespec, - flag: ::c_int, - ) -> ::c_int; - pub fn wait4( - pid: ::pid_t, - status: *mut ::c_int, - options: ::c_int, - rusage: *mut ::rusage, - ) -> ::pid_t; - pub fn waitid(idtype: idtype_t, id: id_t, infop: *mut ::siginfo_t, options: ::c_int) - -> ::c_int; - pub fn writev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t; - - // Use AIX thread-safe version errno. - pub fn _Errno() -> *mut ::c_int; -} - -cfg_if! { - if #[cfg(target_arch = "powerpc64")] { - mod powerpc64; - pub use self::powerpc64::*; - } -} diff --git a/third_party/rust/libc/src/unix/aix/powerpc64.rs b/third_party/rust/libc/src/unix/aix/powerpc64.rs deleted file mode 100644 index 2cacf29f6b41..000000000000 --- a/third_party/rust/libc/src/unix/aix/powerpc64.rs +++ /dev/null @@ -1,644 +0,0 @@ -pub type c_long = i64; -pub type c_ulong = u64; - -s! { - pub struct sigset_t { - pub ss_set: [c_ulong; 4], - } - - pub struct fd_set { - pub fds_bits: [c_long; 1024], - } - - pub struct flock { - pub l_type: ::c_short, - pub l_whence: ::c_short, - pub l_sysid: ::c_uint, - pub l_pid: ::pid_t, - pub l_vfs: ::c_int, - pub l_start: ::off_t, - pub l_len: ::off_t, - } - - pub struct statvfs { - pub f_bsize: ::c_ulong, - pub f_frsize: ::c_ulong, - pub f_blocks: ::fsblkcnt_t, - pub f_bfree: ::fsblkcnt_t, - pub f_bavail: ::fsblkcnt_t, - pub f_files: ::fsfilcnt_t, - pub f_ffree: ::fsfilcnt_t, - pub f_favail: ::fsfilcnt_t, - pub f_fsid: ::c_ulong, - pub f_basetype: [::c_char; 16], - pub f_flag: ::c_ulong, - pub f_namemax: ::c_ulong, - pub f_fstr: [::c_char; 32], - pub f_filler: [::c_ulong; 16] - } - - pub struct pthread_rwlock_t { - __rw_word: [::c_long; 10], - } - - pub struct pthread_cond_t { - __cv_word: [::c_long; 6], - } - - pub struct pthread_mutex_t { - __mt_word: [::c_long; 8], - } - - pub struct stat { - pub st_dev: ::dev_t, - pub st_ino: ::ino_t, - pub st_mode: ::mode_t, - pub st_nlink: ::nlink_t, - pub st_flag: ::c_ushort, - pub st_uid: ::uid_t, - pub st_gid: ::gid_t, - pub st_rdev: ::dev_t, - pub st_ssize: ::c_int, - pub st_atime: ::st_timespec, - pub st_mtime: ::st_timespec, - pub st_ctime: ::st_timespec, - pub st_blksize: ::blksize_t, - pub st_blocks: ::blkcnt_t, - pub st_vfstype: ::c_int, - pub st_vfs: ::c_uint, - pub st_type: ::c_uint, - pub st_gen: ::c_uint, - pub st_reserved: [::c_uint; 9], - pub st_padto_ll: ::c_uint, - pub st_size: ::off_t, - } - - pub struct statfs { - pub f_version: ::c_int, - pub f_type: ::c_int, - pub f_bsize: ::c_ulong, - pub f_blocks: ::fsblkcnt_t, - pub f_bfree: ::fsblkcnt_t, - pub f_bavail: ::fsblkcnt_t, - pub f_files: ::fsblkcnt_t, - pub f_ffree: ::fsblkcnt_t, - pub f_fsid: ::fsid64_t, - pub f_vfstype: ::c_int, - pub f_fsize: ::c_ulong, - pub f_vfsnumber: ::c_int, - pub f_vfsoff: ::c_int, - pub f_vfslen: ::c_int, - pub f_vfsvers: ::c_int, - pub f_fname: [::c_char; 32], - pub f_fpack: [::c_char; 32], - pub f_name_max: ::c_int, - } - - pub struct aiocb { - pub aio_lio_opcode: ::c_int, - pub aio_fildes: ::c_int, - pub aio_word1: ::c_int, - pub aio_offset: ::off_t, - pub aio_buf: *mut ::c_void, - pub aio_return: ::ssize_t, - pub aio_errno: ::c_int, - pub aio_nbytes: ::size_t, - pub aio_reqprio: ::c_int, - pub aio_sigevent: ::sigevent, - pub aio_word2: ::c_int, - pub aio_fp: ::c_int, - pub aio_handle: *mut aiocb, - pub aio_reserved: [::c_uint; 2], - pub aio_sigev_tid: c_long, - } - - pub struct ucontext_t { - pub __sc_onstack: ::c_int, - pub uc_sigmask: ::sigset_t, - pub __sc_uerror: ::c_int, - pub uc_mcontext: ::mcontext_t, - pub uc_link: *mut ucontext_t, - pub uc_stack: ::stack_t, - // Should be pointer to __extctx_t - pub __extctx: *mut ::c_void, - pub __extctx_magic: ::c_int, - pub __pad: [::c_int; 1], - } - - pub struct mcontext_t { - pub gpr: [::c_ulonglong; 32], - pub msr: ::c_ulonglong, - pub iar: ::c_ulonglong, - pub lr: ::c_ulonglong, - pub ctr: ::c_ulonglong, - pub cr: ::c_uint, - pub xer: ::c_uint, - pub fpscr: ::c_uint, - pub fpscrx: ::c_uint, - pub except: [::c_ulonglong; 1], - // Should be array of double type - pub fpr: [::uint64_t; 32], - pub fpeu: ::c_char, - pub fpinfo: ::c_char, - pub fpscr24_31: ::c_char, - pub pad: [::c_char; 1], - pub excp_type: ::c_int, - } - - pub struct utmpx { - pub ut_user: [::c_char; 256], - pub ut_id: [::c_char; 14], - pub ut_line: [::c_char; 64], - pub ut_pid: ::pid_t, - pub ut_type: ::c_short, - pub ut_tv: ::timeval, - pub ut_host: [::c_char; 256], - pub __dbl_word_pad: ::c_int, - pub __reservedA: [::c_int; 2], - pub __reservedV: [::c_int; 6], - } - - pub struct pthread_spinlock_t { - pub __sp_word: [::c_long; 3], - } - - pub struct pthread_barrier_t { - pub __br_word: [::c_long; 5], - } - - pub struct msqid_ds { - pub msg_perm: ::ipc_perm, - pub msg_first: ::c_uint, - pub msg_last: ::c_uint, - pub msg_cbytes: ::c_uint, - pub msg_qnum: ::c_uint, - pub msg_qbytes: ::c_ulong, - pub msg_lspid: ::pid_t, - pub msg_lrpid: ::pid_t, - pub msg_stime: ::time_t, - pub msg_rtime: ::time_t, - pub msg_ctime: ::time_t, - pub msg_rwait: ::c_int, - pub msg_wwait: ::c_int, - pub msg_reqevents: ::c_ushort, - } -} - -s_no_extra_traits! { - pub struct siginfo_t { - pub si_signo: ::c_int, - pub si_errno: ::c_int, - pub si_code: ::c_int, - pub si_pid: ::pid_t, - pub si_uid: ::uid_t, - pub si_status: ::c_int, - pub si_addr: *mut ::c_void, - pub si_band: ::c_long, - pub si_value: ::sigval, - pub __si_flags: ::c_int, - pub __pad: [::c_int; 3], - } - - #[cfg(libc_union)] - pub union _kernel_simple_lock { - pub _slock: ::c_long, - // Should be pointer to 'lock_data_instrumented' - pub _slockp: *mut ::c_void, - } - - pub struct fileops_t { - pub fo_rw: extern fn(file: *mut file, rw: ::uio_rw, io: *mut ::c_void, ext: ::c_long, - secattr: *mut ::c_void) -> ::c_int, - pub fo_ioctl: extern fn(file: *mut file, a: ::c_long, b: ::caddr_t, c: ::c_long, - d: ::c_long) -> ::c_int, - pub fo_select: extern fn(file: *mut file, a: ::c_int, b: *mut ::c_ushort, - c: extern fn()) -> ::c_int, - pub fo_close: extern fn(file: *mut file) -> ::c_int, - pub fo_fstat: extern fn(file: *mut file, sstat: *mut ::stat) -> ::c_int, - } - - pub struct file { - pub f_flag: ::c_long, - pub f_count: ::c_int, - pub f_options: ::c_short, - pub f_type: ::c_short, - // Should be pointer to 'vnode' - pub f_data: *mut ::c_void, - pub f_offset: ::c_longlong, - pub f_dir_off: ::c_long, - // Should be pointer to 'cred' - pub f_cred: *mut ::c_void, - #[cfg(libc_union)] - pub f_lock: _kernel_simple_lock, - #[cfg(libc_union)] - pub f_offset_lock: _kernel_simple_lock, - pub f_vinfo: ::caddr_t, - pub f_ops: *mut fileops_t, - pub f_parentp: ::caddr_t, - pub f_fnamep: ::caddr_t, - pub f_fdata: [::c_char; 160], - } - - #[cfg(libc_union)] - pub union __ld_info_file { - pub _ldinfo_fd: ::c_int, - pub _ldinfo_fp: *mut file, - pub _core_offset: ::c_long, - } - - pub struct ld_info { - pub ldinfo_next: ::c_uint, - pub ldinfo_flags: ::c_uint, - #[cfg(libc_union)] - pub _file: __ld_info_file, - pub ldinfo_textorg: *mut ::c_void, - pub ldinfo_textsize: ::c_ulong, - pub ldinfo_dataorg: *mut ::c_void, - pub ldinfo_datasize: ::c_ulong, - pub ldinfo_filename: [::c_char; 2], - } - - #[cfg(libc_union)] - pub union __pollfd_ext_u { - pub addr: *mut ::c_void, - pub data32: u32, - pub data: u64, - } - - pub struct pollfd_ext { - pub fd: ::c_int, - pub events: ::c_ushort, - pub revents: ::c_ushort, - #[cfg(libc_union)] - pub data: __pollfd_ext_u, - } -} - -impl siginfo_t { - pub unsafe fn si_addr(&self) -> *mut ::c_void { - self.si_addr - } - - pub unsafe fn si_value(&self) -> ::sigval { - self.si_value - } - - pub unsafe fn si_pid(&self) -> ::pid_t { - self.si_pid - } - - pub unsafe fn si_uid(&self) -> ::uid_t { - self.si_uid - } - - pub unsafe fn si_status(&self) -> ::c_int { - self.si_status - } -} - -cfg_if! { - if #[cfg(feature = "extra_traits")] { - impl PartialEq for siginfo_t { - fn eq(&self, other: &siginfo_t) -> bool { - #[cfg(libc_union)] - let value_eq = self.si_value == other.si_value; - #[cfg(not(libc_union))] - let value_eq = true; - self.si_signo == other.si_signo - && self.si_errno == other.si_errno - && self.si_code == other.si_code - && self.si_pid == other.si_pid - && self.si_uid == other.si_uid - && self.si_status == other.si_status - && self.si_addr == other.si_addr - && self.si_band == other.si_band - && self.__si_flags == other.__si_flags - && value_eq - } - } - impl Eq for siginfo_t {} - impl ::fmt::Debug for siginfo_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let mut struct_formatter = f.debug_struct("siginfo_t"); - struct_formatter.field("si_signo", &self.si_signo); - struct_formatter.field("si_errno", &self.si_errno); - struct_formatter.field("si_code", &self.si_code); - struct_formatter.field("si_pid", &self.si_pid); - struct_formatter.field("si_uid", &self.si_uid); - struct_formatter.field("si_status", &self.si_status); - struct_formatter.field("si_addr", &self.si_addr); - struct_formatter.field("si_band", &self.si_band); - #[cfg(libc_union)] - struct_formatter.field("si_value", &self.si_value); - struct_formatter.field("__si_flags", &self.__si_flags); - struct_formatter.finish() - } - } - impl ::hash::Hash for siginfo_t { - fn hash(&self, state: &mut H) { - self.si_signo.hash(state); - self.si_errno.hash(state); - self.si_code.hash(state); - self.si_pid.hash(state); - self.si_uid.hash(state); - self.si_status.hash(state); - self.si_addr.hash(state); - self.si_band.hash(state); - #[cfg(libc_union)] - self.si_value.hash(state); - self.__si_flags.hash(state); - } - } - - #[cfg(libc_union)] - impl PartialEq for _kernel_simple_lock { - fn eq(&self, other: &_kernel_simple_lock) -> bool { - unsafe { - self._slock == other._slock - && self._slockp == other._slockp - } - } - } - #[cfg(libc_union)] - impl Eq for _kernel_simple_lock {} - #[cfg(libc_union)] - impl ::fmt::Debug for _kernel_simple_lock { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("_kernel_simple_lock") - .field("_slock", unsafe { &self._slock }) - .field("_slockp", unsafe { &self._slockp }) - .finish() - } - } - #[cfg(libc_union)] - impl ::hash::Hash for _kernel_simple_lock { - fn hash(&self, state: &mut H) { - unsafe { - self._slock.hash(state); - self._slockp.hash(state); - } - } - } - - impl PartialEq for fileops_t { - fn eq(&self, other: &fileops_t) -> bool { - self.fo_rw == other.fo_rw - && self.fo_ioctl == other.fo_ioctl - && self.fo_select == other.fo_select - && self.fo_close == other.fo_close - && self.fo_fstat == other.fo_fstat - } - } - impl Eq for fileops_t {} - impl ::fmt::Debug for fileops_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let mut struct_formatter = f.debug_struct("fileops_t"); - struct_formatter.field("fo_rw", &self.fo_rw); - struct_formatter.field("fo_ioctl", &self.fo_ioctl); - struct_formatter.field("fo_select", &self.fo_select); - struct_formatter.field("fo_close", &self.fo_close); - struct_formatter.field("fo_fstat", &self.fo_fstat); - struct_formatter.finish() - } - } - impl ::hash::Hash for fileops_t { - fn hash(&self, state: &mut H) { - self.fo_rw.hash(state); - self.fo_ioctl.hash(state); - self.fo_select.hash(state); - self.fo_close.hash(state); - self.fo_fstat.hash(state); - } - } - - impl PartialEq for file { - fn eq(&self, other: &file) -> bool { - #[cfg(libc_union)] - let lock_eq = self.f_lock == other.f_lock - && self.f_offset_lock == other.f_offset_lock; - #[cfg(not(libc_union))] - let lock_eq = true; - self.f_flag == other.f_flag - && self.f_count == other.f_count - && self.f_options == other.f_options - && self.f_type == other.f_type - && self.f_data == other.f_data - && self.f_offset == other.f_offset - && self.f_dir_off == other.f_dir_off - && self.f_cred == other.f_cred - && self.f_vinfo == other.f_vinfo - && self.f_ops == other.f_ops - && self.f_parentp == other.f_parentp - && self.f_fnamep == other.f_fnamep - && self.f_fdata == other.f_fdata - && lock_eq - } - } - impl Eq for file {} - impl ::fmt::Debug for file { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let mut struct_formatter = f.debug_struct("file"); - struct_formatter.field("f_flag", &self.f_flag); - struct_formatter.field("f_count", &self.f_count); - struct_formatter.field("f_options", &self.f_options); - struct_formatter.field("f_type", &self.f_type); - struct_formatter.field("f_data", &self.f_data); - struct_formatter.field("f_offset", &self.f_offset); - struct_formatter.field("f_dir_off", &self.f_dir_off); - struct_formatter.field("f_cred", &self.f_cred); - #[cfg(libc_union)] - struct_formatter.field("f_lock", &self.f_lock); - #[cfg(libc_union)] - struct_formatter.field("f_offset_lock", &self.f_offset_lock); - struct_formatter.field("f_vinfo", &self.f_vinfo); - struct_formatter.field("f_ops", &self.f_ops); - struct_formatter.field("f_parentp", &self.f_parentp); - struct_formatter.field("f_fnamep", &self.f_fnamep); - struct_formatter.field("f_fdata", &self.f_fdata); - struct_formatter.finish() - } - } - impl ::hash::Hash for file { - fn hash(&self, state: &mut H) { - self.f_flag.hash(state); - self.f_count.hash(state); - self.f_options.hash(state); - self.f_type.hash(state); - self.f_data.hash(state); - self.f_offset.hash(state); - self.f_dir_off.hash(state); - self.f_cred.hash(state); - #[cfg(libc_union)] - self.f_lock.hash(state); - #[cfg(libc_union)] - self.f_offset_lock.hash(state); - self.f_vinfo.hash(state); - self.f_ops.hash(state); - self.f_parentp.hash(state); - self.f_fnamep.hash(state); - self.f_fdata.hash(state); - } - } - - #[cfg(libc_union)] - impl PartialEq for __ld_info_file { - fn eq(&self, other: &__ld_info_file) -> bool { - unsafe { - self._ldinfo_fd == other._ldinfo_fd - && self._ldinfo_fp == other._ldinfo_fp - && self._core_offset == other._core_offset - } - } - } - #[cfg(libc_union)] - impl Eq for __ld_info_file {} - #[cfg(libc_union)] - impl ::fmt::Debug for __ld_info_file { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("__ld_info_file") - .field("_ldinfo_fd", unsafe { &self._ldinfo_fd }) - .field("_ldinfo_fp", unsafe { &self._ldinfo_fp }) - .field("_core_offset", unsafe { &self._core_offset }) - .finish() - } - } - #[cfg(libc_union)] - impl ::hash::Hash for __ld_info_file { - fn hash(&self, state: &mut H) { - unsafe { - self._ldinfo_fd.hash(state); - self._ldinfo_fp.hash(state); - self._core_offset.hash(state); - } - } - } - - impl PartialEq for ld_info { - fn eq(&self, other: &ld_info) -> bool { - #[cfg(libc_union)] - let file_eq = self._file == other._file; - #[cfg(not(libc_union))] - let file_eq = true; - self.ldinfo_next == other.ldinfo_next - && self.ldinfo_flags == other.ldinfo_flags - && self.ldinfo_textorg == other.ldinfo_textorg - && self.ldinfo_textsize == other.ldinfo_textsize - && self.ldinfo_dataorg == other.ldinfo_dataorg - && self.ldinfo_datasize == other.ldinfo_datasize - && self.ldinfo_filename == other.ldinfo_filename - && file_eq - } - } - impl Eq for ld_info {} - impl ::fmt::Debug for ld_info { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let mut struct_formatter = f.debug_struct("ld_info"); - struct_formatter.field("ldinfo_next", &self.ldinfo_next); - struct_formatter.field("ldinfo_flags", &self.ldinfo_flags); - struct_formatter.field("ldinfo_textorg", &self.ldinfo_textorg); - struct_formatter.field("ldinfo_textsize", &self.ldinfo_textsize); - struct_formatter.field("ldinfo_dataorg", &self.ldinfo_dataorg); - struct_formatter.field("ldinfo_datasize", &self.ldinfo_datasize); - struct_formatter.field("ldinfo_filename", &self.ldinfo_filename); - #[cfg(libc_union)] - struct_formatter.field("_file", &self._file); - struct_formatter.finish() - } - } - impl ::hash::Hash for ld_info { - fn hash(&self, state: &mut H) { - self.ldinfo_next.hash(state); - self.ldinfo_flags.hash(state); - self.ldinfo_textorg.hash(state); - self.ldinfo_textsize.hash(state); - self.ldinfo_dataorg.hash(state); - self.ldinfo_datasize.hash(state); - self.ldinfo_filename.hash(state); - #[cfg(libc_union)] - self._file.hash(state); - } - } - - #[cfg(libc_union)] - impl PartialEq for __pollfd_ext_u { - fn eq(&self, other: &__pollfd_ext_u) -> bool { - unsafe { - self.addr == other.addr - && self.data32 == other.data32 - && self.data == other.data - } - } - } - #[cfg(libc_union)] - impl Eq for __pollfd_ext_u {} - #[cfg(libc_union)] - impl ::fmt::Debug for __pollfd_ext_u { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("__pollfd_ext_u") - .field("addr", unsafe { &self.addr }) - .field("data32", unsafe { &self.data32 }) - .field("data", unsafe { &self.data }) - .finish() - } - } - #[cfg(libc_union)] - impl ::hash::Hash for __pollfd_ext_u { - fn hash(&self, state: &mut H) { - unsafe { - self.addr.hash(state); - self.data.hash(state); - self.data32.hash(state); - } - } - } - - impl PartialEq for pollfd_ext { - fn eq(&self, other: &pollfd_ext) -> bool { - #[cfg(libc_union)] - let data_eq = self.data == other.data; - #[cfg(not(libc_union))] - let data_eq = true; - self.fd == other.fd - && self.events == other.events - && self.revents == other.revents - && data_eq - } - } - impl Eq for pollfd_ext {} - impl ::fmt::Debug for pollfd_ext { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let mut struct_formatter = f.debug_struct("pollfd_ext"); - struct_formatter.field("fd", &self.fd); - struct_formatter.field("events", &self.events); - struct_formatter.field("revents", &self.revents); - #[cfg(libc_union)] - struct_formatter.field("data", &self.data); - struct_formatter.finish() - } - } - impl ::hash::Hash for pollfd_ext { - fn hash(&self, state: &mut H) { - self.fd.hash(state); - self.events.hash(state); - self.revents.hash(state); - #[cfg(libc_union)] - self.data.hash(state); - } - } - } -} - -pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = pthread_mutex_t { - __mt_word: [0, 2, 0, 0, 0, 0, 0, 0], -}; -pub const PTHREAD_COND_INITIALIZER: pthread_cond_t = pthread_cond_t { - __cv_word: [0, 0, 0, 0, 2, 0], -}; -pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t { - __rw_word: [2, 0, 0, 0, 0, 0, 0, 0, 0, 0], -}; -pub const RLIM_INFINITY: ::c_ulong = 0x7fffffffffffffff; - -extern "C" { - pub fn getsystemcfg(label: ::c_int) -> ::c_ulong; -} diff --git a/third_party/rust/libc/src/unix/bsd/apple/b64/aarch64/align.rs b/third_party/rust/libc/src/unix/bsd/apple/b64/aarch64/align.rs index 131e15b69ad9..29db97ec7c47 100644 --- a/third_party/rust/libc/src/unix/bsd/apple/b64/aarch64/align.rs +++ b/third_party/rust/libc/src/unix/bsd/apple/b64/aarch64/align.rs @@ -15,6 +15,7 @@ s! { pub uc_link: *mut ::ucontext_t, pub uc_mcsize: usize, pub uc_mcontext: mcontext_t, + __mcontext_data: __darwin_mcontext64, } pub struct __darwin_mcontext64 { diff --git a/third_party/rust/libc/src/unix/bsd/apple/long_array.rs b/third_party/rust/libc/src/unix/bsd/apple/long_array.rs deleted file mode 100644 index 4c56a275ab32..000000000000 --- a/third_party/rust/libc/src/unix/bsd/apple/long_array.rs +++ /dev/null @@ -1,8 +0,0 @@ -s! { - pub struct ctl_info { - pub ctl_id: u32, - pub ctl_name: [::c_char; MAX_KCTL_NAME], - } -} - -pub const MAX_KCTL_NAME: usize = 96; diff --git a/third_party/rust/libc/src/unix/bsd/apple/mod.rs b/third_party/rust/libc/src/unix/bsd/apple/mod.rs index a2fbf876731b..6b391893a3bc 100644 --- a/third_party/rust/libc/src/unix/bsd/apple/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/apple/mod.rs @@ -435,80 +435,6 @@ s! { pub ifm_data: if_data, } - pub struct ifa_msghdr { - pub ifam_msglen: ::c_ushort, - pub ifam_version: ::c_uchar, - pub ifam_type: ::c_uchar, - pub ifam_addrs: ::c_int, - pub ifam_flags: ::c_int, - pub ifam_index: ::c_ushort, - pub ifam_metric: ::c_int, - } - - pub struct ifma_msghdr { - pub ifmam_msglen: ::c_ushort, - pub ifmam_version: ::c_uchar, - pub ifmam_type: ::c_uchar, - pub ifmam_addrs: ::c_int, - pub ifmam_flags: ::c_int, - pub ifmam_index: ::c_ushort, - } - - pub struct ifma_msghdr2 { - pub ifmam_msglen: ::c_ushort, - pub ifmam_version: ::c_uchar, - pub ifmam_type: ::c_uchar, - pub ifmam_addrs: ::c_int, - pub ifmam_flags: ::c_int, - pub ifmam_index: ::c_ushort, - pub ifmam_refcount: i32, - } - - pub struct rt_metrics { - pub rmx_locks: u32, - pub rmx_mtu: u32, - pub rmx_hopcount: u32, - pub rmx_expire: i32, - pub rmx_recvpipe: u32, - pub rmx_sendpipe: u32, - pub rmx_ssthresh: u32, - pub rmx_rtt: u32, - pub rmx_rttvar: u32, - pub rmx_pksent: u32, - pub rmx_state: u32, - pub rmx_filler: [u32; 3], - } - - pub struct rt_msghdr { - pub rtm_msglen: ::c_ushort, - pub rtm_version: ::c_uchar, - pub rtm_type: ::c_uchar, - pub rtm_index: ::c_ushort, - pub rtm_flags: ::c_int, - pub rtm_addrs: ::c_int, - pub rtm_pid: ::pid_t, - pub rtm_seq: ::c_int, - pub rtm_errno: ::c_int, - pub rtm_use: ::c_int, - pub rtm_inits: u32, - pub rtm_rmx: rt_metrics, - } - - pub struct rt_msghdr2 { - pub rtm_msglen: ::c_ushort, - pub rtm_version: ::c_uchar, - pub rtm_type: ::c_uchar, - pub rtm_index: ::c_ushort, - pub rtm_flags: ::c_int, - pub rtm_addrs: ::c_int, - pub rtm_refcnt: i32, - pub rtm_parentflags: ::c_int, - pub rtm_reserved: ::c_int, - pub rtm_use: ::c_int, - pub rtm_inits: u32, - pub rtm_rmx: rt_metrics, - } - pub struct termios { pub c_iflag: ::tcflag_t, pub c_oflag: ::tcflag_t, @@ -1381,15 +1307,6 @@ s_no_extra_traits! { pub struct os_unfair_lock_s { _os_unfair_lock_opaque: u32, } - - #[cfg_attr(libc_packedN, repr(packed(1)))] - pub struct sockaddr_vm { - pub svm_len: ::c_uchar, - pub svm_family: ::sa_family_t, - pub svm_reserved1: ::c_ushort, - pub svm_port: ::c_uint, - pub svm_cid: ::c_uint, - } } impl siginfo_t { @@ -2692,52 +2609,6 @@ cfg_if! { self._os_unfair_lock_opaque.hash(state); } } - - impl PartialEq for sockaddr_vm { - fn eq(&self, other: &sockaddr_vm) -> bool { - self.svm_len == other.svm_len - && self.svm_family == other.svm_family - && self.svm_reserved1 == other.svm_reserved1 - && self.svm_port == other.svm_port - && self.svm_cid == other.svm_cid - } - } - - impl Eq for sockaddr_vm {} - - impl ::fmt::Debug for sockaddr_vm { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - let svm_len = self.svm_len; - let svm_family = self.svm_family; - let svm_reserved1 = self.svm_reserved1; - let svm_port = self.svm_port; - let svm_cid = self.svm_cid; - - f.debug_struct("sockaddr_vm") - .field("svm_len",&svm_len) - .field("svm_family",&svm_family) - .field("svm_reserved1",&svm_reserved1) - .field("svm_port",&svm_port) - .field("svm_cid",&svm_cid) - .finish() - } - } - - impl ::hash::Hash for sockaddr_vm { - fn hash(&self, state: &mut H) { - let svm_len = self.svm_len; - let svm_family = self.svm_family; - let svm_reserved1 = self.svm_reserved1; - let svm_port = self.svm_port; - let svm_cid = self.svm_cid; - - svm_len.hash(state); - svm_family.hash(state); - svm_reserved1.hash(state); - svm_port.hash(state); - svm_cid.hash(state); - } - } } } @@ -3442,8 +3313,6 @@ pub const MINCORE_MODIFIED: ::c_int = 0x4; pub const MINCORE_REFERENCED_OTHER: ::c_int = 0x8; pub const MINCORE_MODIFIED_OTHER: ::c_int = 0x10; -pub const CTLIOCGINFO: c_ulong = 0xc0644e03; - // // sys/netinet/in.h // Protocols (RFC 1700) @@ -3699,9 +3568,6 @@ pub const AF_SYSTEM: ::c_int = 32; pub const AF_NETBIOS: ::c_int = 33; pub const AF_PPP: ::c_int = 34; pub const pseudo_AF_HDRCMPLT: ::c_int = 35; -pub const AF_IEEE80211: ::c_int = 37; -pub const AF_UTUN: ::c_int = 38; -pub const AF_VSOCK: ::c_int = 40; pub const AF_SYS_CONTROL: ::c_int = 2; pub const SYSPROTO_EVENT: ::c_int = 1; @@ -3743,7 +3609,6 @@ pub const PF_NATM: ::c_int = AF_NATM; pub const PF_SYSTEM: ::c_int = AF_SYSTEM; pub const PF_NETBIOS: ::c_int = AF_NETBIOS; pub const PF_PPP: ::c_int = AF_PPP; -pub const PF_VSOCK: ::c_int = AF_VSOCK; pub const NET_RT_DUMP: ::c_int = 1; pub const NET_RT_FLAGS: ::c_int = 2; @@ -3851,13 +3716,12 @@ pub const MSG_HOLD: ::c_int = 0x800; pub const MSG_SEND: ::c_int = 0x1000; pub const MSG_HAVEMORE: ::c_int = 0x2000; pub const MSG_RCVMORE: ::c_int = 0x4000; -pub const MSG_NEEDSA: ::c_int = 0x10000; -pub const MSG_NOSIGNAL: ::c_int = 0x80000; +// pub const MSG_COMPAT: ::c_int = 0x8000; pub const SCM_TIMESTAMP: ::c_int = 0x02; pub const SCM_CREDS: ::c_int = 0x03; -// https://github.com/aosm/xnu/blob/HEAD/bsd/net/if.h#L140-L156 +// https://github.com/aosm/xnu/blob/master/bsd/net/if.h#L140-L156 pub const IFF_UP: ::c_int = 0x1; // interface is up pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid pub const IFF_DEBUG: ::c_int = 0x4; // turn on debugging @@ -4189,7 +4053,6 @@ pub const RTLD_FIRST: ::c_int = 0x100; pub const RTLD_NODELETE: ::c_int = 0x80; pub const RTLD_NOLOAD: ::c_int = 0x10; pub const RTLD_GLOBAL: ::c_int = 0x8; -pub const RTLD_MAIN_ONLY: *mut ::c_void = -5isize as *mut ::c_void; pub const _WSTOPPED: ::c_int = 0o177; @@ -4655,7 +4518,7 @@ pub const DLT_ATM_RFC1483: ::c_uint = 11; // LLC/SNAP encapsulated atm pub const DLT_RAW: ::c_uint = 12; // raw IP pub const DLT_LOOP: ::c_uint = 108; -// https://github.com/apple/darwin-xnu/blob/HEAD/bsd/net/bpf.h#L100 +// https://github.com/apple/darwin-xnu/blob/master/bsd/net/bpf.h#L100 // sizeof(i32) pub const BPF_ALIGNMENT: ::c_int = 4; @@ -5051,25 +4914,6 @@ pub const VOL_CAP_INT_RENAME_SWAP: attrgroup_t = 0x00040000; pub const VOL_CAP_INT_RENAME_EXCL: attrgroup_t = 0x00080000; pub const VOL_CAP_INT_RENAME_OPENFAIL: attrgroup_t = 0x00100000; -// -/// Process being created by fork. -pub const SIDL: u32 = 1; -/// Currently runnable. -pub const SRUN: u32 = 2; -/// Sleeping on an address. -pub const SSLEEP: u32 = 3; -/// Process debugging or suspension. -pub const SSTOP: u32 = 4; -/// Awaiting collection by parent. -pub const SZOMB: u32 = 5; - -// sys/vsock.h -pub const VMADDR_CID_ANY: ::c_uint = 0xFFFFFFFF; -pub const VMADDR_CID_HYPERVISOR: ::c_uint = 0; -pub const VMADDR_CID_RESERVED: ::c_uint = 1; -pub const VMADDR_CID_HOST: ::c_uint = 2; -pub const VMADDR_PORT_ANY: ::c_uint = 0xFFFFFFFF; - cfg_if! { if #[cfg(libc_const_extern_fn)] { const fn __DARWIN_ALIGN32(p: usize) -> usize { @@ -5175,7 +5019,7 @@ f! { as ::c_uint } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { (__DARWIN_ALIGN32(::mem::size_of::<::cmsghdr>()) + length as usize) as ::c_uint } @@ -5275,23 +5119,6 @@ extern "C" { pub fn endutxent(); pub fn utmpxname(file: *const ::c_char) -> ::c_int; - pub fn asctime(tm: *const ::tm) -> *mut ::c_char; - pub fn ctime(clock: *const time_t) -> *mut ::c_char; - pub fn getdate(datestr: *const ::c_char) -> *mut ::tm; - pub fn strftime( - buf: *mut ::c_char, - maxsize: ::size_t, - format: *const ::c_char, - timeptr: *const ::tm, - ) -> ::size_t; - pub fn strptime( - buf: *const ::c_char, - format: *const ::c_char, - timeptr: *mut ::tm, - ) -> *mut ::c_char; - pub fn asctime_r(tm: *const ::tm, result: *mut ::c_char) -> *mut ::c_char; - pub fn ctime_r(clock: *const time_t, result: *mut ::c_char) -> *mut ::c_char; - pub fn getnameinfo( sa: *const ::sockaddr, salen: ::socklen_t, @@ -5361,10 +5188,6 @@ extern "C" { f: extern "C" fn(*mut ::c_void) -> *mut ::c_void, value: *mut ::c_void, ) -> ::c_int; - pub fn pthread_stack_frame_decode_np( - frame_addr: ::uintptr_t, - return_addr: *mut ::uintptr_t, - ) -> ::uintptr_t; pub fn pthread_get_stackaddr_np(thread: ::pthread_t) -> *mut ::c_void; pub fn pthread_get_stacksize_np(thread: ::pthread_t) -> ::size_t; pub fn pthread_condattr_setpshared(attr: *mut pthread_condattr_t, pshared: ::c_int) -> ::c_int; @@ -5372,7 +5195,6 @@ extern "C" { attr: *const pthread_condattr_t, pshared: *mut ::c_int, ) -> ::c_int; - pub fn pthread_main_np() -> ::c_int; pub fn pthread_mutexattr_setpshared( attr: *mut pthread_mutexattr_t, pshared: ::c_int, @@ -5734,14 +5556,6 @@ extern "C" { subpref: *mut ::cpu_subtype_t, ocount: *mut ::size_t, ) -> ::c_int; - pub fn posix_spawnattr_set_qos_class_np( - attr: *mut posix_spawnattr_t, - qos_class: ::qos_class_t, - ) -> ::c_int; - pub fn posix_spawnattr_get_qos_class_np( - attr: *const posix_spawnattr_t, - qos_class: *mut ::qos_class_t, - ) -> ::c_int; pub fn posix_spawn_file_actions_init(actions: *mut posix_spawn_file_actions_t) -> ::c_int; pub fn posix_spawn_file_actions_destroy(actions: *mut posix_spawn_file_actions_t) -> ::c_int; @@ -6059,15 +5873,6 @@ extern "C" { pub fn dirname(path: *mut ::c_char) -> *mut ::c_char; pub fn basename(path: *mut ::c_char) -> *mut ::c_char; - - pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int; - pub fn mknodat( - dirfd: ::c_int, - pathname: *const ::c_char, - mode: ::mode_t, - dev: dev_t, - ) -> ::c_int; - pub fn freadlink(fd: ::c_int, buf: *mut ::c_char, size: ::size_t) -> ::c_int; } pub unsafe fn mach_task_self() -> ::mach_port_t { @@ -6126,10 +5931,3 @@ cfg_if! { // Unknown target_arch } } - -cfg_if! { - if #[cfg(libc_long_array)] { - mod long_array; - pub use self::long_array::*; - } -} diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/dragonfly/mod.rs index b3a5be449454..70fe6e2edd03 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -1091,7 +1091,6 @@ pub const EV_NODATA: u16 = 0x1000; pub const EV_FLAG1: u16 = 0x2000; pub const EV_ERROR: u16 = 0x4000; pub const EV_EOF: u16 = 0x8000; -pub const EV_HUP: u16 = 0x8000; pub const EV_SYSFLAGS: u16 = 0xf000; pub const FIODNAME: ::c_ulong = 0x80106678; @@ -1133,7 +1132,7 @@ pub const PROC_REAP_STATUS: ::c_int = 0x0003; pub const PROC_PDEATHSIG_CTL: ::c_int = 0x0004; pub const PROC_PDEATHSIG_STATUS: ::c_int = 0x0005; -// https://github.com/DragonFlyBSD/DragonFlyBSD/blob/HEAD/sys/net/if.h#L101 +// https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/net/if.h#L101 pub const IFF_UP: ::c_int = 0x1; // interface is up pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid pub const IFF_DEBUG: ::c_int = 0x4; // turn on debugging @@ -1519,9 +1518,6 @@ pub const MAXCOMLEN: usize = 16; pub const MAXLOGNAME: usize = 33; pub const NGROUPS: usize = 16; -pub const RB_PAUSE: ::c_int = 0x40000; -pub const RB_VIDEO: ::c_int = 0x20000000; - const_fn! { {const} fn _CMSG_ALIGN(n: usize) -> usize { (n + (::mem::size_of::<::c_long>() - 1)) & !(::mem::size_of::<::c_long>() - 1) @@ -1534,7 +1530,7 @@ f! { .offset(_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { (_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) + length as usize) as ::c_uint } @@ -1581,14 +1577,6 @@ f! { let (idx, offset) = ((cpu >> 6) & 3, cpu & 63); 0 != cpuset.ary[idx] & (1 << offset) } - - pub fn major(dev: ::dev_t) -> ::c_int { - ((dev >> 8) & 0xff) as ::c_int - } - - pub fn minor(dev: ::dev_t) -> ::c_int { - (dev & 0xffff00ff) as ::c_int - } } safe_f! { diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs index de34069eabdf..563c0f936ffe 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs @@ -442,16 +442,6 @@ safe_f! { } } -f! { - pub fn major(dev: ::dev_t) -> ::c_int { - ((dev >> 8) & 0xff) as ::c_int - } - - pub fn minor(dev: ::dev_t) -> ::c_int { - (dev & 0xffff00ff) as ::c_int - } -} - extern "C" { // Return type ::c_int was removed in FreeBSD 12 pub fn setgrent() -> ::c_int; @@ -472,8 +462,8 @@ extern "C" { msgflg: ::c_int, ) -> ::c_int; - // Type of `path` argument changed from `const void*` to `void*` - // in FreeBSD 12 + pub fn fdatasync(fd: ::c_int) -> ::c_int; + pub fn dirname(path: *const ::c_char) -> *mut ::c_char; pub fn basename(path: *const ::c_char) -> *mut ::c_char; } diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs index 10fcaa03a4ef..df00b6c1d63f 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs @@ -462,16 +462,6 @@ safe_f! { } } -f! { - pub fn major(dev: ::dev_t) -> ::c_int { - (((dev >> 32) & 0xffffff00) | ((dev >> 8) & 0xff)) as ::c_int - } - - pub fn minor(dev: ::dev_t) -> ::c_int { - (((dev >> 24) & 0xff00) | (dev & 0xffff00ff)) as ::c_int - } -} - extern "C" { pub fn setgrent(); pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int) -> ::c_int; @@ -483,6 +473,20 @@ extern "C" { msgtyp: ::c_long, msgflg: ::c_int, ) -> ::ssize_t; + pub fn clock_nanosleep( + clk_id: ::clockid_t, + flags: ::c_int, + rqtp: *const ::timespec, + rmtp: *mut ::timespec, + ) -> ::c_int; + + pub fn fdatasync(fd: ::c_int) -> ::c_int; + + pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; + pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int; + pub fn setproctitle_fast(fmt: *const ::c_char, ...); + pub fn timingsafe_bcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; + pub fn timingsafe_memcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; pub fn dirname(path: *mut ::c_char) -> *mut ::c_char; pub fn basename(path: *mut ::c_char) -> *mut ::c_char; diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs index 0e04a12e70e4..72a38dc22685 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs @@ -481,16 +481,6 @@ safe_f! { } } -f! { - pub fn major(dev: ::dev_t) -> ::c_int { - (((dev >> 32) & 0xffffff00) | ((dev >> 8) & 0xff)) as ::c_int - } - - pub fn minor(dev: ::dev_t) -> ::c_int { - (((dev >> 24) & 0xff00) | (dev & 0xffff00ff)) as ::c_int - } -} - extern "C" { pub fn setgrent(); pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int) -> ::c_int; @@ -502,6 +492,23 @@ extern "C" { msgtyp: ::c_long, msgflg: ::c_int, ) -> ::ssize_t; + pub fn clock_nanosleep( + clk_id: ::clockid_t, + flags: ::c_int, + rqtp: *const ::timespec, + rmtp: *mut ::timespec, + ) -> ::c_int; + + pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int; + + pub fn fdatasync(fd: ::c_int) -> ::c_int; + + pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; + pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; + pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int; + pub fn setproctitle_fast(fmt: *const ::c_char, ...); + pub fn timingsafe_bcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; + pub fn timingsafe_memcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; pub fn cpuset_getdomain( level: ::cpulevel_t, diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs index a86ca6e7c56e..115b47764e69 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs @@ -481,16 +481,6 @@ safe_f! { } } -f! { - pub fn major(dev: ::dev_t) -> ::c_int { - (((dev >> 32) & 0xffffff00) | ((dev >> 8) & 0xff)) as ::c_int - } - - pub fn minor(dev: ::dev_t) -> ::c_int { - (((dev >> 24) & 0xff00) | (dev & 0xffff00ff)) as ::c_int - } -} - extern "C" { pub fn setgrent(); pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int) -> ::c_int; @@ -502,6 +492,23 @@ extern "C" { msgtyp: ::c_long, msgflg: ::c_int, ) -> ::ssize_t; + pub fn clock_nanosleep( + clk_id: ::clockid_t, + flags: ::c_int, + rqtp: *const ::timespec, + rmtp: *mut ::timespec, + ) -> ::c_int; + + pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int; + + pub fn fdatasync(fd: ::c_int) -> ::c_int; + + pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; + pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; + pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int; + pub fn setproctitle_fast(fmt: *const ::c_char, ...); + pub fn timingsafe_bcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; + pub fn timingsafe_memcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; pub fn cpuset_getdomain( level: ::cpulevel_t, diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/x86_64.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/x86_64.rs index 01d0b4328da8..7bf2534455bf 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/x86_64.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/freebsd14/x86_64.rs @@ -3,10 +3,3 @@ pub const PROC_KPTI_CTL_ENABLE_ON_EXEC: ::c_int = 1; pub const PROC_KPTI_CTL_DISABLE_ON_EXEC: ::c_int = 2; pub const PROC_KPTI_STATUS: ::c_int = ::PROC_PROCCTL_MD_MIN + 1; pub const PROC_KPTI_STATUS_ACTIVE: ::c_int = 0x80000000; -pub const PROC_LA_CTL: ::c_int = ::PROC_PROCCTL_MD_MIN + 2; -pub const PROC_LA_STATUS: ::c_int = ::PROC_PROCCTL_MD_MIN + 3; -pub const PROC_LA_CTL_LA48_ON_EXEC: ::c_int = 1; -pub const PROC_LA_CTL_LA57_ON_EXEC: ::c_int = 2; -pub const PROC_LA_CTL_DEFAULT_ON_EXEC: ::c_int = 3; -pub const PROC_LA_STATUS_LA48: ::c_int = 0x01000000; -pub const PROC_LA_STATUS_LA57: ::c_int = 0x02000000; diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs index 4138af576e93..2a4fbbf05f3a 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -46,8 +46,6 @@ pub type au_asid_t = ::pid_t; pub type cpusetid_t = ::c_int; -pub type sctp_assoc_t = u32; - #[cfg_attr(feature = "extra_traits", derive(Debug, Hash, PartialEq, Eq))] #[repr(u32)] pub enum devstat_support_flags { @@ -357,13 +355,6 @@ s! { pub pc_limit: ::off_t, } - pub struct ptrace_sc_remote { - pub pscr_ret: ptrace_sc_ret, - pub pscr_syscall: ::c_uint, - pub pscr_nargs: ::c_uint, - pub pscr_args: *mut ::register_t, - } - pub struct cpuset_t { #[cfg(target_pointer_width = "64")] __bits: [::c_long; 4], @@ -996,68 +987,6 @@ s! { pub pcbcnt: u32, } - pub struct tcp_info { - pub tcpi_state: u8, - pub __tcpi_ca_state: u8, - pub __tcpi_retransmits: u8, - pub __tcpi_probes: u8, - pub __tcpi_backoff: u8, - pub tcpi_options: u8, - pub tcp_snd_wscale: u8, - pub tcp_rcv_wscale: u8, - pub tcpi_rto: u32, - pub __tcpi_ato: u32, - pub tcpi_snd_mss: u32, - pub tcpi_rcv_mss: u32, - pub __tcpi_unacked: u32, - pub __tcpi_sacked: u32, - pub __tcpi_lost: u32, - pub __tcpi_retrans: u32, - pub __tcpi_fackets: u32, - pub __tcpi_last_data_sent: u32, - pub __tcpi_last_ack_sent: u32, - pub tcpi_last_data_recv: u32, - pub __tcpi_last_ack_recv: u32, - pub __tcpi_pmtu: u32, - pub __tcpi_rcv_ssthresh: u32, - pub tcpi_rtt: u32, - pub tcpi_rttvar: u32, - pub tcpi_snd_ssthresh: u32, - pub tcpi_snd_cwnd: u32, - pub __tcpi_advmss: u32, - pub __tcpi_reordering: u32, - pub __tcpi_rcv_rtt: u32, - pub tcpi_rcv_space: u32, - pub tcpi_snd_wnd: u32, - pub tcpi_snd_bwnd: u32, - pub tcpi_snd_nxt: u32, - pub tcpi_rcv_nxt: u32, - pub tcpi_toe_tid: u32, - pub tcpi_snd_rexmitpack: u32, - pub tcpi_rcv_ooopack: u32, - pub tcpi_snd_zerowin: u32, - #[cfg(freebsd14)] - pub tcpi_delivered_ce: u32, - #[cfg(freebsd14)] - pub tcpi_received_ce: u32, - #[cfg(freebsd14)] - pub __tcpi_delivered_e1_bytes: u32, - #[cfg(freebsd14)] - pub __tcpi_delivered_e0_bytes: u32, - #[cfg(freebsd14)] - pub __tcpi_delivered_ce_bytes: u32, - #[cfg(freebsd14)] - pub __tcpi_received_e1_bytes: u32, - #[cfg(freebsd14)] - pub __tcpi_received_e0_bytes: u32, - #[cfg(freebsd14)] - pub __tcpi_received_ce_bytes: u32, - #[cfg(freebsd14)] - pub __tcpi_pad: [u32; 19], - #[cfg(not(freebsd14))] - pub __tcpi_pad: [u32; 26], - } - pub struct _umtx_time { pub _timeout: ::timespec, pub _flags: u32, @@ -1078,247 +1007,6 @@ s! { pub struct memory_type_list { __priv: [::uintptr_t; 2], } - - pub struct pidfh { - __priva: [[::uintptr_t; 32]; 8], - __privb: [::uintptr_t; 2], - } - - pub struct sctp_event { - pub se_assoc_id: ::sctp_assoc_t, - pub se_type: u16, - pub se_on: u8, - } - - pub struct sctp_event_subscribe { - pub sctp_data_io_event: u8, - pub sctp_association_event: u8, - pub sctp_address_event: u8, - pub sctp_send_failure_event: u8, - pub sctp_peer_error_event: u8, - pub sctp_shutdown_event: u8, - pub sctp_partial_delivery_event: u8, - pub sctp_adaptation_layer_event: u8, - pub sctp_authentication_event: u8, - pub sctp_sender_dry_event: u8, - pub sctp_stream_reset_event: u8, - } - - pub struct sctp_initmsg { - pub sinit_num_ostreams: u16, - pub sinit_max_instreams: u16, - pub sinit_max_attempts: u16, - pub sinit_max_init_timeo: u16, - } - - pub struct sctp_sndrcvinfo { - pub sinfo_stream: u16, - pub sinfo_ssn: u16, - pub sinfo_flags: u16, - pub sinfo_ppid: u32, - pub sinfo_context: u32, - pub sinfo_timetolive: u32, - pub sinfo_tsn: u32, - pub sinfo_cumtsn: u32, - pub sinfo_assoc_id: ::sctp_assoc_t, - pub sinfo_keynumber: u16, - pub sinfo_keynumber_valid: u16, - pub __reserve_pad: [[u8; 23]; 4], - } - - pub struct sctp_extrcvinfo { - pub sinfo_stream: u16, - pub sinfo_ssn: u16, - pub sinfo_flags: u16, - pub sinfo_ppid: u32, - pub sinfo_context: u32, - pub sinfo_timetolive: u32, - pub sinfo_tsn: u32, - pub sinfo_cumtsn: u32, - pub sinfo_assoc_id: ::sctp_assoc_t, - pub serinfo_next_flags: u16, - pub serinfo_next_stream: u16, - pub serinfo_next_aid: u32, - pub serinfo_next_length: u32, - pub serinfo_next_ppid: u32, - pub sinfo_keynumber: u16, - pub sinfo_keynumber_valid: u16, - pub __reserve_pad: [[u8; 19]; 4], - } - - pub struct sctp_sndinfo { - pub snd_sid: u16, - pub snd_flags: u16, - pub snd_ppid: u32, - pub snd_context: u32, - pub snd_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_prinfo { - pub pr_policy: u16, - pub pr_value: u32, - } - - pub struct sctp_default_prinfo { - pub pr_policy: u16, - pub pr_value: u32, - pub pr_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_authinfo { - pub auth_keynumber: u16, - } - - pub struct sctp_rcvinfo { - pub rcv_sid: u16, - pub rcv_ssn: u16, - pub rcv_flags: u16, - pub rcv_ppid: u32, - pub rcv_tsn: u32, - pub rcv_cumtsn: u32, - pub rcv_context: u32, - pub rcv_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_nxtinfo { - pub nxt_sid: u16, - pub nxt_flags: u16, - pub nxt_ppid: u32, - pub nxt_length: u32, - pub nxt_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_recvv_rn { - pub recvv_rcvinfo: sctp_rcvinfo, - pub recvv_nxtinfo: sctp_nxtinfo, - } - - pub struct sctp_sendv_spa { - pub sendv_flags: u32, - pub sendv_sndinfo: sctp_sndinfo, - pub sendv_prinfo: sctp_prinfo, - pub sendv_authinfo: sctp_authinfo, - } - - pub struct sctp_snd_all_completes { - pub sall_stream: u16, - pub sall_flags: u16, - pub sall_ppid: u32, - pub sall_context: u32, - pub sall_num_sent: u32, - pub sall_num_failed: u32, - } - - pub struct sctp_pcbinfo { - pub ep_count: u32, - pub asoc_count: u32, - pub laddr_count: u32, - pub raddr_count: u32, - pub chk_count: u32, - pub readq_count: u32, - pub free_chunks: u32, - pub stream_oque: u32, - } - - pub struct sctp_sockstat { - pub ss_assoc_id: ::sctp_assoc_t, - pub ss_total_sndbuf: u32, - pub ss_total_recv_buf: u32, - } - - pub struct sctp_assoc_change { - pub sac_type: u16, - pub sac_flags: u16, - pub sac_length: u32, - pub sac_state: u16, - pub sac_error: u16, - pub sac_outbound_streams: u16, - pub sac_inbound_streams: u16, - pub sac_assoc_id: ::sctp_assoc_t, - pub sac_info: [u8; 0], - } - - pub struct sctp_paddr_change { - pub spc_type: u16, - pub spc_flags: u16, - pub spc_length: u32, - pub spc_aaddr: ::sockaddr_storage, - pub spc_state: u32, - pub spc_error: u32, - pub spc_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_remote_error { - pub sre_type: u16, - pub sre_flags: u16, - pub sre_length: u32, - pub sre_error: u16, - pub sre_assoc_id: ::sctp_assoc_t, - pub sre_data: [u8; 0], - } - - pub struct sctp_send_failed_event { - pub ssfe_type: u16, - pub ssfe_flags: u16, - pub ssfe_length: u32, - pub ssfe_error: u32, - pub ssfe_info: sctp_sndinfo, - pub ssfe_assoc_id: ::sctp_assoc_t, - pub ssfe_data: [u8; 0], - } - - pub struct sctp_shutdown_event { - pub sse_type: u16, - pub sse_flags: u16, - pub sse_length: u32, - pub sse_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_adaptation_event { - pub sai_type: u16, - pub sai_flags: u16, - pub sai_length: u32, - pub sai_adaptation_ind: u32, - pub sai_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_setadaptation { - pub ssb_adaptation_ind: u32, - } - - pub struct sctp_pdapi_event { - pub pdapi_type: u16, - pub pdapi_flags: u16, - pub pdapi_length: u32, - pub pdapi_indication: u32, - pub pdapi_stream: u16, - pub pdapi_seq: u16, - pub pdapi_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_sender_dry_event { - pub sender_dry_type: u16, - pub sender_dry_flags: u16, - pub sender_dry_length: u32, - pub sender_dry_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_stream_reset_event { - pub strreset_type: u16, - pub strreset_flags: u16, - pub strreset_length: u32, - pub strreset_assoc_id: ::sctp_assoc_t, - pub strreset_stream_list: [u16; 0], - } - - pub struct sctp_stream_change_event { - pub strchange_type: u16, - pub strchange_flags: u16, - pub strchange_length: u32, - pub strchange_assoc_id: ::sctp_assoc_t, - pub strchange_instrms: u16, - pub strchange_outstrms: u16, - } } s_no_extra_traits! { @@ -1529,88 +1217,6 @@ s_no_extra_traits! { pub ifdr_vendor: u32, pub ifdr_msg: [::c_char; ::IFDR_MSG_SIZE as usize], } - - #[repr(packed)] - pub struct sctphdr { - pub src_port: u16, - pub dest_port: u16, - pub v_tag: u32, - pub checksum: u32, - } - - #[repr(packed)] - pub struct sctp_chunkhdr { - pub chunk_type: u8, - pub chunk_flags: u8, - pub chunk_length: u16, - } - - #[repr(packed)] - pub struct sctp_paramhdr { - pub param_type: u16, - pub param_length: u16, - } - - #[repr(packed)] - pub struct sctp_gen_error_cause { - pub code: u16, - pub length: u16, - pub info: [u8; 0], - } - - #[repr(packed)] - pub struct sctp_error_cause { - pub code: u16, - pub length: u16, - } - - #[repr(packed)] - pub struct sctp_error_invalid_stream { - pub cause: sctp_error_cause, - pub stream_id: u16, - __reserved: u16, - } - - #[repr(packed)] - pub struct sctp_error_missing_param { - pub cause: sctp_error_cause, - pub num_missing_params: u32, - pub tpe: [u8; 0], - } - - #[repr(packed)] - pub struct sctp_error_stale_cookie { - pub cause: sctp_error_cause, - pub stale_time: u32, - } - - #[repr(packed)] - pub struct sctp_error_out_of_resource { - pub cause: sctp_error_cause, - } - - #[repr(packed)] - pub struct sctp_error_unresolv_addr { - pub cause: sctp_error_cause, - } - - #[repr(packed)] - pub struct sctp_error_unrecognized_chunk { - pub cause: sctp_error_cause, - pub ch: sctp_chunkhdr, - } - - #[repr(packed)] - pub struct sctp_error_no_user_data { - pub cause: sctp_error_cause, - pub tsn: u32, - } - - #[repr(packed)] - pub struct sctp_error_auth_invalid_hmac { - pub cause: sctp_error_cause, - pub hmac_id: u16, - } } cfg_if! { @@ -2272,301 +1878,6 @@ cfg_if! { self.__ifi_lastchange.hash(state); } } - - impl PartialEq for sctphdr { - fn eq(&self, other: &sctphdr) -> bool { - return {self.src_port} == {other.src_port} && - {self.dest_port} == {other.dest_port} && - {self.v_tag} == {other.v_tag} && - {self.checksum} == {other.checksum} - } - } - impl Eq for sctphdr {} - impl ::fmt::Debug for sctphdr { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctphdr") - .field("src_port", &{self.src_port}) - .field("dest_port", &{self.dest_port}) - .field("v_tag", &{self.v_tag}) - .field("checksum", &{self.checksum}) - .finish() - } - } - impl ::hash::Hash for sctphdr { - fn hash(&self, state: &mut H) { - {self.src_port}.hash(state); - {self.dest_port}.hash(state); - {self.v_tag}.hash(state); - {self.checksum}.hash(state); - } - } - - impl PartialEq for sctp_chunkhdr { - fn eq(&self, other: &sctp_chunkhdr) -> bool { - return {self.chunk_type} == {other.chunk_type} && - {self.chunk_flags} == {other.chunk_flags} && - {self.chunk_length} == {other.chunk_length} - } - } - impl Eq for sctp_chunkhdr {} - impl ::fmt::Debug for sctp_chunkhdr { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_chunkhdr") - .field("chunk_type", &{self.chunk_type}) - .field("chunk_flags", &{self.chunk_flags}) - .field("chunk_length", &{self.chunk_length}) - .finish() - } - } - impl ::hash::Hash for sctp_chunkhdr { - fn hash(&self, state: &mut H) { - {self.chunk_type}.hash(state); - {self.chunk_flags}.hash(state); - {self.chunk_length}.hash(state); - } - } - - impl PartialEq for sctp_paramhdr { - fn eq(&self, other: &sctp_paramhdr) -> bool { - return {self.param_type} == {other.param_type} && - {self.param_length} == {other.param_length} - } - } - impl Eq for sctp_paramhdr {} - impl ::fmt::Debug for sctp_paramhdr { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_paramhdr") - .field("param_type", &{self.param_type}) - .field("param_length", &{self.param_length}) - .finish() - } - } - impl ::hash::Hash for sctp_paramhdr { - fn hash(&self, state: &mut H) { - {self.param_type}.hash(state); - {self.param_length}.hash(state); - } - } - - impl PartialEq for sctp_gen_error_cause { - fn eq(&self, other: &sctp_gen_error_cause) -> bool { - return {self.code} == {other.code} && - {self.length} == {other.length} && - {self.info}.iter().zip({other.info}.iter()).all(|(a,b)| a == b) - } - } - impl Eq for sctp_gen_error_cause {} - impl ::fmt::Debug for sctp_gen_error_cause { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_gen_error_cause") - .field("code", &{self.code}) - .field("length", &{self.length}) - // FIXME: .field("info", &{self.info}) - .finish() - } - } - impl ::hash::Hash for sctp_gen_error_cause { - fn hash(&self, state: &mut H) { - {self.code}.hash(state); - {self.length}.hash(state); - {self.info}.hash(state); - } - } - - impl PartialEq for sctp_error_cause { - fn eq(&self, other: &sctp_error_cause) -> bool { - return {self.code} == {other.code} && - {self.length} == {other.length} - } - } - impl Eq for sctp_error_cause {} - impl ::fmt::Debug for sctp_error_cause { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_cause") - .field("code", &{self.code}) - .field("length", &{self.length}) - .finish() - } - } - impl ::hash::Hash for sctp_error_cause { - fn hash(&self, state: &mut H) { - {self.code}.hash(state); - {self.length}.hash(state); - } - } - - impl PartialEq for sctp_error_invalid_stream { - fn eq(&self, other: &sctp_error_invalid_stream) -> bool { - return {self.cause} == {other.cause} && - {self.stream_id} == {other.stream_id} - } - } - impl Eq for sctp_error_invalid_stream {} - impl ::fmt::Debug for sctp_error_invalid_stream { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_invalid_stream") - .field("cause", &{self.cause}) - .field("stream_id", &{self.stream_id}) - .finish() - } - } - impl ::hash::Hash for sctp_error_invalid_stream { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - {self.stream_id}.hash(state); - } - } - - impl PartialEq for sctp_error_missing_param { - fn eq(&self, other: &sctp_error_missing_param) -> bool { - return {self.cause} == {other.cause} && - {self.num_missing_params} == {other.num_missing_params} && - {self.tpe}.iter().zip({other.tpe}.iter()).all(|(a,b)| a == b) - } - } - impl Eq for sctp_error_missing_param {} - impl ::fmt::Debug for sctp_error_missing_param { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_missing_param") - .field("cause", &{self.cause}) - .field("num_missing_params", &{self.num_missing_params}) - // FIXME: .field("tpe", &{self.tpe}) - .finish() - } - } - impl ::hash::Hash for sctp_error_missing_param { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - {self.num_missing_params}.hash(state); - {self.tpe}.hash(state); - } - } - - impl PartialEq for sctp_error_stale_cookie { - fn eq(&self, other: &sctp_error_stale_cookie) -> bool { - return {self.cause} == {other.cause} && - {self.stale_time} == {other.stale_time} - } - } - impl Eq for sctp_error_stale_cookie {} - impl ::fmt::Debug for sctp_error_stale_cookie { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_stale_cookie") - .field("cause", &{self.cause}) - .field("stale_time", &{self.stale_time}) - .finish() - } - } - impl ::hash::Hash for sctp_error_stale_cookie { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - {self.stale_time}.hash(state); - } - } - - impl PartialEq for sctp_error_out_of_resource { - fn eq(&self, other: &sctp_error_out_of_resource) -> bool { - return {self.cause} == {other.cause} - } - } - impl Eq for sctp_error_out_of_resource {} - impl ::fmt::Debug for sctp_error_out_of_resource { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_out_of_resource") - .field("cause", &{self.cause}) - .finish() - } - } - impl ::hash::Hash for sctp_error_out_of_resource { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - } - } - - impl PartialEq for sctp_error_unresolv_addr { - fn eq(&self, other: &sctp_error_unresolv_addr) -> bool { - return {self.cause} == {other.cause} - } - } - impl Eq for sctp_error_unresolv_addr {} - impl ::fmt::Debug for sctp_error_unresolv_addr { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_unresolv_addr") - .field("cause", &{self.cause}) - .finish() - } - } - impl ::hash::Hash for sctp_error_unresolv_addr { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - } - } - - impl PartialEq for sctp_error_unrecognized_chunk { - fn eq(&self, other: &sctp_error_unrecognized_chunk) -> bool { - return {self.cause} == {other.cause} && - {self.ch} == {other.ch} - } - } - impl Eq for sctp_error_unrecognized_chunk {} - impl ::fmt::Debug for sctp_error_unrecognized_chunk { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_unrecognized_chunk") - .field("cause", &{self.cause}) - .field("ch", &{self.ch}) - .finish() - } - } - impl ::hash::Hash for sctp_error_unrecognized_chunk { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - {self.ch}.hash(state); - } - } - - impl PartialEq for sctp_error_no_user_data { - fn eq(&self, other: &sctp_error_no_user_data) -> bool { - return {self.cause} == {other.cause} && - {self.tsn} == {other.tsn} - } - } - impl Eq for sctp_error_no_user_data {} - impl ::fmt::Debug for sctp_error_no_user_data { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_no_user_data") - .field("cause", &{self.cause}) - .field("tsn", &{self.tsn}) - .finish() - } - } - impl ::hash::Hash for sctp_error_no_user_data { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - {self.tsn}.hash(state); - } - } - - impl PartialEq for sctp_error_auth_invalid_hmac { - fn eq(&self, other: &sctp_error_auth_invalid_hmac) -> bool { - return {self.cause} == {other.cause} && - {self.hmac_id} == {other.hmac_id} - } - } - impl Eq for sctp_error_auth_invalid_hmac {} - impl ::fmt::Debug for sctp_error_auth_invalid_hmac { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sctp_error_invalid_hmac") - .field("cause", &{self.cause}) - .field("hmac_id", &{self.hmac_id}) - .finish() - } - } - impl ::hash::Hash for sctp_error_auth_invalid_hmac { - fn hash(&self, state: &mut H) { - {self.cause}.hash(state); - {self.hmac_id}.hash(state); - } - } } } @@ -2617,14 +1928,8 @@ pub const SF_USER_READAHEAD: ::c_int = 0x00000008; pub const SF_NOCACHE: ::c_int = 0x00000010; pub const O_CLOEXEC: ::c_int = 0x00100000; pub const O_DIRECTORY: ::c_int = 0x00020000; -pub const O_DSYNC: ::c_int = 0x01000000; -pub const O_EMPTY_PATH: ::c_int = 0x02000000; pub const O_EXEC: ::c_int = 0x00040000; -pub const O_PATH: ::c_int = 0x00400000; -pub const O_RESOLVE_BENEATH: ::c_int = 0x00800000; -pub const O_SEARCH: ::c_int = O_EXEC; pub const O_TTY_INIT: ::c_int = 0x00080000; -pub const O_VERIFY: ::c_int = 0x00200000; pub const F_GETLK: ::c_int = 11; pub const F_SETLK: ::c_int = 12; pub const F_SETLKW: ::c_int = 13; @@ -2693,20 +1998,15 @@ pub const EV_ADD: u16 = 0x1; pub const EV_DELETE: u16 = 0x2; pub const EV_ENABLE: u16 = 0x4; pub const EV_DISABLE: u16 = 0x8; -pub const EV_FORCEONESHOT: u16 = 0x100; -pub const EV_KEEPUDATA: u16 = 0x200; - pub const EV_ONESHOT: u16 = 0x10; pub const EV_CLEAR: u16 = 0x20; pub const EV_RECEIPT: u16 = 0x40; pub const EV_DISPATCH: u16 = 0x80; -pub const EV_SYSFLAGS: u16 = 0xf000; pub const EV_DROP: u16 = 0x1000; pub const EV_FLAG1: u16 = 0x2000; -pub const EV_FLAG2: u16 = 0x4000; - -pub const EV_EOF: u16 = 0x8000; pub const EV_ERROR: u16 = 0x4000; +pub const EV_EOF: u16 = 0x8000; +pub const EV_SYSFLAGS: u16 = 0xf000; pub const NOTE_TRIGGER: u32 = 0x01000000; pub const NOTE_FFNOP: u32 = 0x00000000; @@ -2716,7 +2016,6 @@ pub const NOTE_FFCOPY: u32 = 0xc0000000; pub const NOTE_FFCTRLMASK: u32 = 0xc0000000; pub const NOTE_FFLAGSMASK: u32 = 0x00ffffff; pub const NOTE_LOWAT: u32 = 0x00000001; -pub const NOTE_FILE_POLL: u32 = 0x00000002; pub const NOTE_DELETE: u32 = 0x00000001; pub const NOTE_WRITE: u32 = 0x00000002; pub const NOTE_EXTEND: u32 = 0x00000004; @@ -2724,10 +2023,6 @@ pub const NOTE_ATTRIB: u32 = 0x00000008; pub const NOTE_LINK: u32 = 0x00000010; pub const NOTE_RENAME: u32 = 0x00000020; pub const NOTE_REVOKE: u32 = 0x00000040; -pub const NOTE_OPEN: u32 = 0x00000080; -pub const NOTE_CLOSE: u32 = 0x00000100; -pub const NOTE_CLOSE_WRITE: u32 = 0x00000200; -pub const NOTE_READ: u32 = 0x00000400; pub const NOTE_EXIT: u32 = 0x80000000; pub const NOTE_FORK: u32 = 0x40000000; pub const NOTE_EXEC: u32 = 0x20000000; @@ -2740,7 +2035,6 @@ pub const NOTE_SECONDS: u32 = 0x00000001; pub const NOTE_MSECONDS: u32 = 0x00000002; pub const NOTE_USECONDS: u32 = 0x00000004; pub const NOTE_NSECONDS: u32 = 0x00000008; -pub const NOTE_ABSTIME: u32 = 0x00000010; pub const MADV_PROTECT: ::c_int = 10; @@ -2997,10 +2291,6 @@ pub const MNT_SNAPSHOT: ::c_int = 0x01000000; pub const MNT_UNION: ::c_int = 0x00000020; pub const MNT_NONBUSY: ::c_int = 0x04000000; -pub const SCM_BINTIME: ::c_int = 0x04; -pub const SCM_REALTIME: ::c_int = 0x05; -pub const SCM_MONOTONIC: ::c_int = 0x06; -pub const SCM_TIME_INFO: ::c_int = 0x07; pub const SCM_CREDS2: ::c_int = 0x08; pub const SO_BINTIME: ::c_int = 0x2000; @@ -3016,17 +2306,9 @@ pub const SO_SETFIB: ::c_int = 0x1014; pub const SO_USER_COOKIE: ::c_int = 0x1015; pub const SO_PROTOCOL: ::c_int = 0x1016; pub const SO_PROTOTYPE: ::c_int = SO_PROTOCOL; -pub const SO_TS_CLOCK: ::c_int = 0x1017; pub const SO_DOMAIN: ::c_int = 0x1019; pub const SO_VENDOR: ::c_int = 0x80000000; -pub const SO_TS_REALTIME_MICRO: ::c_int = 0; -pub const SO_TS_BINTIME: ::c_int = 1; -pub const SO_TS_REALTIME: ::c_int = 2; -pub const SO_TS_MONOTONIC: ::c_int = 3; -pub const SO_TS_DEFAULT: ::c_int = SO_TS_REALTIME_MICRO; -pub const SO_TS_CLOCK_MAX: ::c_int = SO_TS_MONOTONIC; - pub const LOCAL_CREDS: ::c_int = 2; pub const LOCAL_CREDS_PERSISTENT: ::c_int = 3; pub const LOCAL_CONNWAIT: ::c_int = 4; @@ -3074,7 +2356,6 @@ pub const PT_VM_TIMESTAMP: ::c_int = 40; pub const PT_VM_ENTRY: ::c_int = 41; pub const PT_GETREGSET: ::c_int = 42; pub const PT_SETREGSET: ::c_int = 43; -pub const PT_SC_REMOTE: ::c_int = 44; pub const PT_FIRSTMACH: ::c_int = 64; pub const PTRACE_EXEC: ::c_int = 0x0001; @@ -3700,7 +2981,6 @@ pub const MSG_NBIO: ::c_int = 0x00004000; pub const MSG_COMPAT: ::c_int = 0x00008000; pub const MSG_CMSG_CLOEXEC: ::c_int = 0x00040000; pub const MSG_NOSIGNAL: ::c_int = 0x20000; -pub const MSG_WAITFORONE: ::c_int = 0x00080000; // utmpx entry types pub const EMPTY: ::c_short = 0; @@ -3753,8 +3033,6 @@ pub const AT_EACCESS: ::c_int = 0x100; pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x200; pub const AT_SYMLINK_FOLLOW: ::c_int = 0x400; pub const AT_REMOVEDIR: ::c_int = 0x800; -pub const AT_RESOLVE_BENEATH: ::c_int = 0x2000; -pub const AT_EMPTY_PATH: ::c_int = 0x4000; pub const AT_NULL: ::c_int = 0; pub const AT_IGNORE: ::c_int = 1; @@ -3772,15 +3050,6 @@ pub const AT_EUID: ::c_int = 12; pub const AT_GID: ::c_int = 13; pub const AT_EGID: ::c_int = 14; pub const AT_EXECPATH: ::c_int = 15; -pub const AT_CANARY: ::c_int = 16; -pub const AT_OSRELDATE: ::c_int = 18; -pub const AT_NCPUS: ::c_int = 19; -pub const AT_PAGESIZES: ::c_int = 20; -pub const AT_TIMEKEEP: ::c_int = 22; -pub const AT_HWCAP: ::c_int = 25; -pub const AT_HWCAP2: ::c_int = 26; -pub const AT_USRSTACKBASE: ::c_int = 35; -pub const AT_USRSTACKLIM: ::c_int = 36; pub const TABDLY: ::tcflag_t = 0x00000004; pub const TAB0: ::tcflag_t = 0x00000000; @@ -4523,188 +3792,6 @@ pub const CPU_WHICH_CPUSET: ::c_int = 3; pub const CPU_WHICH_IRQ: ::c_int = 4; pub const CPU_WHICH_JAIL: ::c_int = 5; -// sys/signal.h -pub const SIGTHR: ::c_int = 32; -pub const SIGLWP: ::c_int = SIGTHR; -pub const SIGLIBRT: ::c_int = 33; - -// netinet/sctp.h -pub const SCTP_FUTURE_ASSOC: ::c_int = 0; -pub const SCTP_CURRENT_ASSOC: ::c_int = 1; -pub const SCTP_ALL_ASSOC: ::c_int = 2; - -pub const SCTP_NO_NEXT_MSG: ::c_int = 0x0000; -pub const SCTP_NEXT_MSG_AVAIL: ::c_int = 0x0001; -pub const SCTP_NEXT_MSG_ISCOMPLETE: ::c_int = 0x0002; -pub const SCTP_NEXT_MSG_IS_UNORDERED: ::c_int = 0x0004; -pub const SCTP_NEXT_MSG_IS_NOTIFICATION: ::c_int = 0x0008; - -pub const SCTP_RECVV_NOINFO: ::c_int = 0; -pub const SCTP_RECVV_RCVINFO: ::c_int = 1; -pub const SCTP_RECVV_NXTINFO: ::c_int = 2; -pub const SCTP_RECVV_RN: ::c_int = 3; - -pub const SCTP_SENDV_NOINFO: ::c_int = 0; -pub const SCTP_SENDV_SNDINFO: ::c_int = 1; -pub const SCTP_SENDV_PRINFO: ::c_int = 2; -pub const SCTP_SENDV_AUTHINFO: ::c_int = 3; -pub const SCTP_SENDV_SPA: ::c_int = 4; - -pub const SCTP_SEND_SNDINFO_VALID: ::c_int = 0x00000001; -pub const SCTP_SEND_PRINFO_VALID: ::c_int = 0x00000002; -pub const SCTP_SEND_AUTHINFO_VALID: ::c_int = 0x00000004; - -pub const SCTP_NOTIFICATION: ::c_int = 0x0010; -pub const SCTP_COMPLETE: ::c_int = 0x0020; -pub const SCTP_EOF: ::c_int = 0x0100; -pub const SCTP_ABORT: ::c_int = 0x0200; -pub const SCTP_UNORDERED: ::c_int = 0x0400; -pub const SCTP_ADDR_OVER: ::c_int = 0x0800; -pub const SCTP_SENDALL: ::c_int = 0x1000; -pub const SCTP_EOR: ::c_int = 0x2000; -pub const SCTP_SACK_IMMEDIATELY: ::c_int = 0x4000; -pub const SCTP_PR_SCTP_NONE: ::c_int = 0x0000; -pub const SCTP_PR_SCTP_TTL: ::c_int = 0x0001; -pub const SCTP_PR_SCTP_PRIO: ::c_int = 0x0002; -pub const SCTP_PR_SCTP_BUF: ::c_int = SCTP_PR_SCTP_PRIO; -pub const SCTP_PR_SCTP_RTX: ::c_int = 0x0003; -pub const SCTP_PR_SCTP_MAX: ::c_int = SCTP_PR_SCTP_RTX; -pub const SCTP_PR_SCTP_ALL: ::c_int = 0x000f; - -pub const SCTP_INIT: ::c_int = 0x0001; -pub const SCTP_SNDRCV: ::c_int = 0x0002; -pub const SCTP_EXTRCV: ::c_int = 0x0003; -pub const SCTP_SNDINFO: ::c_int = 0x0004; -pub const SCTP_RCVINFO: ::c_int = 0x0005; -pub const SCTP_NXTINFO: ::c_int = 0x0006; -pub const SCTP_PRINFO: ::c_int = 0x0007; -pub const SCTP_AUTHINFO: ::c_int = 0x0008; -pub const SCTP_DSTADDRV4: ::c_int = 0x0009; -pub const SCTP_DSTADDRV6: ::c_int = 0x000a; - -pub const SCTP_RTOINFO: ::c_int = 0x00000001; -pub const SCTP_ASSOCINFO: ::c_int = 0x00000002; -pub const SCTP_INITMSG: ::c_int = 0x00000003; -pub const SCTP_NODELAY: ::c_int = 0x00000004; -pub const SCTP_AUTOCLOSE: ::c_int = 0x00000005; -pub const SCTP_SET_PEER_PRIMARY_ADDR: ::c_int = 0x00000006; -pub const SCTP_PRIMARY_ADDR: ::c_int = 0x00000007; -pub const SCTP_ADAPTATION_LAYER: ::c_int = 0x00000008; -pub const SCTP_ADAPTION_LAYER: ::c_int = 0x00000008; -pub const SCTP_DISABLE_FRAGMENTS: ::c_int = 0x00000009; -pub const SCTP_PEER_ADDR_PARAMS: ::c_int = 0x0000000a; -pub const SCTP_DEFAULT_SEND_PARAM: ::c_int = 0x0000000b; -pub const SCTP_EVENTS: ::c_int = 0x0000000c; -pub const SCTP_I_WANT_MAPPED_V4_ADDR: ::c_int = 0x0000000d; -pub const SCTP_MAXSEG: ::c_int = 0x0000000e; -pub const SCTP_DELAYED_SACK: ::c_int = 0x0000000f; -pub const SCTP_FRAGMENT_INTERLEAVE: ::c_int = 0x00000010; -pub const SCTP_PARTIAL_DELIVERY_POINT: ::c_int = 0x00000011; -pub const SCTP_AUTH_CHUNK: ::c_int = 0x00000012; -pub const SCTP_AUTH_KEY: ::c_int = 0x00000013; -pub const SCTP_HMAC_IDENT: ::c_int = 0x00000014; -pub const SCTP_AUTH_ACTIVE_KEY: ::c_int = 0x00000015; -pub const SCTP_AUTH_DELETE_KEY: ::c_int = 0x00000016; -pub const SCTP_USE_EXT_RCVINFO: ::c_int = 0x00000017; -pub const SCTP_AUTO_ASCONF: ::c_int = 0x00000018; -pub const SCTP_MAXBURST: ::c_int = 0x00000019; -pub const SCTP_MAX_BURST: ::c_int = 0x00000019; -pub const SCTP_CONTEXT: ::c_int = 0x0000001a; -pub const SCTP_EXPLICIT_EOR: ::c_int = 0x00000001b; -pub const SCTP_REUSE_PORT: ::c_int = 0x00000001c; -pub const SCTP_AUTH_DEACTIVATE_KEY: ::c_int = 0x00000001d; -pub const SCTP_EVENT: ::c_int = 0x0000001e; -pub const SCTP_RECVRCVINFO: ::c_int = 0x0000001f; -pub const SCTP_RECVNXTINFO: ::c_int = 0x00000020; -pub const SCTP_DEFAULT_SNDINFO: ::c_int = 0x00000021; -pub const SCTP_DEFAULT_PRINFO: ::c_int = 0x00000022; -pub const SCTP_PEER_ADDR_THLDS: ::c_int = 0x00000023; -pub const SCTP_REMOTE_UDP_ENCAPS_PORT: ::c_int = 0x00000024; -pub const SCTP_ECN_SUPPORTED: ::c_int = 0x00000025; -pub const SCTP_AUTH_SUPPORTED: ::c_int = 0x00000027; -pub const SCTP_ASCONF_SUPPORTED: ::c_int = 0x00000028; -pub const SCTP_RECONFIG_SUPPORTED: ::c_int = 0x00000029; -pub const SCTP_NRSACK_SUPPORTED: ::c_int = 0x00000030; -pub const SCTP_PKTDROP_SUPPORTED: ::c_int = 0x00000031; -pub const SCTP_MAX_CWND: ::c_int = 0x00000032; - -pub const SCTP_STATUS: ::c_int = 0x00000100; -pub const SCTP_GET_PEER_ADDR_INFO: ::c_int = 0x00000101; -pub const SCTP_PEER_AUTH_CHUNKS: ::c_int = 0x00000102; -pub const SCTP_LOCAL_AUTH_CHUNKS: ::c_int = 0x00000103; -pub const SCTP_GET_ASSOC_NUMBER: ::c_int = 0x00000104; -pub const SCTP_GET_ASSOC_ID_LIST: ::c_int = 0x00000105; -pub const SCTP_TIMEOUTS: ::c_int = 0x00000106; -pub const SCTP_PR_STREAM_STATUS: ::c_int = 0x00000107; -pub const SCTP_PR_ASSOC_STATUS: ::c_int = 0x00000108; - -pub const SCTP_COMM_UP: ::c_int = 0x0001; -pub const SCTP_COMM_LOST: ::c_int = 0x0002; -pub const SCTP_RESTART: ::c_int = 0x0003; -pub const SCTP_SHUTDOWN_COMP: ::c_int = 0x0004; -pub const SCTP_CANT_STR_ASSOC: ::c_int = 0x0005; - -pub const SCTP_ASSOC_SUPPORTS_PR: ::c_int = 0x01; -pub const SCTP_ASSOC_SUPPORTS_AUTH: ::c_int = 0x02; -pub const SCTP_ASSOC_SUPPORTS_ASCONF: ::c_int = 0x03; -pub const SCTP_ASSOC_SUPPORTS_MULTIBUF: ::c_int = 0x04; -pub const SCTP_ASSOC_SUPPORTS_RE_CONFIG: ::c_int = 0x05; -pub const SCTP_ASSOC_SUPPORTS_INTERLEAVING: ::c_int = 0x06; -pub const SCTP_ASSOC_SUPPORTS_MAX: ::c_int = 0x06; - -pub const SCTP_ADDR_AVAILABLE: ::c_int = 0x0001; -pub const SCTP_ADDR_UNREACHABLE: ::c_int = 0x0002; -pub const SCTP_ADDR_REMOVED: ::c_int = 0x0003; -pub const SCTP_ADDR_ADDED: ::c_int = 0x0004; -pub const SCTP_ADDR_MADE_PRIM: ::c_int = 0x0005; -pub const SCTP_ADDR_CONFIRMED: ::c_int = 0x0006; - -pub const SCTP_ACTIVE: ::c_int = 0x0001; -pub const SCTP_INACTIVE: ::c_int = 0x0002; -pub const SCTP_UNCONFIRMED: ::c_int = 0x0200; - -pub const SCTP_DATA_UNSENT: ::c_int = 0x0001; -pub const SCTP_DATA_SENT: ::c_int = 0x0002; - -pub const SCTP_PARTIAL_DELIVERY_ABORTED: ::c_int = 0x0001; - -pub const SCTP_AUTH_NEW_KEY: ::c_int = 0x0001; -pub const SCTP_AUTH_NEWKEY: ::c_int = SCTP_AUTH_NEW_KEY; -pub const SCTP_AUTH_NO_AUTH: ::c_int = 0x0002; -pub const SCTP_AUTH_FREE_KEY: ::c_int = 0x0003; - -pub const SCTP_STREAM_RESET_INCOMING_SSN: ::c_int = 0x0001; -pub const SCTP_STREAM_RESET_OUTGOING_SSN: ::c_int = 0x0002; -pub const SCTP_STREAM_RESET_DENIED: ::c_int = 0x0004; -pub const SCTP_STREAM_RESET_FAILED: ::c_int = 0x0008; - -pub const SCTP_ASSOC_RESET_DENIED: ::c_int = 0x0004; -pub const SCTP_ASSOC_RESET_FAILED: ::c_int = 0x0008; - -pub const SCTP_STREAM_CHANGE_DENIED: ::c_int = 0x0004; -pub const SCTP_STREAM_CHANGE_FAILED: ::c_int = 0x0008; - -pub const KENV_DUMP_LOADER: ::c_int = 4; -pub const KENV_DUMP_STATIC: ::c_int = 5; - -pub const RB_PAUSE: ::c_int = 0x100000; -pub const RB_REROOT: ::c_int = 0x200000; -pub const RB_POWERCYCLE: ::c_int = 0x400000; -pub const RB_PROBE: ::c_int = 0x10000000; -pub const RB_MULTIPLE: ::c_int = 0x20000000; - -cfg_if! { - if #[cfg(libc_const_extern_fn)] { - pub const fn MAP_ALIGNED(a: ::c_int) -> ::c_int { - a << 24 - } - } else { - pub fn MAP_ALIGNED(a: ::c_int) -> ::c_int { - a << 24 - } - } -} - const_fn! { {const} fn _ALIGN(p: usize) -> usize { (p + _ALIGNBYTES) & !_ALIGNBYTES @@ -4717,7 +3804,7 @@ f! { .offset(_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { _ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length } @@ -4826,39 +3913,6 @@ safe_f! { pub {const} fn WIFSIGNALED(status: ::c_int) -> bool { (status & 0o177) != 0o177 && (status & 0o177) != 0 && status != 0x13 } - - pub {const} fn INVALID_SINFO_FLAG(x: ::c_int) -> bool { - (x) & 0xfffffff0 & !(SCTP_EOF | SCTP_ABORT | SCTP_UNORDERED | - SCTP_ADDR_OVER | SCTP_SENDALL | SCTP_EOR | SCTP_SACK_IMMEDIATELY) != 0 - } - - pub {const} fn PR_SCTP_POLICY(x: ::c_int) -> ::c_int { - x & 0x0f - } - - pub {const} fn PR_SCTP_ENABLED(x: ::c_int) -> bool { - PR_SCTP_POLICY(x) != SCTP_PR_SCTP_NONE && PR_SCTP_POLICY(x) != SCTP_PR_SCTP_ALL - } - - pub {const} fn PR_SCTP_TTL_ENABLED(x: ::c_int) -> bool { - PR_SCTP_POLICY(x) == SCTP_PR_SCTP_TTL - } - - pub {const} fn PR_SCTP_BUF_ENABLED(x: ::c_int) -> bool { - PR_SCTP_POLICY(x) == SCTP_PR_SCTP_BUF - } - - pub {const} fn PR_SCTP_RTX_ENABLED(x: ::c_int) -> bool { - PR_SCTP_POLICY(x) == SCTP_PR_SCTP_RTX - } - - pub {const} fn PR_SCTP_INVALID_POLICY(x: ::c_int) -> bool { - PR_SCTP_POLICY(x) > SCTP_PR_SCTP_MAX - } - - pub {const} fn PR_SCTP_VALID_POLICY(x: ::c_int) -> bool { - PR_SCTP_POLICY(x) <= SCTP_PR_SCTP_MAX - } } cfg_if! { @@ -5273,6 +4327,7 @@ extern "C" { pub fn fls(value: ::c_int) -> ::c_int; pub fn flsl(value: ::c_long) -> ::c_int; pub fn flsll(value: ::c_longlong) -> ::c_int; + pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t; pub fn malloc_stats_print( write_cb: unsafe extern "C" fn(*mut ::c_void, *const ::c_char), cbopaque: *mut ::c_void, @@ -5313,14 +4368,6 @@ extern "C" { pub fn getpagesizes(pagesize: *mut ::size_t, nelem: ::c_int) -> ::c_int; pub fn clock_getcpuclockid2(arg1: ::id_t, arg2: ::c_int, arg3: *mut clockid_t) -> ::c_int; - pub fn clock_nanosleep( - clk_id: ::clockid_t, - flags: ::c_int, - rqtp: *const ::timespec, - rmtp: *mut ::timespec, - ) -> ::c_int; - - pub fn strchrnul(s: *const ::c_char, c: ::c_int) -> *mut ::c_char; pub fn shm_create_largepage( path: *const ::c_char, @@ -5337,17 +4384,6 @@ extern "C" { pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int; pub fn setaudit(auditinfo: *const auditinfo_t) -> ::c_int; - pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int; - - pub fn fdatasync(fd: ::c_int) -> ::c_int; - - pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; - pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; - pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int; - pub fn setproctitle_fast(fmt: *const ::c_char, ...); - pub fn timingsafe_bcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; - pub fn timingsafe_memcmp(a: *const ::c_void, b: *const ::c_void, len: ::size_t) -> ::c_int; - pub fn _umtx_op( obj: *mut ::c_void, op: ::c_int, @@ -5355,57 +4391,6 @@ extern "C" { uaddr: *mut ::c_void, uaddr2: *mut ::c_void, ) -> ::c_int; - - pub fn sctp_peeloff(s: ::c_int, id: ::sctp_assoc_t) -> ::c_int; - pub fn sctp_bindx(s: ::c_int, addrs: *mut ::sockaddr, num: ::c_int, tpe: ::c_int) -> ::c_int; - pub fn sctp_connectx( - s: ::c_int, - addrs: *const ::sockaddr, - addrcnt: ::c_int, - id: *mut ::sctp_assoc_t, - ) -> ::c_int; - pub fn sctp_getaddrlen(family: ::sa_family_t) -> ::c_int; - pub fn sctp_getpaddrs( - s: ::c_int, - asocid: ::sctp_assoc_t, - addrs: *mut *mut ::sockaddr, - ) -> ::c_int; - pub fn sctp_freepaddrs(addrs: *mut ::sockaddr); - pub fn sctp_getladdrs( - s: ::c_int, - asocid: ::sctp_assoc_t, - addrs: *mut *mut ::sockaddr, - ) -> ::c_int; - pub fn sctp_freeladdrs(addrs: *mut ::sockaddr); - pub fn sctp_opt_info( - s: ::c_int, - id: ::sctp_assoc_t, - opt: ::c_int, - arg: *mut ::c_void, - size: *mut ::socklen_t, - ) -> ::c_int; - pub fn sctp_sendv( - sd: ::c_int, - iov: *const ::iovec, - iovcnt: ::c_int, - addrs: *mut ::sockaddr, - addrcnt: ::c_int, - info: *mut ::c_void, - infolen: ::socklen_t, - infotype: ::c_uint, - flags: ::c_int, - ) -> ::ssize_t; - pub fn sctp_recvv( - sd: ::c_int, - iov: *const ::iovec, - iovcnt: ::c_int, - from: *mut ::sockaddr, - fromlen: *mut ::socklen_t, - info: *mut ::c_void, - infolen: *mut ::socklen_t, - infotype: *mut ::c_uint, - flags: *mut ::c_int, - ) -> ::ssize_t; } #[link(name = "memstat")] @@ -5498,17 +4483,6 @@ extern "C" { pub fn flopenat(fd: ::c_int, path: *const ::c_char, flags: ::c_int, ...) -> ::c_int; pub fn getlocalbase() -> *const ::c_char; - - pub fn pidfile_open( - path: *const ::c_char, - mode: ::mode_t, - pidptr: *mut ::pid_t, - ) -> *mut ::pidfh; - pub fn pidfile_write(path: *mut ::pidfh) -> ::c_int; - pub fn pidfile_close(path: *mut ::pidfh) -> ::c_int; - pub fn pidfile_remove(path: *mut ::pidfh) -> ::c_int; - pub fn pidfile_fileno(path: *const ::pidfh) -> ::c_int; - // FIXME: pidfile_signal in due time (both manpage present and updated image snapshot) } #[link(name = "procstat")] diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs dissimilarity index 83% index 4046ec3109f1..d3a3f34b0f61 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86.rs @@ -1,201 +1,46 @@ -pub type c_char = i8; -pub type c_long = i32; -pub type c_ulong = u32; -pub type wchar_t = i32; -pub type time_t = i32; -pub type suseconds_t = i32; -pub type register_t = i32; - -s_no_extra_traits! { - pub struct mcontext_t { - pub mc_onstack: register_t, - pub mc_gs: register_t, - pub mc_fs: register_t, - pub mc_es: register_t, - pub mc_ds: register_t, - pub mc_edi: register_t, - pub mc_esi: register_t, - pub mc_ebp: register_t, - pub mc_isp: register_t, - pub mc_ebx: register_t, - pub mc_edx: register_t, - pub mc_ecx: register_t, - pub mc_eax: register_t, - pub mc_trapno: register_t, - pub mc_err: register_t, - pub mc_eip: register_t, - pub mc_cs: register_t, - pub mc_eflags: register_t, - pub mc_esp: register_t, - pub mc_ss: register_t, - pub mc_len: ::c_int, - pub mc_fpformat: ::c_int, - pub mc_ownedfp: ::c_int, - pub mc_flags: register_t, - pub mc_fpstate: [[::c_int; 32]; 4], - pub mc_fsbase: register_t, - pub mc_gsbase: register_t, - pub mc_xfpustate: register_t, - pub mc_xfpustate_len: register_t, - pub mc_spare2: [::c_int; 4], - } -} - -s! { - pub struct stat { - pub st_dev: ::dev_t, - pub st_ino: ::ino_t, - pub st_mode: ::mode_t, - pub st_nlink: ::nlink_t, - pub st_uid: ::uid_t, - pub st_gid: ::gid_t, - pub st_rdev: ::dev_t, - pub st_atime: ::time_t, - pub st_atime_nsec: ::c_long, - pub st_mtime: ::time_t, - pub st_mtime_nsec: ::c_long, - pub st_ctime: ::time_t, - pub st_ctime_nsec: ::c_long, - pub st_size: ::off_t, - pub st_blocks: ::blkcnt_t, - pub st_blksize: ::blksize_t, - pub st_flags: ::fflags_t, - pub st_gen: u32, - pub st_lspare: i32, - pub st_birthtime: ::time_t, - pub st_birthtime_nsec: ::c_long, - __unused: [u8; 8], - } - - pub struct ucontext_t { - pub uc_sigmask: ::sigset_t, - pub uc_mcontext: ::mcontext_t, - pub uc_link: *mut ::ucontext_t, - pub uc_stack: ::stack_t, - pub uc_flags: ::c_int, - __spare__: [::c_int; 4], - } -} - -// should be pub(crate), but that requires Rust 1.18.0 -cfg_if! { - if #[cfg(libc_const_size_of)] { - #[doc(hidden)] - pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1; - } else { - #[doc(hidden)] - pub const _ALIGNBYTES: usize = 4 - 1; - } -} - -cfg_if! { - if #[cfg(feature = "extra_traits")] { - impl PartialEq for mcontext_t { - fn eq(&self, other: &mcontext_t) -> bool { - self.mc_onstack == other.mc_onstack && - self.mc_gs == other.mc_gs && - self.mc_fs == other.mc_fs && - self.mc_es == other.mc_es && - self.mc_ds == other.mc_ds && - self.mc_edi == other.mc_edi && - self.mc_esi == other.mc_esi && - self.mc_ebp == other.mc_ebp && - self.mc_isp == other.mc_isp && - self.mc_ebx == other.mc_ebx && - self.mc_edx == other.mc_edx && - self.mc_ecx == other.mc_ecx && - self.mc_eax == other.mc_eax && - self.mc_trapno == other.mc_trapno && - self.mc_err == other.mc_err && - self.mc_eip == other.mc_eip && - self.mc_cs == other.mc_cs && - self.mc_eflags == other.mc_eflags && - self.mc_esp == other.mc_esp && - self.mc_ss == other.mc_ss && - self.mc_len == other.mc_len && - self.mc_fpformat == other.mc_fpformat && - self.mc_ownedfp == other.mc_ownedfp && - self.mc_flags == other.mc_flags && - self.mc_fpstate.iter().zip(other.mc_fpstate.iter()).all(|(a, b)| a == b) && - self.mc_fsbase == other.mc_fsbase && - self.mc_gsbase == other.mc_gsbase && - self.mc_xfpustate == other.mc_xfpustate && - self.mc_xfpustate_len == other.mc_xfpustate_len && - self.mc_spare2.iter().zip(other.mc_spare2.iter()).all(|(a, b)| a == b) - } - } - impl Eq for mcontext_t {} - impl ::fmt::Debug for mcontext_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("mcontext_t") - .field("mc_onstack", &self.mc_onstack) - .field("mc_gs", &self.mc_gs) - .field("mc_fs", &self.mc_fs) - .field("mc_es", &self.mc_es) - .field("mc_ds", &self.mc_ds) - .field("mc_edi", &self.mc_edi) - .field("mc_esi", &self.mc_esi) - .field("mc_ebp", &self.mc_ebp) - .field("mc_isp", &self.mc_isp) - .field("mc_ebx", &self.mc_ebx) - .field("mc_edx", &self.mc_edx) - .field("mc_ecx", &self.mc_ecx) - .field("mc_eax", &self.mc_eax) - .field("mc_trapno", &self.mc_trapno) - .field("mc_err", &self.mc_err) - .field("mc_eip", &self.mc_eip) - .field("mc_cs", &self.mc_cs) - .field("mc_eflags", &self.mc_eflags) - .field("mc_esp", &self.mc_esp) - .field("mc_ss", &self.mc_ss) - .field("mc_len", &self.mc_len) - .field("mc_fpformat", &self.mc_fpformat) - .field("mc_ownedfp", &self.mc_ownedfp) - .field("mc_flags", &self.mc_flags) - .field("mc_fpstate", &self.mc_fpstate) - .field("mc_fsbase", &self.mc_fsbase) - .field("mc_gsbase", &self.mc_gsbase) - .field("mc_xfpustate", &self.mc_xfpustate) - .field("mc_xfpustate_len", &self.mc_xfpustate_len) - .field("mc_spare2", &self.mc_spare2) - .finish() - } - } - impl ::hash::Hash for mcontext_t { - fn hash(&self, state: &mut H) { - self.mc_onstack.hash(state); - self.mc_gs.hash(state); - self.mc_fs.hash(state); - self.mc_es.hash(state); - self.mc_ds.hash(state); - self.mc_edi.hash(state); - self.mc_esi.hash(state); - self.mc_ebp.hash(state); - self.mc_isp.hash(state); - self.mc_ebx.hash(state); - self.mc_edx.hash(state); - self.mc_ecx.hash(state); - self.mc_eax.hash(state); - self.mc_trapno.hash(state); - self.mc_err.hash(state); - self.mc_eip.hash(state); - self.mc_cs.hash(state); - self.mc_eflags.hash(state); - self.mc_esp.hash(state); - self.mc_ss.hash(state); - self.mc_len.hash(state); - self.mc_fpformat.hash(state); - self.mc_ownedfp.hash(state); - self.mc_flags.hash(state); - self.mc_fpstate.hash(state); - self.mc_fsbase.hash(state); - self.mc_gsbase.hash(state); - self.mc_xfpustate.hash(state); - self.mc_xfpustate_len.hash(state); - self.mc_spare2.hash(state); - } - } - } -} - -pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4 +pub type c_char = i8; +pub type c_long = i32; +pub type c_ulong = u32; +pub type wchar_t = i32; +pub type time_t = i32; +pub type suseconds_t = i32; +pub type register_t = i32; + +s! { + pub struct stat { + pub st_dev: ::dev_t, + pub st_ino: ::ino_t, + pub st_mode: ::mode_t, + pub st_nlink: ::nlink_t, + pub st_uid: ::uid_t, + pub st_gid: ::gid_t, + pub st_rdev: ::dev_t, + pub st_atime: ::time_t, + pub st_atime_nsec: ::c_long, + pub st_mtime: ::time_t, + pub st_mtime_nsec: ::c_long, + pub st_ctime: ::time_t, + pub st_ctime_nsec: ::c_long, + pub st_size: ::off_t, + pub st_blocks: ::blkcnt_t, + pub st_blksize: ::blksize_t, + pub st_flags: ::fflags_t, + pub st_gen: u32, + pub st_lspare: i32, + pub st_birthtime: ::time_t, + pub st_birthtime_nsec: ::c_long, + __unused: [u8; 8], + } +} + +// should be pub(crate), but that requires Rust 1.18.0 +cfg_if! { + if #[cfg(libc_const_size_of)] { + #[doc(hidden)] + pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1; + } else { + #[doc(hidden)] + pub const _ALIGNBYTES: usize = 4 - 1; + } +} +pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4 diff --git a/third_party/rust/libc/src/unix/bsd/freebsdlike/mod.rs b/third_party/rust/libc/src/unix/bsd/freebsdlike/mod.rs index fe69ca42044c..9aefb36e4eb3 100644 --- a/third_party/rust/libc/src/unix/bsd/freebsdlike/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/freebsdlike/mod.rs @@ -824,15 +824,12 @@ pub const CLOCK_VIRTUAL: ::clockid_t = 1; pub const CLOCK_PROF: ::clockid_t = 2; pub const CLOCK_MONOTONIC: ::clockid_t = 4; pub const CLOCK_UPTIME: ::clockid_t = 5; -pub const CLOCK_BOOTTIME: ::clockid_t = CLOCK_UPTIME; pub const CLOCK_UPTIME_PRECISE: ::clockid_t = 7; pub const CLOCK_UPTIME_FAST: ::clockid_t = 8; pub const CLOCK_REALTIME_PRECISE: ::clockid_t = 9; pub const CLOCK_REALTIME_FAST: ::clockid_t = 10; -pub const CLOCK_REALTIME_COARSE: ::clockid_t = CLOCK_REALTIME_FAST; pub const CLOCK_MONOTONIC_PRECISE: ::clockid_t = 11; pub const CLOCK_MONOTONIC_FAST: ::clockid_t = 12; -pub const CLOCK_MONOTONIC_COARSE: ::clockid_t = CLOCK_MONOTONIC_FAST; pub const CLOCK_SECOND: ::clockid_t = 13; pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 14; pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 15; @@ -1339,7 +1336,7 @@ pub const CMGROUP_MAX: usize = 16; pub const EUI64_LEN: usize = 8; -// https://github.com/freebsd/freebsd/blob/HEAD/sys/net/bpf.h +// https://github.com/freebsd/freebsd/blob/master/sys/net/bpf.h pub const BPF_ALIGNMENT: usize = SIZEOF_LONG; // Values for rtprio struct (prio field) and syscall (function argument) @@ -1434,31 +1431,6 @@ pub const SHM_RND: ::c_int = 0o20000; pub const SHM_R: ::c_int = 0o400; pub const SHM_W: ::c_int = 0o200; -pub const KENV_GET: ::c_int = 0; -pub const KENV_SET: ::c_int = 1; -pub const KENV_UNSET: ::c_int = 2; -pub const KENV_DUMP: ::c_int = 3; -pub const KENV_MNAMELEN: ::c_int = 128; -pub const KENV_MVALLEN: ::c_int = 128; - -pub const RB_ASKNAME: ::c_int = 0x001; -pub const RB_SINGLE: ::c_int = 0x002; -pub const RB_NOSYNC: ::c_int = 0x004; -pub const RB_HALT: ::c_int = 0x008; -pub const RB_INITNAME: ::c_int = 0x010; -pub const RB_DFLTROOT: ::c_int = 0x020; -pub const RB_KDB: ::c_int = 0x040; -pub const RB_RDONLY: ::c_int = 0x080; -pub const RB_DUMP: ::c_int = 0x100; -pub const RB_MINIROOT: ::c_int = 0x200; -pub const RB_VERBOSE: ::c_int = 0x800; -pub const RB_SERIAL: ::c_int = 0x1000; -pub const RB_CDROM: ::c_int = 0x2000; -pub const RB_POWEROFF: ::c_int = 0x4000; -pub const RB_GDB: ::c_int = 0x8000; -pub const RB_MUTE: ::c_int = 0x10000; -pub const RB_SELFTEST: ::c_int = 0x20000; - safe_f! { pub {const} fn WIFCONTINUED(status: ::c_int) -> bool { status == 0x13 @@ -1571,7 +1543,6 @@ extern "C" { mode: ::mode_t, dev: dev_t, ) -> ::c_int; - pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t; pub fn mincore(addr: *const ::c_void, len: ::size_t, vec: *mut ::c_char) -> ::c_int; pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t; pub fn nl_langinfo_l(item: ::nl_item, locale: ::locale_t) -> *mut ::c_char; @@ -1763,14 +1734,6 @@ extern "C" { pub fn eui64_hostton(hostname: *const ::c_char, id: *mut eui64) -> ::c_int; pub fn eaccess(path: *const ::c_char, mode: ::c_int) -> ::c_int; - - pub fn kenv( - action: ::c_int, - name: *const ::c_char, - value: *mut ::c_char, - len: ::c_int, - ) -> ::c_int; - pub fn reboot(howto: ::c_int) -> ::c_int; } #[link(name = "rt")] diff --git a/third_party/rust/libc/src/unix/bsd/mod.rs b/third_party/rust/libc/src/unix/bsd/mod.rs index 6ce041357ebe..84e572edabee 100644 --- a/third_party/rust/libc/src/unix/bsd/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/mod.rs @@ -628,7 +628,6 @@ extern "C" { pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int; pub fn freeifaddrs(ifa: *mut ::ifaddrs); pub fn setgroups(ngroups: ::c_int, ptr: *const ::gid_t) -> ::c_int; - pub fn setlogin(name: *const ::c_char) -> ::c_int; pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int; pub fn kqueue() -> ::c_int; pub fn unmount(target: *const ::c_char, arg: ::c_int) -> ::c_int; diff --git a/third_party/rust/libc/src/unix/bsd/netbsdlike/mod.rs b/third_party/rust/libc/src/unix/bsd/netbsdlike/mod.rs index c43a4b9e8e4e..b71531c253db 100644 --- a/third_party/rust/libc/src/unix/bsd/netbsdlike/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/netbsdlike/mod.rs @@ -746,7 +746,6 @@ extern "C" { pub fn dirname(path: *mut ::c_char) -> *mut ::c_char; pub fn basename(path: *mut ::c_char) -> *mut ::c_char; - pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; } cfg_if! { diff --git a/third_party/rust/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs b/third_party/rust/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs index 46035df31188..41f6b23d123e 100644 --- a/third_party/rust/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -709,49 +709,6 @@ s! { #[cfg(libc_union)] pub ifc_ifcu: __c_anonymous_ifc_ifcu, } - - pub struct tcp_info { - pub tcpi_state: u8, - pub __tcpi_ca_state: u8, - pub __tcpi_retransmits: u8, - pub __tcpi_probes: u8, - pub __tcpi_backoff: u8, - pub tcpi_options: u8, - pub tcp_snd_wscale: u8, - pub tcp_rcv_wscale: u8, - pub tcpi_rto: u32, - pub __tcpi_ato: u32, - pub tcpi_snd_mss: u32, - pub tcpi_rcv_mss: u32, - pub __tcpi_unacked: u32, - pub __tcpi_sacked: u32, - pub __tcpi_lost: u32, - pub __tcpi_retrans: u32, - pub __tcpi_fackets: u32, - pub __tcpi_last_data_sent: u32, - pub __tcpi_last_ack_sent: u32, - pub tcpi_last_data_recv: u32, - pub __tcpi_last_ack_recv: u32, - pub __tcpi_pmtu: u32, - pub __tcpi_rcv_ssthresh: u32, - pub tcpi_rtt: u32, - pub tcpi_rttvar: u32, - pub tcpi_snd_ssthresh: u32, - pub tcpi_snd_cwnd: u32, - pub __tcpi_advmss: u32, - pub __tcpi_reordering: u32, - pub __tcpi_rcv_rtt: u32, - pub tcpi_rcv_space: u32, - pub tcpi_snd_wnd: u32, - pub tcpi_snd_bwnd: u32, - pub tcpi_snd_nxt: u32, - pub tcpi_rcv_nxt: u32, - pub tcpi_toe_tid: u32, - pub tcpi_snd_rexmitpack: u32, - pub tcpi_rcv_ooopack: u32, - pub tcpi_snd_zerowin: u32, - pub __tcpi_pad: [u32; 26], - } } s_no_extra_traits! { @@ -1441,7 +1398,7 @@ pub const MS_SYNC: ::c_int = 0x4; pub const MS_INVALIDATE: ::c_int = 0x2; // Here because they are not present on OpenBSD -// (https://github.com/openbsd/src/blob/HEAD/sys/sys/resource.h) +// (https://github.com/openbsd/src/blob/master/sys/sys/resource.h) pub const RLIMIT_SBSIZE: ::c_int = 9; pub const RLIMIT_AS: ::c_int = 10; pub const RLIMIT_NTHR: ::c_int = 11; @@ -1464,15 +1421,7 @@ pub const ENOATTR: ::c_int = 93; pub const EMULTIHOP: ::c_int = 94; pub const ENOLINK: ::c_int = 95; pub const EPROTO: ::c_int = 96; -pub const EOWNERDEAD: ::c_int = 97; -pub const ENOTRECOVERABLE: ::c_int = 98; -#[deprecated( - since = "0.2.143", - note = "This value will always match the highest defined error number \ - and thus is not stable. \ - See #3040 for more info." -)] -pub const ELAST: ::c_int = 98; +pub const ELAST: ::c_int = 96; pub const F_DUPFD_CLOEXEC: ::c_int = 12; pub const F_CLOSEM: ::c_int = 10; @@ -1977,9 +1926,6 @@ pub const EVFILT_SIGNAL: u32 = 5; pub const EVFILT_TIMER: u32 = 6; pub const EVFILT_VNODE: u32 = 3; pub const EVFILT_WRITE: u32 = 1; -pub const EVFILT_FS: u32 = 7; -pub const EVFILT_USER: u32 = 8; -pub const EVFILT_EMPTY: u32 = 9; pub const EV_ADD: u32 = 0x1; pub const EV_DELETE: u32 = 0x2; @@ -1994,13 +1940,6 @@ pub const EV_ERROR: u32 = 0x4000; pub const EV_EOF: u32 = 0x8000; pub const EV_SYSFLAGS: u32 = 0xf000; -pub const NOTE_TRIGGER: u32 = 0x01000000; -pub const NOTE_FFNOP: u32 = 0x00000000; -pub const NOTE_FFAND: u32 = 0x40000000; -pub const NOTE_FFOR: u32 = 0x80000000; -pub const NOTE_FFCOPY: u32 = 0xc0000000; -pub const NOTE_FFCTRLMASK: u32 = 0xc0000000; -pub const NOTE_FFLAGSMASK: u32 = 0x00ffffff; pub const NOTE_LOWAT: u32 = 0x00000001; pub const NOTE_DELETE: u32 = 0x00000001; pub const NOTE_WRITE: u32 = 0x00000002; @@ -2017,11 +1956,6 @@ pub const NOTE_PCTRLMASK: u32 = 0xf0000000; pub const NOTE_TRACK: u32 = 0x00000001; pub const NOTE_TRACKERR: u32 = 0x00000002; pub const NOTE_CHILD: u32 = 0x00000004; -pub const NOTE_MSECONDS: u32 = 0x00000000; -pub const NOTE_SECONDS: u32 = 0x00000001; -pub const NOTE_USECONDS: u32 = 0x00000002; -pub const NOTE_NSECONDS: u32 = 0x00000003; -pub const NOTE_ABSTIME: u32 = 0x000000010; pub const TMP_MAX: ::c_uint = 308915776; @@ -2228,11 +2162,6 @@ pub const WCONTINUED: ::c_int = 0x00000010; pub const WEXITED: ::c_int = 0x000000020; pub const WNOWAIT: ::c_int = 0x00010000; -pub const WALTSIG: ::c_int = 0x00000004; -pub const WALLSIG: ::c_int = 0x00000008; -pub const WTRAPPED: ::c_int = 0x00000040; -pub const WNOZOMBIE: ::c_int = 0x00020000; - pub const P_ALL: idtype_t = 0; pub const P_PID: idtype_t = 1; pub const P_PGID: idtype_t = 4; @@ -2392,24 +2321,6 @@ pub const XATTR_REPLACE: ::c_int = 0x02; // sys/extattr.h pub const EXTATTR_NAMESPACE_EMPTY: ::c_int = 0; -// For getrandom() -pub const GRND_NONBLOCK: ::c_uint = 0x1; -pub const GRND_RANDOM: ::c_uint = 0x2; -pub const GRND_INSECURE: ::c_uint = 0x4; - -cfg_if! { - - if #[cfg(libc_const_extern_fn)] { - pub const fn MAP_ALIGNED(alignment: ::c_int) -> ::c_int { - alignment << MAP_ALIGNMENT_SHIFT - } - } else { - pub fn MAP_ALIGNED(alignment: ::c_int) -> ::c_int { - alignment << MAP_ALIGNMENT_SHIFT - } - } -} - const_fn! { {const} fn _ALIGN(p: usize) -> usize { (p + _ALIGNBYTES) & !_ALIGNBYTES @@ -2422,7 +2333,7 @@ f! { .offset(_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { _ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length } @@ -2472,17 +2383,6 @@ f! { pub fn PROT_MPROTECT_EXTRACT(x: ::c_int) -> ::c_int { (x >> 3) & 0x7 } - - pub fn major(dev: ::dev_t) -> ::c_int { - (((dev as u32) & 0x000fff00) >> 8) as ::c_int - } - - pub fn minor(dev: ::dev_t) -> ::c_int { - let mut res = 0; - res |= ((dev as u32) & 0xfff00000) >> 12; - res |= (dev as u32) & 0x000000ff; - res as ::c_int - } } safe_f! { @@ -2524,7 +2424,31 @@ extern "C" { ) -> ::c_int; pub fn reallocarr(ptr: *mut ::c_void, number: ::size_t, size: ::size_t) -> ::c_int; +} + +#[link(name = "rt")] +extern "C" { + pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int; + pub fn aio_write(aiocbp: *mut aiocb) -> ::c_int; + pub fn aio_fsync(op: ::c_int, aiocbp: *mut aiocb) -> ::c_int; + pub fn aio_error(aiocbp: *const aiocb) -> ::c_int; + pub fn aio_return(aiocbp: *mut aiocb) -> ::ssize_t; + #[link_name = "__aio_suspend50"] + pub fn aio_suspend( + aiocb_list: *const *const aiocb, + nitems: ::c_int, + timeout: *const ::timespec, + ) -> ::c_int; + pub fn aio_cancel(fd: ::c_int, aiocbp: *mut aiocb) -> ::c_int; + pub fn lio_listio( + mode: ::c_int, + aiocb_list: *const *mut aiocb, + nitems: ::c_int, + sevp: *mut sigevent, + ) -> ::c_int; +} +extern "C" { pub fn chflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int; pub fn fchflags(fd: ::c_int, flags: ::c_ulong) -> ::c_int; pub fn lchflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int; @@ -2869,12 +2793,7 @@ extern "C" { ts: *const ::timespec, sigmask: *const ::sigset_t, ) -> ::c_int; - pub fn ppoll( - fds: *mut ::pollfd, - nfds: ::nfds_t, - ts: *const ::timespec, - sigmask: *const ::sigset_t, - ) -> ::c_int; + pub fn posix_spawn( pid: *mut ::pid_t, path: *const ::c_char, @@ -2951,29 +2870,6 @@ extern "C" { fd: ::c_int, newfd: ::c_int, ) -> ::c_int; - pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; -} - -#[link(name = "rt")] -extern "C" { - pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int; - pub fn aio_write(aiocbp: *mut aiocb) -> ::c_int; - pub fn aio_fsync(op: ::c_int, aiocbp: *mut aiocb) -> ::c_int; - pub fn aio_error(aiocbp: *const aiocb) -> ::c_int; - pub fn aio_return(aiocbp: *mut aiocb) -> ::ssize_t; - #[link_name = "__aio_suspend50"] - pub fn aio_suspend( - aiocb_list: *const *const aiocb, - nitems: ::c_int, - timeout: *const ::timespec, - ) -> ::c_int; - pub fn aio_cancel(fd: ::c_int, aiocbp: *mut aiocb) -> ::c_int; - pub fn lio_listio( - mode: ::c_int, - aiocb_list: *const *mut aiocb, - nitems: ::c_int, - sevp: *mut sigevent, - ) -> ::c_int; } #[link(name = "util")] diff --git a/third_party/rust/libc/src/unix/bsd/netbsdlike/openbsd/mod.rs b/third_party/rust/libc/src/unix/bsd/netbsdlike/openbsd/mod.rs index 5455bd344b65..3c966990a50c 100644 --- a/third_party/rust/libc/src/unix/bsd/netbsdlike/openbsd/mod.rs +++ b/third_party/rust/libc/src/unix/bsd/netbsdlike/openbsd/mod.rs @@ -7,7 +7,6 @@ pub type sigset_t = ::c_uint; pub type blksize_t = i32; pub type fsblkcnt_t = u64; pub type fsfilcnt_t = u64; -pub type idtype_t = ::c_uint; pub type pthread_attr_t = *mut ::c_void; pub type pthread_mutex_t = *mut ::c_void; pub type pthread_mutexattr_t = *mut ::c_void; @@ -110,7 +109,7 @@ s! { pub struct mfs_args { pub fspec: *mut ::c_char, pub export_info: export_args, - // https://github.com/openbsd/src/blob/HEAD/sys/sys/types.h#L134 + // https://github.com/openbsd/src/blob/master/sys/sys/types.h#L134 pub base: *mut ::c_char, pub size: ::c_ulong, } @@ -190,7 +189,7 @@ s! { pub cr_uid: ::uid_t, pub cr_gid: ::gid_t, pub cr_ngroups: ::c_short, - //https://github.com/openbsd/src/blob/HEAD/sys/sys/syslimits.h#L44 + //https://github.com/openbsd/src/blob/master/sys/sys/syslimits.h#L44 pub cr_groups: [::gid_t; 16], } @@ -499,7 +498,6 @@ s! { pub p_tid: i32, pub p_rtableid: u32, pub p_pledge: u64, - pub p_name: [::c_char; KI_MAXCOMLEN as usize], } pub struct kinfo_vmentry { @@ -999,8 +997,6 @@ pub const SO_NETPROC: ::c_int = 0x1020; pub const SO_RTABLE: ::c_int = 0x1021; pub const SO_PEERCRED: ::c_int = 0x1022; pub const SO_SPLICE: ::c_int = 0x1023; -pub const SO_DOMAIN: ::c_int = 0x1024; -pub const SO_PROTOCOL: ::c_int = 0x1025; // sys/netinet/in.h // Protocols (RFC 1700) @@ -1075,8 +1071,6 @@ pub const IP_RECVIF: ::c_int = 30; pub const TCP_MD5SIG: ::c_int = 0x04; pub const TCP_NOPUSH: ::c_int = 0x10; -pub const MSG_WAITFORONE: ::c_int = 0x1000; - pub const AF_ECMA: ::c_int = 8; pub const AF_ROUTE: ::c_int = 17; pub const AF_ENCAP: ::c_int = 28; @@ -1284,15 +1278,13 @@ pub const PTHREAD_MUTEX_NORMAL: ::c_int = 3; pub const PTHREAD_MUTEX_STRICT_NP: ::c_int = 4; pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_STRICT_NP; -pub const EVFILT_READ: i16 = -1; -pub const EVFILT_WRITE: i16 = -2; pub const EVFILT_AIO: i16 = -3; -pub const EVFILT_VNODE: i16 = -4; pub const EVFILT_PROC: i16 = -5; +pub const EVFILT_READ: i16 = -1; pub const EVFILT_SIGNAL: i16 = -6; pub const EVFILT_TIMER: i16 = -7; -pub const EVFILT_DEVICE: i16 = -8; -pub const EVFILT_EXCEPT: i16 = -9; +pub const EVFILT_VNODE: i16 = -4; +pub const EVFILT_WRITE: i16 = -2; pub const EV_ADD: u16 = 0x1; pub const EV_DELETE: u16 = 0x2; @@ -1311,7 +1303,6 @@ pub const EV_SYSFLAGS: u16 = 0xf800; pub const NOTE_LOWAT: u32 = 0x00000001; pub const NOTE_EOF: u32 = 0x00000002; -pub const NOTE_OOB: u32 = 0x00000004; pub const NOTE_DELETE: u32 = 0x00000001; pub const NOTE_WRITE: u32 = 0x00000002; pub const NOTE_EXTEND: u32 = 0x00000004; @@ -1328,7 +1319,6 @@ pub const NOTE_PCTRLMASK: u32 = 0xf0000000; pub const NOTE_TRACK: u32 = 0x00000001; pub const NOTE_TRACKERR: u32 = 0x00000002; pub const NOTE_CHILD: u32 = 0x00000004; -pub const NOTE_CHANGE: u32 = 0x00000001; pub const TMP_MAX: ::c_uint = 0x7fffffff; @@ -1517,7 +1507,7 @@ pub const OLCUC: ::tcflag_t = 0x20; pub const ONOCR: ::tcflag_t = 0x40; pub const ONLRET: ::tcflag_t = 0x80; -//https://github.com/openbsd/src/blob/HEAD/sys/sys/mount.h +//https://github.com/openbsd/src/blob/master/sys/sys/mount.h pub const ISOFSMNT_NORRIP: ::c_int = 0x1; // disable Rock Ridge Ext pub const ISOFSMNT_GENS: ::c_int = 0x2; // enable generation numbers pub const ISOFSMNT_EXTATT: ::c_int = 0x4; // enable extended attr @@ -1581,7 +1571,7 @@ pub const TMPFS_ARGS_VERSION: ::c_int = 1; pub const MAP_STACK: ::c_int = 0x4000; pub const MAP_CONCEAL: ::c_int = 0x8000; -// https://github.com/openbsd/src/blob/HEAD/sys/net/if.h#L187 +// https://github.com/openbsd/src/blob/master/sys/net/if.h#L187 pub const IFF_UP: ::c_int = 0x1; // interface is up pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid pub const IFF_DEBUG: ::c_int = 0x4; // turn on debugging @@ -1620,15 +1610,7 @@ pub const BIOCSDLT: ::c_ulong = 0x8004427a; pub const PTRACE_FORK: ::c_int = 0x0002; -pub const WCONTINUED: ::c_int = 0x08; -pub const WEXITED: ::c_int = 0x04; -pub const WSTOPPED: ::c_int = 0x02; // same as WUNTRACED -pub const WNOWAIT: ::c_int = 0x10; -pub const WTRAPPED: ::c_int = 0x20; - -pub const P_ALL: ::idtype_t = 0; -pub const P_PGID: ::idtype_t = 1; -pub const P_PID: ::idtype_t = 2; +pub const WCONTINUED: ::c_int = 8; // search.h pub const FIND: ::ACTION = 0; @@ -1677,12 +1659,6 @@ pub const MNT_WAIT: ::c_int = 1; pub const MNT_NOWAIT: ::c_int = 2; pub const MNT_LAZY: ::c_int = 3; -// sys/_time.h -pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 2; -pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 4; -pub const CLOCK_UPTIME: ::clockid_t = 5; -pub const CLOCK_BOOTTIME: ::clockid_t = 6; - pub const LC_COLLATE_MASK: ::c_int = 1 << ::LC_COLLATE; pub const LC_CTYPE_MASK: ::c_int = 1 << ::LC_CTYPE; pub const LC_MONETARY_MASK: ::c_int = 1 << ::LC_MONETARY; @@ -1707,7 +1683,7 @@ f! { .offset(_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { _ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length } @@ -1733,19 +1709,6 @@ f! { (_ALIGN(::mem::size_of::<::cmsghdr>()) + _ALIGN(length as usize)) as ::c_uint } - - pub fn major(dev: ::dev_t) -> ::c_uint{ - ((dev as ::c_uint) >> 8) & 0xff - } - - pub fn minor(dev: ::dev_t) -> ::c_uint { - let dev = dev as ::c_uint; - let mut res = 0; - res |= (dev) & 0xff; - res |= ((dev) & 0xffff0000) >> 8; - - res - } } safe_f! { @@ -1859,6 +1822,7 @@ extern "C" { newp: *mut ::c_void, newlen: ::size_t, ) -> ::c_int; + pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int; pub fn ptrace(request: ::c_int, pid: ::pid_t, addr: caddr_t, data: ::c_int) -> ::c_int; @@ -1924,8 +1888,6 @@ extern "C" { timeout: *const ::timespec, uaddr2: *mut u32, ) -> ::c_int; - - pub fn mimmutable(addr: *mut ::c_void, len: ::size_t) -> ::c_int; } #[link(name = "execinfo")] diff --git a/third_party/rust/libc/src/unix/haiku/mod.rs b/third_party/rust/libc/src/unix/haiku/mod.rs index 24aa599c0707..95ddadaeeac4 100644 --- a/third_party/rust/libc/src/unix/haiku/mod.rs +++ b/third_party/rust/libc/src/unix/haiku/mod.rs @@ -55,8 +55,6 @@ pub type ACTION = ::c_int; pub type posix_spawnattr_t = *mut ::c_void; pub type posix_spawn_file_actions_t = *mut ::c_void; -pub type StringList = _stringlist; - #[cfg_attr(feature = "extra_traits", derive(Debug))] pub enum timezone {} impl ::Copy for timezone {} @@ -439,19 +437,6 @@ s! { pub flag: *mut ::c_int, pub val: ::c_int, } - - pub struct _stringlist { - pub sl_str: *mut *mut ::c_char, - pub sl_max: ::size_t, - pub sl_cur: ::size_t, - } - - pub struct dl_phdr_info { - pub dlpi_addr: ::Elf_Addr, - pub dlpi_name: *const ::c_char, - pub dlpi_phdr: *const ::Elf_Phdr, - pub dlpi_phnum: ::Elf_Half, - } } s_no_extra_traits! { @@ -685,9 +670,6 @@ pub const EOF: ::c_int = -1; pub const SEEK_SET: ::c_int = 0; pub const SEEK_CUR: ::c_int = 1; pub const SEEK_END: ::c_int = 2; -pub const L_SET: ::c_int = SEEK_SET; -pub const L_INCR: ::c_int = SEEK_CUR; -pub const L_XTND: ::c_int = SEEK_END; pub const _IOFBF: ::c_int = 0; pub const _IONBF: ::c_int = 2; pub const _IOLBF: ::c_int = 1; @@ -979,7 +961,7 @@ pub const MADV_WILLNEED: ::c_int = 4; pub const MADV_DONTNEED: ::c_int = 5; pub const MADV_FREE: ::c_int = 6; -// https://github.com/haiku/haiku/blob/HEAD/headers/posix/net/if.h#L80 +// https://github.com/haiku/haiku/blob/master/headers/posix/net/if.h#L80 pub const IFF_UP: ::c_int = 0x0001; pub const IFF_BROADCAST: ::c_int = 0x0002; // valid broadcast address pub const IFF_LOOPBACK: ::c_int = 0x0008; @@ -1504,7 +1486,7 @@ f! { as ::c_uint } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { CMSG_ALIGN(::mem::size_of::()) as ::c_uint + length } @@ -2002,17 +1984,6 @@ extern "C" { longopts: *const option, longindex: *mut ::c_int, ) -> ::c_int; - pub fn strcasecmp_l( - string1: *const ::c_char, - string2: *const ::c_char, - locale: ::locale_t, - ) -> ::c_int; - pub fn strncasecmp_l( - string1: *const ::c_char, - string2: *const ::c_char, - length: ::size_t, - locale: ::locale_t, - ) -> ::c_int; } #[link(name = "bsd")] @@ -2035,34 +2006,6 @@ extern "C" { pub fn strsep(string: *mut *mut ::c_char, delimiters: *const ::c_char) -> *mut ::c_char; pub fn explicit_bzero(buf: *mut ::c_void, len: ::size_t); pub fn login_tty(_fd: ::c_int) -> ::c_int; - - pub fn sl_init() -> *mut StringList; - pub fn sl_add(sl: *mut StringList, n: *mut ::c_char) -> ::c_int; - pub fn sl_free(sl: *mut StringList, i: ::c_int); - pub fn sl_find(sl: *mut StringList, n: *mut ::c_char) -> *mut ::c_char; - - pub fn getprogname() -> *const ::c_char; - pub fn setprogname(progname: *const ::c_char); - pub fn dl_iterate_phdr( - callback: ::Option< - unsafe extern "C" fn( - info: *mut dl_phdr_info, - size: usize, - data: *mut ::c_void, - ) -> ::c_int, - >, - data: *mut ::c_void, - ) -> ::c_int; -} - -#[link(name = "gnu")] -extern "C" { - pub fn memmem( - source: *const ::c_void, - sourceLength: ::size_t, - search: *const ::c_void, - searchLength: ::size_t, - ) -> *mut ::c_void; } cfg_if! { diff --git a/third_party/rust/libc/src/unix/linux_like/android/b32/arm.rs b/third_party/rust/libc/src/unix/linux_like/android/b32/arm.rs index a062175eef74..8b8e549550e3 100644 --- a/third_party/rust/libc/src/unix/linux_like/android/b32/arm.rs +++ b/third_party/rust/libc/src/unix/linux_like/android/b32/arm.rs @@ -501,17 +501,9 @@ pub const SYS_pwritev2: ::c_long = 393; pub const SYS_pkey_mprotect: ::c_long = 394; pub const SYS_pkey_alloc: ::c_long = 395; pub const SYS_pkey_free: ::c_long = 396; -pub const SYS_statx: ::c_long = 397; -pub const SYS_pidfd_send_signal: ::c_long = 424; pub const SYS_io_uring_setup: ::c_long = 425; pub const SYS_io_uring_enter: ::c_long = 426; pub const SYS_io_uring_register: ::c_long = 427; -pub const SYS_open_tree: ::c_long = 428; -pub const SYS_move_mount: ::c_long = 429; -pub const SYS_fsopen: ::c_long = 430; -pub const SYS_fsconfig: ::c_long = 431; -pub const SYS_fsmount: ::c_long = 432; -pub const SYS_fspick: ::c_long = 433; // offsets in mcontext_t.gregs from sys/ucontext.h pub const REG_R0: ::c_int = 0; diff --git a/third_party/rust/libc/src/unix/linux_like/android/b32/x86/mod.rs b/third_party/rust/libc/src/unix/linux_like/android/b32/x86/mod.rs index e549f3b5168e..9545ecbfbc44 100644 --- a/third_party/rust/libc/src/unix/linux_like/android/b32/x86/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/android/b32/x86/mod.rs @@ -533,17 +533,9 @@ pub const SYS_pwritev2: ::c_long = 379; pub const SYS_pkey_mprotect: ::c_long = 380; pub const SYS_pkey_alloc: ::c_long = 381; pub const SYS_pkey_free: ::c_long = 382; -pub const SYS_statx: ::c_long = 383; -pub const SYS_pidfd_send_signal: ::c_long = 424; pub const SYS_io_uring_setup: ::c_long = 425; pub const SYS_io_uring_enter: ::c_long = 426; pub const SYS_io_uring_register: ::c_long = 427; -pub const SYS_open_tree: ::c_long = 428; -pub const SYS_move_mount: ::c_long = 429; -pub const SYS_fsopen: ::c_long = 430; -pub const SYS_fsconfig: ::c_long = 431; -pub const SYS_fsmount: ::c_long = 432; -pub const SYS_fspick: ::c_long = 433; // offsets in user_regs_structs, from sys/reg.h pub const EBX: ::c_int = 0; diff --git a/third_party/rust/libc/src/unix/linux_like/android/b64/aarch64/mod.rs b/third_party/rust/libc/src/unix/linux_like/android/b64/aarch64/mod.rs index ac67fddabecd..36871b084c80 100644 --- a/third_party/rust/libc/src/unix/linux_like/android/b64/aarch64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/android/b64/aarch64/mod.rs @@ -107,31 +107,6 @@ pub const HWCAP2_SVESHA3: ::c_ulong = 1 << 5; pub const HWCAP2_SVESM4: ::c_ulong = 1 << 6; pub const HWCAP2_FLAGM2: ::c_ulong = 1 << 7; pub const HWCAP2_FRINT: ::c_ulong = 1 << 8; -pub const HWCAP2_SVEI8MM: ::c_ulong = 1 << 9; -pub const HWCAP2_SVEF32MM: ::c_ulong = 1 << 10; -pub const HWCAP2_SVEF64MM: ::c_ulong = 1 << 11; -pub const HWCAP2_SVEBF16: ::c_ulong = 1 << 12; -pub const HWCAP2_I8MM: ::c_ulong = 1 << 13; -pub const HWCAP2_BF16: ::c_ulong = 1 << 14; -pub const HWCAP2_DGH: ::c_ulong = 1 << 15; -pub const HWCAP2_RNG: ::c_ulong = 1 << 16; -pub const HWCAP2_BTI: ::c_ulong = 1 << 17; -pub const HWCAP2_MTE: ::c_ulong = 1 << 18; -pub const HWCAP2_ECV: ::c_ulong = 1 << 19; -pub const HWCAP2_AFP: ::c_ulong = 1 << 20; -pub const HWCAP2_RPRES: ::c_ulong = 1 << 21; -pub const HWCAP2_MTE3: ::c_ulong = 1 << 22; -pub const HWCAP2_SME: ::c_ulong = 1 << 23; -pub const HWCAP2_SME_I16I64: ::c_ulong = 1 << 24; -pub const HWCAP2_SME_F64F64: ::c_ulong = 1 << 25; -pub const HWCAP2_SME_I8I32: ::c_ulong = 1 << 26; -pub const HWCAP2_SME_F16F32: ::c_ulong = 1 << 27; -pub const HWCAP2_SME_B16F32: ::c_ulong = 1 << 28; -pub const HWCAP2_SME_F32F32: ::c_ulong = 1 << 29; -pub const HWCAP2_SME_FA64: ::c_ulong = 1 << 30; -pub const HWCAP2_WFXT: ::c_ulong = 1 << 31; -pub const HWCAP2_EBF16: ::c_ulong = 1 << 32; -pub const HWCAP2_SVE_EBF16: ::c_ulong = 1 << 33; pub const SYS_io_setup: ::c_long = 0; pub const SYS_io_destroy: ::c_long = 1; @@ -399,22 +374,11 @@ pub const SYS_pwritev2: ::c_long = 287; pub const SYS_pkey_mprotect: ::c_long = 288; pub const SYS_pkey_alloc: ::c_long = 289; pub const SYS_pkey_free: ::c_long = 290; -pub const SYS_statx: ::c_long = 291; -pub const SYS_pidfd_send_signal: ::c_long = 424; pub const SYS_io_uring_setup: ::c_long = 425; pub const SYS_io_uring_enter: ::c_long = 426; pub const SYS_io_uring_register: ::c_long = 427; -pub const SYS_open_tree: ::c_long = 428; -pub const SYS_move_mount: ::c_long = 429; -pub const SYS_fsopen: ::c_long = 430; -pub const SYS_fsconfig: ::c_long = 431; -pub const SYS_fsmount: ::c_long = 432; -pub const SYS_fspick: ::c_long = 433; pub const SYS_syscalls: ::c_long = 436; -pub const PROT_BTI: ::c_int = 0x10; -pub const PROT_MTE: ::c_int = 0x20; - cfg_if! { if #[cfg(libc_align)] { mod align; diff --git a/third_party/rust/libc/src/unix/linux_like/android/b64/riscv64/mod.rs b/third_party/rust/libc/src/unix/linux_like/android/b64/riscv64/mod.rs index 9d414dc15fb3..2421792cfd4f 100644 --- a/third_party/rust/libc/src/unix/linux_like/android/b64/riscv64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/android/b64/riscv64/mod.rs @@ -60,12 +60,12 @@ pub const SIGSTKSZ: ::size_t = 8192; pub const MINSIGSTKSZ: ::size_t = 2048; // From NDK's asm/hwcap.h -pub const COMPAT_HWCAP_ISA_I: ::c_ulong = 1 << (b'I' - b'A'); -pub const COMPAT_HWCAP_ISA_M: ::c_ulong = 1 << (b'M' - b'A'); -pub const COMPAT_HWCAP_ISA_A: ::c_ulong = 1 << (b'A' - b'A'); -pub const COMPAT_HWCAP_ISA_F: ::c_ulong = 1 << (b'F' - b'A'); -pub const COMPAT_HWCAP_ISA_D: ::c_ulong = 1 << (b'D' - b'A'); -pub const COMPAT_HWCAP_ISA_C: ::c_ulong = 1 << (b'C' - b'A'); +pub const COMPAT_HWCAP_ISA_I: ::c_ulong = 1 << ('I' - 'A'); +pub const COMPAT_HWCAP_ISA_M: ::c_ulong = 1 << ('M' - 'A'); +pub const COMPAT_HWCAP_ISA_A: ::c_ulong = 1 << ('A' - 'A'); +pub const COMPAT_HWCAP_ISA_F: ::c_ulong = 1 << ('F' - 'A'); +pub const COMPAT_HWCAP_ISA_D: ::c_ulong = 1 << ('D' - 'A'); +pub const COMPAT_HWCAP_ISA_C: ::c_ulong = 1 << ('C' - 'A'); pub const SYS_io_setup: ::c_long = 0; pub const SYS_io_destroy: ::c_long = 1; @@ -332,17 +332,6 @@ pub const SYS_pwritev2: ::c_long = 287; pub const SYS_pkey_mprotect: ::c_long = 288; pub const SYS_pkey_alloc: ::c_long = 289; pub const SYS_pkey_free: ::c_long = 290; -pub const SYS_statx: ::c_long = 291; -pub const SYS_pidfd_send_signal: ::c_long = 424; -pub const SYS_io_uring_setup: ::c_long = 425; -pub const SYS_io_uring_enter: ::c_long = 426; -pub const SYS_io_uring_register: ::c_long = 427; -pub const SYS_open_tree: ::c_long = 428; -pub const SYS_move_mount: ::c_long = 429; -pub const SYS_fsopen: ::c_long = 430; -pub const SYS_fsconfig: ::c_long = 431; -pub const SYS_fsmount: ::c_long = 432; -pub const SYS_fspick: ::c_long = 433; pub const SYS_syscalls: ::c_long = 436; cfg_if! { diff --git a/third_party/rust/libc/src/unix/linux_like/android/b64/x86_64/mod.rs b/third_party/rust/libc/src/unix/linux_like/android/b64/x86_64/mod.rs index be6b5011c21c..1e3ee31c5be5 100644 --- a/third_party/rust/libc/src/unix/linux_like/android/b64/x86_64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/android/b64/x86_64/mod.rs @@ -728,17 +728,9 @@ pub const SYS_pwritev2: ::c_long = 328; pub const SYS_pkey_mprotect: ::c_long = 329; pub const SYS_pkey_alloc: ::c_long = 330; pub const SYS_pkey_free: ::c_long = 331; -pub const SYS_statx: ::c_long = 332; -pub const SYS_pidfd_send_signal: ::c_long = 424; pub const SYS_io_uring_setup: ::c_long = 425; pub const SYS_io_uring_enter: ::c_long = 426; pub const SYS_io_uring_register: ::c_long = 427; -pub const SYS_open_tree: ::c_long = 428; -pub const SYS_move_mount: ::c_long = 429; -pub const SYS_fsopen: ::c_long = 430; -pub const SYS_fsconfig: ::c_long = 431; -pub const SYS_fsmount: ::c_long = 432; -pub const SYS_fspick: ::c_long = 433; // offsets in user_regs_structs, from sys/reg.h pub const R15: ::c_int = 0; diff --git a/third_party/rust/libc/src/unix/linux_like/android/mod.rs b/third_party/rust/libc/src/unix/linux_like/android/mod.rs index 40fbb607a99a..adec24a0a0ef 100644 --- a/third_party/rust/libc/src/unix/linux_like/android/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/android/mod.rs @@ -350,11 +350,6 @@ s! { pub args: [::__u64; 6], } - pub struct seccomp_metadata { - pub filter_off: ::__u64, - pub flags: ::__u64, - } - pub struct ptrace_peeksiginfo_args { pub off: ::__u64, pub flags: ::__u32, @@ -1446,26 +1441,12 @@ pub const SO_PEERSEC: ::c_int = 31; pub const SO_SNDBUFFORCE: ::c_int = 32; pub const SO_RCVBUFFORCE: ::c_int = 33; pub const SO_PASSSEC: ::c_int = 34; -pub const SO_TIMESTAMPNS: ::c_int = 35; -// pub const SO_TIMESTAMPNS_OLD: ::c_int = 35; pub const SO_MARK: ::c_int = 36; -pub const SO_TIMESTAMPING: ::c_int = 37; -// pub const SO_TIMESTAMPING_OLD: ::c_int = 37; pub const SO_PROTOCOL: ::c_int = 38; pub const SO_DOMAIN: ::c_int = 39; pub const SO_RXQ_OVFL: ::c_int = 40; pub const SO_PEEK_OFF: ::c_int = 42; pub const SO_BUSY_POLL: ::c_int = 46; -pub const SCM_TIMESTAMPING_OPT_STATS: ::c_int = 54; -pub const SCM_TIMESTAMPING_PKTINFO: ::c_int = 58; -pub const SO_TIMESTAMP_NEW: ::c_int = 63; -pub const SO_TIMESTAMPNS_NEW: ::c_int = 64; -pub const SO_TIMESTAMPING_NEW: ::c_int = 65; - -// Defined in unix/linux_like/mod.rs -// pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP; -pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS; -pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING; pub const IPTOS_ECN_NOTECT: u8 = 0x00; @@ -1527,7 +1508,6 @@ pub const PTRACE_GETSIGINFO: ::c_int = 0x4202; pub const PTRACE_SETSIGINFO: ::c_int = 0x4203; pub const PTRACE_GETREGSET: ::c_int = 0x4204; pub const PTRACE_SETREGSET: ::c_int = 0x4205; -pub const PTRACE_SECCOMP_GET_METADATA: ::c_int = 0x420d; pub const PTRACE_EVENT_STOP: ::c_int = 128; @@ -1599,23 +1579,6 @@ pub const FIONREAD: ::c_int = 0x541B; pub const TIOCCONS: ::c_int = 0x541D; pub const TIOCSBRK: ::c_int = 0x5427; pub const TIOCCBRK: ::c_int = 0x5428; -cfg_if! { - if #[cfg(any(target_arch = "x86", - target_arch = "x86_64", - target_arch = "arm", - target_arch = "aarch64", - target_arch = "riscv64", - target_arch = "s390x"))] { - pub const FICLONE: ::c_int = 0x40049409; - pub const FICLONERANGE: ::c_int = 0x4020940D; - } else if #[cfg(any(target_arch = "mips", - target_arch = "mips64", - target_arch = "powerpc", - target_arch = "powerpc64"))] { - pub const FICLONE: ::c_int = 0x80049409; - pub const FICLONERANGE: ::c_int = 0x8020940D; - } -} pub const ST_RDONLY: ::c_ulong = 1; pub const ST_NOSUID: ::c_ulong = 2; @@ -1643,14 +1606,6 @@ pub const AI_ADDRCONFIG: ::c_int = 0x00000400; pub const AI_V4MAPPED: ::c_int = 0x00000800; pub const AI_DEFAULT: ::c_int = AI_V4MAPPED_CFG | AI_ADDRCONFIG; -// linux/kexec.h -pub const KEXEC_ON_CRASH: ::c_int = 0x00000001; -pub const KEXEC_PRESERVE_CONTEXT: ::c_int = 0x00000002; -pub const KEXEC_ARCH_MASK: ::c_int = 0xffff0000; -pub const KEXEC_FILE_UNLOAD: ::c_int = 0x00000001; -pub const KEXEC_FILE_ON_CRASH: ::c_int = 0x00000002; -pub const KEXEC_FILE_NO_INITRAMFS: ::c_int = 0x00000004; - pub const LINUX_REBOOT_MAGIC1: ::c_int = 0xfee1dead; pub const LINUX_REBOOT_MAGIC2: ::c_int = 672274793; pub const LINUX_REBOOT_MAGIC2A: ::c_int = 85072278; @@ -1837,7 +1792,6 @@ pub const NLM_F_MULTI: ::c_int = 2; pub const NLM_F_ACK: ::c_int = 4; pub const NLM_F_ECHO: ::c_int = 8; pub const NLM_F_DUMP_INTR: ::c_int = 16; -pub const NLM_F_DUMP_FILTERED: ::c_int = 32; pub const NLM_F_ROOT: ::c_int = 0x100; pub const NLM_F_MATCH: ::c_int = 0x200; @@ -2167,10 +2121,6 @@ pub const PT_HIOS: u32 = 0x6fffffff; pub const PT_LOPROC: u32 = 0x70000000; pub const PT_HIPROC: u32 = 0x7fffffff; -// uapi/linux/mount.h -pub const OPEN_TREE_CLONE: ::c_uint = 0x01; -pub const OPEN_TREE_CLOEXEC: ::c_uint = O_CLOEXEC as ::c_uint; - // linux/netfilter.h pub const NF_DROP: ::c_int = 0; pub const NF_ACCEPT: ::c_int = 1; @@ -2487,7 +2437,8 @@ pub const IFF_PERSIST: ::c_int = 0x0800; pub const IFF_NOFILTER: ::c_int = 0x1000; // start android/platform/bionic/libc/kernel/uapi/linux/if_ether.h -// from https://android.googlesource.com/platform/bionic/+/HEAD/libc/kernel/uapi/linux/if_ether.h +// from https://android.googlesource.com/ +// platform/bionic/+/master/libc/kernel/uapi/linux/if_ether.h pub const ETH_ALEN: ::c_int = 6; pub const ETH_HLEN: ::c_int = 14; pub const ETH_ZLEN: ::c_int = 60; @@ -2587,88 +2538,6 @@ pub const ETH_P_XDSA: ::c_int = 0x00F8; /* see rust-lang/libc#924 pub const ETH_P_MAP: ::c_int = 0x00F9;*/ // end android/platform/bionic/libc/kernel/uapi/linux/if_ether.h -// start android/platform/bionic/libc/kernel/uapi/linux/neighbour.h -pub const NDA_UNSPEC: ::c_ushort = 0; -pub const NDA_DST: ::c_ushort = 1; -pub const NDA_LLADDR: ::c_ushort = 2; -pub const NDA_CACHEINFO: ::c_ushort = 3; -pub const NDA_PROBES: ::c_ushort = 4; -pub const NDA_VLAN: ::c_ushort = 5; -pub const NDA_PORT: ::c_ushort = 6; -pub const NDA_VNI: ::c_ushort = 7; -pub const NDA_IFINDEX: ::c_ushort = 8; -pub const NDA_MASTER: ::c_ushort = 9; -pub const NDA_LINK_NETNSID: ::c_ushort = 10; -pub const NDA_SRC_VNI: ::c_ushort = 11; -pub const NDA_PROTOCOL: ::c_ushort = 12; -pub const NDA_NH_ID: ::c_ushort = 13; -pub const NDA_FDB_EXT_ATTRS: ::c_ushort = 14; -pub const NDA_FLAGS_EXT: ::c_ushort = 15; -pub const NDA_NDM_STATE_MASK: ::c_ushort = 16; -pub const NDA_NDM_FLAGS_MASK: ::c_ushort = 17; - -pub const NTF_USE: u8 = 0x01; -pub const NTF_SELF: u8 = 0x02; -pub const NTF_MASTER: u8 = 0x04; -pub const NTF_PROXY: u8 = 0x08; -pub const NTF_EXT_LEARNED: u8 = 0x10; -pub const NTF_OFFLOADED: u8 = 0x20; -pub const NTF_STICKY: u8 = 0x40; -pub const NTF_ROUTER: u8 = 0x80; - -pub const NTF_EXT_MANAGED: u8 = 0x01; -pub const NTF_EXT_LOCKED: u8 = 0x02; - -pub const NUD_NONE: u16 = 0x00; -pub const NUD_INCOMPLETE: u16 = 0x01; -pub const NUD_REACHABLE: u16 = 0x02; -pub const NUD_STALE: u16 = 0x04; -pub const NUD_DELAY: u16 = 0x08; -pub const NUD_PROBE: u16 = 0x10; -pub const NUD_FAILED: u16 = 0x20; -pub const NUD_NOARP: u16 = 0x40; -pub const NUD_PERMANENT: u16 = 0x80; - -pub const NDTPA_UNSPEC: ::c_ushort = 0; -pub const NDTPA_IFINDEX: ::c_ushort = 1; -pub const NDTPA_REFCNT: ::c_ushort = 2; -pub const NDTPA_REACHABLE_TIME: ::c_ushort = 3; -pub const NDTPA_BASE_REACHABLE_TIME: ::c_ushort = 4; -pub const NDTPA_RETRANS_TIME: ::c_ushort = 5; -pub const NDTPA_GC_STALETIME: ::c_ushort = 6; -pub const NDTPA_DELAY_PROBE_TIME: ::c_ushort = 7; -pub const NDTPA_QUEUE_LEN: ::c_ushort = 8; -pub const NDTPA_APP_PROBES: ::c_ushort = 9; -pub const NDTPA_UCAST_PROBES: ::c_ushort = 10; -pub const NDTPA_MCAST_PROBES: ::c_ushort = 11; -pub const NDTPA_ANYCAST_DELAY: ::c_ushort = 12; -pub const NDTPA_PROXY_DELAY: ::c_ushort = 13; -pub const NDTPA_PROXY_QLEN: ::c_ushort = 14; -pub const NDTPA_LOCKTIME: ::c_ushort = 15; -pub const NDTPA_QUEUE_LENBYTES: ::c_ushort = 16; -pub const NDTPA_MCAST_REPROBES: ::c_ushort = 17; -pub const NDTPA_PAD: ::c_ushort = 18; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: ::c_ushort = 19; - -pub const NDTA_UNSPEC: ::c_ushort = 0; -pub const NDTA_NAME: ::c_ushort = 1; -pub const NDTA_THRESH1: ::c_ushort = 2; -pub const NDTA_THRESH2: ::c_ushort = 3; -pub const NDTA_THRESH3: ::c_ushort = 4; -pub const NDTA_CONFIG: ::c_ushort = 5; -pub const NDTA_PARMS: ::c_ushort = 6; -pub const NDTA_STATS: ::c_ushort = 7; -pub const NDTA_GC_INTERVAL: ::c_ushort = 8; -pub const NDTA_PAD: ::c_ushort = 9; - -pub const FDB_NOTIFY_BIT: u16 = 0x01; -pub const FDB_NOTIFY_INACTIVE_BIT: u16 = 0x02; - -pub const NFEA_UNSPEC: ::c_ushort = 0; -pub const NFEA_ACTIVITY_NOTIFY: ::c_ushort = 1; -pub const NFEA_DONT_REFRESH: ::c_ushort = 2; -// end android/platform/bionic/libc/kernel/uapi/linux/neighbour.h - pub const SIOCADDRT: ::c_ulong = 0x0000890B; pub const SIOCDELRT: ::c_ulong = 0x0000890C; pub const SIOCGIFNAME: ::c_ulong = 0x00008910; @@ -2711,23 +2580,6 @@ pub const SIOCSIFMAP: ::c_ulong = 0x00008971; pub const MODULE_INIT_IGNORE_MODVERSIONS: ::c_uint = 0x0001; pub const MODULE_INIT_IGNORE_VERMAGIC: ::c_uint = 0x0002; -// linux/net_tstamp.h -pub const SOF_TIMESTAMPING_TX_HARDWARE: ::c_uint = 1 << 0; -pub const SOF_TIMESTAMPING_TX_SOFTWARE: ::c_uint = 1 << 1; -pub const SOF_TIMESTAMPING_RX_HARDWARE: ::c_uint = 1 << 2; -pub const SOF_TIMESTAMPING_RX_SOFTWARE: ::c_uint = 1 << 3; -pub const SOF_TIMESTAMPING_SOFTWARE: ::c_uint = 1 << 4; -pub const SOF_TIMESTAMPING_SYS_HARDWARE: ::c_uint = 1 << 5; -pub const SOF_TIMESTAMPING_RAW_HARDWARE: ::c_uint = 1 << 6; -pub const SOF_TIMESTAMPING_OPT_ID: ::c_uint = 1 << 7; -pub const SOF_TIMESTAMPING_TX_SCHED: ::c_uint = 1 << 8; -pub const SOF_TIMESTAMPING_TX_ACK: ::c_uint = 1 << 9; -pub const SOF_TIMESTAMPING_OPT_CMSG: ::c_uint = 1 << 10; -pub const SOF_TIMESTAMPING_OPT_TSONLY: ::c_uint = 1 << 11; -pub const SOF_TIMESTAMPING_OPT_STATS: ::c_uint = 1 << 12; -pub const SOF_TIMESTAMPING_OPT_PKTINFO: ::c_uint = 1 << 13; -pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14; - #[deprecated( since = "0.2.55", note = "ENOATTR is not available on Android; use ENODATA instead" @@ -2876,18 +2728,6 @@ pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000; pub const CLONE_PIDFD: ::c_int = 0x1000; -// linux/membarrier.h -pub const MEMBARRIER_CMD_QUERY: ::c_int = 0; -pub const MEMBARRIER_CMD_GLOBAL: ::c_int = 1 << 0; -pub const MEMBARRIER_CMD_GLOBAL_EXPEDITED: ::c_int = 1 << 1; -pub const MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED: ::c_int = 1 << 2; -pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED: ::c_int = 1 << 3; -pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED: ::c_int = 1 << 4; -pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE: ::c_int = 1 << 5; -pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE: ::c_int = 1 << 6; -pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ: ::c_int = 1 << 7; -pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ: ::c_int = 1 << 8; - // linux/mempolicy.h pub const MPOL_DEFAULT: ::c_int = 0; pub const MPOL_PREFERRED: ::c_int = 1; @@ -3006,19 +2846,6 @@ pub const IFLA_CARRIER_DOWN_COUNT: ::c_ushort = 48; pub const IFLA_NEW_IFINDEX: ::c_ushort = 49; pub const IFLA_MIN_MTU: ::c_ushort = 50; pub const IFLA_MAX_MTU: ::c_ushort = 51; -pub const IFLA_PROP_LIST: ::c_ushort = 52; -pub const IFLA_ALT_IFNAME: ::c_ushort = 53; -pub const IFLA_PERM_ADDRESS: ::c_ushort = 54; -pub const IFLA_PROTO_DOWN_REASON: ::c_ushort = 55; -pub const IFLA_PARENT_DEV_NAME: ::c_ushort = 56; -pub const IFLA_PARENT_DEV_BUS_NAME: ::c_ushort = 57; -pub const IFLA_GRO_MAX_SIZE: ::c_ushort = 58; -pub const IFLA_TSO_MAX_SIZE: ::c_ushort = 59; -pub const IFLA_TSO_MAX_SEGS: ::c_ushort = 60; -pub const IFLA_ALLMULTI: ::c_ushort = 61; -pub const IFLA_DEVLINK_PORT: ::c_ushort = 62; -pub const IFLA_GSO_IPV4_MAX_SIZE: ::c_ushort = 63; -pub const IFLA_GRO_IPV4_MAX_SIZE: ::c_ushort = 64; pub const IFLA_INFO_UNSPEC: ::c_ushort = 0; pub const IFLA_INFO_KIND: ::c_ushort = 1; @@ -3516,13 +3343,7 @@ extern "C" { pub fn sendfile( out_fd: ::c_int, in_fd: ::c_int, - offset: *mut ::off_t, - count: ::size_t, - ) -> ::ssize_t; - pub fn sendfile64( - out_fd: ::c_int, - in_fd: ::c_int, - offset: *mut ::off64_t, + offset: *mut off_t, count: ::size_t, ) -> ::ssize_t; pub fn setfsgid(gid: ::gid_t) -> ::c_int; @@ -3642,9 +3463,7 @@ extern "C" { pub fn gettid() -> ::pid_t; - /// Only available in API Version 28+ pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; - pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int; @@ -3687,16 +3506,6 @@ extern "C" { longopts: *const option, longindex: *mut ::c_int, ) -> ::c_int; - - pub fn sync(); - pub fn syncfs(fd: ::c_int) -> ::c_int; - - pub fn memmem( - haystack: *const ::c_void, - haystacklen: ::size_t, - needle: *const ::c_void, - needlelen: ::size_t, - ) -> *mut ::c_void; } cfg_if! { diff --git a/third_party/rust/libc/src/unix/linux_like/emscripten/mod.rs b/third_party/rust/libc/src/unix/linux_like/emscripten/mod.rs index c0d707184084..f2024900cbca 100644 --- a/third_party/rust/libc/src/unix/linux_like/emscripten/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/emscripten/mod.rs @@ -260,16 +260,13 @@ s! { } pub struct stat { pub st_dev: ::dev_t, - #[cfg(not(emscripten_new_stat_abi))] __st_dev_padding: ::c_int, - #[cfg(not(emscripten_new_stat_abi))] __st_ino_truncated: ::c_long, pub st_mode: ::mode_t, pub st_nlink: ::nlink_t, pub st_uid: ::uid_t, pub st_gid: ::gid_t, pub st_rdev: ::dev_t, - #[cfg(not(emscripten_new_stat_abi))] __st_rdev_padding: ::c_int, pub st_size: ::off_t, pub st_blksize: ::blksize_t, @@ -285,16 +282,13 @@ s! { pub struct stat64 { pub st_dev: ::dev_t, - #[cfg(not(emscripten_new_stat_abi))] __st_dev_padding: ::c_int, - #[cfg(not(emscripten_new_stat_abi))] __st_ino_truncated: ::c_long, pub st_mode: ::mode_t, pub st_nlink: ::nlink_t, pub st_uid: ::uid_t, pub st_gid: ::gid_t, pub st_rdev: ::dev_t, - #[cfg(not(emscripten_new_stat_abi))] __st_rdev_padding: ::c_int, pub st_size: ::off_t, pub st_blksize: ::blksize_t, @@ -1125,7 +1119,6 @@ pub const PR_SET_MM_MAP: ::c_int = 14; pub const PR_SET_MM_MAP_SIZE: ::c_int = 15; pub const PR_SET_PTRACER: ::c_int = 0x59616d61; -pub const PR_SET_PTRACER_ANY: ::c_ulong = 0xffffffffffffffff; pub const PR_SET_CHILD_SUBREAPER: ::c_int = 36; pub const PR_GET_CHILD_SUBREAPER: ::c_int = 37; @@ -1731,7 +1724,7 @@ f! { pub fn major(dev: ::dev_t) -> ::c_uint { // see // https://github.com/emscripten-core/emscripten/blob/ - // main/system/lib/libc/musl/include/sys/sysmacros.h + // master/system/include/libc/sys/sysmacros.h let mut major = 0; major |= (dev & 0x00000fff) >> 8; major |= (dev & 0xfffff000) >> 31 >> 1; @@ -1741,7 +1734,7 @@ f! { pub fn minor(dev: ::dev_t) -> ::c_uint { // see // https://github.com/emscripten-core/emscripten/blob/ - // main/system/lib/libc/musl/include/sys/sysmacros.h + // master/system/include/libc/sys/sysmacros.h let mut minor = 0; minor |= (dev & 0x000000ff) >> 0; minor |= (dev & 0xffffff00) >> 12; @@ -1821,6 +1814,7 @@ extern "C" { ) -> ::c_int; pub fn getloadavg(loadavg: *mut ::c_double, nelem: ::c_int) -> ::c_int; + // Not available now on Android pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int; pub fn if_nameindex() -> *mut if_nameindex; pub fn if_freenameindex(ptr: *mut if_nameindex); @@ -1888,8 +1882,6 @@ extern "C" { f: extern "C" fn(*mut ::c_void) -> *mut ::c_void, value: *mut ::c_void, ) -> ::c_int; - - pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; } cfg_if! { diff --git a/third_party/rust/libc/src/unix/linux_like/linux/align.rs b/third_party/rust/libc/src/unix/linux_like/linux/align.rs index 1036e23dc8f0..3a3277f29cf4 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/align.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/align.rs @@ -5,7 +5,6 @@ macro_rules! expand_align { target_arch = "x86_64", target_arch = "powerpc64", target_arch = "mips64", - target_arch = "mips64r6", target_arch = "s390x", target_arch = "sparc64", target_arch = "aarch64", @@ -17,7 +16,6 @@ macro_rules! expand_align { target_arch = "x86_64", target_arch = "powerpc64", target_arch = "mips64", - target_arch = "mips64r6", target_arch = "s390x", target_arch = "sparc64", target_arch = "aarch64", @@ -30,10 +28,9 @@ macro_rules! expand_align { size: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T], } - #[cfg_attr(any(target_env = "musl", target_env = "ohos", target_pointer_width = "32"), + #[cfg_attr(any(target_env = "musl", target_pointer_width = "32"), repr(align(4)))] #[cfg_attr(all(not(target_env = "musl"), - not(target_env = "ohos"), target_pointer_width = "64"), repr(align(8)))] pub struct pthread_rwlockattr_t { @@ -47,12 +44,6 @@ macro_rules! expand_align { size: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T], } - #[repr(align(4))] - pub struct pthread_barrierattr_t { - #[doc(hidden)] - size: [u8; ::__SIZEOF_PTHREAD_BARRIERATTR_T], - } - #[repr(align(8))] pub struct fanotify_event_metadata { pub event_len: __u32, @@ -66,16 +57,16 @@ macro_rules! expand_align { } s_no_extra_traits! { - #[cfg_attr(all(any(target_env = "musl", target_env = "ohos"), + #[cfg_attr(all(target_env = "musl", target_pointer_width = "32"), repr(align(4)))] - #[cfg_attr(all(any(target_env = "musl", target_env = "ohos"), + #[cfg_attr(all(target_env = "musl", target_pointer_width = "64"), repr(align(8)))] - #[cfg_attr(all(not(any(target_env = "musl", target_env = "ohos")), + #[cfg_attr(all(not(target_env = "musl"), target_arch = "x86"), repr(align(4)))] - #[cfg_attr(all(not(any(target_env = "musl", target_env = "ohos")), + #[cfg_attr(all(not(target_env = "musl"), not(target_arch = "x86")), repr(align(8)))] pub struct pthread_cond_t { @@ -85,11 +76,9 @@ macro_rules! expand_align { #[cfg_attr(all(target_pointer_width = "32", any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "hexagon", target_arch = "m68k", - target_arch = "csky", target_arch = "powerpc", target_arch = "sparc", target_arch = "x86_64", @@ -97,11 +86,9 @@ macro_rules! expand_align { repr(align(4)))] #[cfg_attr(any(target_pointer_width = "64", not(any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "hexagon", target_arch = "m68k", - target_arch = "csky", target_arch = "powerpc", target_arch = "sparc", target_arch = "x86_64", @@ -114,11 +101,9 @@ macro_rules! expand_align { #[cfg_attr(all(target_pointer_width = "32", any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "hexagon", target_arch = "m68k", - target_arch = "csky", target_arch = "powerpc", target_arch = "sparc", target_arch = "x86_64", @@ -126,7 +111,6 @@ macro_rules! expand_align { repr(align(4)))] #[cfg_attr(any(target_pointer_width = "64", not(any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "hexagon", target_arch = "m68k", @@ -139,34 +123,6 @@ macro_rules! expand_align { size: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T], } - #[cfg_attr(all(target_pointer_width = "32", - any(target_arch = "mips", - target_arch = "mips32r6", - target_arch = "arm", - target_arch = "hexagon", - target_arch = "m68k", - target_arch = "csky", - target_arch = "powerpc", - target_arch = "sparc", - target_arch = "x86_64", - target_arch = "x86")), - repr(align(4)))] - #[cfg_attr(any(target_pointer_width = "64", - not(any(target_arch = "mips", - target_arch = "mips32r6", - target_arch = "arm", - target_arch = "hexagon", - target_arch = "m68k", - target_arch = "csky", - target_arch = "powerpc", - target_arch = "sparc", - target_arch = "x86_64", - target_arch = "x86"))), - repr(align(8)))] - pub struct pthread_barrier_t { - size: [u8; ::__SIZEOF_PTHREAD_BARRIER_T], - } - // linux/can.h #[repr(align(8))] #[allow(missing_debug_implementations)] @@ -189,17 +145,6 @@ macro_rules! expand_align { __res1: u8, pub data: [u8; CANFD_MAX_DLEN], } - - #[repr(align(8))] - #[allow(missing_debug_implementations)] - pub struct canxl_frame { - pub prio: canid_t, - pub flags: u8, - pub sdt: u8, - pub len: u16, - pub af: u32, - pub data: [u8; CANXL_MAX_DLEN], - } } }; } diff --git a/third_party/rust/libc/src/unix/linux_like/linux/arch/generic/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/arch/generic/mod.rs index 19d5e7b3938c..40bc30a4f336 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/arch/generic/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/arch/generic/mod.rs @@ -94,10 +94,8 @@ cfg_if! { // But they may still not have those _OLD ones. if #[cfg(all(any(target_arch = "x86", target_arch = "x86_64", - target_arch = "aarch64", - target_arch = "csky", - target_arch = "loongarch64"), - not(any(target_env = "musl", target_env = "ohos"))))] { + target_arch = "aarch64"), + not(target_env = "musl")))] { pub const SO_TIMESTAMP_NEW: ::c_int = 63; pub const SO_TIMESTAMPNS_NEW: ::c_int = 64; pub const SO_TIMESTAMPING_NEW: ::c_int = 65; @@ -106,22 +104,17 @@ cfg_if! { pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 68; } } -// pub const SO_PREFER_BUSY_POLL: ::c_int = 69; -// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70; cfg_if! { if #[cfg(any(target_arch = "x86", target_arch = "x86_64", - target_arch = "arm", - target_arch = "aarch64", - target_arch = "riscv64", - target_arch = "s390x", - target_arch = "csky", - target_arch = "loongarch64"))] { + target_arch = "aarch64"))] { pub const FICLONE: ::c_ulong = 0x40049409; pub const FICLONERANGE: ::c_ulong = 0x4020940D; } } +// pub const SO_PREFER_BUSY_POLL: ::c_int = 69; +// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70; // Defined in unix/linux_like/mod.rs // pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP; @@ -259,7 +252,7 @@ cfg_if! { pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15; pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = RLIM_NLIMITS; - } else if #[cfg(any(target_env = "musl", target_env = "ohos"))] { + } else if #[cfg(target_env = "musl")] { pub const RLIMIT_CPU: ::c_int = 0; pub const RLIMIT_FSIZE: ::c_int = 1; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/arch/mips/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/arch/mips/mod.rs index 975e334de5ff..077417de52fa 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/arch/mips/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/arch/mips/mod.rs @@ -103,9 +103,6 @@ pub const SO_TIMESTAMPING: ::c_int = 37; // pub const SO_PREFER_BUSY_POLL: ::c_int = 69; // pub const SO_BUSY_POLL_BUDGET: ::c_int = 70; -pub const FICLONE: ::c_ulong = 0x80049409; -pub const FICLONERANGE: ::c_ulong = 0x8020940D; - // Defined in unix/linux_like/mod.rs // pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP; pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS; @@ -272,7 +269,7 @@ cfg_if! { } cfg_if! { - if #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"), + if #[cfg(target_arch = "mips64", any(target_env = "gnu", target_env = "uclibc"))] { pub const RLIM_INFINITY: ::rlim_t = !0; @@ -280,7 +277,7 @@ cfg_if! { } cfg_if! { - if #[cfg(any(target_arch = "mips", target_arch = "mips32r6"), + if #[cfg(target_arch = "mips", any(target_env = "gnu", target_env = "uclibc"))] { pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/arch/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/arch/mod.rs index 7f6ddc5a764f..c1528f593f63 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/arch/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/arch/mod.rs @@ -1,8 +1,5 @@ cfg_if! { - if #[cfg(any(target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6"))] { + if #[cfg(any(target_arch = "mips", target_arch = "mips64"))] { mod mips; pub use self::mips::*; } else if #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] { diff --git a/third_party/rust/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs index 64c3eaab543a..637b7a1e3474 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs @@ -85,9 +85,6 @@ pub const SO_BINDTOIFINDEX: ::c_int = 62; // pub const SO_PREFER_BUSY_POLL: ::c_int = 69; // pub const SO_BUSY_POLL_BUDGET: ::c_int = 70; -pub const FICLONE: ::c_ulong = 0x80049409; -pub const FICLONERANGE: ::c_ulong = 0x8020940D; - // Defined in unix/linux_like/mod.rs // pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP; pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/arm/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/arm/mod.rs index fd690a17e158..e0ac0dfc34ed 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/arm/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/arm/mod.rs @@ -191,27 +191,6 @@ s! { pub arm_cpsr: ::c_ulong, pub fault_address: ::c_ulong, } - - pub struct user_regs { - pub arm_r0: ::c_ulong, - pub arm_r1: ::c_ulong, - pub arm_r2: ::c_ulong, - pub arm_r3: ::c_ulong, - pub arm_r4: ::c_ulong, - pub arm_r5: ::c_ulong, - pub arm_r6: ::c_ulong, - pub arm_r7: ::c_ulong, - pub arm_r8: ::c_ulong, - pub arm_r9: ::c_ulong, - pub arm_r10: ::c_ulong, - pub arm_fp: ::c_ulong, - pub arm_ip: ::c_ulong, - pub arm_sp: ::c_ulong, - pub arm_lr: ::c_ulong, - pub arm_pc: ::c_ulong, - pub arm_cpsr: ::c_ulong, - pub arm_orig_r0: ::c_ulong, - } } pub const VEOF: usize = 4; @@ -837,7 +816,6 @@ pub const SYS_pkey_alloc: ::c_long = 395; pub const SYS_pkey_free: ::c_long = 396; pub const SYS_statx: ::c_long = 397; pub const SYS_rseq: ::c_long = 398; -pub const SYS_kexec_file_load: ::c_long = 401; pub const SYS_pidfd_send_signal: ::c_long = 424; pub const SYS_io_uring_setup: ::c_long = 425; pub const SYS_io_uring_enter: ::c_long = 426; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/align.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/align.rs deleted file mode 100644 index 825546be90a9..000000000000 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/align.rs +++ /dev/null @@ -1,7 +0,0 @@ -s_no_extra_traits! { - #[allow(missing_debug_implementations)] - #[repr(align(8))] - pub struct max_align_t { - priv_: [i64; 2] - } -} diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/mod.rs deleted file mode 100644 index c1234845e9a1..000000000000 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/csky/mod.rs +++ /dev/null @@ -1,745 +0,0 @@ -pub type c_char = u8; -pub type wchar_t = u32; - -s! { - pub struct sigaction { - pub sa_sigaction: ::sighandler_t, - pub sa_mask: ::sigset_t, - pub sa_flags: ::c_int, - pub sa_restorer: ::Option, - } - - pub struct statfs { - pub f_type: ::__fsword_t, - pub f_bsize: ::__fsword_t, - pub f_blocks: ::fsblkcnt_t, - pub f_bfree: ::fsblkcnt_t, - pub f_bavail: ::fsblkcnt_t, - - pub f_files: ::fsfilcnt_t, - pub f_ffree: ::fsfilcnt_t, - pub f_fsid: ::fsid_t, - - pub f_namelen: ::__fsword_t, - pub f_frsize: ::__fsword_t, - f_spare: [::__fsword_t; 5], - } - - pub struct flock { - pub l_type: ::c_short, - pub l_whence: ::c_short, - pub l_start: ::off_t, - pub l_len: ::off_t, - pub l_pid: ::pid_t, - } - - pub struct flock64 { - pub l_type: ::c_short, - pub l_whence: ::c_short, - pub l_start: ::off64_t, - pub l_len: ::off64_t, - pub l_pid: ::pid_t, - } - - pub struct ipc_perm { - pub __key: ::key_t, - pub uid: ::uid_t, - pub gid: ::gid_t, - pub cuid: ::uid_t, - pub cgid: ::gid_t, - pub mode: ::c_ushort, - __pad1: ::c_ushort, - pub __seq: ::c_ushort, - __pad2: ::c_ushort, - __unused1: ::c_ulong, - __unused2: ::c_ulong - } - - pub struct stat64 { - pub st_dev: ::dev_t, - __pad1: ::c_uint, - __st_ino: ::ino_t, - pub st_mode: ::mode_t, - pub st_nlink: ::nlink_t, - pub st_uid: ::uid_t, - pub st_gid: ::gid_t, - pub st_rdev: ::dev_t, - __pad2: ::c_uint, - pub st_size: ::off64_t, - pub st_blksize: ::blksize_t, - pub st_blocks: ::blkcnt64_t, - pub st_atime: ::time_t, - pub st_atime_nsec: ::c_long, - pub st_mtime: ::time_t, - pub st_mtime_nsec: ::c_long, - pub st_ctime: ::time_t, - pub st_ctime_nsec: ::c_long, - pub st_ino: ::ino64_t, - } - - pub struct statfs64 { - pub f_type: ::__fsword_t, - pub f_bsize: ::__fsword_t, - pub f_blocks: u64, - pub f_bfree: u64, - pub f_bavail: u64, - pub f_files: u64, - pub f_ffree: u64, - pub f_fsid: ::fsid_t, - pub f_namelen: ::__fsword_t, - pub f_frsize: ::__fsword_t, - pub f_flags: ::__fsword_t, - pub f_spare: [::__fsword_t; 4], - } - - pub struct statvfs64 { - pub f_bsize: ::c_ulong, - pub f_frsize: ::c_ulong, - pub f_blocks: u64, - pub f_bfree: u64, - pub f_bavail: u64, - pub f_files: u64, - pub f_ffree: u64, - pub f_favail: u64, - pub f_fsid: ::c_ulong, - __f_unused: ::c_int, - pub f_flag: ::c_ulong, - pub f_namemax: ::c_ulong, - __f_spare: [::c_int; 6], - } - - pub struct shmid_ds { - pub shm_perm: ::ipc_perm, - pub shm_segsz: ::size_t, - pub shm_atime: ::time_t, - __unused1: ::c_ulong, - pub shm_dtime: ::time_t, - __unused2: ::c_ulong, - pub shm_ctime: ::time_t, - __unused3: ::c_ulong, - pub shm_cpid: ::pid_t, - pub shm_lpid: ::pid_t, - pub shm_nattch: ::shmatt_t, - __unused4: ::c_ulong, - __unused5: ::c_ulong - } - - pub struct msqid_ds { - pub msg_perm: ::ipc_perm, - pub msg_stime: ::time_t, - __glibc_reserved1: ::c_ulong, - pub msg_rtime: ::time_t, - __glibc_reserved2: ::c_ulong, - pub msg_ctime: ::time_t, - __glibc_reserved3: ::c_ulong, - __msg_cbytes: ::c_ulong, - pub msg_qnum: ::msgqnum_t, - pub msg_qbytes: ::msglen_t, - pub msg_lspid: ::pid_t, - pub msg_lrpid: ::pid_t, - __glibc_reserved4: ::c_ulong, - __glibc_reserved5: ::c_ulong, - } - - pub struct siginfo_t { - pub si_signo: ::c_int, - pub si_errno: ::c_int, - pub si_code: ::c_int, - #[doc(hidden)] - #[deprecated( - since="0.2.54", - note="Please leave a comment on \ - https://github.com/rust-lang/libc/pull/1316 if you're using \ - this field" - )] - pub _pad: [::c_int; 29], - _align: [usize; 0], - } - - pub struct stack_t { - pub ss_sp: *mut ::c_void, - pub ss_flags: ::c_int, - pub ss_size: ::size_t - } -} - -pub const VEOF: usize = 4; -pub const RTLD_DEEPBIND: ::c_int = 0x8; -pub const RTLD_GLOBAL: ::c_int = 0x100; -pub const RTLD_NOLOAD: ::c_int = 0x4; -pub const O_DIRECT: ::c_int = 0x4000; -pub const O_DIRECTORY: ::c_int = 0x10000; -pub const O_NOFOLLOW: ::c_int = 0x20000; -pub const O_LARGEFILE: ::c_int = 0o100000; -pub const O_APPEND: ::c_int = 1024; -pub const O_CREAT: ::c_int = 64; -pub const O_EXCL: ::c_int = 128; -pub const O_NOCTTY: ::c_int = 256; -pub const O_NONBLOCK: ::c_int = 2048; -pub const O_SYNC: ::c_int = 1052672; -pub const O_RSYNC: ::c_int = 1052672; -pub const O_DSYNC: ::c_int = 4096; -pub const O_FSYNC: ::c_int = 0x101000; -pub const O_ASYNC: ::c_int = 0x2000; -pub const O_NDELAY: ::c_int = 0x800; - -pub const MADV_SOFT_OFFLINE: ::c_int = 101; -pub const MAP_LOCKED: ::c_int = 0x02000; -pub const MAP_NORESERVE: ::c_int = 0x04000; -pub const MAP_ANON: ::c_int = 0x0020; -pub const MAP_ANONYMOUS: ::c_int = 0x0020; -pub const MAP_DENYWRITE: ::c_int = 0x0800; -pub const MAP_EXECUTABLE: ::c_int = 0x01000; -pub const MAP_POPULATE: ::c_int = 0x08000; -pub const MAP_NONBLOCK: ::c_int = 0x010000; -pub const MAP_STACK: ::c_int = 0x020000; -pub const MAP_HUGETLB: ::c_int = 0x040000; -pub const MAP_GROWSDOWN: ::c_int = 0x0100; -pub const MAP_SYNC: ::c_int = 0x080000; - -pub const EDEADLOCK: ::c_int = 35; -pub const EUCLEAN: ::c_int = 117; -pub const ENOTNAM: ::c_int = 118; -pub const ENAVAIL: ::c_int = 119; -pub const EISNAM: ::c_int = 120; -pub const EREMOTEIO: ::c_int = 121; -pub const EDEADLK: ::c_int = 35; -pub const ENAMETOOLONG: ::c_int = 36; -pub const ENOLCK: ::c_int = 37; -pub const ENOSYS: ::c_int = 38; -pub const ENOTEMPTY: ::c_int = 39; -pub const ELOOP: ::c_int = 40; -pub const ENOMSG: ::c_int = 42; -pub const EIDRM: ::c_int = 43; -pub const ECHRNG: ::c_int = 44; -pub const EL2NSYNC: ::c_int = 45; -pub const EL3HLT: ::c_int = 46; -pub const EL3RST: ::c_int = 47; -pub const ELNRNG: ::c_int = 48; -pub const EUNATCH: ::c_int = 49; -pub const ENOCSI: ::c_int = 50; -pub const EL2HLT: ::c_int = 51; -pub const EBADE: ::c_int = 52; -pub const EBADR: ::c_int = 53; -pub const EXFULL: ::c_int = 54; -pub const ENOANO: ::c_int = 55; -pub const EBADRQC: ::c_int = 56; -pub const EBADSLT: ::c_int = 57; -pub const EMULTIHOP: ::c_int = 72; -pub const EOVERFLOW: ::c_int = 75; -pub const ENOTUNIQ: ::c_int = 76; -pub const EBADFD: ::c_int = 77; -pub const EBADMSG: ::c_int = 74; -pub const EREMCHG: ::c_int = 78; -pub const ELIBACC: ::c_int = 79; -pub const ELIBBAD: ::c_int = 80; -pub const ELIBSCN: ::c_int = 81; -pub const ELIBMAX: ::c_int = 82; -pub const ELIBEXEC: ::c_int = 83; -pub const EILSEQ: ::c_int = 84; -pub const ERESTART: ::c_int = 85; -pub const ESTRPIPE: ::c_int = 86; -pub const EUSERS: ::c_int = 87; -pub const ENOTSOCK: ::c_int = 88; -pub const EDESTADDRREQ: ::c_int = 89; -pub const EMSGSIZE: ::c_int = 90; -pub const EPROTOTYPE: ::c_int = 91; -pub const ENOPROTOOPT: ::c_int = 92; -pub const EPROTONOSUPPORT: ::c_int = 93; -pub const ESOCKTNOSUPPORT: ::c_int = 94; -pub const EOPNOTSUPP: ::c_int = 95; -pub const EPFNOSUPPORT: ::c_int = 96; -pub const EAFNOSUPPORT: ::c_int = 97; -pub const EADDRINUSE: ::c_int = 98; -pub const EADDRNOTAVAIL: ::c_int = 99; -pub const ENETDOWN: ::c_int = 100; -pub const ENETUNREACH: ::c_int = 101; -pub const ENETRESET: ::c_int = 102; -pub const ECONNABORTED: ::c_int = 103; -pub const ECONNRESET: ::c_int = 104; -pub const ENOBUFS: ::c_int = 105; -pub const EISCONN: ::c_int = 106; -pub const ENOTCONN: ::c_int = 107; -pub const ESHUTDOWN: ::c_int = 108; -pub const ETOOMANYREFS: ::c_int = 109; -pub const ETIMEDOUT: ::c_int = 110; -pub const ECONNREFUSED: ::c_int = 111; -pub const EHOSTDOWN: ::c_int = 112; -pub const EHOSTUNREACH: ::c_int = 113; -pub const EALREADY: ::c_int = 114; -pub const EINPROGRESS: ::c_int = 115; -pub const ESTALE: ::c_int = 116; -pub const EDQUOT: ::c_int = 122; -pub const ENOMEDIUM: ::c_int = 123; -pub const EMEDIUMTYPE: ::c_int = 124; -pub const ECANCELED: ::c_int = 125; -pub const ENOKEY: ::c_int = 126; -pub const EKEYEXPIRED: ::c_int = 127; -pub const EKEYREVOKED: ::c_int = 128; -pub const EKEYREJECTED: ::c_int = 129; -pub const EOWNERDEAD: ::c_int = 130; -pub const ENOTRECOVERABLE: ::c_int = 131; -pub const EHWPOISON: ::c_int = 133; -pub const ERFKILL: ::c_int = 132; - -pub const SA_SIGINFO: ::c_int = 0x00000004; -pub const SA_NOCLDWAIT: ::c_int = 0x00000002; - -pub const SOCK_STREAM: ::c_int = 1; -pub const SOCK_DGRAM: ::c_int = 2; - -pub const MCL_CURRENT: ::c_int = 0x0001; -pub const MCL_FUTURE: ::c_int = 0x0002; - -pub const POLLWRNORM: ::c_short = 0x100; -pub const POLLWRBAND: ::c_short = 0x200; - -pub const F_GETLK: ::c_int = 5; -pub const F_GETOWN: ::c_int = 9; -pub const F_SETOWN: ::c_int = 8; - -pub const EFD_NONBLOCK: ::c_int = 0x800; -pub const SFD_NONBLOCK: ::c_int = 0x0800; - -pub const SIGCHLD: ::c_int = 17; -pub const SIGBUS: ::c_int = 7; -pub const SIGUSR1: ::c_int = 10; -pub const SIGUSR2: ::c_int = 12; -pub const SIGCONT: ::c_int = 18; -pub const SIGSTOP: ::c_int = 19; -pub const SIGTSTP: ::c_int = 20; -pub const SIGURG: ::c_int = 23; -pub const SIGIO: ::c_int = 29; -pub const SIGSYS: ::c_int = 31; -pub const SIGSTKFLT: ::c_int = 16; -#[deprecated(since = "0.2.55", note = "Use SIGSYS instead")] -pub const SIGUNUSED: ::c_int = 31; -pub const SIGPOLL: ::c_int = 29; -pub const SIGPWR: ::c_int = 30; -pub const SIG_SETMASK: ::c_int = 2; -pub const SIG_BLOCK: ::c_int = 0x000000; -pub const SIG_UNBLOCK: ::c_int = 0x01; -pub const SIGTTIN: ::c_int = 21; -pub const SIGTTOU: ::c_int = 22; -pub const SIGXCPU: ::c_int = 24; -pub const SIGXFSZ: ::c_int = 25; -pub const SIGVTALRM: ::c_int = 26; -pub const SIGPROF: ::c_int = 27; -pub const SIGWINCH: ::c_int = 28; -pub const SIGSTKSZ: ::size_t = 8192; -pub const MINSIGSTKSZ: ::size_t = 2048; -pub const CBAUD: ::tcflag_t = 0o0010017; -pub const TAB1: ::tcflag_t = 0x00000800; -pub const TAB2: ::tcflag_t = 0x00001000; -pub const TAB3: ::tcflag_t = 0x00001800; -pub const CR1: ::tcflag_t = 0x00000200; -pub const CR2: ::tcflag_t = 0x00000400; -pub const CR3: ::tcflag_t = 0x00000600; -pub const FF1: ::tcflag_t = 0x00008000; -pub const BS1: ::tcflag_t = 0x00002000; -pub const VT1: ::tcflag_t = 0x00004000; -pub const VWERASE: usize = 14; -pub const VREPRINT: usize = 12; -pub const VSUSP: usize = 10; -pub const VSTART: usize = 8; -pub const VSTOP: usize = 9; -pub const VDISCARD: usize = 13; -pub const VTIME: usize = 5; -pub const IXON: ::tcflag_t = 0x00000400; -pub const IXOFF: ::tcflag_t = 0x00001000; -pub const ONLCR: ::tcflag_t = 0x4; -pub const CSIZE: ::tcflag_t = 0x00000030; -pub const CS6: ::tcflag_t = 0x00000010; -pub const CS7: ::tcflag_t = 0x00000020; -pub const CS8: ::tcflag_t = 0x00000030; -pub const CSTOPB: ::tcflag_t = 0x00000040; -pub const CREAD: ::tcflag_t = 0x00000080; -pub const PARENB: ::tcflag_t = 0x00000100; -pub const PARODD: ::tcflag_t = 0x00000200; -pub const HUPCL: ::tcflag_t = 0x00000400; -pub const CLOCAL: ::tcflag_t = 0x00000800; -pub const ECHOKE: ::tcflag_t = 0x00000800; -pub const ECHOE: ::tcflag_t = 0x00000010; -pub const ECHOK: ::tcflag_t = 0x00000020; -pub const ECHONL: ::tcflag_t = 0x00000040; -pub const ECHOPRT: ::tcflag_t = 0x00000400; -pub const ECHOCTL: ::tcflag_t = 0x00000200; -pub const ISIG: ::tcflag_t = 0x00000001; -pub const ICANON: ::tcflag_t = 0x00000002; -pub const PENDIN: ::tcflag_t = 0x00004000; -pub const NOFLSH: ::tcflag_t = 0x00000080; -pub const CIBAUD: ::tcflag_t = 0o02003600000; -pub const CBAUDEX: ::tcflag_t = 0o010000; -pub const VSWTC: usize = 7; -pub const OLCUC: ::tcflag_t = 0o000002; -pub const NLDLY: ::tcflag_t = 0o000400; -pub const CRDLY: ::tcflag_t = 0o003000; -pub const TABDLY: ::tcflag_t = 0o014000; -pub const BSDLY: ::tcflag_t = 0o020000; -pub const FFDLY: ::tcflag_t = 0o100000; -pub const VTDLY: ::tcflag_t = 0o040000; -pub const XTABS: ::tcflag_t = 0o014000; - -pub const B0: ::speed_t = 0o000000; -pub const B50: ::speed_t = 0o000001; -pub const B75: ::speed_t = 0o000002; -pub const B110: ::speed_t = 0o000003; -pub const B134: ::speed_t = 0o000004; -pub const B150: ::speed_t = 0o000005; -pub const B200: ::speed_t = 0o000006; -pub const B300: ::speed_t = 0o000007; -pub const B600: ::speed_t = 0o000010; -pub const B1200: ::speed_t = 0o000011; -pub const B1800: ::speed_t = 0o000012; -pub const B2400: ::speed_t = 0o000013; -pub const B4800: ::speed_t = 0o000014; -pub const B9600: ::speed_t = 0o000015; -pub const B19200: ::speed_t = 0o000016; -pub const B38400: ::speed_t = 0o000017; -pub const EXTA: ::speed_t = B19200; -pub const EXTB: ::speed_t = B38400; -pub const B57600: ::speed_t = 0o010001; -pub const B115200: ::speed_t = 0o010002; -pub const B230400: ::speed_t = 0o010003; -pub const B460800: ::speed_t = 0o010004; -pub const B500000: ::speed_t = 0o010005; -pub const B576000: ::speed_t = 0o010006; -pub const B921600: ::speed_t = 0o010007; -pub const B1000000: ::speed_t = 0o010010; -pub const B1152000: ::speed_t = 0o010011; -pub const B1500000: ::speed_t = 0o010012; -pub const B2000000: ::speed_t = 0o010013; -pub const B2500000: ::speed_t = 0o010014; -pub const B3000000: ::speed_t = 0o010015; -pub const B3500000: ::speed_t = 0o010016; -pub const B4000000: ::speed_t = 0o010017; - -pub const SECCOMP_SET_MODE_STRICT: ::c_uint = 0; -pub const SECCOMP_SET_MODE_FILTER: ::c_uint = 1; -pub const SECCOMP_GET_ACTION_AVAIL: ::c_uint = 2; -pub const SECCOMP_GET_NOTIF_SIZES: ::c_uint = 3; - -pub const VEOL: usize = 11; -pub const VEOL2: usize = 16; -pub const VMIN: usize = 6; -pub const IEXTEN: ::tcflag_t = 0x00008000; -pub const TOSTOP: ::tcflag_t = 0x00000100; -pub const FLUSHO: ::tcflag_t = 0x00001000; -pub const EXTPROC: ::tcflag_t = 0x00010000; - -pub const TCSANOW: ::c_int = 0; -pub const TCSADRAIN: ::c_int = 1; -pub const TCSAFLUSH: ::c_int = 2; - -// Syscall table -pub const SYS_read: ::c_long = 63; -pub const SYS_write: ::c_long = 64; -pub const SYS_close: ::c_long = 57; -pub const SYS_fstat: ::c_long = 80; -pub const SYS_lseek: ::c_long = 62; -pub const SYS_mmap: ::c_long = 222; -pub const SYS_mprotect: ::c_long = 226; -pub const SYS_munmap: ::c_long = 215; -pub const SYS_brk: ::c_long = 214; -pub const SYS_rt_sigaction: ::c_long = 134; -pub const SYS_rt_sigprocmask: ::c_long = 135; -pub const SYS_rt_sigreturn: ::c_long = 139; -pub const SYS_ioctl: ::c_long = 29; -pub const SYS_pread64: ::c_long = 67; -pub const SYS_pwrite64: ::c_long = 68; -pub const SYS_readv: ::c_long = 65; -pub const SYS_writev: ::c_long = 66; -pub const SYS_sched_yield: ::c_long = 124; -pub const SYS_mremap: ::c_long = 216; -pub const SYS_msync: ::c_long = 227; -pub const SYS_mincore: ::c_long = 232; -pub const SYS_madvise: ::c_long = 233; -pub const SYS_shmget: ::c_long = 194; -pub const SYS_shmat: ::c_long = 196; -pub const SYS_shmctl: ::c_long = 195; -pub const SYS_dup: ::c_long = 23; -pub const SYS_nanosleep: ::c_long = 101; -pub const SYS_getitimer: ::c_long = 102; -pub const SYS_setitimer: ::c_long = 103; -pub const SYS_getpid: ::c_long = 172; -pub const SYS_sendfile: ::c_long = 71; -pub const SYS_socket: ::c_long = 198; -pub const SYS_connect: ::c_long = 203; -pub const SYS_accept: ::c_long = 202; -pub const SYS_sendto: ::c_long = 206; -pub const SYS_recvfrom: ::c_long = 207; -pub const SYS_sendmsg: ::c_long = 211; -pub const SYS_recvmsg: ::c_long = 212; -pub const SYS_shutdown: ::c_long = 210; -pub const SYS_bind: ::c_long = 200; -pub const SYS_listen: ::c_long = 201; -pub const SYS_getsockname: ::c_long = 204; -pub const SYS_getpeername: ::c_long = 205; -pub const SYS_socketpair: ::c_long = 199; -pub const SYS_setsockopt: ::c_long = 208; -pub const SYS_getsockopt: ::c_long = 209; -pub const SYS_clone: ::c_long = 220; -pub const SYS_execve: ::c_long = 221; -pub const SYS_exit: ::c_long = 93; -pub const SYS_wait4: ::c_long = 260; -pub const SYS_kill: ::c_long = 129; -pub const SYS_uname: ::c_long = 160; -pub const SYS_semget: ::c_long = 190; -pub const SYS_semop: ::c_long = 193; -pub const SYS_semctl: ::c_long = 191; -pub const SYS_shmdt: ::c_long = 197; -pub const SYS_msgget: ::c_long = 186; -pub const SYS_msgsnd: ::c_long = 189; -pub const SYS_msgrcv: ::c_long = 188; -pub const SYS_msgctl: ::c_long = 187; -pub const SYS_fcntl: ::c_long = 25; -pub const SYS_flock: ::c_long = 32; -pub const SYS_fsync: ::c_long = 82; -pub const SYS_fdatasync: ::c_long = 83; -pub const SYS_truncate: ::c_long = 45; -pub const SYS_ftruncate: ::c_long = 46; -pub const SYS_getcwd: ::c_long = 17; -pub const SYS_chdir: ::c_long = 49; -pub const SYS_fchdir: ::c_long = 50; -pub const SYS_fchmod: ::c_long = 52; -pub const SYS_fchown: ::c_long = 55; -pub const SYS_umask: ::c_long = 166; -pub const SYS_gettimeofday: ::c_long = 169; -pub const SYS_getrlimit: ::c_long = 163; -pub const SYS_getrusage: ::c_long = 165; -pub const SYS_sysinfo: ::c_long = 179; -pub const SYS_times: ::c_long = 153; -pub const SYS_ptrace: ::c_long = 117; -pub const SYS_getuid: ::c_long = 174; -pub const SYS_syslog: ::c_long = 116; -pub const SYS_getgid: ::c_long = 176; -pub const SYS_setuid: ::c_long = 146; -pub const SYS_setgid: ::c_long = 144; -pub const SYS_geteuid: ::c_long = 175; -pub const SYS_getegid: ::c_long = 177; -pub const SYS_setpgid: ::c_long = 154; -pub const SYS_getppid: ::c_long = 173; -pub const SYS_setsid: ::c_long = 157; -pub const SYS_setreuid: ::c_long = 145; -pub const SYS_setregid: ::c_long = 143; -pub const SYS_getgroups: ::c_long = 158; -pub const SYS_setgroups: ::c_long = 159; -pub const SYS_setresuid: ::c_long = 147; -pub const SYS_getresuid: ::c_long = 148; -pub const SYS_setresgid: ::c_long = 149; -pub const SYS_getresgid: ::c_long = 150; -pub const SYS_getpgid: ::c_long = 155; -pub const SYS_setfsuid: ::c_long = 151; -pub const SYS_setfsgid: ::c_long = 152; -pub const SYS_getsid: ::c_long = 156; -pub const SYS_capget: ::c_long = 90; -pub const SYS_capset: ::c_long = 91; -pub const SYS_rt_sigpending: ::c_long = 136; -pub const SYS_rt_sigtimedwait: ::c_long = 137; -pub const SYS_rt_sigqueueinfo: ::c_long = 138; -pub const SYS_rt_sigsuspend: ::c_long = 133; -pub const SYS_sigaltstack: ::c_long = 132; -pub const SYS_personality: ::c_long = 92; -pub const SYS_statfs: ::c_long = 43; -pub const SYS_fstatfs: ::c_long = 44; -pub const SYS_getpriority: ::c_long = 141; -pub const SYS_setpriority: ::c_long = 140; -pub const SYS_sched_setparam: ::c_long = 118; -pub const SYS_sched_getparam: ::c_long = 121; -pub const SYS_sched_setscheduler: ::c_long = 119; -pub const SYS_sched_getscheduler: ::c_long = 120; -pub const SYS_sched_get_priority_max: ::c_long = 125; -pub const SYS_sched_get_priority_min: ::c_long = 126; -pub const SYS_sched_rr_get_interval: ::c_long = 127; -pub const SYS_mlock: ::c_long = 228; -pub const SYS_munlock: ::c_long = 229; -pub const SYS_mlockall: ::c_long = 230; -pub const SYS_munlockall: ::c_long = 231; -pub const SYS_vhangup: ::c_long = 58; -pub const SYS_pivot_root: ::c_long = 41; -pub const SYS_prctl: ::c_long = 167; -pub const SYS_adjtimex: ::c_long = 171; -pub const SYS_setrlimit: ::c_long = 164; -pub const SYS_chroot: ::c_long = 51; -pub const SYS_sync: ::c_long = 81; -pub const SYS_acct: ::c_long = 89; -pub const SYS_settimeofday: ::c_long = 170; -pub const SYS_mount: ::c_long = 40; -pub const SYS_umount2: ::c_long = 39; -pub const SYS_swapon: ::c_long = 224; -pub const SYS_swapoff: ::c_long = 225; -pub const SYS_reboot: ::c_long = 142; -pub const SYS_sethostname: ::c_long = 161; -pub const SYS_setdomainname: ::c_long = 162; -pub const SYS_init_module: ::c_long = 105; -pub const SYS_delete_module: ::c_long = 106; -pub const SYS_quotactl: ::c_long = 60; -pub const SYS_nfsservctl: ::c_long = 42; -pub const SYS_gettid: ::c_long = 178; -pub const SYS_readahead: ::c_long = 213; -pub const SYS_setxattr: ::c_long = 5; -pub const SYS_lsetxattr: ::c_long = 6; -pub const SYS_fsetxattr: ::c_long = 7; -pub const SYS_getxattr: ::c_long = 8; -pub const SYS_lgetxattr: ::c_long = 9; -pub const SYS_fgetxattr: ::c_long = 10; -pub const SYS_listxattr: ::c_long = 11; -pub const SYS_llistxattr: ::c_long = 12; -pub const SYS_flistxattr: ::c_long = 13; -pub const SYS_removexattr: ::c_long = 14; -pub const SYS_lremovexattr: ::c_long = 15; -pub const SYS_fremovexattr: ::c_long = 16; -pub const SYS_tkill: ::c_long = 130; -pub const SYS_futex: ::c_long = 98; -pub const SYS_sched_setaffinity: ::c_long = 122; -pub const SYS_sched_getaffinity: ::c_long = 123; -pub const SYS_io_setup: ::c_long = 0; -pub const SYS_io_destroy: ::c_long = 1; -pub const SYS_io_getevents: ::c_long = 4; -pub const SYS_io_submit: ::c_long = 2; -pub const SYS_io_cancel: ::c_long = 3; -pub const SYS_lookup_dcookie: ::c_long = 18; -pub const SYS_remap_file_pages: ::c_long = 234; -pub const SYS_getdents64: ::c_long = 61; -pub const SYS_set_tid_address: ::c_long = 96; -pub const SYS_restart_syscall: ::c_long = 128; -pub const SYS_semtimedop: ::c_long = 192; -pub const SYS_fadvise64: ::c_long = 223; -pub const SYS_timer_create: ::c_long = 107; -pub const SYS_timer_settime: ::c_long = 110; -pub const SYS_timer_gettime: ::c_long = 108; -pub const SYS_timer_getoverrun: ::c_long = 109; -pub const SYS_timer_delete: ::c_long = 111; -pub const SYS_clock_settime: ::c_long = 112; -pub const SYS_clock_gettime: ::c_long = 113; -pub const SYS_clock_getres: ::c_long = 114; -pub const SYS_clock_nanosleep: ::c_long = 115; -pub const SYS_exit_group: ::c_long = 94; -pub const SYS_epoll_ctl: ::c_long = 21; -pub const SYS_tgkill: ::c_long = 131; -pub const SYS_mbind: ::c_long = 235; -pub const SYS_set_mempolicy: ::c_long = 237; -pub const SYS_get_mempolicy: ::c_long = 236; -pub const SYS_mq_open: ::c_long = 180; -pub const SYS_mq_unlink: ::c_long = 181; -pub const SYS_mq_timedsend: ::c_long = 182; -pub const SYS_mq_timedreceive: ::c_long = 183; -pub const SYS_mq_notify: ::c_long = 184; -pub const SYS_mq_getsetattr: ::c_long = 185; -pub const SYS_kexec_load: ::c_long = 104; -pub const SYS_waitid: ::c_long = 95; -pub const SYS_add_key: ::c_long = 217; -pub const SYS_request_key: ::c_long = 218; -pub const SYS_keyctl: ::c_long = 219; -pub const SYS_ioprio_set: ::c_long = 30; -pub const SYS_ioprio_get: ::c_long = 31; -pub const SYS_inotify_add_watch: ::c_long = 27; -pub const SYS_inotify_rm_watch: ::c_long = 28; -pub const SYS_migrate_pages: ::c_long = 238; -pub const SYS_openat: ::c_long = 56; -pub const SYS_mkdirat: ::c_long = 34; -pub const SYS_mknodat: ::c_long = 33; -pub const SYS_fchownat: ::c_long = 54; -pub const SYS_newfstatat: ::c_long = 79; -pub const SYS_unlinkat: ::c_long = 35; -pub const SYS_linkat: ::c_long = 37; -pub const SYS_symlinkat: ::c_long = 36; -pub const SYS_readlinkat: ::c_long = 78; -pub const SYS_fchmodat: ::c_long = 53; -pub const SYS_faccessat: ::c_long = 48; -pub const SYS_pselect6: ::c_long = 72; -pub const SYS_ppoll: ::c_long = 73; -pub const SYS_unshare: ::c_long = 97; -pub const SYS_set_robust_list: ::c_long = 99; -pub const SYS_get_robust_list: ::c_long = 100; -pub const SYS_splice: ::c_long = 76; -pub const SYS_tee: ::c_long = 77; -pub const SYS_sync_file_range: ::c_long = 84; -pub const SYS_vmsplice: ::c_long = 75; -pub const SYS_move_pages: ::c_long = 239; -pub const SYS_utimensat: ::c_long = 88; -pub const SYS_epoll_pwait: ::c_long = 22; -pub const SYS_timerfd_create: ::c_long = 85; -pub const SYS_fallocate: ::c_long = 47; -pub const SYS_timerfd_settime: ::c_long = 86; -pub const SYS_timerfd_gettime: ::c_long = 87; -pub const SYS_accept4: ::c_long = 242; -pub const SYS_signalfd4: ::c_long = 74; -pub const SYS_eventfd2: ::c_long = 19; -pub const SYS_epoll_create1: ::c_long = 20; -pub const SYS_dup3: ::c_long = 24; -pub const SYS_pipe2: ::c_long = 59; -pub const SYS_inotify_init1: ::c_long = 26; -pub const SYS_preadv: ::c_long = 69; -pub const SYS_pwritev: ::c_long = 70; -pub const SYS_rt_tgsigqueueinfo: ::c_long = 240; -pub const SYS_perf_event_open: ::c_long = 241; -pub const SYS_recvmmsg: ::c_long = 243; -pub const SYS_fanotify_init: ::c_long = 262; -pub const SYS_fanotify_mark: ::c_long = 263; -pub const SYS_prlimit64: ::c_long = 261; -pub const SYS_name_to_handle_at: ::c_long = 264; -pub const SYS_open_by_handle_at: ::c_long = 265; -pub const SYS_clock_adjtime: ::c_long = 266; -pub const SYS_syncfs: ::c_long = 267; -pub const SYS_sendmmsg: ::c_long = 269; -pub const SYS_setns: ::c_long = 268; -pub const SYS_getcpu: ::c_long = 168; -pub const SYS_process_vm_readv: ::c_long = 270; -pub const SYS_process_vm_writev: ::c_long = 271; -pub const SYS_kcmp: ::c_long = 272; -pub const SYS_finit_module: ::c_long = 273; -pub const SYS_sched_setattr: ::c_long = 274; -pub const SYS_sched_getattr: ::c_long = 275; -pub const SYS_renameat2: ::c_long = 276; -pub const SYS_seccomp: ::c_long = 277; -pub const SYS_getrandom: ::c_long = 278; -pub const SYS_memfd_create: ::c_long = 279; -pub const SYS_bpf: ::c_long = 280; -pub const SYS_execveat: ::c_long = 281; -pub const SYS_userfaultfd: ::c_long = 282; -pub const SYS_membarrier: ::c_long = 283; -pub const SYS_mlock2: ::c_long = 284; -pub const SYS_copy_file_range: ::c_long = 285; -pub const SYS_preadv2: ::c_long = 286; -pub const SYS_pwritev2: ::c_long = 287; -pub const SYS_pkey_mprotect: ::c_long = 288; -pub const SYS_pkey_alloc: ::c_long = 289; -pub const SYS_pkey_free: ::c_long = 290; -pub const SYS_statx: ::c_long = 291; -pub const SYS_rseq: ::c_long = 293; -pub const SYS_syscall: ::c_long = 294; -pub const SYS_pidfd_send_signal: ::c_long = 424; -pub const SYS_io_uring_setup: ::c_long = 425; -pub const SYS_io_uring_enter: ::c_long = 426; -pub const SYS_io_uring_register: ::c_long = 427; -pub const SYS_open_tree: ::c_long = 428; -pub const SYS_move_mount: ::c_long = 429; -pub const SYS_fsopen: ::c_long = 430; -pub const SYS_fsconfig: ::c_long = 431; -pub const SYS_fsmount: ::c_long = 432; -pub const SYS_fspick: ::c_long = 433; -pub const SYS_pidfd_open: ::c_long = 434; -pub const SYS_clone3: ::c_long = 435; -pub const SYS_close_range: ::c_long = 436; -pub const SYS_openat2: ::c_long = 437; -pub const SYS_pidfd_getfd: ::c_long = 438; -pub const SYS_faccessat2: ::c_long = 439; -pub const SYS_process_madvise: ::c_long = 440; -pub const SYS_epoll_pwait2: ::c_long = 441; -pub const SYS_mount_setattr: ::c_long = 442; -pub const SYS_quotactl_fd: ::c_long = 443; -pub const SYS_landlock_create_ruleset: ::c_long = 444; -pub const SYS_landlock_add_rule: ::c_long = 445; -pub const SYS_landlock_restrict_self: ::c_long = 446; -pub const SYS_memfd_secret: ::c_long = 447; -pub const SYS_process_mrelease: ::c_long = 448; -pub const SYS_futex_waitv: ::c_long = 449; -pub const SYS_set_mempolicy_home_node: ::c_long = 450; - -cfg_if! { - if #[cfg(libc_align)] { - mod align; - pub use self::align::*; - } -} diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/m68k/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/m68k/mod.rs index 69725ee7cf6a..3b78f181cd19 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/m68k/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/m68k/mod.rs @@ -5,7 +5,7 @@ s! { pub struct sigaction { pub sa_sigaction: ::sighandler_t, pub sa_mask: ::sigset_t, - pub sa_flags: ::c_int, + pub sa_flags: ::c_ulong, pub sa_restorer: ::Option, } diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/mod.rs index d5b11347eb8b..ad0d64c51d5b 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/mod.rs @@ -43,34 +43,34 @@ cfg_if! { s! { pub struct stat { - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] pub st_dev: ::dev_t, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] pub st_dev: ::c_ulong, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] __pad1: ::c_short, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] st_pad1: [::c_long; 3], pub st_ino: ::ino_t, pub st_mode: ::mode_t, pub st_nlink: ::nlink_t, pub st_uid: ::uid_t, pub st_gid: ::gid_t, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] pub st_rdev: ::dev_t, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] pub st_rdev: ::c_ulong, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] __pad2: ::c_short, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] st_pad2: [::c_long; 2], pub st_size: ::off_t, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] st_pad3: ::c_long, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] pub st_blksize: ::blksize_t, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] pub st_blocks: ::blkcnt_t, pub st_atime: ::time_t, pub st_atime_nsec: ::c_long, @@ -78,15 +78,15 @@ s! { pub st_mtime_nsec: ::c_long, pub st_ctime: ::time_t, pub st_ctime_nsec: ::c_long, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] __unused4: ::c_long, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] + #[cfg(not(target_arch = "mips"))] __unused5: ::c_long, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] pub st_blksize: ::blksize_t, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] pub st_blocks: ::blkcnt_t, - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] + #[cfg(target_arch = "mips")] st_pad5: [::c_long; 14], } @@ -140,12 +140,12 @@ s! { #[cfg(target_arch = "powerpc")] __reserved: ::__syscall_ulong_t, pub sem_otime: ::time_t, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6", target_arch = "powerpc")))] + #[cfg(not(any(target_arch = "mips", target_arch = "powerpc")))] __reserved: ::__syscall_ulong_t, #[cfg(target_arch = "powerpc")] __reserved2: ::__syscall_ulong_t, pub sem_ctime: ::time_t, - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6", target_arch = "powerpc")))] + #[cfg(not(any(target_arch = "mips", target_arch = "powerpc")))] __reserved2: ::__syscall_ulong_t, pub sem_nsems: ::__syscall_ulong_t, __glibc_reserved3: ::__syscall_ulong_t, @@ -163,10 +163,8 @@ pub const F_OFD_SETLKW: ::c_int = 38; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 20; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; cfg_if! { if #[cfg(target_arch = "sparc")] { @@ -337,7 +335,7 @@ cfg_if! { } else if #[cfg(target_arch = "arm")] { mod arm; pub use self::arm::*; - } else if #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] { + } else if #[cfg(target_arch = "mips")] { mod mips; pub use self::mips::*; } else if #[cfg(target_arch = "m68k")] { @@ -352,9 +350,6 @@ cfg_if! { } else if #[cfg(target_arch = "riscv32")] { mod riscv32; pub use self::riscv32::*; - } else if #[cfg(target_arch = "csky")] { - mod csky; - pub use self::csky::*; } else { // Unknown target_arch } diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs index f3b130cbc620..827f85e86790 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs @@ -196,41 +196,6 @@ s! { pub l_len: ::off64_t, pub l_pid: ::pid_t, } - - pub struct user_regs_struct { - pub pc: ::c_ulong, - pub ra: ::c_ulong, - pub sp: ::c_ulong, - pub gp: ::c_ulong, - pub tp: ::c_ulong, - pub t0: ::c_ulong, - pub t1: ::c_ulong, - pub t2: ::c_ulong, - pub s0: ::c_ulong, - pub s1: ::c_ulong, - pub a0: ::c_ulong, - pub a1: ::c_ulong, - pub a2: ::c_ulong, - pub a3: ::c_ulong, - pub a4: ::c_ulong, - pub a5: ::c_ulong, - pub a6: ::c_ulong, - pub a7: ::c_ulong, - pub s2: ::c_ulong, - pub s3: ::c_ulong, - pub s4: ::c_ulong, - pub s5: ::c_ulong, - pub s6: ::c_ulong, - pub s7: ::c_ulong, - pub s8: ::c_ulong, - pub s9: ::c_ulong, - pub s10: ::c_ulong, - pub s11: ::c_ulong, - pub t3: ::c_ulong, - pub t4: ::c_ulong, - pub t5: ::c_ulong, - pub t6: ::c_ulong, - } } pub const O_LARGEFILE: ::c_int = 0; @@ -370,7 +335,6 @@ pub const TCSAFLUSH: ::c_int = 2; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const O_DIRECT: ::c_int = 16384; pub const O_DIRECTORY: ::c_int = 65536; pub const O_NOFOLLOW: ::c_int = 131072; @@ -488,7 +452,6 @@ pub const FLUSHO: ::tcflag_t = 4096; pub const EXTPROC: ::tcflag_t = 65536; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const NGREG: usize = 32; pub const REG_PC: usize = 0; pub const REG_RA: usize = 1; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs index a035773c716f..06173be663b9 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs @@ -27,6 +27,13 @@ s! { __reserved: [[u64; 32]; 16], } + #[repr(align(16))] + pub struct user_fpsimd_struct { + pub vregs: [[u64; 2]; 32], + pub fpsr: ::c_uint, + pub fpcr: ::c_uint, + } + #[repr(align(8))] pub struct clone_args { pub flags: ::c_ulonglong, diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/fallback.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/fallback.rs deleted file mode 100644 index 398fbb53755c..000000000000 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/fallback.rs +++ /dev/null @@ -1,8 +0,0 @@ -s! { - #[repr(align(16))] - pub struct user_fpsimd_struct { - pub vregs: [[u64; 2]; 32], - pub fpsr: ::c_uint, - pub fpcr: ::c_uint, - } -} diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs index 0848fb588013..24b7f4e6b90c 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs @@ -7,8 +7,6 @@ pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 32; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 48; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 20; align_const! { #[cfg(target_endian = "little")] diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/lp64.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/lp64.rs index 3802caf644fb..14d39e543dc4 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/lp64.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/lp64.rs @@ -7,8 +7,6 @@ pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 8; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 48; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 8; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 8; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; align_const! { #[cfg(target_endian = "little")] diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs index f9aed99b2e78..a20a1cf688e3 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs @@ -590,13 +590,6 @@ pub const PR_PAC_APDAKEY: ::c_ulong = 1 << 2; pub const PR_PAC_APDBKEY: ::c_ulong = 1 << 3; pub const PR_PAC_APGAKEY: ::c_ulong = 1 << 4; -pub const PR_SME_SET_VL: ::c_int = 63; -pub const PR_SME_GET_VL: ::c_int = 64; -pub const PR_SME_VL_LEN_MAX: ::c_int = 0xffff; - -pub const PR_SME_SET_VL_INHERIT: ::c_ulong = 1 << 17; -pub const PR_SME_SET_VL_ONE_EXEC: ::c_ulong = 1 << 18; - // Syscall table pub const SYS_io_setup: ::c_long = 0; pub const SYS_io_destroy: ::c_long = 1; @@ -902,9 +895,6 @@ pub const SYS_process_mrelease: ::c_long = 448; pub const SYS_futex_waitv: ::c_long = 449; pub const SYS_set_mempolicy_home_node: ::c_long = 450; -pub const PROT_BTI: ::c_int = 0x10; -pub const PROT_MTE: ::c_int = 0x20; - extern "C" { pub fn sysctl( name: *mut ::c_int, @@ -931,16 +921,11 @@ cfg_if! { mod align; pub use self::align::*; } - - } cfg_if! { if #[cfg(libc_int128)] { mod int128; pub use self::int128::*; - } else if #[cfg(libc_align)] { - mod fallback; - pub use self::fallback::*; } } diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/align.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/align.rs index dc191f51fdb1..4cae9c1c35f6 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/align.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/align.rs @@ -17,10 +17,10 @@ s! { #[repr(align(16))] pub struct mcontext_t { - pub __pc: ::c_ulonglong, - pub __gregs: [::c_ulonglong; 32], - pub __flags: ::c_uint, - pub __extcontext: [::c_ulonglong; 0], + pub sc_pc: ::c_ulonglong, + pub sc_regs: [::c_ulonglong; 32], + pub sc_flags: ::c_ulong, + pub sc_extcontext: [u64; 0], } #[repr(align(8))] diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs index ea59181bcd42..d64c353bb05b 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs @@ -189,29 +189,12 @@ s! { __unused4: ::c_ulong, __unused5: ::c_ulong } - - pub struct user_regs_struct { - pub regs: [u64; 32], - pub orig_a0: u64, - pub csr_era: u64, - pub csr_badv: u64, - pub reserved: [u64; 10], - - } - - pub struct user_fp_struct { - pub fpr: [u64; 32], - pub fcc: u64, - pub fcsr: u32, - } } pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; align_const! { #[cfg(target_endian = "little")] @@ -564,7 +547,7 @@ pub const SYS_landlock_add_rule: ::c_long = 445; pub const SYS_landlock_restrict_self: ::c_long = 446; pub const SYS_process_mrelease: ::c_long = 448; pub const SYS_futex_waitv: ::c_long = 449; -pub const SYS_set_mempolicy_home_node: ::c_long = 450; +//pub const SYS_set_mempolicy_home_node: ::c_long = 450; pub const POSIX_FADV_DONTNEED: ::c_int = 4; pub const POSIX_FADV_NOREUSE: ::c_int = 5; @@ -699,8 +682,6 @@ pub const ENOTRECOVERABLE: ::c_int = 131; pub const ERFKILL: ::c_int = 132; pub const EHWPOISON: ::c_int = 133; -pub const MADV_SOFT_OFFLINE: ::c_int = 101; - pub const MAP_NORESERVE: ::c_int = 0x4000; pub const MAP_ANONYMOUS: ::c_int = 0x0020; pub const MAP_ANON: ::c_int = 0x0020; @@ -712,7 +693,6 @@ pub const MAP_POPULATE: ::c_int = 0x8000; pub const MAP_NONBLOCK: ::c_int = 0x10000; pub const MAP_STACK: ::c_int = 0x20000; pub const MAP_HUGETLB: ::c_int = 0x40000; -pub const MAP_SYNC: ::c_int = 0x080000; pub const MCL_CURRENT: ::c_int = 0x0001; pub const MCL_FUTURE: ::c_int = 0x0002; pub const MCL_ONFAULT: ::c_int = 0x0004; @@ -764,8 +744,6 @@ pub const PTRACE_GETFPXREGS: ::c_uint = 18; pub const PTRACE_SETFPXREGS: ::c_uint = 19; pub const PTRACE_GETREGS: ::c_uint = 12; pub const PTRACE_SETREGS: ::c_uint = 13; -pub const PTRACE_SYSEMU: ::c_uint = 31; -pub const PTRACE_SYSEMU_SINGLESTEP: ::c_uint = 32; pub const RTLD_DEEPBIND: ::c_int = 0x8; pub const RTLD_GLOBAL: ::c_int = 0x100; @@ -866,7 +844,6 @@ pub const ECHOPRT: ::tcflag_t = 0x00000400; pub const ECHOCTL: ::tcflag_t = 0x00000200; pub const ISIG: ::tcflag_t = 0x00000001; pub const ICANON: ::tcflag_t = 0x00000002; -pub const XCASE: ::tcflag_t = 0x00000004; pub const PENDIN: ::tcflag_t = 0x00004000; pub const NOFLSH: ::tcflag_t = 0x00000080; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mips64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mips64/mod.rs index 66b29a8aaf16..0bf5084d5446 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mips64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mips64/mod.rs @@ -188,10 +188,8 @@ s! { pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; align_const! { #[cfg(target_endian = "little")] diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mod.rs index ff394e33a213..443958cff737 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/mod.rs @@ -72,7 +72,6 @@ s! { target_arch = "aarch64", target_arch = "loongarch64", target_arch = "mips64", - target_arch = "mips64r6", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "sparc64")))] @@ -82,7 +81,6 @@ s! { target_arch = "aarch64", target_arch = "loongarch64", target_arch = "mips64", - target_arch = "mips64r6", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "sparc64")))] @@ -107,7 +105,7 @@ cfg_if! { } else if #[cfg(any(target_arch = "sparc64"))] { mod sparc64; pub use self::sparc64::*; - } else if #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] { + } else if #[cfg(any(target_arch = "mips64"))] { mod mips64; pub use self::mips64::*; } else if #[cfg(any(target_arch = "s390x"))] { diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs index 2b225e4809f3..ce8ce97bb4fe 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs @@ -201,7 +201,6 @@ pub const RTLD_GLOBAL: ::c_int = 0x100; pub const RTLD_NOLOAD: ::c_int = 0x4; pub const VEOF: usize = 4; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const O_APPEND: ::c_int = 1024; pub const O_CREAT: ::c_int = 64; @@ -403,7 +402,6 @@ pub const EFD_CLOEXEC: ::c_int = 0x80000; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; align_const! { #[cfg(target_endian = "little")] diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs index c65a562ac2e1..9d022f96e092 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs @@ -192,41 +192,6 @@ s! { pub l_len: ::off64_t, pub l_pid: ::pid_t, } - - pub struct user_regs_struct { - pub pc: ::c_ulong, - pub ra: ::c_ulong, - pub sp: ::c_ulong, - pub gp: ::c_ulong, - pub tp: ::c_ulong, - pub t0: ::c_ulong, - pub t1: ::c_ulong, - pub t2: ::c_ulong, - pub s0: ::c_ulong, - pub s1: ::c_ulong, - pub a0: ::c_ulong, - pub a1: ::c_ulong, - pub a2: ::c_ulong, - pub a3: ::c_ulong, - pub a4: ::c_ulong, - pub a5: ::c_ulong, - pub a6: ::c_ulong, - pub a7: ::c_ulong, - pub s2: ::c_ulong, - pub s3: ::c_ulong, - pub s4: ::c_ulong, - pub s5: ::c_ulong, - pub s6: ::c_ulong, - pub s7: ::c_ulong, - pub s8: ::c_ulong, - pub s9: ::c_ulong, - pub s10: ::c_ulong, - pub s11: ::c_ulong, - pub t3: ::c_ulong, - pub t4: ::c_ulong, - pub t5: ::c_ulong, - pub t6: ::c_ulong, - } } pub const POSIX_FADV_DONTNEED: ::c_int = 4; @@ -403,7 +368,6 @@ pub const EPOLL_CLOEXEC: ::c_int = 524288; pub const EFD_CLOEXEC: ::c_int = 524288; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const O_DIRECT: ::c_int = 16384; pub const O_DIRECTORY: ::c_int = 65536; pub const O_NOFOLLOW: ::c_int = 131072; @@ -527,7 +491,6 @@ pub const FLUSHO: ::tcflag_t = 4096; pub const EXTPROC: ::tcflag_t = 65536; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const NGREG: usize = 32; pub const REG_PC: usize = 0; pub const REG_RA: usize = 1; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/s390x.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/s390x.rs index c2c4f31cf811..c4bae089ce29 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/s390x.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/s390x.rs @@ -289,10 +289,8 @@ pub const EFD_CLOEXEC: ::c_int = 0x80000; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; align_const! { pub const PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP: ::pthread_mutex_t = diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs index 2427c7a0ad21..9fdacfac81dd 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs @@ -204,7 +204,6 @@ pub const RTLD_DEEPBIND: ::c_int = 0x8; pub const RTLD_GLOBAL: ::c_int = 0x100; pub const RTLD_NOLOAD: ::c_int = 0x4; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const O_APPEND: ::c_int = 0x8; pub const O_CREAT: ::c_int = 0x200; @@ -402,7 +401,6 @@ pub const EFD_CLOEXEC: ::c_int = 0x400000; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; align_const! { pub const PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP: ::pthread_mutex_t = diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs index e6307e282a11..d515d22315d0 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs @@ -600,7 +600,6 @@ pub const EFD_CLOEXEC: ::c_int = 0x80000; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const O_DIRECT: ::c_int = 0x4000; pub const O_DIRECTORY: ::c_int = 0x10000; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs index 3831dfad9d41..35d2714ee92d 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs @@ -22,7 +22,6 @@ s! { pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; align_const! { #[cfg(target_endian = "little")] diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs index 06aa0da2d74a..807b948ef82b 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs @@ -22,7 +22,6 @@ s! { pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 32; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 44; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 20; align_const! { pub const PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP: ::pthread_mutex_t = diff --git a/third_party/rust/libc/src/unix/linux_like/linux/gnu/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/gnu/mod.rs index 2d74087e930f..98a58a2acb86 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/gnu/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/gnu/mod.rs @@ -37,8 +37,7 @@ s! { pub stx_dev_major: u32, pub stx_dev_minor: u32, pub stx_mnt_id: u64, - pub stx_dio_mem_align: u32, - pub stx_dio_offset_align: u32, + __statx_pad2: u64, __statx_pad3: [u64; 12], } @@ -116,17 +115,13 @@ s! { target_arch = "sparc", target_arch = "sparc64", target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6")))] + target_arch = "mips64")))] pub c_ispeed: ::speed_t, #[cfg(not(any( target_arch = "sparc", target_arch = "sparc64", target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6")))] + target_arch = "mips64")))] pub c_ospeed: ::speed_t, } @@ -734,6 +729,27 @@ pub const PF_NFC: ::c_int = AF_NFC; pub const PF_VSOCK: ::c_int = AF_VSOCK; pub const PF_XDP: ::c_int = AF_XDP; +/* DCCP socket options */ +pub const DCCP_SOCKOPT_PACKET_SIZE: ::c_int = 1; +pub const DCCP_SOCKOPT_SERVICE: ::c_int = 2; +pub const DCCP_SOCKOPT_CHANGE_L: ::c_int = 3; +pub const DCCP_SOCKOPT_CHANGE_R: ::c_int = 4; +pub const DCCP_SOCKOPT_GET_CUR_MPS: ::c_int = 5; +pub const DCCP_SOCKOPT_SERVER_TIMEWAIT: ::c_int = 6; +pub const DCCP_SOCKOPT_SEND_CSCOV: ::c_int = 10; +pub const DCCP_SOCKOPT_RECV_CSCOV: ::c_int = 11; +pub const DCCP_SOCKOPT_AVAILABLE_CCIDS: ::c_int = 12; +pub const DCCP_SOCKOPT_CCID: ::c_int = 13; +pub const DCCP_SOCKOPT_TX_CCID: ::c_int = 14; +pub const DCCP_SOCKOPT_RX_CCID: ::c_int = 15; +pub const DCCP_SOCKOPT_QPOLICY_ID: ::c_int = 16; +pub const DCCP_SOCKOPT_QPOLICY_TXQLEN: ::c_int = 17; +pub const DCCP_SOCKOPT_CCID_RX_INFO: ::c_int = 128; +pub const DCCP_SOCKOPT_CCID_TX_INFO: ::c_int = 192; + +/// maximum number of services provided on the same listening port +pub const DCCP_SERVICE_LIST_MAX_LEN: ::c_int = 32; + pub const SIGEV_THREAD_ID: ::c_int = 4; pub const BUFSIZ: ::c_uint = 8192; @@ -858,10 +874,6 @@ pub const PTRACE_INTERRUPT: ::c_uint = 0x4207; pub const PTRACE_LISTEN: ::c_uint = 0x4208; pub const PTRACE_PEEKSIGINFO: ::c_uint = 0x4209; pub const PTRACE_GET_SYSCALL_INFO: ::c_uint = 0x420e; -pub const PTRACE_SYSCALL_INFO_NONE: ::__u8 = 0; -pub const PTRACE_SYSCALL_INFO_ENTRY: ::__u8 = 1; -pub const PTRACE_SYSCALL_INFO_EXIT: ::__u8 = 2; -pub const PTRACE_SYSCALL_INFO_SECCOMP: ::__u8 = 3; // linux/fs.h @@ -958,10 +970,7 @@ pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 0x02; pub const KEYCTL_SUPPORTS_SIGN: u32 = 0x04; pub const KEYCTL_SUPPORTS_VERIFY: u32 = 0x08; cfg_if! { - if #[cfg(not(any(target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6")))] { + if #[cfg(not(any(target_arch="mips", target_arch="mips64")))] { pub const KEYCTL_MOVE: u32 = 30; pub const KEYCTL_CAPABILITIES: u32 = 31; @@ -1009,7 +1018,6 @@ pub const STATX_BLOCKS: ::c_uint = 0x0400; pub const STATX_BASIC_STATS: ::c_uint = 0x07ff; pub const STATX_BTIME: ::c_uint = 0x0800; pub const STATX_MNT_ID: ::c_uint = 0x1000; -pub const STATX_DIOALIGN: ::c_uint = 0x2000; pub const STATX_ALL: ::c_uint = 0x0fff; pub const STATX__RESERVED: ::c_int = 0x80000000; pub const STATX_ATTR_COMPRESSED: ::c_int = 0x0004; @@ -1083,16 +1091,6 @@ pub const TIME_ERROR: ::c_int = 5; pub const TIME_BAD: ::c_int = TIME_ERROR; pub const MAXTC: ::c_long = 6; -// Portable GLOB_* flags are defined at the `linux_like` level. -// The following are GNU extensions. -pub const GLOB_PERIOD: ::c_int = 1 << 7; -pub const GLOB_ALTDIRFUNC: ::c_int = 1 << 9; -pub const GLOB_BRACE: ::c_int = 1 << 10; -pub const GLOB_NOMAGIC: ::c_int = 1 << 11; -pub const GLOB_TILDE: ::c_int = 1 << 12; -pub const GLOB_ONLYDIR: ::c_int = 1 << 13; -pub const GLOB_TILDE_CHECK: ::c_int = 1 << 14; - cfg_if! { if #[cfg(any( target_arch = "arm", @@ -1208,6 +1206,14 @@ extern "C" { pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int; pub fn clock_adjtime(clk_id: ::clockid_t, buf: *mut ::timex) -> ::c_int; + pub fn copy_file_range( + fd_in: ::c_int, + off_in: *mut ::off64_t, + fd_out: ::c_int, + off_out: *mut ::off64_t, + len: ::size_t, + flags: ::c_uint, + ) -> ::ssize_t; pub fn fanotify_mark( fd: ::c_int, flags: ::c_uint, @@ -1257,6 +1263,9 @@ extern "C" { pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void; pub fn ctermid(s: *mut ::c_char) -> *mut ::c_char; +} + +extern "C" { pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int; pub fn backtrace(buf: *mut *mut ::c_void, sz: ::c_int) -> ::c_int; pub fn glob64( @@ -1319,9 +1328,6 @@ extern "C" { result: *mut *mut ::group, ) -> ::c_int; - pub fn putpwent(p: *const ::passwd, stream: *mut ::FILE) -> ::c_int; - pub fn putgrent(grp: *const ::group, stream: *mut ::FILE) -> ::c_int; - pub fn sethostid(hostid: ::c_long) -> ::c_int; pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int; @@ -1348,6 +1354,9 @@ extern "C" { /// GNU version of `basename(3)`, defined in `string.h`. #[link_name = "basename"] pub fn gnu_basename(path: *const ::c_char) -> *mut ::c_char; +} + +extern "C" { pub fn dlmopen(lmid: Lmid_t, filename: *const ::c_char, flag: ::c_int) -> *mut ::c_void; pub fn dlinfo(handle: *mut ::c_void, request: ::c_int, info: *mut ::c_void) -> ::c_int; pub fn dladdr1( @@ -1357,47 +1366,18 @@ extern "C" { flags: ::c_int, ) -> ::c_int; pub fn malloc_trim(__pad: ::size_t) -> ::c_int; +} + +extern "C" { pub fn gnu_get_libc_release() -> *const ::c_char; pub fn gnu_get_libc_version() -> *const ::c_char; - - // posix/spawn.h - // Added in `glibc` 2.29 - pub fn posix_spawn_file_actions_addchdir_np( - actions: *mut ::posix_spawn_file_actions_t, - path: *const ::c_char, - ) -> ::c_int; - // Added in `glibc` 2.29 - pub fn posix_spawn_file_actions_addfchdir_np( - actions: *mut ::posix_spawn_file_actions_t, - fd: ::c_int, - ) -> ::c_int; - // Added in `glibc` 2.34 - pub fn posix_spawn_file_actions_addclosefrom_np( - actions: *mut ::posix_spawn_file_actions_t, - from: ::c_int, - ) -> ::c_int; - // Added in `glibc` 2.35 - pub fn posix_spawn_file_actions_addtcsetpgrp_np( - actions: *mut ::posix_spawn_file_actions_t, - tcfd: ::c_int, - ) -> ::c_int; - - // mntent.h - pub fn getmntent_r( - stream: *mut ::FILE, - mntbuf: *mut ::mntent, - buf: *mut ::c_char, - buflen: ::c_int, - ) -> *mut ::mntent; } cfg_if! { if #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "m68k", - target_arch = "csky", target_arch = "mips", - target_arch = "mips32r6", target_arch = "powerpc", target_arch = "sparc", target_arch = "riscv32"))] { @@ -1407,7 +1387,6 @@ cfg_if! { target_arch = "aarch64", target_arch = "powerpc64", target_arch = "mips64", - target_arch = "mips64r6", target_arch = "s390x", target_arch = "sparc64", target_arch = "riscv64", diff --git a/third_party/rust/libc/src/unix/linux_like/linux/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/mod.rs index 4f9ae623a843..9658f0744637 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/mod.rs @@ -48,9 +48,6 @@ pub type name_t = u64; pub type iconv_t = *mut ::c_void; -// linux/sctp.h -pub type sctp_assoc_t = ::__s32; - #[cfg_attr(feature = "extra_traits", derive(Debug))] pub enum fpos64_t {} // FIXME: fill this out with a struct impl ::Copy for fpos64_t {} @@ -61,6 +58,11 @@ impl ::Clone for fpos64_t { } s! { + pub struct rlimit64 { + pub rlim_cur: rlim64_t, + pub rlim_max: rlim64_t, + } + pub struct glob_t { pub gl_pathc: ::size_t, pub gl_pathv: *mut *mut c_char, @@ -466,9 +468,9 @@ s! { __pgrp: ::pid_t, __sd: ::sigset_t, __ss: ::sigset_t, - #[cfg(any(target_env = "musl", target_env = "ohos"))] + #[cfg(target_env = "musl")] __prio: ::c_int, - #[cfg(not(any(target_env = "musl", target_env = "ohos")))] + #[cfg(not(target_env = "musl"))] __sp: ::sched_param, __policy: ::c_int, __pad: [::c_int; 16], @@ -623,68 +625,6 @@ s! { pub flag: *mut ::c_int, pub val: ::c_int, } - - // linux/sctp.h - - pub struct sctp_initmsg { - pub sinit_num_ostreams: ::__u16, - pub sinit_max_instreams: ::__u16, - pub sinit_max_attempts: ::__u16, - pub sinit_max_init_timeo: ::__u16, - } - - pub struct sctp_sndrcvinfo { - pub sinfo_stream: ::__u16, - pub sinfo_ssn: ::__u16, - pub sinfo_flags: ::__u16, - pub sinfo_ppid: ::__u32, - pub sinfo_context: ::__u32, - pub sinfo_timetolive: ::__u32, - pub sinfo_tsn: ::__u32, - pub sinfo_cumtsn: ::__u32, - pub sinfo_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_sndinfo { - pub snd_sid: ::__u16, - pub snd_flags: ::__u16, - pub snd_ppid: ::__u32, - pub snd_context: ::__u32, - pub snd_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_rcvinfo { - pub rcv_sid: ::__u16, - pub rcv_ssn: ::__u16, - pub rcv_flags: ::__u16, - pub rcv_ppid: ::__u32, - pub rcv_tsn: ::__u32, - pub rcv_cumtsn: ::__u32, - pub rcv_context: ::__u32, - pub rcv_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_nxtinfo { - pub nxt_sid: ::__u16, - pub nxt_flags: ::__u16, - pub nxt_ppid: ::__u32, - pub nxt_length: ::__u32, - pub nxt_assoc_id: ::sctp_assoc_t, - } - - pub struct sctp_prinfo { - pub pr_policy: ::__u16, - pub pr_value: ::__u32, - } - - pub struct sctp_authinfo { - pub auth_keynumber: ::__u16, - } - - pub struct rlimit64 { - pub rlim_cur: rlim64_t, - pub rlim_max: rlim64_t, - } } s_no_extra_traits! { @@ -703,6 +643,14 @@ s_no_extra_traits! { pub d_name: [::c_char; 256], } + pub struct dirent64 { + pub d_ino: ::ino64_t, + pub d_off: ::off64_t, + pub d_reclen: ::c_ushort, + pub d_type: ::c_uchar, + pub d_name: [::c_char; 256], + } + pub struct sockaddr_alg { pub salg_family: ::sa_family_t, pub salg_type: [::c_uchar; 14], @@ -790,20 +738,6 @@ s_no_extra_traits! { #[cfg(not(libc_union))] pub ifr_ifru: ::sockaddr, } - - pub struct hwtstamp_config { - pub flags: ::c_int, - pub tx_type: ::c_int, - pub rx_filter: ::c_int, - } - - pub struct dirent64 { - pub d_ino: ::ino64_t, - pub d_off: ::off64_t, - pub d_reclen: ::c_ushort, - pub d_type: ::c_uchar, - pub d_name: [::c_char; 256], - } } s_no_extra_traits! { @@ -1004,28 +938,6 @@ cfg_if! { } } - impl PartialEq for pthread_barrier_t { - fn eq(&self, other: &pthread_barrier_t) -> bool { - self.size.iter().zip(other.size.iter()).all(|(a,b)| a == b) - } - } - - impl Eq for pthread_barrier_t {} - - impl ::fmt::Debug for pthread_barrier_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("pthread_barrier_t") - .field("size", &self.size) - .finish() - } - } - - impl ::hash::Hash for pthread_barrier_t { - fn hash(&self, state: &mut H) { - self.size.hash(state); - } - } - impl PartialEq for sockaddr_alg { fn eq(&self, other: &sockaddr_alg) -> bool { self.salg_family == other.salg_family @@ -1227,36 +1139,11 @@ cfg_if! { .finish() } } - - impl ::fmt::Debug for hwtstamp_config { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("hwtstamp_config") - .field("flags", &self.flags) - .field("tx_type", &self.tx_type) - .field("rx_filter", &self.rx_filter) - .finish() - } - } - impl PartialEq for hwtstamp_config { - fn eq(&self, other: &hwtstamp_config) -> bool { - self.flags == other.flags && - self.tx_type == other.tx_type && - self.rx_filter == other.rx_filter - } - } - impl Eq for hwtstamp_config {} - impl ::hash::Hash for hwtstamp_config { - fn hash(&self, state: &mut H) { - self.flags.hash(state); - self.tx_type.hash(state); - self.rx_filter.hash(state); - } - } } } cfg_if! { - if #[cfg(any(target_env = "gnu", target_env = "musl", target_env = "ohos"))] { + if #[cfg(any(target_env = "gnu", target_env = "musl"))] { pub const ABDAY_1: ::nl_item = 0x20000; pub const ABDAY_2: ::nl_item = 0x20001; pub const ABDAY_3: ::nl_item = 0x20002; @@ -1812,12 +1699,6 @@ pub const IFLA_PROP_LIST: ::c_ushort = 52; pub const IFLA_ALT_IFNAME: ::c_ushort = 53; pub const IFLA_PERM_ADDRESS: ::c_ushort = 54; pub const IFLA_PROTO_DOWN_REASON: ::c_ushort = 55; -pub const IFLA_PARENT_DEV_NAME: ::c_ushort = 56; -pub const IFLA_PARENT_DEV_BUS_NAME: ::c_ushort = 57; -pub const IFLA_GRO_MAX_SIZE: ::c_ushort = 58; -pub const IFLA_TSO_MAX_SIZE: ::c_ushort = 59; -pub const IFLA_TSO_MAX_SEGS: ::c_ushort = 60; -pub const IFLA_ALLMULTI: ::c_ushort = 61; pub const IFLA_INFO_UNSPEC: ::c_ushort = 0; pub const IFLA_INFO_KIND: ::c_ushort = 1; @@ -1880,18 +1761,6 @@ pub const MPOL_F_NUMA_BALANCING: ::c_int = 1 << 13; pub const MPOL_F_RELATIVE_NODES: ::c_int = 1 << 14; pub const MPOL_F_STATIC_NODES: ::c_int = 1 << 15; -// linux/membarrier.h -pub const MEMBARRIER_CMD_QUERY: ::c_int = 0; -pub const MEMBARRIER_CMD_GLOBAL: ::c_int = 1 << 0; -pub const MEMBARRIER_CMD_GLOBAL_EXPEDITED: ::c_int = 1 << 1; -pub const MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED: ::c_int = 1 << 2; -pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED: ::c_int = 1 << 3; -pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED: ::c_int = 1 << 4; -pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE: ::c_int = 1 << 5; -pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE: ::c_int = 1 << 6; -pub const MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ: ::c_int = 1 << 7; -pub const MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ: ::c_int = 1 << 8; - align_const! { pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = pthread_mutex_t { size: [0; __SIZEOF_PTHREAD_MUTEX_T], @@ -1933,6 +1802,8 @@ pub const CLONE_PIDFD: ::c_int = 0x1000; // netinet/in.h // NOTE: These are in addition to the constants defined in src/unix/mod.rs +/// Multipath TCP +pub const IPPROTO_MPTCP: ::c_int = 262; #[deprecated( since = "0.2.80", note = "This value was increased in the newer kernel \ @@ -1954,7 +1825,6 @@ pub const IPC_STAT: ::c_int = 2; pub const IPC_INFO: ::c_int = 3; pub const MSG_STAT: ::c_int = 11; pub const MSG_INFO: ::c_int = 12; -pub const MSG_NOTIFICATION: ::c_int = 0x8000; pub const MSG_NOERROR: ::c_int = 0o10000; pub const MSG_EXCEPT: ::c_int = 0o20000; @@ -2143,7 +2013,6 @@ pub const PR_SET_MM_MAP: ::c_int = 14; pub const PR_SET_MM_MAP_SIZE: ::c_int = 15; pub const PR_SET_PTRACER: ::c_int = 0x59616d61; -pub const PR_SET_PTRACER_ANY: ::c_ulong = 0xffffffffffffffff; pub const PR_SET_CHILD_SUBREAPER: ::c_int = 36; pub const PR_GET_CHILD_SUBREAPER: ::c_int = 37; @@ -2173,16 +2042,6 @@ pub const PR_CAP_AMBIENT_CLEAR_ALL: ::c_int = 4; pub const PR_SET_VMA: ::c_int = 0x53564d41; pub const PR_SET_VMA_ANON_NAME: ::c_int = 0; -pub const PR_SCHED_CORE: ::c_int = 62; -pub const PR_SCHED_CORE_GET: ::c_int = 0; -pub const PR_SCHED_CORE_CREATE: ::c_int = 1; -pub const PR_SCHED_CORE_SHARE_TO: ::c_int = 2; -pub const PR_SCHED_CORE_SHARE_FROM: ::c_int = 3; -pub const PR_SCHED_CORE_MAX: ::c_int = 4; -pub const PR_SCHED_CORE_SCOPE_THREAD: ::c_int = 0; -pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: ::c_int = 1; -pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: ::c_int = 2; - pub const GRND_NONBLOCK: ::c_uint = 0x0001; pub const GRND_RANDOM: ::c_uint = 0x0002; pub const GRND_INSECURE: ::c_uint = 0x0004; @@ -2800,8 +2659,6 @@ pub const SIOCGRARP: ::c_ulong = 0x00008961; pub const SIOCSRARP: ::c_ulong = 0x00008962; pub const SIOCGIFMAP: ::c_ulong = 0x00008970; pub const SIOCSIFMAP: ::c_ulong = 0x00008971; -pub const SIOCSHWTSTAMP: ::c_ulong = 0x000089b0; -pub const SIOCGHWTSTAMP: ::c_ulong = 0x000089b1; pub const IPTOS_TOS_MASK: u8 = 0x1E; pub const IPTOS_PREC_MASK: u8 = 0xE0; @@ -3073,14 +2930,6 @@ pub const ARPD_LOOKUP: ::c_ushort = 0x02; pub const ARPD_FLUSH: ::c_ushort = 0x03; pub const ATF_MAGIC: ::c_int = 0x80; -pub const RTEXT_FILTER_VF: ::c_int = 1 << 0; -pub const RTEXT_FILTER_BRVLAN: ::c_int = 1 << 1; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: ::c_int = 1 << 2; -pub const RTEXT_FILTER_SKIP_STATS: ::c_int = 1 << 3; -pub const RTEXT_FILTER_MRP: ::c_int = 1 << 4; -pub const RTEXT_FILTER_CFM_CONFIG: ::c_int = 1 << 5; -pub const RTEXT_FILTER_CFM_STATUS: ::c_int = 1 << 6; - // userspace compat definitions for RTNLGRP_* pub const RTMGRP_LINK: ::c_int = 0x00001; pub const RTMGRP_NOTIFY: ::c_int = 0x00002; @@ -3160,33 +3009,6 @@ pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14; pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0; pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1; -pub const HWTSTAMP_TX_OFF: ::c_uint = 0; -pub const HWTSTAMP_TX_ON: ::c_uint = 1; -pub const HWTSTAMP_TX_ONESTEP_SYNC: ::c_uint = 2; -pub const HWTSTAMP_TX_ONESTEP_P2P: ::c_uint = 3; - -pub const HWTSTAMP_FILTER_NONE: ::c_uint = 0; -pub const HWTSTAMP_FILTER_ALL: ::c_uint = 1; -pub const HWTSTAMP_FILTER_SOME: ::c_uint = 2; -pub const HWTSTAMP_FILTER_PTP_V1_L4_EVENT: ::c_uint = 3; -pub const HWTSTAMP_FILTER_PTP_V1_L4_SYNC: ::c_uint = 4; -pub const HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ: ::c_uint = 5; -pub const HWTSTAMP_FILTER_PTP_V2_L4_EVENT: ::c_uint = 6; -pub const HWTSTAMP_FILTER_PTP_V2_L4_SYNC: ::c_uint = 7; -pub const HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ: ::c_uint = 8; -pub const HWTSTAMP_FILTER_PTP_V2_L2_EVENT: ::c_uint = 9; -pub const HWTSTAMP_FILTER_PTP_V2_L2_SYNC: ::c_uint = 10; -pub const HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ: ::c_uint = 11; -pub const HWTSTAMP_FILTER_PTP_V2_EVENT: ::c_uint = 12; -pub const HWTSTAMP_FILTER_PTP_V2_SYNC: ::c_uint = 13; -pub const HWTSTAMP_FILTER_PTP_V2_DELAY_REQ: ::c_uint = 14; -pub const HWTSTAMP_FILTER_NTP_ALL: ::c_uint = 15; - -// linux/tls.h -pub const TLS_GET_RECORD_TYPE: ::c_int = 2; - -pub const SOL_TLS: ::c_int = 282; - // linux/if_alg.h pub const ALG_SET_KEY: ::c_int = 1; pub const ALG_SET_IV: ::c_int = 2; @@ -3197,19 +3019,6 @@ pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5; pub const ALG_OP_DECRYPT: ::c_int = 0; pub const ALG_OP_ENCRYPT: ::c_int = 1; -// include/uapi/linux/if.h -pub const IF_OPER_UNKNOWN: ::c_int = 0; -pub const IF_OPER_NOTPRESENT: ::c_int = 1; -pub const IF_OPER_DOWN: ::c_int = 2; -pub const IF_OPER_LOWERLAYERDOWN: ::c_int = 3; -pub const IF_OPER_TESTING: ::c_int = 4; -pub const IF_OPER_DORMANT: ::c_int = 5; -pub const IF_OPER_UP: ::c_int = 6; - -pub const IF_LINK_MODE_DEFAULT: ::c_int = 0; -pub const IF_LINK_MODE_DORMANT: ::c_int = 1; -pub const IF_LINK_MODE_TESTING: ::c_int = 2; - // include/uapi/linux/udp.h pub const UDP_CORK: ::c_int = 1; pub const UDP_ENCAP: ::c_int = 100; @@ -3323,10 +3132,6 @@ pub const IN_ALL_EVENTS: u32 = IN_ACCESS pub const IN_CLOEXEC: ::c_int = O_CLOEXEC; pub const IN_NONBLOCK: ::c_int = O_NONBLOCK; -// uapi/linux/mount.h -pub const OPEN_TREE_CLONE: ::c_uint = 0x01; -pub const OPEN_TREE_CLOEXEC: ::c_uint = O_CLOEXEC as ::c_uint; - // uapi/linux/netfilter/nf_tables.h pub const NFT_TABLE_MAXNAMELEN: ::c_int = 256; pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 256; @@ -3608,35 +3413,6 @@ pub const FUTEX_PRIVATE_FLAG: ::c_int = 128; pub const FUTEX_CLOCK_REALTIME: ::c_int = 256; pub const FUTEX_CMD_MASK: ::c_int = !(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME); -pub const FUTEX_BITSET_MATCH_ANY: ::c_int = 0xffffffff; - -pub const FUTEX_OP_SET: ::c_int = 0; -pub const FUTEX_OP_ADD: ::c_int = 1; -pub const FUTEX_OP_OR: ::c_int = 2; -pub const FUTEX_OP_ANDN: ::c_int = 3; -pub const FUTEX_OP_XOR: ::c_int = 4; - -pub const FUTEX_OP_OPARG_SHIFT: ::c_int = 8; - -pub const FUTEX_OP_CMP_EQ: ::c_int = 0; -pub const FUTEX_OP_CMP_NE: ::c_int = 1; -pub const FUTEX_OP_CMP_LT: ::c_int = 2; -pub const FUTEX_OP_CMP_LE: ::c_int = 3; -pub const FUTEX_OP_CMP_GT: ::c_int = 4; -pub const FUTEX_OP_CMP_GE: ::c_int = 5; - -pub fn FUTEX_OP(op: ::c_int, oparg: ::c_int, cmp: ::c_int, cmparg: ::c_int) -> ::c_int { - ((op & 0xf) << 28) | ((cmp & 0xf) << 24) | ((oparg & 0xfff) << 12) | (cmparg & 0xfff) -} - -// linux/kexec.h -pub const KEXEC_ON_CRASH: ::c_int = 0x00000001; -pub const KEXEC_PRESERVE_CONTEXT: ::c_int = 0x00000002; -pub const KEXEC_ARCH_MASK: ::c_int = 0xffff0000; -pub const KEXEC_FILE_UNLOAD: ::c_int = 0x00000001; -pub const KEXEC_FILE_ON_CRASH: ::c_int = 0x00000002; -pub const KEXEC_FILE_NO_INITRAMFS: ::c_int = 0x00000004; - // linux/reboot.h pub const LINUX_REBOOT_MAGIC1: ::c_int = 0xfee1dead; pub const LINUX_REBOOT_MAGIC2: ::c_int = 672274793; @@ -3728,11 +3504,9 @@ pub const CAN_ERR_FLAG: canid_t = 0x20000000; pub const CAN_SFF_MASK: canid_t = 0x000007FF; pub const CAN_EFF_MASK: canid_t = 0x1FFFFFFF; pub const CAN_ERR_MASK: canid_t = 0x1FFFFFFF; -pub const CANXL_PRIO_MASK: ::canid_t = CAN_SFF_MASK; pub const CAN_SFF_ID_BITS: ::c_int = 11; pub const CAN_EFF_ID_BITS: ::c_int = 29; -pub const CANXL_PRIO_BITS: ::c_int = CAN_SFF_ID_BITS; pub const CAN_MAX_DLC: ::c_int = 8; pub const CAN_MAX_DLEN: usize = 8; @@ -3742,26 +3516,10 @@ pub const CANFD_MAX_DLEN: usize = 64; pub const CANFD_BRS: ::c_int = 0x01; pub const CANFD_ESI: ::c_int = 0x02; -pub const CANXL_MIN_DLC: ::c_int = 0; -pub const CANXL_MAX_DLC: ::c_int = 2047; -pub const CANXL_MAX_DLC_MASK: ::c_int = 0x07FF; -pub const CANXL_MIN_DLEN: usize = 1; -pub const CANXL_MAX_DLEN: usize = 2048; - -pub const CANXL_XLF: ::c_int = 0x80; -pub const CANXL_SEC: ::c_int = 0x01; - cfg_if! { if #[cfg(libc_align)] { pub const CAN_MTU: usize = ::mem::size_of::(); pub const CANFD_MTU: usize = ::mem::size_of::(); - pub const CANXL_MTU: usize = ::mem::size_of::(); - // FIXME: use `core::mem::offset_of!` once that is available - // https://github.com/rust-lang/rfcs/pull/3308 - // pub const CANXL_HDR_SIZE: usize = core::mem::offset_of!(canxl_frame, data); - pub const CANXL_HDR_SIZE: usize = 12; - pub const CANXL_MIN_MTU: usize = CANXL_HDR_SIZE + 64; - pub const CANXL_MAX_MTU: usize = CANXL_MTU; } } @@ -3787,7 +3545,6 @@ pub const CAN_RAW_LOOPBACK: ::c_int = 3; pub const CAN_RAW_RECV_OWN_MSGS: ::c_int = 4; pub const CAN_RAW_FD_FRAMES: ::c_int = 5; pub const CAN_RAW_JOIN_FILTERS: ::c_int = 6; -pub const CAN_RAW_XL_FRAMES: ::c_int = 7; // linux/can/j1939.h pub const SOL_CAN_J1939: ::c_int = SOL_CAN_BASE + CAN_J1939; @@ -3830,103 +3587,6 @@ pub const J1939_EE_INFO_RX_ABORT: ::c_int = 4; pub const J1939_FILTER_MAX: ::c_int = 512; -// linux/sctp.h -pub const SCTP_FUTURE_ASSOC: ::c_int = 0; -pub const SCTP_CURRENT_ASSOC: ::c_int = 1; -pub const SCTP_ALL_ASSOC: ::c_int = 2; -pub const SCTP_RTOINFO: ::c_int = 0; -pub const SCTP_ASSOCINFO: ::c_int = 1; -pub const SCTP_INITMSG: ::c_int = 2; -pub const SCTP_NODELAY: ::c_int = 3; -pub const SCTP_AUTOCLOSE: ::c_int = 4; -pub const SCTP_SET_PEER_PRIMARY_ADDR: ::c_int = 5; -pub const SCTP_PRIMARY_ADDR: ::c_int = 6; -pub const SCTP_ADAPTATION_LAYER: ::c_int = 7; -pub const SCTP_DISABLE_FRAGMENTS: ::c_int = 8; -pub const SCTP_PEER_ADDR_PARAMS: ::c_int = 9; -pub const SCTP_DEFAULT_SEND_PARAM: ::c_int = 10; -pub const SCTP_EVENTS: ::c_int = 11; -pub const SCTP_I_WANT_MAPPED_V4_ADDR: ::c_int = 12; -pub const SCTP_MAXSEG: ::c_int = 13; -pub const SCTP_STATUS: ::c_int = 14; -pub const SCTP_GET_PEER_ADDR_INFO: ::c_int = 15; -pub const SCTP_DELAYED_ACK_TIME: ::c_int = 16; -pub const SCTP_DELAYED_ACK: ::c_int = SCTP_DELAYED_ACK_TIME; -pub const SCTP_DELAYED_SACK: ::c_int = SCTP_DELAYED_ACK_TIME; -pub const SCTP_CONTEXT: ::c_int = 17; -pub const SCTP_FRAGMENT_INTERLEAVE: ::c_int = 18; -pub const SCTP_PARTIAL_DELIVERY_POINT: ::c_int = 19; -pub const SCTP_MAX_BURST: ::c_int = 20; -pub const SCTP_AUTH_CHUNK: ::c_int = 21; -pub const SCTP_HMAC_IDENT: ::c_int = 22; -pub const SCTP_AUTH_KEY: ::c_int = 23; -pub const SCTP_AUTH_ACTIVE_KEY: ::c_int = 24; -pub const SCTP_AUTH_DELETE_KEY: ::c_int = 25; -pub const SCTP_PEER_AUTH_CHUNKS: ::c_int = 26; -pub const SCTP_LOCAL_AUTH_CHUNKS: ::c_int = 27; -pub const SCTP_GET_ASSOC_NUMBER: ::c_int = 28; -pub const SCTP_GET_ASSOC_ID_LIST: ::c_int = 29; -pub const SCTP_AUTO_ASCONF: ::c_int = 30; -pub const SCTP_PEER_ADDR_THLDS: ::c_int = 31; -pub const SCTP_RECVRCVINFO: ::c_int = 32; -pub const SCTP_RECVNXTINFO: ::c_int = 33; -pub const SCTP_DEFAULT_SNDINFO: ::c_int = 34; -pub const SCTP_AUTH_DEACTIVATE_KEY: ::c_int = 35; -pub const SCTP_REUSE_PORT: ::c_int = 36; -pub const SCTP_PEER_ADDR_THLDS_V2: ::c_int = 37; -pub const SCTP_PR_SCTP_NONE: ::c_int = 0x0000; -pub const SCTP_PR_SCTP_TTL: ::c_int = 0x0010; -pub const SCTP_PR_SCTP_RTX: ::c_int = 0x0020; -pub const SCTP_PR_SCTP_PRIO: ::c_int = 0x0030; -pub const SCTP_PR_SCTP_MAX: ::c_int = SCTP_PR_SCTP_PRIO; -pub const SCTP_PR_SCTP_MASK: ::c_int = 0x0030; -pub const SCTP_ENABLE_RESET_STREAM_REQ: ::c_int = 0x01; -pub const SCTP_ENABLE_RESET_ASSOC_REQ: ::c_int = 0x02; -pub const SCTP_ENABLE_CHANGE_ASSOC_REQ: ::c_int = 0x04; -pub const SCTP_ENABLE_STRRESET_MASK: ::c_int = 0x07; -pub const SCTP_STREAM_RESET_INCOMING: ::c_int = 0x01; -pub const SCTP_STREAM_RESET_OUTGOING: ::c_int = 0x02; - -pub const SCTP_INIT: ::c_int = 0; -pub const SCTP_SNDRCV: ::c_int = 1; -pub const SCTP_SNDINFO: ::c_int = 2; -pub const SCTP_RCVINFO: ::c_int = 3; -pub const SCTP_NXTINFO: ::c_int = 4; -pub const SCTP_PRINFO: ::c_int = 5; -pub const SCTP_AUTHINFO: ::c_int = 6; -pub const SCTP_DSTADDRV4: ::c_int = 7; -pub const SCTP_DSTADDRV6: ::c_int = 8; - -pub const SCTP_UNORDERED: ::c_int = 1 << 0; -pub const SCTP_ADDR_OVER: ::c_int = 1 << 1; -pub const SCTP_ABORT: ::c_int = 1 << 2; -pub const SCTP_SACK_IMMEDIATELY: ::c_int = 1 << 3; -pub const SCTP_SENDALL: ::c_int = 1 << 6; -pub const SCTP_PR_SCTP_ALL: ::c_int = 1 << 7; -pub const SCTP_NOTIFICATION: ::c_int = MSG_NOTIFICATION; -pub const SCTP_EOF: ::c_int = ::MSG_FIN; - -/* DCCP socket options */ -pub const DCCP_SOCKOPT_PACKET_SIZE: ::c_int = 1; -pub const DCCP_SOCKOPT_SERVICE: ::c_int = 2; -pub const DCCP_SOCKOPT_CHANGE_L: ::c_int = 3; -pub const DCCP_SOCKOPT_CHANGE_R: ::c_int = 4; -pub const DCCP_SOCKOPT_GET_CUR_MPS: ::c_int = 5; -pub const DCCP_SOCKOPT_SERVER_TIMEWAIT: ::c_int = 6; -pub const DCCP_SOCKOPT_SEND_CSCOV: ::c_int = 10; -pub const DCCP_SOCKOPT_RECV_CSCOV: ::c_int = 11; -pub const DCCP_SOCKOPT_AVAILABLE_CCIDS: ::c_int = 12; -pub const DCCP_SOCKOPT_CCID: ::c_int = 13; -pub const DCCP_SOCKOPT_TX_CCID: ::c_int = 14; -pub const DCCP_SOCKOPT_RX_CCID: ::c_int = 15; -pub const DCCP_SOCKOPT_QPOLICY_ID: ::c_int = 16; -pub const DCCP_SOCKOPT_QPOLICY_TXQLEN: ::c_int = 17; -pub const DCCP_SOCKOPT_CCID_RX_INFO: ::c_int = 128; -pub const DCCP_SOCKOPT_CCID_TX_INFO: ::c_int = 192; - -/// maximum number of services provided on the same listening port -pub const DCCP_SERVICE_LIST_MAX_LEN: ::c_int = 32; - f! { pub fn NLA_ALIGN(len: ::c_int) -> ::c_int { return ((len) + NLA_ALIGNTO - 1) & !(NLA_ALIGNTO - 1) @@ -4002,20 +3662,6 @@ f! { set1.bits == set2.bits } - pub fn SCTP_PR_INDEX(policy: ::c_int) -> ::c_int { - policy >> 4 - 1 - } - - pub fn SCTP_PR_POLICY(policy: ::c_int) -> ::c_int { - policy & SCTP_PR_SCTP_MASK - } - - pub fn SCTP_PR_SET_POLICY(flags: &mut ::c_int, policy: ::c_int) -> () { - *flags &= !SCTP_PR_SCTP_MASK; - *flags |= policy; - () - } - pub fn major(dev: ::dev_t) -> ::c_uint { let mut major = 0; major |= (dev & 0x00000000000fff00) >> 8; @@ -4082,22 +3728,10 @@ safe_f! { dev |= (minor & 0xffffff00) << 12; dev } - - pub {const} fn SCTP_PR_TTL_ENABLED(policy: ::c_int) -> bool { - policy == SCTP_PR_SCTP_TTL - } - - pub {const} fn SCTP_PR_RTX_ENABLED(policy: ::c_int) -> bool { - policy == SCTP_PR_SCTP_RTX - } - - pub {const} fn SCTP_PR_PRIO_ENABLED(policy: ::c_int) -> bool { - policy == SCTP_PR_SCTP_PRIO - } } cfg_if! { - if #[cfg(all(not(target_env = "uclibc"), not(target_env = "ohos")))] { + if #[cfg(not(target_env = "uclibc"))] { extern "C" { pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int; pub fn aio_write(aiocbp: *mut aiocb) -> ::c_int; @@ -4116,13 +3750,6 @@ cfg_if! { nitems: ::c_int, sevp: *mut ::sigevent, ) -> ::c_int; - } - } -} - -cfg_if! { - if #[cfg(not(target_env = "uclibc"))] { - extern "C" { pub fn pwritev( fd: ::c_int, iov: *const ::iovec, @@ -4172,79 +3799,8 @@ cfg_if! { } } -// These functions are not available on OpenHarmony -cfg_if! { - if #[cfg(not(target_env = "ohos"))] { - extern "C" { - // Only `getspnam_r` is implemented for musl, out of all of the reenterant - // functions from `shadow.h`. - // https://git.musl-libc.org/cgit/musl/tree/include/shadow.h - pub fn getspnam_r( - name: *const ::c_char, - spbuf: *mut spwd, - buf: *mut ::c_char, - buflen: ::size_t, - spbufp: *mut *mut spwd, - ) -> ::c_int; - - pub fn shm_open(name: *const c_char, oflag: ::c_int, mode: mode_t) -> ::c_int; - pub fn shm_unlink(name: *const ::c_char) -> ::c_int; - - pub fn mq_open(name: *const ::c_char, oflag: ::c_int, ...) -> ::mqd_t; - pub fn mq_close(mqd: ::mqd_t) -> ::c_int; - pub fn mq_unlink(name: *const ::c_char) -> ::c_int; - pub fn mq_receive( - mqd: ::mqd_t, - msg_ptr: *mut ::c_char, - msg_len: ::size_t, - msg_prio: *mut ::c_uint, - ) -> ::ssize_t; - pub fn mq_timedreceive( - mqd: ::mqd_t, - msg_ptr: *mut ::c_char, - msg_len: ::size_t, - msg_prio: *mut ::c_uint, - abs_timeout: *const ::timespec, - ) -> ::ssize_t; - pub fn mq_send( - mqd: ::mqd_t, - msg_ptr: *const ::c_char, - msg_len: ::size_t, - msg_prio: ::c_uint, - ) -> ::c_int; - pub fn mq_timedsend( - mqd: ::mqd_t, - msg_ptr: *const ::c_char, - msg_len: ::size_t, - msg_prio: ::c_uint, - abs_timeout: *const ::timespec, - ) -> ::c_int; - pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; - pub fn mq_setattr( - mqd: ::mqd_t, - newattr: *const ::mq_attr, - oldattr: *mut ::mq_attr - ) -> ::c_int; - - pub fn pthread_mutex_consistent(mutex: *mut pthread_mutex_t) -> ::c_int; - pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int; - pub fn pthread_mutexattr_getrobust( - attr: *const pthread_mutexattr_t, - robustness: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_mutexattr_setrobust( - attr: *mut pthread_mutexattr_t, - robustness: ::c_int, - ) -> ::c_int; - } - } -} - extern "C" { - #[cfg_attr( - not(any(target_env = "musl", target_env = "ohos")), - link_name = "__xpg_strerror_r" - )] + #[cfg_attr(not(target_env = "musl"), link_name = "__xpg_strerror_r")] pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int; pub fn abs(i: ::c_int) -> ::c_int; @@ -4275,6 +3831,18 @@ extern "C" { pub fn getspent() -> *mut spwd; pub fn getspnam(name: *const ::c_char) -> *mut spwd; + // Only `getspnam_r` is implemented for musl, out of all of the reenterant + // functions from `shadow.h`. + // https://git.musl-libc.org/cgit/musl/tree/include/shadow.h + pub fn getspnam_r( + name: *const ::c_char, + spbuf: *mut spwd, + buf: *mut ::c_char, + buflen: ::size_t, + spbufp: *mut *mut spwd, + ) -> ::c_int; + + pub fn shm_open(name: *const c_char, oflag: ::c_int, mode: mode_t) -> ::c_int; // System V IPC pub fn shmget(key: ::key_t, size: ::size_t, shmflg: ::c_int) -> ::c_int; @@ -4304,8 +3872,21 @@ extern "C" { pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int) -> ::c_int; pub fn __errno_location() -> *mut ::c_int; + pub fn fopen64(filename: *const c_char, mode: *const c_char) -> *mut ::FILE; + pub fn freopen64( + filename: *const c_char, + mode: *const c_char, + file: *mut ::FILE, + ) -> *mut ::FILE; + pub fn tmpfile64() -> *mut ::FILE; + pub fn fgetpos64(stream: *mut ::FILE, ptr: *mut fpos64_t) -> ::c_int; + pub fn fsetpos64(stream: *mut ::FILE, ptr: *const fpos64_t) -> ::c_int; + pub fn fseeko64(stream: *mut ::FILE, offset: ::off64_t, whence: ::c_int) -> ::c_int; + pub fn ftello64(stream: *mut ::FILE) -> ::off64_t; pub fn fallocate(fd: ::c_int, mode: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; + pub fn fallocate64(fd: ::c_int, mode: ::c_int, offset: ::off64_t, len: ::off64_t) -> ::c_int; pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; + pub fn posix_fallocate64(fd: ::c_int, offset: ::off64_t, len: ::off64_t) -> ::c_int; pub fn readahead(fd: ::c_int, offset: ::off64_t, count: ::size_t) -> ::ssize_t; pub fn getxattr( path: *const c_char, @@ -4367,6 +3948,37 @@ extern "C" { id: ::c_int, data: *mut ::c_char, ) -> ::c_int; + pub fn mq_open(name: *const ::c_char, oflag: ::c_int, ...) -> ::mqd_t; + pub fn mq_close(mqd: ::mqd_t) -> ::c_int; + pub fn mq_unlink(name: *const ::c_char) -> ::c_int; + pub fn mq_receive( + mqd: ::mqd_t, + msg_ptr: *mut ::c_char, + msg_len: ::size_t, + msg_prio: *mut ::c_uint, + ) -> ::ssize_t; + pub fn mq_timedreceive( + mqd: ::mqd_t, + msg_ptr: *mut ::c_char, + msg_len: ::size_t, + msg_prio: *mut ::c_uint, + abs_timeout: *const ::timespec, + ) -> ::ssize_t; + pub fn mq_send( + mqd: ::mqd_t, + msg_ptr: *const ::c_char, + msg_len: ::size_t, + msg_prio: ::c_uint, + ) -> ::c_int; + pub fn mq_timedsend( + mqd: ::mqd_t, + msg_ptr: *const ::c_char, + msg_len: ::size_t, + msg_prio: ::c_uint, + abs_timeout: *const ::timespec, + ) -> ::c_int; + pub fn mq_getattr(mqd: ::mqd_t, attr: *mut ::mq_attr) -> ::c_int; + pub fn mq_setattr(mqd: ::mqd_t, newattr: *const ::mq_attr, oldattr: *mut ::mq_attr) -> ::c_int; pub fn epoll_pwait( epfd: ::c_int, events: *mut ::epoll_event, @@ -4433,6 +4045,8 @@ extern "C" { pub fn posix_madvise(addr: *mut ::c_void, len: ::size_t, advice: ::c_int) -> ::c_int; + pub fn shm_unlink(name: *const ::c_char) -> ::c_int; + pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long); pub fn telldir(dirp: *mut ::DIR) -> ::c_long; @@ -4536,28 +4150,11 @@ extern "C" { attr: *mut pthread_mutexattr_t, protocol: ::c_int, ) -> ::c_int; - + pub fn pthread_mutex_consistent(mutex: *mut pthread_mutex_t) -> ::c_int; pub fn pthread_mutex_timedlock( lock: *mut pthread_mutex_t, abstime: *const ::timespec, ) -> ::c_int; - pub fn pthread_barrierattr_init(attr: *mut ::pthread_barrierattr_t) -> ::c_int; - pub fn pthread_barrierattr_destroy(attr: *mut ::pthread_barrierattr_t) -> ::c_int; - pub fn pthread_barrierattr_getpshared( - attr: *const ::pthread_barrierattr_t, - shared: *mut ::c_int, - ) -> ::c_int; - pub fn pthread_barrierattr_setpshared( - attr: *mut ::pthread_barrierattr_t, - shared: ::c_int, - ) -> ::c_int; - pub fn pthread_barrier_init( - barrier: *mut pthread_barrier_t, - attr: *const ::pthread_barrierattr_t, - count: ::c_uint, - ) -> ::c_int; - pub fn pthread_barrier_destroy(barrier: *mut pthread_barrier_t) -> ::c_int; - pub fn pthread_barrier_wait(barrier: *mut pthread_barrier_t) -> ::c_int; pub fn pthread_spin_init(lock: *mut ::pthread_spinlock_t, pshared: ::c_int) -> ::c_int; pub fn pthread_spin_destroy(lock: *mut ::pthread_spinlock_t) -> ::c_int; pub fn pthread_spin_lock(lock: *mut ::pthread_spinlock_t) -> ::c_int; @@ -4606,6 +4203,12 @@ extern "C" { offset: *mut off_t, count: ::size_t, ) -> ::ssize_t; + pub fn sendfile64( + out_fd: ::c_int, + in_fd: ::c_int, + offset: *mut off64_t, + count: ::size_t, + ) -> ::ssize_t; pub fn sigsuspend(mask: *const ::sigset_t) -> ::c_int; pub fn getgrgid_r( gid: ::gid_t, @@ -4628,6 +4231,7 @@ extern "C" { pub fn pthread_sigmask(how: ::c_int, set: *const sigset_t, oldset: *mut sigset_t) -> ::c_int; pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t; pub fn getgrnam(name: *const ::c_char) -> *mut ::group; + pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int; pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int; pub fn sem_unlink(name: *const ::c_char) -> ::c_int; pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int; @@ -4662,6 +4266,14 @@ extern "C" { attr: *const pthread_mutexattr_t, pshared: *mut ::c_int, ) -> ::c_int; + pub fn pthread_mutexattr_getrobust( + attr: *const pthread_mutexattr_t, + robustness: *mut ::c_int, + ) -> ::c_int; + pub fn pthread_mutexattr_setrobust( + attr: *mut pthread_mutexattr_t, + robustness: ::c_int, + ) -> ::c_int; pub fn popen(command: *const c_char, mode: *const c_char) -> *mut ::FILE; pub fn faccessat( dirfd: ::c_int, @@ -4846,56 +4458,13 @@ extern "C" { longopts: *const option, longindex: *mut ::c_int, ) -> ::c_int; - - pub fn copy_file_range( - fd_in: ::c_int, - off_in: *mut ::off64_t, - fd_out: ::c_int, - off_out: *mut ::off64_t, - len: ::size_t, - flags: ::c_uint, - ) -> ::ssize_t; -} - -// LFS64 extensions -// -// * musl has 64-bit versions only so aliases the LFS64 symbols to the standard ones -cfg_if! { - if #[cfg(not(target_env = "musl"))] { - extern "C" { - pub fn fallocate64( - fd: ::c_int, - mode: ::c_int, - offset: ::off64_t, - len: ::off64_t - ) -> ::c_int; - pub fn fgetpos64(stream: *mut ::FILE, ptr: *mut fpos64_t) -> ::c_int; - pub fn fopen64(filename: *const c_char, mode: *const c_char) -> *mut ::FILE; - pub fn freopen64( - filename: *const c_char, - mode: *const c_char, - file: *mut ::FILE, - ) -> *mut ::FILE; - pub fn fseeko64(stream: *mut ::FILE, offset: ::off64_t, whence: ::c_int) -> ::c_int; - pub fn fsetpos64(stream: *mut ::FILE, ptr: *const fpos64_t) -> ::c_int; - pub fn ftello64(stream: *mut ::FILE) -> ::off64_t; - pub fn posix_fallocate64(fd: ::c_int, offset: ::off64_t, len: ::off64_t) -> ::c_int; - pub fn sendfile64( - out_fd: ::c_int, - in_fd: ::c_int, - offset: *mut off64_t, - count: ::size_t, - ) -> ::ssize_t; - pub fn tmpfile64() -> *mut ::FILE; - } - } } cfg_if! { if #[cfg(target_env = "uclibc")] { mod uclibc; pub use self::uclibc::*; - } else if #[cfg(any(target_env = "musl", target_env = "ohos"))] { + } else if #[cfg(target_env = "musl")] { mod musl; pub use self::musl::*; } else if #[cfg(target_env = "gnu")] { diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mips/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mips/mod.rs index d09b8278e5f1..40b507bcd063 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mips/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mips/mod.rs @@ -261,7 +261,6 @@ pub const MAP_NORESERVE: ::c_int = 0x0400; pub const MAP_POPULATE: ::c_int = 0x10000; pub const MAP_NONBLOCK: ::c_int = 0x20000; pub const MAP_STACK: ::c_int = 0x40000; -pub const MAP_HUGETLB: ::c_int = 0x80000; pub const EDEADLK: ::c_int = 45; pub const ENAMETOOLONG: ::c_int = 78; @@ -383,6 +382,8 @@ pub const SIG_UNBLOCK: ::c_int = 2; pub const EXTPROC: ::tcflag_t = 0o200000; +pub const MAP_HUGETLB: ::c_int = 0x80000; + pub const F_GETLK: ::c_int = 33; pub const F_GETOWN: ::c_int = 23; pub const F_SETLK: ::c_int = 34; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mod.rs index cecd6dcab7df..63824fbf561e 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/mod.rs @@ -38,7 +38,6 @@ s! { pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 20; cfg_if! { if #[cfg(any(target_arch = "x86"))] { diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/powerpc.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/powerpc.rs index ec4f2047e46b..5b1bf17ed8c2 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/powerpc.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/powerpc.rs @@ -254,11 +254,6 @@ pub const MAP_NORESERVE: ::c_int = 0x00040; pub const MAP_POPULATE: ::c_int = 0x08000; pub const MAP_NONBLOCK: ::c_int = 0x010000; pub const MAP_STACK: ::c_int = 0x020000; -pub const MAP_HUGETLB: ::c_int = 0x040000; -pub const MAP_SYNC: ::c_int = 0x080000; - -pub const PTRACE_SYSEMU: ::c_int = 0x1d; -pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 0x1e; pub const SOCK_STREAM: ::c_int = 1; pub const SOCK_DGRAM: ::c_int = 2; @@ -380,6 +375,8 @@ pub const SIG_UNBLOCK: ::c_int = 0x01; pub const EXTPROC: ::tcflag_t = 0x10000000; +pub const MAP_HUGETLB: ::c_int = 0x040000; + pub const F_GETLK: ::c_int = 12; pub const F_GETOWN: ::c_int = 9; pub const F_SETLK: ::c_int = 13; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/riscv32/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/riscv32/mod.rs index bf7a4f59c794..573624620728 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/riscv32/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/riscv32/mod.rs @@ -184,6 +184,22 @@ s! { __pad1: ::c_ulong, __pad2: ::c_ulong, } + + pub struct flock { + pub l_type: ::c_short, + pub l_whence: ::c_short, + pub l_start: ::off_t, + pub l_len: ::off_t, + pub l_pid: ::pid_t, + } + + pub struct flock64 { + pub l_type: ::c_short, + pub l_whence: ::c_short, + pub l_start: ::off64_t, + pub l_len: ::off64_t, + pub l_pid: ::pid_t, + } } //pub const RLIM_INFINITY: ::rlim_t = !0; @@ -350,7 +366,6 @@ pub const TIOCM_DSR: ::c_int = 256; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const O_DIRECT: ::c_int = 16384; pub const O_DIRECTORY: ::c_int = 65536; pub const O_NOFOLLOW: ::c_int = 131072; @@ -489,7 +504,6 @@ pub const TIOCSWINSZ: ::c_int = 21524; pub const FIONREAD: ::c_int = 21531; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const SYS_read: ::c_long = 63; pub const SYS_write: ::c_long = 64; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/x86/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/x86/mod.rs index aaca917fa03c..c319b91b6143 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/x86/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b32/x86/mod.rs @@ -456,9 +456,6 @@ pub const FLUSHO: ::tcflag_t = 0x00001000; pub const POLLWRNORM: ::c_short = 0x100; pub const POLLWRBAND: ::c_short = 0x200; -pub const PTRACE_SYSEMU: ::c_int = 31; -pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 32; - // Syscall table pub const SYS_restart_syscall: ::c_long = 0; pub const SYS_exit: ::c_long = 1; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/mod.rs index f437355d900c..34c63bc69cc8 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/mod.rs @@ -132,7 +132,6 @@ s! { pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const SOCK_NONBLOCK: ::c_int = 2048; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/powerpc64.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/powerpc64.rs index c9bd94135c9a..0bb4cf837d26 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/powerpc64.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/powerpc64.rs @@ -173,9 +173,6 @@ pub const MAP_STACK: ::c_int = 0x020000; pub const MAP_HUGETLB: ::c_int = 0x040000; pub const MAP_SYNC: ::c_int = 0x080000; -pub const PTRACE_SYSEMU: ::c_int = 0x1d; -pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 0x1e; - pub const SOCK_STREAM: ::c_int = 1; pub const SOCK_DGRAM: ::c_int = 2; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs index 9e9dbf6c8309..f354293e0d05 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs @@ -173,6 +173,22 @@ s! { __unused5: ::c_ulong, __unused6: ::c_ulong, } + + pub struct flock { + pub l_type: ::c_short, + pub l_whence: ::c_short, + pub l_start: ::off_t, + pub l_len: ::off_t, + pub l_pid: ::pid_t, + } + + pub struct flock64 { + pub l_type: ::c_short, + pub l_whence: ::c_short, + pub l_start: ::off64_t, + pub l_len: ::off64_t, + pub l_pid: ::pid_t, + } } pub const SYS_read: ::c_long = 63; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/s390x.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/s390x.rs index f338dcc54a7e..60bfc8d3e0b2 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/s390x.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/s390x.rs @@ -60,33 +60,33 @@ s! { } pub struct statfs { - pub f_type: ::c_uint, - pub f_bsize: ::c_uint, + pub f_type: ::c_ulong, + pub f_bsize: ::c_ulong, pub f_blocks: ::fsblkcnt_t, pub f_bfree: ::fsblkcnt_t, pub f_bavail: ::fsblkcnt_t, pub f_files: ::fsfilcnt_t, pub f_ffree: ::fsfilcnt_t, pub f_fsid: ::fsid_t, - pub f_namelen: ::c_uint, - pub f_frsize: ::c_uint, - pub f_flags: ::c_uint, - pub f_spare: [::c_uint; 4], + pub f_namelen: ::c_ulong, + pub f_frsize: ::c_ulong, + pub f_flags: ::c_ulong, + pub f_spare: [::c_ulong; 4], } pub struct statfs64 { - pub f_type: ::c_uint, - pub f_bsize: ::c_uint, + pub f_type: ::c_ulong, + pub f_bsize: ::c_ulong, pub f_blocks: ::fsblkcnt_t, pub f_bfree: ::fsblkcnt_t, pub f_bavail: ::fsblkcnt_t, pub f_files: ::fsfilcnt_t, pub f_ffree: ::fsfilcnt_t, pub f_fsid: ::fsid_t, - pub f_namelen: ::c_uint, - pub f_frsize: ::c_uint, - pub f_flags: ::c_uint, - pub f_spare: [::c_uint; 4], + pub f_namelen: ::c_ulong, + pub f_frsize: ::c_ulong, + pub f_flags: ::c_ulong, + pub f_spare: [::c_ulong; 4], } } @@ -145,7 +145,6 @@ pub const ETIMEDOUT: ::c_int = 110; pub const O_APPEND: ::c_int = 1024; pub const O_CREAT: ::c_int = 64; pub const O_EXCL: ::c_int = 128; -pub const O_LARGEFILE: ::c_int = 0x8000; pub const O_NONBLOCK: ::c_int = 2048; pub const SA_NOCLDWAIT: ::c_int = 2; pub const SA_ONSTACK: ::c_int = 0x08000000; @@ -178,10 +177,6 @@ pub const MAP_POPULATE: ::c_int = 0x08000; pub const MAP_NONBLOCK: ::c_int = 0x010000; pub const MAP_STACK: ::c_int = 0x020000; pub const MAP_HUGETLB: ::c_int = 0x040000; -pub const MAP_SYNC: ::c_int = 0x080000; - -pub const PTRACE_SYSEMU: ::c_int = 31; -pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 32; pub const EDEADLOCK: ::c_int = 35; pub const ENAMETOOLONG: ::c_int = 36; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/x86_64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/x86_64/mod.rs index 9decf91bcc63..8198dc2f3516 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/x86_64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/b64/x86_64/mod.rs @@ -682,9 +682,6 @@ pub const O_RSYNC: ::c_int = 1052672; pub const O_DSYNC: ::c_int = 4096; pub const O_ASYNC: ::c_int = 0x2000; -pub const PTRACE_SYSEMU: ::c_int = 31; -pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 32; - pub const SIGSTKSZ: ::size_t = 8192; pub const MINSIGSTKSZ: ::size_t = 2048; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/lfs64.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/lfs64.rs deleted file mode 100644 index 27c1d25836d6..000000000000 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/lfs64.rs +++ /dev/null @@ -1,241 +0,0 @@ -#[inline] -pub unsafe extern "C" fn creat64(path: *const ::c_char, mode: ::mode_t) -> ::c_int { - ::creat(path, mode) -} - -#[inline] -pub unsafe extern "C" fn fallocate64( - fd: ::c_int, - mode: ::c_int, - offset: ::off64_t, - len: ::off64_t, -) -> ::c_int { - ::fallocate(fd, mode, offset, len) -} - -#[inline] -pub unsafe extern "C" fn fgetpos64(stream: *mut ::FILE, pos: *mut ::fpos64_t) -> ::c_int { - ::fgetpos(stream, pos as *mut _) -} - -#[inline] -pub unsafe extern "C" fn fopen64(pathname: *const ::c_char, mode: *const ::c_char) -> *mut ::FILE { - ::fopen(pathname, mode) -} - -#[inline] -pub unsafe extern "C" fn freopen64( - pathname: *const ::c_char, - mode: *const ::c_char, - stream: *mut ::FILE, -) -> *mut ::FILE { - ::freopen(pathname, mode, stream) -} - -#[inline] -pub unsafe extern "C" fn fseeko64( - stream: *mut ::FILE, - offset: ::off64_t, - whence: ::c_int, -) -> ::c_int { - ::fseeko(stream, offset, whence) -} - -#[inline] -pub unsafe extern "C" fn fsetpos64(stream: *mut ::FILE, pos: *const ::fpos64_t) -> ::c_int { - ::fsetpos(stream, pos as *mut _) -} - -#[inline] -pub unsafe extern "C" fn fstat64(fildes: ::c_int, buf: *mut ::stat64) -> ::c_int { - ::fstat(fildes, buf as *mut _) -} - -#[inline] -pub unsafe extern "C" fn fstatat64( - fd: ::c_int, - path: *const ::c_char, - buf: *mut ::stat64, - flag: ::c_int, -) -> ::c_int { - ::fstatat(fd, path, buf as *mut _, flag) -} - -#[inline] -pub unsafe extern "C" fn fstatfs64(fd: ::c_int, buf: *mut ::statfs64) -> ::c_int { - ::fstatfs(fd, buf as *mut _) -} - -#[inline] -pub unsafe extern "C" fn fstatvfs64(fd: ::c_int, buf: *mut ::statvfs64) -> ::c_int { - ::fstatvfs(fd, buf as *mut _) -} - -#[inline] -pub unsafe extern "C" fn ftello64(stream: *mut ::FILE) -> ::off64_t { - ::ftello(stream) -} - -#[inline] -pub unsafe extern "C" fn ftruncate64(fd: ::c_int, length: ::off64_t) -> ::c_int { - ::ftruncate(fd, length) -} - -#[inline] -pub unsafe extern "C" fn getrlimit64(resource: ::c_int, rlim: *mut ::rlimit64) -> ::c_int { - ::getrlimit(resource, rlim as *mut _) -} - -#[inline] -pub unsafe extern "C" fn lseek64(fd: ::c_int, offset: ::off64_t, whence: ::c_int) -> ::off64_t { - ::lseek(fd, offset, whence) -} - -#[inline] -pub unsafe extern "C" fn lstat64(path: *const ::c_char, buf: *mut ::stat64) -> ::c_int { - ::lstat(path, buf as *mut _) -} - -#[inline] -pub unsafe extern "C" fn mmap64( - addr: *mut ::c_void, - length: ::size_t, - prot: ::c_int, - flags: ::c_int, - fd: ::c_int, - offset: ::off64_t, -) -> *mut ::c_void { - ::mmap(addr, length, prot, flags, fd, offset) -} - -// These functions are variadic in the C ABI since the `mode` argument is "optional". Variadic -// `extern "C"` functions are unstable in Rust so we cannot write a shim function for these -// entrypoints. See https://github.com/rust-lang/rust/issues/44930. -// -// These aliases are mostly fine though, neither function takes a LFS64-namespaced type as an -// argument, nor do their names clash with any declared types. -pub use open as open64; -pub use openat as openat64; - -#[inline] -pub unsafe extern "C" fn posix_fadvise64( - fd: ::c_int, - offset: ::off64_t, - len: ::off64_t, - advice: ::c_int, -) -> ::c_int { - ::posix_fadvise(fd, offset, len, advice) -} - -#[inline] -pub unsafe extern "C" fn posix_fallocate64( - fd: ::c_int, - offset: ::off64_t, - len: ::off64_t, -) -> ::c_int { - ::posix_fallocate(fd, offset, len) -} - -#[inline] -pub unsafe extern "C" fn pread64( - fd: ::c_int, - buf: *mut ::c_void, - count: ::size_t, - offset: ::off64_t, -) -> ::ssize_t { - ::pread(fd, buf, count, offset) -} - -#[inline] -pub unsafe extern "C" fn preadv64( - fd: ::c_int, - iov: *const ::iovec, - iovcnt: ::c_int, - offset: ::off64_t, -) -> ::ssize_t { - ::preadv(fd, iov, iovcnt, offset) -} - -#[inline] -pub unsafe extern "C" fn prlimit64( - pid: ::pid_t, - resource: ::c_int, - new_limit: *const ::rlimit64, - old_limit: *mut ::rlimit64, -) -> ::c_int { - ::prlimit(pid, resource, new_limit as *mut _, old_limit as *mut _) -} - -#[inline] -pub unsafe extern "C" fn pwrite64( - fd: ::c_int, - buf: *const ::c_void, - count: ::size_t, - offset: ::off64_t, -) -> ::ssize_t { - ::pwrite(fd, buf, count, offset) -} - -#[inline] -pub unsafe extern "C" fn pwritev64( - fd: ::c_int, - iov: *const ::iovec, - iovcnt: ::c_int, - offset: ::off64_t, -) -> ::ssize_t { - ::pwritev(fd, iov, iovcnt, offset) -} - -#[inline] -pub unsafe extern "C" fn readdir64(dirp: *mut ::DIR) -> *mut ::dirent64 { - ::readdir(dirp) as *mut _ -} - -#[inline] -pub unsafe extern "C" fn readdir64_r( - dirp: *mut ::DIR, - entry: *mut ::dirent64, - result: *mut *mut ::dirent64, -) -> ::c_int { - ::readdir_r(dirp, entry as *mut _, result as *mut _) -} - -#[inline] -pub unsafe extern "C" fn sendfile64( - out_fd: ::c_int, - in_fd: ::c_int, - offset: *mut ::off64_t, - count: ::size_t, -) -> ::ssize_t { - ::sendfile(out_fd, in_fd, offset, count) -} - -#[inline] -pub unsafe extern "C" fn setrlimit64(resource: ::c_int, rlim: *const ::rlimit64) -> ::c_int { - ::setrlimit(resource, rlim as *mut _) -} - -#[inline] -pub unsafe extern "C" fn stat64(pathname: *const ::c_char, statbuf: *mut ::stat64) -> ::c_int { - ::stat(pathname, statbuf as *mut _) -} - -#[inline] -pub unsafe extern "C" fn statfs64(pathname: *const ::c_char, buf: *mut ::statfs64) -> ::c_int { - ::statfs(pathname, buf as *mut _) -} - -#[inline] -pub unsafe extern "C" fn statvfs64(path: *const ::c_char, buf: *mut ::statvfs64) -> ::c_int { - ::statvfs(path, buf as *mut _) -} - -#[inline] -pub unsafe extern "C" fn tmpfile64() -> *mut ::FILE { - ::tmpfile() -} - -#[inline] -pub unsafe extern "C" fn truncate64(path: *const ::c_char, length: ::off64_t) -> ::c_int { - ::truncate(path, length) -} diff --git a/third_party/rust/libc/src/unix/linux_like/linux/musl/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/musl/mod.rs index 4c605338972e..2a894a602502 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/musl/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/musl/mod.rs @@ -22,6 +22,8 @@ pub type fsblkcnt_t = ::c_ulonglong; pub type fsfilcnt_t = ::c_ulonglong; pub type rlim_t = ::c_ulonglong; +pub type flock64 = flock; + cfg_if! { if #[cfg(doc)] { // Used in `linux::arch` to define ioctl constants. @@ -187,14 +189,6 @@ s! { pub l_pid: ::pid_t, } - pub struct flock64 { - pub l_type: ::c_short, - pub l_whence: ::c_short, - pub l_start: ::off64_t, - pub l_len: ::off64_t, - pub l_pid: ::pid_t, - } - pub struct regex_t { __re_nsub: ::size_t, __opaque: *mut ::c_void, @@ -293,14 +287,12 @@ s_no_extra_traits! { // FIXME: musl added paddings and adjusted // layout in 1.2.0 but our CI is still 1.1.24. - // So, I'm leaving some fields as cfg for now. + // So, I'm leaving some fields as comments for now. // ref. https://github.com/bminor/musl/commit/ // 1e7f0fcd7ff2096904fd93a2ee6d12a2392be392 - // - // OpenHarmony uses the musl 1.2 layout. pub struct utmpx { pub ut_type: ::c_short, - __ut_pad1: ::c_short, + //__ut_pad1: ::c_short, pub ut_pid: ::pid_t, pub ut_line: [::c_char; 32], pub ut_id: [::c_char; 4], @@ -308,22 +300,15 @@ s_no_extra_traits! { pub ut_host: [::c_char; 256], pub ut_exit: __exit_status, - #[cfg(target_env = "musl")] + //#[cfg(target_endian = "little")] pub ut_session: ::c_long, + //#[cfg(target_endian = "little")] + //__ut_pad2: ::c_long, - #[cfg(target_env = "ohos")] - #[cfg(target_endian = "little")] - pub ut_session: ::c_int, - #[cfg(target_env = "ohos")] - #[cfg(target_endian = "little")] - __ut_pad2: ::c_int, - - #[cfg(target_env = "ohos")] - #[cfg(not(target_endian = "little"))] - __ut_pad2: ::c_int, - #[cfg(target_env = "ohos")] - #[cfg(not(target_endian = "little"))] - pub ut_session: ::c_int, + //#[cfg(not(target_endian = "little"))] + //__ut_pad2: ::c_int, + //#[cfg(not(target_endian = "little"))] + //pub ut_session: ::c_int, pub ut_tv: ::timeval, pub ut_addr_v6: [::c_uint; 4], @@ -552,7 +537,6 @@ pub const SIGUNUSED: ::c_int = ::SIGSYS; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const CPU_SETSIZE: ::c_int = 128; @@ -725,6 +709,8 @@ extern "C" { timeout: *mut ::timespec, ) -> ::c_int; + pub fn getrlimit64(resource: ::c_int, rlim: *mut ::rlimit64) -> ::c_int; + pub fn setrlimit64(resource: ::c_int, rlim: *const ::rlimit64) -> ::c_int; pub fn getrlimit(resource: ::c_int, rlim: *mut ::rlimit) -> ::c_int; pub fn setrlimit(resource: ::c_int, rlim: *const ::rlimit) -> ::c_int; pub fn prlimit( @@ -733,6 +719,13 @@ extern "C" { new_limit: *const ::rlimit, old_limit: *mut ::rlimit, ) -> ::c_int; + pub fn prlimit64( + pid: ::pid_t, + resource: ::c_int, + new_limit: *const ::rlimit64, + old_limit: *mut ::rlimit64, + ) -> ::c_int; + pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int; pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int; pub fn ptrace(request: ::c_int, ...) -> ::c_long; @@ -781,10 +774,6 @@ extern "C" { pub fn basename(path: *mut ::c_char) -> *mut ::c_char; } -// Alias to 64 to mimic glibc's LFS64 support -mod lfs64; -pub use self::lfs64::*; - cfg_if! { if #[cfg(any(target_arch = "x86_64", target_arch = "aarch64", diff --git a/third_party/rust/libc/src/unix/linux_like/linux/no_align.rs b/third_party/rust/libc/src/unix/linux_like/linux/no_align.rs index 328a5cc48423..2b5abb3bed4b 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/no_align.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/no_align.rs @@ -5,34 +5,32 @@ macro_rules! expand_align { #[cfg(any(target_arch = "x86_64", target_arch = "powerpc64", target_arch = "mips64", - target_arch = "mips64r6", target_arch = "s390x", target_arch = "sparc64", target_arch = "riscv64", target_arch = "riscv32", target_arch = "loongarch64", all(target_arch = "aarch64", - any(target_env = "musl", target_env = "ohos"))))] + target_env = "musl")))] __align: [::c_int; 0], #[cfg(not(any(target_arch = "x86_64", target_arch = "powerpc64", target_arch = "mips64", - target_arch = "mips64r6", target_arch = "s390x", target_arch = "sparc64", target_arch = "riscv64", target_arch = "riscv32", target_arch = "loongarch64", all(target_arch = "aarch64", - any(target_env = "musl", target_env = "ohos")))))] + target_env = "musl"))))] __align: [::c_long; 0], size: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T], } pub struct pthread_rwlockattr_t { - #[cfg(any(target_env = "musl", target_env = "ohos"))] + #[cfg(target_env = "musl")] __align: [::c_int; 0], - #[cfg(not(any(target_env = "musl", target_env = "ohos")))] + #[cfg(not(target_env = "musl"))] __align: [::c_long; 0], size: [u8; ::__SIZEOF_PTHREAD_RWLOCKATTR_T], } @@ -42,11 +40,6 @@ macro_rules! expand_align { size: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T], } - pub struct pthread_barrierattr_t { - __align: [::c_int; 0], - size: [u8; ::__SIZEOF_PTHREAD_BARRIERATTR_T], - } - pub struct fanotify_event_metadata { __align: [::c_long; 0], pub event_len: __u32, @@ -61,29 +54,25 @@ macro_rules! expand_align { s_no_extra_traits! { pub struct pthread_cond_t { - #[cfg(any(target_env = "musl", target_env = "ohos"))] + #[cfg(target_env = "musl")] __align: [*const ::c_void; 0], - #[cfg(not(any(target_env = "musl", target_env = "ohos")))] + #[cfg(not(target_env = "musl"))] __align: [::c_longlong; 0], size: [u8; ::__SIZEOF_PTHREAD_COND_T], } pub struct pthread_mutex_t { #[cfg(any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "m68k", - target_arch = "csky", target_arch = "powerpc", target_arch = "sparc", all(target_arch = "x86_64", target_pointer_width = "32")))] __align: [::c_long; 0], #[cfg(not(any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "m68k", - target_arch = "csky", target_arch = "powerpc", target_arch = "sparc", all(target_arch = "x86_64", @@ -94,20 +83,16 @@ macro_rules! expand_align { pub struct pthread_rwlock_t { #[cfg(any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "m68k", - target_arch = "csky", target_arch = "powerpc", target_arch = "sparc", all(target_arch = "x86_64", target_pointer_width = "32")))] __align: [::c_long; 0], #[cfg(not(any(target_arch = "mips", - target_arch = "mips32r6", target_arch = "arm", target_arch = "m68k", - target_arch = "csky", target_arch = "powerpc", target_arch = "sparc", all(target_arch = "x86_64", @@ -115,30 +100,6 @@ macro_rules! expand_align { __align: [::c_longlong; 0], size: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T], } - - pub struct pthread_barrier_t { - #[cfg(any(target_arch = "mips", - target_arch = "mips32r6", - target_arch = "arm", - target_arch = "m68k", - target_arch = "csky", - target_arch = "powerpc", - target_arch = "sparc", - all(target_arch = "x86_64", - target_pointer_width = "32")))] - __align: [::c_long; 0], - #[cfg(not(any(target_arch = "mips", - target_arch = "mips32r6", - target_arch = "arm", - target_arch = "m68k", - target_arch = "csky", - target_arch = "powerpc", - target_arch = "sparc", - all(target_arch = "x86_64", - target_pointer_width = "32"))))] - __align: [::c_longlong; 0], - size: [u8; ::__SIZEOF_PTHREAD_BARRIER_T], - } } }; } diff --git a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/arm/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/arm/mod.rs index cff82f005ace..25125bcc9b3d 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/arm/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/arm/mod.rs @@ -466,7 +466,6 @@ pub const POLLWRBAND: ::c_short = 0x200; pub const POLLWRNORM: ::c_short = 0x100; pub const PTHREAD_STACK_MIN: ::size_t = 16384; pub const RTLD_GLOBAL: ::c_int = 0x00100; -pub const PIDFD_NONBLOCK: ::c_int = 0x800; // These are typed unsigned to match sigaction pub const SA_NOCLDSTOP: ::c_ulong = 0x1; @@ -884,35 +883,11 @@ pub const SYS_pwritev2: ::c_long = 393; pub const SYS_pkey_mprotect: ::c_long = 394; pub const SYS_pkey_alloc: ::c_long = 395; pub const SYS_pkey_free: ::c_long = 396; -// FIXME: should be a `c_long` too, but a bug slipped in. pub const SYS_statx: ::c_int = 397; pub const SYS_pidfd_send_signal: ::c_long = 424; -pub const SYS_io_uring_setup: ::c_long = 425; -pub const SYS_io_uring_enter: ::c_long = 426; -pub const SYS_io_uring_register: ::c_long = 427; -pub const SYS_open_tree: ::c_long = 428; -pub const SYS_move_mount: ::c_long = 429; -pub const SYS_fsopen: ::c_long = 430; -pub const SYS_fsconfig: ::c_long = 431; -pub const SYS_fsmount: ::c_long = 432; -pub const SYS_fspick: ::c_long = 433; pub const SYS_pidfd_open: ::c_long = 434; pub const SYS_clone3: ::c_long = 435; -pub const SYS_close_range: ::c_long = 436; -pub const SYS_openat2: ::c_long = 437; pub const SYS_pidfd_getfd: ::c_long = 438; -pub const SYS_faccessat2: ::c_long = 439; -pub const SYS_process_madvise: ::c_long = 440; -pub const SYS_epoll_pwait2: ::c_long = 441; -pub const SYS_mount_setattr: ::c_long = 442; -pub const SYS_quotactl_fd: ::c_long = 443; -pub const SYS_landlock_create_ruleset: ::c_long = 444; -pub const SYS_landlock_add_rule: ::c_long = 445; -pub const SYS_landlock_restrict_self: ::c_long = 446; -pub const SYS_memfd_secret: ::c_long = 447; -pub const SYS_process_mrelease: ::c_long = 448; -pub const SYS_futex_waitv: ::c_long = 449; -pub const SYS_set_mempolicy_home_node: ::c_long = 450; cfg_if! { if #[cfg(libc_align)] { diff --git a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs index a5aca85a3a74..7f9d3c03137a 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs @@ -623,34 +623,7 @@ pub const SYS_pwritev2: ::c_long = 4000 + 362; pub const SYS_pkey_mprotect: ::c_long = 4000 + 363; pub const SYS_pkey_alloc: ::c_long = 4000 + 364; pub const SYS_pkey_free: ::c_long = 4000 + 365; -pub const SYS_statx: ::c_long = 4000 + 366; -pub const SYS_pidfd_send_signal: ::c_long = 4000 + 424; -pub const SYS_io_uring_setup: ::c_long = 4000 + 425; -pub const SYS_io_uring_enter: ::c_long = 4000 + 426; -pub const SYS_io_uring_register: ::c_long = 4000 + 427; -pub const SYS_open_tree: ::c_long = 4000 + 428; -pub const SYS_move_mount: ::c_long = 4000 + 429; -pub const SYS_fsopen: ::c_long = 4000 + 430; -pub const SYS_fsconfig: ::c_long = 4000 + 431; -pub const SYS_fsmount: ::c_long = 4000 + 432; -pub const SYS_fspick: ::c_long = 4000 + 433; -pub const SYS_pidfd_open: ::c_long = 4000 + 434; pub const SYS_clone3: ::c_long = 4000 + 435; -pub const SYS_close_range: ::c_long = 4000 + 436; -pub const SYS_openat2: ::c_long = 4000 + 437; -pub const SYS_pidfd_getfd: ::c_long = 4000 + 438; -pub const SYS_faccessat2: ::c_long = 4000 + 439; -pub const SYS_process_madvise: ::c_long = 4000 + 440; -pub const SYS_epoll_pwait2: ::c_long = 4000 + 441; -pub const SYS_mount_setattr: ::c_long = 4000 + 442; -pub const SYS_quotactl_fd: ::c_long = 4000 + 443; -pub const SYS_landlock_create_ruleset: ::c_long = 4000 + 444; -pub const SYS_landlock_add_rule: ::c_long = 4000 + 445; -pub const SYS_landlock_restrict_self: ::c_long = 4000 + 446; -pub const SYS_memfd_secret: ::c_long = 4000 + 447; -pub const SYS_process_mrelease: ::c_long = 4000 + 448; -pub const SYS_futex_waitv: ::c_long = 4000 + 449; -pub const SYS_set_mempolicy_home_node: ::c_long = 4000 + 450; #[link(name = "util")] extern "C" { diff --git a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips64/mod.rs index 8ca100fcd268..be6d2813d52f 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mips64/mod.rs @@ -189,10 +189,8 @@ s! { pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const SYS_gettid: ::c_long = 5178; // Valid for n64 diff --git a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mod.rs index 56bfcc5d355a..61684094fa9f 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/mips/mod.rs @@ -38,8 +38,6 @@ pub const O_ACCMODE: ::c_int = 3; pub const O_DIRECT: ::c_int = 0x8000; pub const O_DIRECTORY: ::c_int = 0x10000; pub const O_NOFOLLOW: ::c_int = 0x20000; -pub const O_NOATIME: ::c_int = 0x40000; -pub const O_PATH: ::c_int = 0o010000000; pub const O_APPEND: ::c_int = 8; pub const O_CREAT: ::c_int = 256; @@ -51,11 +49,9 @@ pub const O_RSYNC: ::c_int = 0x10; pub const O_DSYNC: ::c_int = 0x10; pub const O_FSYNC: ::c_int = 0x10; pub const O_ASYNC: ::c_int = 0x1000; -pub const O_LARGEFILE: ::c_int = 0x2000; pub const O_NDELAY: ::c_int = 0x80; pub const SOCK_NONBLOCK: ::c_int = 128; -pub const PIDFD_NONBLOCK: ::c_int = 128; pub const EDEADLK: ::c_int = 45; pub const ENAMETOOLONG: ::c_int = 78; @@ -76,7 +72,6 @@ pub const EL2HLT: ::c_int = 44; pub const EBADE: ::c_int = 50; pub const EBADR: ::c_int = 51; pub const EXFULL: ::c_int = 52; -pub const FFDLY: ::c_int = 0o0100000; pub const ENOANO: ::c_int = 53; pub const EBADRQC: ::c_int = 54; pub const EBADSLT: ::c_int = 55; @@ -152,8 +147,6 @@ pub const MAP_POPULATE: ::c_int = 0x10000; pub const MAP_NONBLOCK: ::c_int = 0x20000; pub const MAP_STACK: ::c_int = 0x40000; -pub const NLDLY: ::tcflag_t = 0o0000400; - pub const SOCK_STREAM: ::c_int = 2; pub const SOCK_DGRAM: ::c_int = 1; pub const SOCK_SEQPACKET: ::c_int = 5; @@ -214,39 +207,30 @@ pub const RTLD_GLOBAL: ::c_int = 0x4; pub const SIGSTKSZ: ::size_t = 8192; pub const CBAUD: ::tcflag_t = 0o0010017; -pub const CBAUDEX: ::tcflag_t = 0o0010000; -pub const CIBAUD: ::tcflag_t = 0o002003600000; pub const TAB1: ::tcflag_t = 0x00000800; pub const TAB2: ::tcflag_t = 0x00001000; pub const TAB3: ::tcflag_t = 0x00001800; -pub const TABDLY: ::tcflag_t = 0o0014000; pub const CR1: ::tcflag_t = 0x00000200; pub const CR2: ::tcflag_t = 0x00000400; pub const CR3: ::tcflag_t = 0x00000600; pub const FF1: ::tcflag_t = 0x00008000; pub const BS1: ::tcflag_t = 0x00002000; -pub const BSDLY: ::tcflag_t = 0o0020000; pub const VT1: ::tcflag_t = 0x00004000; pub const VWERASE: usize = 14; -pub const XTABS: ::tcflag_t = 0o0014000; pub const VREPRINT: usize = 12; pub const VSUSP: usize = 10; -pub const VSWTC: usize = 7; -pub const VTDLY: ::c_int = 0o0040000; pub const VSTART: usize = 8; pub const VSTOP: usize = 9; pub const VDISCARD: usize = 13; pub const VTIME: usize = 5; pub const IXON: ::tcflag_t = 0x00000400; pub const IXOFF: ::tcflag_t = 0x00001000; -pub const OLCUC: ::tcflag_t = 0o0000002; pub const ONLCR: ::tcflag_t = 0x4; pub const CSIZE: ::tcflag_t = 0x00000030; pub const CS6: ::tcflag_t = 0x00000010; pub const CS7: ::tcflag_t = 0x00000020; pub const CS8: ::tcflag_t = 0x00000030; pub const CSTOPB: ::tcflag_t = 0x00000040; -pub const CRDLY: ::c_int = 0o0003000; pub const CREAD: ::tcflag_t = 0x00000080; pub const PARENB: ::tcflag_t = 0x00000100; pub const PARODD: ::tcflag_t = 0x00000200; @@ -263,8 +247,6 @@ pub const ICANON: ::tcflag_t = 0x00000002; pub const PENDIN: ::tcflag_t = 0x00004000; pub const NOFLSH: ::tcflag_t = 0x00000080; -pub const MAP_HUGETLB: ::c_int = 0x80000; - pub const B0: ::speed_t = 0o000000; pub const B50: ::speed_t = 0o000001; pub const B75: ::speed_t = 0o000002; diff --git a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/x86_64/mod.rs b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/x86_64/mod.rs index 390119e3b509..43ac79296b36 100644 --- a/third_party/rust/libc/src/unix/linux_like/linux/uclibc/x86_64/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/linux/uclibc/x86_64/mod.rs @@ -330,9 +330,6 @@ pub const __SIZEOF_PTHREAD_COND_T: usize = 48; pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8; -pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; -pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; -pub const PIDFD_NONBLOCK: ::c_int = 04000; cfg_if! { if #[cfg(target_os = "l4re")] { diff --git a/third_party/rust/libc/src/unix/linux_like/mod.rs b/third_party/rust/libc/src/unix/linux_like/mod.rs index 3117c18b86a1..e2e73b3300e2 100644 --- a/third_party/rust/libc/src/unix/linux_like/mod.rs +++ b/third_party/rust/libc/src/unix/linux_like/mod.rs @@ -108,13 +108,13 @@ s! { pub struct sched_param { pub sched_priority: ::c_int, - #[cfg(any(target_env = "musl", target_os = "emscripten", target_env = "ohos"))] + #[cfg(any(target_env = "musl", target_os = "emscripten"))] pub sched_ss_low_priority: ::c_int, - #[cfg(any(target_env = "musl", target_os = "emscripten", target_env = "ohos"))] + #[cfg(any(target_env = "musl", target_os = "emscripten"))] pub sched_ss_repl_period: ::timespec, - #[cfg(any(target_env = "musl", target_os = "emscripten", target_env = "ohos"))] + #[cfg(any(target_env = "musl", target_os = "emscripten"))] pub sched_ss_init_budget: ::timespec, - #[cfg(any(target_env = "musl", target_os = "emscripten", target_env = "ohos"))] + #[cfg(any(target_env = "musl", target_os = "emscripten"))] pub sched_ss_max_repl: ::c_int, } @@ -557,29 +557,7 @@ pub const XATTR_CREATE: ::c_int = 0x1; pub const XATTR_REPLACE: ::c_int = 0x2; cfg_if! { - if #[cfg(target_os = "android")] { - pub const RLIM64_INFINITY: ::c_ulonglong = !0; - } else { - pub const RLIM64_INFINITY: ::rlim64_t = !0; - } -} - -cfg_if! { - if #[cfg(target_env = "ohos")] { - pub const LC_CTYPE: ::c_int = 0; - pub const LC_NUMERIC: ::c_int = 1; - pub const LC_TIME: ::c_int = 2; - pub const LC_COLLATE: ::c_int = 3; - pub const LC_MONETARY: ::c_int = 4; - pub const LC_MESSAGES: ::c_int = 5; - pub const LC_PAPER: ::c_int = 6; - pub const LC_NAME: ::c_int = 7; - pub const LC_ADDRESS: ::c_int = 8; - pub const LC_TELEPHONE: ::c_int = 9; - pub const LC_MEASUREMENT: ::c_int = 10; - pub const LC_IDENTIFICATION: ::c_int = 11; - pub const LC_ALL: ::c_int = 12; - } else if #[cfg(not(target_env = "uclibc"))] { + if #[cfg(not(target_env = "uclibc"))] { pub const LC_CTYPE: ::c_int = 0; pub const LC_NUMERIC: ::c_int = 1; pub const LC_TIME: ::c_int = 2; @@ -662,18 +640,7 @@ pub const MADV_HUGEPAGE: ::c_int = 14; pub const MADV_NOHUGEPAGE: ::c_int = 15; pub const MADV_DONTDUMP: ::c_int = 16; pub const MADV_DODUMP: ::c_int = 17; -pub const MADV_WIPEONFORK: ::c_int = 18; -pub const MADV_KEEPONFORK: ::c_int = 19; -pub const MADV_COLD: ::c_int = 20; -pub const MADV_PAGEOUT: ::c_int = 21; pub const MADV_HWPOISON: ::c_int = 100; -cfg_if! { - if #[cfg(not(target_os = "emscripten"))] { - pub const MADV_POPULATE_READ: ::c_int = 22; - pub const MADV_POPULATE_WRITE: ::c_int = 23; - pub const MADV_DONTNEED_LOCKED: ::c_int = 24; - } -} pub const IFF_UP: ::c_int = 0x1; pub const IFF_BROADCAST: ::c_int = 0x2; @@ -916,10 +883,6 @@ pub const IPPROTO_UDPLITE: ::c_int = 136; pub const IPPROTO_RAW: ::c_int = 255; pub const IPPROTO_BEETPH: ::c_int = 94; pub const IPPROTO_MPLS: ::c_int = 137; -/// Multipath TCP -pub const IPPROTO_MPTCP: ::c_int = 262; -/// Ethernet-within-IPv6 encapsulation. -pub const IPPROTO_ETHERNET: ::c_int = 143; pub const MCAST_EXCLUDE: ::c_int = 0; pub const MCAST_INCLUDE: ::c_int = 1; @@ -1010,11 +973,7 @@ pub const TCP_QUICKACK: ::c_int = 12; pub const TCP_CONGESTION: ::c_int = 13; pub const TCP_MD5SIG: ::c_int = 14; cfg_if! { - if #[cfg(all(target_os = "linux", any( - target_env = "gnu", - target_env = "musl", - target_env = "ohos" - )))] { + if #[cfg(all(target_os = "linux", any(target_env = "gnu", target_env = "musl")))] { // WARN: deprecated pub const TCP_COOKIE_TRANSACTIONS: ::c_int = 15; } @@ -1047,7 +1006,6 @@ cfg_if! { pub const TCP_CM_INQ: ::c_int = TCP_INQ; // NOTE: Some CI images doesn't have this option yet. // pub const TCP_TX_DELAY: ::c_int = 37; - pub const TCP_MD5SIG_MAXKEYLEN: usize = 80; } } @@ -1243,7 +1201,6 @@ pub const AT_REMOVEDIR: ::c_int = 0x200; pub const AT_SYMLINK_FOLLOW: ::c_int = 0x400; pub const AT_NO_AUTOMOUNT: ::c_int = 0x800; pub const AT_EMPTY_PATH: ::c_int = 0x1000; -pub const AT_RECURSIVE: ::c_int = 0x8000; pub const LOG_CRON: ::c_int = 9 << 3; pub const LOG_AUTHPRIV: ::c_int = 10 << 3; @@ -1559,7 +1516,7 @@ f! { as ::c_uint } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { CMSG_ALIGN(::mem::size_of::()) as ::c_uint + length } @@ -1696,9 +1653,20 @@ extern "C" { pub fn setgroups(ngroups: ::size_t, ptr: *const ::gid_t) -> ::c_int; pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int; pub fn statfs(path: *const ::c_char, buf: *mut statfs) -> ::c_int; + pub fn statfs64(path: *const ::c_char, buf: *mut statfs64) -> ::c_int; pub fn fstatfs(fd: ::c_int, buf: *mut statfs) -> ::c_int; + pub fn fstatfs64(fd: ::c_int, buf: *mut statfs64) -> ::c_int; + pub fn statvfs64(path: *const ::c_char, buf: *mut statvfs64) -> ::c_int; + pub fn fstatvfs64(fd: ::c_int, buf: *mut statvfs64) -> ::c_int; pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void; + pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int; + pub fn posix_fadvise64( + fd: ::c_int, + offset: ::off64_t, + len: ::off64_t, + advise: ::c_int, + ) -> ::c_int; pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int; pub fn utimensat( dirfd: ::c_int, @@ -1710,6 +1678,43 @@ extern "C" { pub fn freelocale(loc: ::locale_t); pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t; pub fn uselocale(loc: ::locale_t) -> ::locale_t; + pub fn creat64(path: *const c_char, mode: mode_t) -> ::c_int; + pub fn fstat64(fildes: ::c_int, buf: *mut stat64) -> ::c_int; + pub fn fstatat64( + dirfd: ::c_int, + pathname: *const c_char, + buf: *mut stat64, + flags: ::c_int, + ) -> ::c_int; + pub fn ftruncate64(fd: ::c_int, length: off64_t) -> ::c_int; + pub fn lseek64(fd: ::c_int, offset: off64_t, whence: ::c_int) -> off64_t; + pub fn lstat64(path: *const c_char, buf: *mut stat64) -> ::c_int; + pub fn mmap64( + addr: *mut ::c_void, + len: ::size_t, + prot: ::c_int, + flags: ::c_int, + fd: ::c_int, + offset: off64_t, + ) -> *mut ::c_void; + pub fn open64(path: *const c_char, oflag: ::c_int, ...) -> ::c_int; + pub fn openat64(fd: ::c_int, path: *const c_char, oflag: ::c_int, ...) -> ::c_int; + pub fn pread64(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off64_t) -> ::ssize_t; + pub fn pwrite64( + fd: ::c_int, + buf: *const ::c_void, + count: ::size_t, + offset: off64_t, + ) -> ::ssize_t; + pub fn readdir64(dirp: *mut ::DIR) -> *mut ::dirent64; + pub fn readdir64_r( + dirp: *mut ::DIR, + entry: *mut ::dirent64, + result: *mut *mut ::dirent64, + ) -> ::c_int; + pub fn stat64(path: *const c_char, buf: *mut stat64) -> ::c_int; + pub fn truncate64(path: *const c_char, length: off64_t) -> ::c_int; + pub fn mknodat( dirfd: ::c_int, pathname: *const ::c_char, @@ -1777,74 +1782,10 @@ extern "C" { pub fn sendmsg(fd: ::c_int, msg: *const ::msghdr, flags: ::c_int) -> ::ssize_t; pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t; pub fn uname(buf: *mut ::utsname) -> ::c_int; - - pub fn strchrnul(s: *const ::c_char, c: ::c_int) -> *mut ::c_char; } -// LFS64 extensions -// -// * musl has 64-bit versions only so aliases the LFS64 symbols to the standard ones -// * ulibc doesn't have preadv64/pwritev64 cfg_if! { - if #[cfg(not(target_env = "musl"))] { - extern "C" { - pub fn fstatfs64(fd: ::c_int, buf: *mut statfs64) -> ::c_int; - pub fn statvfs64(path: *const ::c_char, buf: *mut statvfs64) -> ::c_int; - pub fn fstatvfs64(fd: ::c_int, buf: *mut statvfs64) -> ::c_int; - pub fn statfs64(path: *const ::c_char, buf: *mut statfs64) -> ::c_int; - pub fn creat64(path: *const c_char, mode: mode_t) -> ::c_int; - pub fn fstat64(fildes: ::c_int, buf: *mut stat64) -> ::c_int; - pub fn fstatat64( - dirfd: ::c_int, - pathname: *const c_char, - buf: *mut stat64, - flags: ::c_int, - ) -> ::c_int; - pub fn ftruncate64(fd: ::c_int, length: off64_t) -> ::c_int; - pub fn lseek64(fd: ::c_int, offset: off64_t, whence: ::c_int) -> off64_t; - pub fn lstat64(path: *const c_char, buf: *mut stat64) -> ::c_int; - pub fn mmap64( - addr: *mut ::c_void, - len: ::size_t, - prot: ::c_int, - flags: ::c_int, - fd: ::c_int, - offset: off64_t, - ) -> *mut ::c_void; - pub fn open64(path: *const c_char, oflag: ::c_int, ...) -> ::c_int; - pub fn openat64(fd: ::c_int, path: *const c_char, oflag: ::c_int, ...) -> ::c_int; - pub fn posix_fadvise64( - fd: ::c_int, - offset: ::off64_t, - len: ::off64_t, - advise: ::c_int, - ) -> ::c_int; - pub fn pread64( - fd: ::c_int, - buf: *mut ::c_void, - count: ::size_t, - offset: off64_t - ) -> ::ssize_t; - pub fn pwrite64( - fd: ::c_int, - buf: *const ::c_void, - count: ::size_t, - offset: off64_t, - ) -> ::ssize_t; - pub fn readdir64(dirp: *mut ::DIR) -> *mut ::dirent64; - pub fn readdir64_r( - dirp: *mut ::DIR, - entry: *mut ::dirent64, - result: *mut *mut ::dirent64, - ) -> ::c_int; - pub fn stat64(path: *const c_char, buf: *mut stat64) -> ::c_int; - pub fn truncate64(path: *const c_char, length: off64_t) -> ::c_int; - } - } -} - -cfg_if! { - if #[cfg(not(any(target_env = "uclibc", target_env = "musl")))] { + if #[cfg(not(target_env = "uclibc"))] { extern "C" { pub fn preadv64( fd: ::c_int, @@ -1858,13 +1799,6 @@ cfg_if! { iovcnt: ::c_int, offset: ::off64_t, ) -> ::ssize_t; - } - } -} - -cfg_if! { - if #[cfg(not(target_env = "uclibc"))] { - extern "C" { // uclibc has separate non-const version of this function pub fn forkpty( amaster: *mut ::c_int, diff --git a/third_party/rust/libc/src/unix/mod.rs b/third_party/rust/libc/src/unix/mod.rs index 9b5ce0fceaaf..826b835182a8 100644 --- a/third_party/rust/libc/src/unix/mod.rs +++ b/third_party/rust/libc/src/unix/mod.rs @@ -29,7 +29,7 @@ pub type sighandler_t = ::size_t; pub type cc_t = ::c_uchar; cfg_if! { - if #[cfg(any(target_os = "espidf", target_os = "horizon", target_os = "vita"))] { + if #[cfg(any(target_os = "espidf", target_os = "horizon"))] { pub type uid_t = ::c_ushort; pub type gid_t = ::c_ushort; } else if #[cfg(target_os = "nto")] { @@ -130,7 +130,7 @@ s! { #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] __pad14: u32, - #[cfg(any(target_env = "musl", target_env = "ohos", target_os = "emscripten"))] + #[cfg(any(target_env = "musl", target_os = "emscripten"))] __reserved: [c_long; 16], } @@ -351,7 +351,7 @@ cfg_if! { #[link(name = "dl", cfg(not(target_feature = "crt-static")))] #[link(name = "c", cfg(not(target_feature = "crt-static")))] extern {} - } else if #[cfg(any(target_env = "musl", target_env = "ohos"))] { + } else if #[cfg(target_env = "musl")] { #[cfg_attr(feature = "rustc-dep-of-std", link(name = "c", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static")))] @@ -404,12 +404,6 @@ cfg_if! { #[cfg_attr(feature = "rustc-dep-of-std", link(name = "c", cfg(not(target_feature = "crt-static"))))] extern {} - } else if #[cfg(target_env = "aix")] { - #[link(name = "c")] - #[link(name = "m")] - #[link(name = "bsd")] - #[link(name = "pthread")] - extern {} } else { #[link(name = "c")] #[link(name = "m")] @@ -1048,7 +1042,6 @@ extern "C" { pub fn symlink(path1: *const c_char, path2: *const c_char) -> ::c_int; - pub fn truncate(path: *const c_char, length: off_t) -> ::c_int; pub fn ftruncate(fd: ::c_int, length: off_t) -> ::c_int; pub fn signal(signum: ::c_int, handler: sighandler_t) -> sighandler_t; @@ -1193,6 +1186,7 @@ extern "C" { pub fn dlerror() -> *mut ::c_char; pub fn dlsym(handle: *mut ::c_void, symbol: *const ::c_char) -> *mut ::c_void; pub fn dlclose(handle: *mut ::c_void) -> ::c_int; + pub fn dladdr(addr: *const ::c_void, info: *mut Dl_info) -> ::c_int; #[cfg(not(all( libc_cfg_target_vendor, @@ -1218,10 +1212,7 @@ extern "C" { pub fn gai_strerror(errcode: ::c_int) -> *const ::c_char; #[cfg_attr( any( - all( - target_os = "linux", - not(any(target_env = "musl", target_env = "ohos")) - ), + all(target_os = "linux", not(target_env = "musl")), target_os = "freebsd", target_os = "dragonfly", target_os = "haiku" @@ -1240,11 +1231,11 @@ extern "C" { pub fn res_init() -> ::c_int; #[cfg_attr(target_os = "netbsd", link_name = "__gmtime_r50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn gmtime_r(time_p: *const time_t, result: *mut tm) -> *mut tm; #[cfg_attr(target_os = "netbsd", link_name = "__localtime_r50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn localtime_r(time_p: *const time_t, result: *mut tm) -> *mut tm; #[cfg_attr( @@ -1252,27 +1243,27 @@ extern "C" { link_name = "mktime$UNIX2003" )] #[cfg_attr(target_os = "netbsd", link_name = "__mktime50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn mktime(tm: *mut tm) -> time_t; #[cfg_attr(target_os = "netbsd", link_name = "__time50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn time(time: *mut time_t) -> time_t; #[cfg_attr(target_os = "netbsd", link_name = "__gmtime50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn gmtime(time_p: *const time_t) -> *mut tm; #[cfg_attr(target_os = "netbsd", link_name = "__locatime50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn localtime(time_p: *const time_t) -> *mut tm; #[cfg_attr(target_os = "netbsd", link_name = "__difftime50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn difftime(time1: time_t, time0: time_t) -> ::c_double; #[cfg_attr(target_os = "netbsd", link_name = "__timegm50")] - #[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))] + #[cfg_attr(target_env = "musl", allow(deprecated))] // FIXME: for `time_t` pub fn timegm(tm: *mut ::tm) -> time_t; @@ -1426,14 +1417,6 @@ cfg_if! { } cfg_if! { - if #[cfg(not(target_os = "aix"))] { - extern "C" { - pub fn dladdr(addr: *const ::c_void, info: *mut Dl_info) -> ::c_int; - } - } -} - -cfg_if! { if #[cfg(not(any(target_env = "uclibc", target_os = "nto")))] { extern "C" { pub fn open_wmemstream( @@ -1448,6 +1431,7 @@ cfg_if! { if #[cfg(not(target_os = "redox"))] { extern { pub fn getsid(pid: pid_t) -> pid_t; + pub fn truncate(path: *const c_char, length: off_t) -> ::c_int; #[cfg_attr(all(target_os = "macos", target_arch = "x86"), link_name = "pause$UNIX2003")] pub fn pause() -> ::c_int; @@ -1499,11 +1483,6 @@ cfg_if! { timeout: *mut timespec, sigmask: *const sigset_t, ) -> ::c_int; - pub fn sigaction( - signum: ::c_int, - act: *const sigaction, - oldact: *mut sigaction - ) -> ::c_int; } } else { extern { @@ -1591,9 +1570,6 @@ cfg_if! { } else if #[cfg(target_os = "nto")] { mod nto; pub use self::nto::*; - } else if #[cfg(target_os = "aix")] { - mod aix; - pub use self::aix::*; } else { // Unknown target_os } diff --git a/third_party/rust/libc/src/unix/newlib/mod.rs b/third_party/rust/libc/src/unix/newlib/mod.rs index ce84f1421f0e..3875f1cb4e9d 100644 --- a/third_party/rust/libc/src/unix/newlib/mod.rs +++ b/third_party/rust/libc/src/unix/newlib/mod.rs @@ -1,23 +1,12 @@ pub type blkcnt_t = i32; pub type blksize_t = i32; +pub type clockid_t = ::c_ulong; cfg_if! { - if #[cfg(target_os = "vita")] { - pub type clockid_t = ::c_uint; - } else { - pub type clockid_t = ::c_ulong; - } -} - -cfg_if! { - if #[cfg(any(target_os = "espidf"))] { + if #[cfg(target_os = "espidf")] { pub type dev_t = ::c_short; pub type ino_t = ::c_ushort; pub type off_t = ::c_long; - } else if #[cfg(any(target_os = "vita"))] { - pub type dev_t = ::c_short; - pub type ino_t = ::c_ushort; - pub type off_t = ::c_int; } else { pub type dev_t = u32; pub type ino_t = u32; @@ -171,12 +160,8 @@ s! { } pub struct dirent { - #[cfg(not(target_os = "vita"))] pub d_ino: ino_t, - #[cfg(not(target_os = "vita"))] pub d_type: ::c_uchar, - #[cfg(target_os = "vita")] - __offset: [u8; 88], pub d_name: [::c_char; 256usize], } @@ -234,11 +219,12 @@ s! { } pub struct pthread_attr_t { // Unverified - __size: [u8; __SIZEOF_PTHREAD_ATTR_T] + __size: [u64; 7] } pub struct pthread_rwlockattr_t { // Unverified - __size: [u8; __SIZEOF_PTHREAD_RWLOCKATTR_T] + __lockkind: ::c_int, + __pshared: ::c_int, } } @@ -255,7 +241,6 @@ align_const! { }; } pub const NCCS: usize = 32; - cfg_if! { if #[cfg(target_os = "espidf")] { const __PTHREAD_INITIALIZER_BYTE: u8 = 0xff; @@ -266,17 +251,6 @@ cfg_if! { pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 8; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 12; - pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; - } else if #[cfg(target_os = "vita")] { - const __PTHREAD_INITIALIZER_BYTE: u8 = 0xff; - pub const __SIZEOF_PTHREAD_ATTR_T: usize = 4; - pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 4; - pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; - pub const __SIZEOF_PTHREAD_COND_T: usize = 4; - pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; - pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 4; - pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 4; - pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 4; } else { const __PTHREAD_INITIALIZER_BYTE: u8 = 0; pub const __SIZEOF_PTHREAD_ATTR_T: usize = 56; @@ -286,10 +260,9 @@ cfg_if! { pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4; pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8; - pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; } } - +pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4; pub const __PTHREAD_MUTEX_HAVE_PREV: usize = 1; pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED: usize = 1; @@ -298,10 +271,8 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 1; pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2; cfg_if! { - if #[cfg(any(target_os = "horizon", target_os = "espidf"))] { + if #[cfg(target_os = "horizon")] { pub const FD_SETSIZE: usize = 64; - } else if #[cfg(target_os = "vita")] { - pub const FD_SETSIZE: usize = 256; } else { pub const FD_SETSIZE: usize = 1024; } @@ -527,7 +498,8 @@ pub const SOCK_CLOEXEC: ::c_int = O_CLOEXEC; pub const INET_ADDRSTRLEN: ::c_int = 16; -// https://github.com/bminor/newlib/blob/HEAD/newlib/libc/sys/linux/include/net/if.h#L121 +// https://github. +// com/bminor/newlib/blob/master/newlib/libc/sys/linux/include/net/if.h#L121 pub const IFF_UP: ::c_int = 0x1; // interface is up pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid pub const IFF_DEBUG: ::c_int = 0x4; // turn on debugging @@ -758,9 +730,6 @@ cfg_if! { } else if #[cfg(target_os = "horizon")] { mod horizon; pub use self::horizon::*; - } else if #[cfg(target_os = "vita")] { - mod vita; - pub use self::vita::*; } else if #[cfg(target_arch = "arm")] { mod arm; pub use self::arm::*; diff --git a/third_party/rust/libc/src/unix/newlib/vita/mod.rs b/third_party/rust/libc/src/unix/newlib/vita/mod.rs deleted file mode 100644 index 6e2e4d3ebe89..000000000000 --- a/third_party/rust/libc/src/unix/newlib/vita/mod.rs +++ /dev/null @@ -1,201 +0,0 @@ -pub type clock_t = ::c_long; - -pub type c_char = i8; -pub type wchar_t = u32; - -pub type c_long = i32; -pub type c_ulong = u32; - -pub type sigset_t = ::c_ulong; - -s! { - pub struct sockaddr { - pub sa_len: u8, - pub sa_family: ::sa_family_t, - pub sa_data: [::c_char; 14], - } - - pub struct sockaddr_in6 { - pub sin6_len: u8, - pub sin6_family: ::sa_family_t, - pub sin6_port: ::in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: ::in6_addr, - pub sin6_vport: ::in_port_t, - pub sin6_scope_id: u32, - } - - pub struct sockaddr_in { - pub sin_len: u8, - pub sin_family: ::sa_family_t, - pub sin_port: ::in_port_t, - pub sin_addr: ::in_addr, - pub sin_vport: ::in_port_t, - pub sin_zero: [u8; 6], - } - - pub struct sockaddr_un { - pub sun_family: ::sa_family_t, - pub sun_path: [::c_char; 108usize], - } - - pub struct sockaddr_storage { - pub ss_len: u8, - pub ss_family: ::sa_family_t, - pub __ss_pad1: [u8; 4], - pub __ss_align: i64, - pub __ss_pad2: [u8; 4], - } - - pub struct sched_param { - pub sched_priority: ::c_int, - } - - pub struct stat { - pub st_dev: ::dev_t, - pub st_ino: ::ino_t, - pub st_mode: ::mode_t, - pub st_nlink: ::nlink_t, - pub st_uid: ::uid_t, - pub st_gid: ::gid_t, - pub st_rdev: ::dev_t, - pub st_size: ::off_t, - pub st_atime: ::time_t, - pub st_mtime: ::time_t, - pub st_ctime: ::time_t, - pub st_blksize: ::blksize_t, - pub st_blocks: ::blkcnt_t, - pub st_spare4: [::c_long; 2usize], - } -} - -pub const AF_UNIX: ::c_int = 1; -pub const AF_INET6: ::c_int = 24; - -pub const FIONBIO: ::c_ulong = 1; - -pub const POLLIN: ::c_short = 0x0001; -pub const POLLPRI: ::c_short = POLLIN; -pub const POLLOUT: ::c_short = 0x0004; -pub const POLLERR: ::c_short = 0x0008; -pub const POLLHUP: ::c_short = 0x0010; -pub const POLLNVAL: ::c_short = 0x0020; - -pub const RTLD_DEFAULT: *mut ::c_void = 0 as *mut ::c_void; - -pub const SOL_SOCKET: ::c_int = 0xffff; -pub const SO_NONBLOCK: ::c_int = 0x1100; - -pub const MSG_OOB: ::c_int = 0x1; -pub const MSG_PEEK: ::c_int = 0x2; -pub const MSG_DONTROUTE: ::c_int = 0x4; -pub const MSG_EOR: ::c_int = 0x8; -pub const MSG_TRUNC: ::c_int = 0x10; -pub const MSG_CTRUNC: ::c_int = 0x20; -pub const MSG_WAITALL: ::c_int = 0x40; -pub const MSG_DONTWAIT: ::c_int = 0x80; -pub const MSG_BCAST: ::c_int = 0x100; -pub const MSG_MCAST: ::c_int = 0x200; - -pub const UTIME_OMIT: c_long = -1; -pub const AT_FDCWD: ::c_int = -2; - -pub const O_DIRECTORY: ::c_int = 0x200000; -pub const O_NOFOLLOW: ::c_int = 0x100000; - -pub const AT_EACCESS: ::c_int = 1; -pub const AT_SYMLINK_NOFOLLOW: ::c_int = 2; -pub const AT_SYMLINK_FOLLOW: ::c_int = 4; -pub const AT_REMOVEDIR: ::c_int = 8; - -pub const SIGHUP: ::c_int = 1; -pub const SIGINT: ::c_int = 2; -pub const SIGQUIT: ::c_int = 3; -pub const SIGILL: ::c_int = 4; -pub const SIGTRAP: ::c_int = 5; -pub const SIGABRT: ::c_int = 6; -pub const SIGEMT: ::c_int = 7; -pub const SIGFPE: ::c_int = 8; -pub const SIGKILL: ::c_int = 9; -pub const SIGBUS: ::c_int = 10; -pub const SIGSEGV: ::c_int = 11; -pub const SIGSYS: ::c_int = 12; -pub const SIGPIPE: ::c_int = 13; -pub const SIGALRM: ::c_int = 14; -pub const SIGTERM: ::c_int = 15; - -pub const EAI_BADFLAGS: ::c_int = -1; -pub const EAI_NONAME: ::c_int = -2; -pub const EAI_AGAIN: ::c_int = -3; -pub const EAI_FAIL: ::c_int = -4; -pub const EAI_NODATA: ::c_int = -5; -pub const EAI_FAMILY: ::c_int = -6; -pub const EAI_SOCKTYPE: ::c_int = -7; -pub const EAI_SERVICE: ::c_int = -8; -pub const EAI_ADDRFAMILY: ::c_int = -9; -pub const EAI_MEMORY: ::c_int = -10; -pub const EAI_SYSTEM: ::c_int = -11; -pub const EAI_OVERFLOW: ::c_int = -12; - -pub const _SC_PAGESIZE: ::c_int = 8; -pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 51; -pub const PTHREAD_STACK_MIN: ::size_t = 32 * 1024; - -extern "C" { - pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int; - pub fn writev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t; - pub fn readv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int) -> ::ssize_t; - - pub fn pthread_create( - native: *mut ::pthread_t, - attr: *const ::pthread_attr_t, - f: extern "C" fn(_: *mut ::c_void) -> *mut ::c_void, - value: *mut ::c_void, - ) -> ::c_int; - - pub fn pthread_attr_getschedparam( - attr: *const ::pthread_attr_t, - param: *mut sched_param, - ) -> ::c_int; - - pub fn pthread_attr_setschedparam( - attr: *mut ::pthread_attr_t, - param: *const sched_param, - ) -> ::c_int; - - pub fn pthread_attr_getprocessorid_np( - attr: *const ::pthread_attr_t, - processor_id: *mut ::c_int, - ) -> ::c_int; - - pub fn pthread_attr_setprocessorid_np( - attr: *mut ::pthread_attr_t, - processor_id: ::c_int, - ) -> ::c_int; - - pub fn pthread_getschedparam( - native: ::pthread_t, - policy: *mut ::c_int, - param: *mut ::sched_param, - ) -> ::c_int; - - pub fn pthread_setschedparam( - native: ::pthread_t, - policy: ::c_int, - param: *const ::sched_param, - ) -> ::c_int; - - pub fn pthread_condattr_getclock( - attr: *const ::pthread_condattr_t, - clock_id: *mut ::clockid_t, - ) -> ::c_int; - - pub fn pthread_condattr_setclock( - attr: *mut ::pthread_condattr_t, - clock_id: ::clockid_t, - ) -> ::c_int; - - pub fn pthread_getprocessorid_np() -> ::c_int; - - pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; -} diff --git a/third_party/rust/libc/src/unix/nto/mod.rs b/third_party/rust/libc/src/unix/nto/mod.rs index a79450f4e1fd..45e97ceacef9 100644 --- a/third_party/rust/libc/src/unix/nto/mod.rs +++ b/third_party/rust/libc/src/unix/nto/mod.rs @@ -80,33 +80,6 @@ impl ::Clone for timezone { } s! { - pub struct dirent_extra { - pub d_datalen: u16, - pub d_type: u16, - pub d_reserved: u32, - } - - pub struct stat { - pub st_ino: ::ino_t, - pub st_size: ::off_t, - pub st_dev: ::dev_t, - pub st_rdev: ::dev_t, - pub st_uid: ::uid_t, - pub st_gid: ::gid_t, - pub __old_st_mtime: ::_Time32t, - pub __old_st_atime: ::_Time32t, - pub __old_st_ctime: ::_Time32t, - pub st_mode: ::mode_t, - pub st_nlink: ::nlink_t, - pub st_blocksize: ::blksize_t, - pub st_nblocks: i32, - pub st_blksize: ::blksize_t, - pub st_blocks: ::blkcnt_t, - pub st_mtim: ::timespec, - pub st_atim: ::timespec, - pub st_ctim: ::timespec, - } - pub struct ip_mreq { pub imr_multiaddr: in_addr, pub imr_interface: in_addr, @@ -668,9 +641,7 @@ s_no_extra_traits! { pub struct sigevent { pub sigev_notify: ::c_int, - pub __padding1: ::c_int, - pub sigev_signo: ::c_int, // union - pub __padding2: ::c_int, + __sigev_un1: usize, // union pub sigev_value: ::sigval, __sigev_un2: usize, // union @@ -683,6 +654,33 @@ s_no_extra_traits! { pub d_name: [::c_char; 1], // flex array } + pub struct dirent_extra { + pub d_datalen: u16, + pub d_type: u16, + pub d_reserved: u32, + } + + pub struct stat { + pub st_ino: ::ino_t, + pub st_size: ::off_t, + pub st_dev: ::dev_t, + pub st_rdev: ::dev_t, + pub st_uid: ::uid_t, + pub st_gid: ::gid_t, + pub __old_st_mtime: ::_Time32t, + pub __old_st_atime: ::_Time32t, + pub __old_st_ctime: ::_Time32t, + pub st_mode: ::mode_t, + pub st_nlink: ::nlink_t, + pub st_blocksize: ::blksize_t, + pub st_nblocks: i32, + pub st_blksize: ::blksize_t, + pub st_blocks: ::blkcnt_t, + pub st_mtim: ::timespec, + pub st_atim: ::timespec, + pub st_ctim: ::timespec, + } + pub struct sigset_t { __val: [u32; 2], } @@ -758,37 +756,6 @@ s_no_extra_traits! { cfg_if! { if #[cfg(feature = "extra_traits")] { - // sigevent - impl PartialEq for sigevent { - fn eq(&self, other: &sigevent) -> bool { - self.sigev_notify == other.sigev_notify - && self.sigev_signo == other.sigev_signo - && self.sigev_value == other.sigev_value - && self.__sigev_un2 - == other.__sigev_un2 - } - } - impl Eq for sigevent {} - impl ::fmt::Debug for sigevent { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sigevent") - .field("sigev_notify", &self.sigev_notify) - .field("sigev_signo", &self.sigev_signo) - .field("sigev_value", &self.sigev_value) - .field("__sigev_un2", - &self.__sigev_un2) - .finish() - } - } - impl ::hash::Hash for sigevent { - fn hash(&self, state: &mut H) { - self.sigev_notify.hash(state); - self.sigev_signo.hash(state); - self.sigev_value.hash(state); - self.__sigev_un2.hash(state); - } - } - impl PartialEq for sockaddr_un { fn eq(&self, other: &sockaddr_un) -> bool { self.sun_len == other.sun_len @@ -800,7 +767,9 @@ cfg_if! { .all(|(a,b)| a == b) } } + impl Eq for sockaddr_un {} + impl ::fmt::Debug for sockaddr_un { fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { f.debug_struct("sockaddr_un") @@ -819,168 +788,6 @@ cfg_if! { } } - // sigset_t - impl PartialEq for sigset_t { - fn eq(&self, other: &sigset_t) -> bool { - self.__val == other.__val - } - } - impl Eq for sigset_t {} - impl ::fmt::Debug for sigset_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sigset_t") - .field("__val", &self.__val) - .finish() - } - } - impl ::hash::Hash for sigset_t { - fn hash(&self, state: &mut H) { - self.__val.hash(state); - } - } - - // msg - impl ::fmt::Debug for msg { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("msg") - .field("msg_next", &self.msg_next) - .field("msg_type", &self.msg_type) - .field("msg_ts", &self.msg_ts) - .field("msg_spot", &self.msg_spot) - .finish() - } - } - - // msqid_ds - impl ::fmt::Debug for msqid_ds { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("msqid_ds") - .field("msg_perm", &self.msg_perm) - .field("msg_first", &self.msg_first) - .field("msg_cbytes", &self.msg_cbytes) - .field("msg_qnum", &self.msg_qnum) - .field("msg_qbytes", &self.msg_qbytes) - .field("msg_lspid", &self.msg_lspid) - .field("msg_lrpid", &self.msg_lrpid) - .field("msg_stime", &self.msg_stime) - .field("msg_rtime", &self.msg_rtime) - .field("msg_ctime", &self.msg_ctime) - .finish() - } - } - - // sockaddr_dl - impl ::fmt::Debug for sockaddr_dl { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sockaddr_dl") - .field("sdl_len", &self.sdl_len) - .field("sdl_family", &self.sdl_family) - .field("sdl_index", &self.sdl_index) - .field("sdl_type", &self.sdl_type) - .field("sdl_nlen", &self.sdl_nlen) - .field("sdl_alen", &self.sdl_alen) - .field("sdl_slen", &self.sdl_slen) - .field("sdl_data", &self.sdl_data) - .finish() - } - } - impl PartialEq for sockaddr_dl { - fn eq(&self, other: &sockaddr_dl) -> bool { - self.sdl_len == other.sdl_len - && self.sdl_family == other.sdl_family - && self.sdl_index == other.sdl_index - && self.sdl_type == other.sdl_type - && self.sdl_nlen == other.sdl_nlen - && self.sdl_alen == other.sdl_alen - && self.sdl_slen == other.sdl_slen - && self - .sdl_data - .iter() - .zip(other.sdl_data.iter()) - .all(|(a,b)| a == b) - } - } - impl Eq for sockaddr_dl {} - impl ::hash::Hash for sockaddr_dl { - fn hash(&self, state: &mut H) { - self.sdl_len.hash(state); - self.sdl_family.hash(state); - self.sdl_index.hash(state); - self.sdl_type.hash(state); - self.sdl_nlen.hash(state); - self.sdl_alen.hash(state); - self.sdl_slen.hash(state); - self.sdl_data.hash(state); - } - } - - // sync_t - impl ::fmt::Debug for sync_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("sync_t") - .field("__owner", &self.__owner) - .field("__u", &self.__u) - .finish() - } - } - - // pthread_barrier_t - impl ::fmt::Debug for pthread_barrier_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("pthread_barrier_t") - .field("__pad", &self.__pad) - .finish() - } - } - - // pthread_rwlock_t - impl ::fmt::Debug for pthread_rwlock_t { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("pthread_rwlock_t") - .field("__active", &self.__active) - .field("__blockedwriters", &self.__blockedwriters) - .field("__blockedreaders", &self.__blockedreaders) - .field("__heavy", &self.__heavy) - .field("__lock", &self.__lock) - .field("__rcond", &self.__rcond) - .field("__wcond", &self.__wcond) - .field("__owner", &self.__owner) - .field("__spare", &self.__spare) - .finish() - } - } - - // syspage_entry - impl ::fmt::Debug for syspage_entry { - fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { - f.debug_struct("syspage_entry") - .field("size", &self.size) - .field("total_size", &self.total_size) - .field("type_", &self.type_) - .field("num_cpu", &self.num_cpu) - .field("system_private", &self.system_private) - .field("old_asinfo", &self.old_asinfo) - .field("hwinfo", &self.hwinfo) - .field("old_cpuinfo", &self.old_cpuinfo) - .field("old_cacheattr", &self.old_cacheattr) - .field("qtime", &self.qtime) - .field("callout", &self.callout) - .field("callin", &self.callin) - .field("typed_strings", &self.typed_strings) - .field("strings", &self.strings) - .field("old_intrinfo", &self.old_intrinfo) - .field("smp", &self.smp) - .field("pminfo", &self.pminfo) - .field("old_mdriver", &self.old_mdriver) - .field("new_asinfo", &self.new_asinfo) - .field("new_cpuinfo", &self.new_cpuinfo) - .field("new_cacheattr", &self.new_cacheattr) - .field("new_intrinfo", &self.new_intrinfo) - .field("new_mdriver", &self.new_mdriver) - .finish() - } - } - impl PartialEq for utsname { fn eq(&self, other: &utsname) -> bool { self.sysname @@ -1061,16 +868,6 @@ cfg_if! { .finish() } } - impl ::hash::Hash for mq_attr { - fn hash(&self, state: &mut H) { - self.mq_maxmsg.hash(state); - self.mq_msgsize.hash(state); - self.mq_flags.hash(state); - self.mq_curmsgs.hash(state); - self.mq_sendwait.hash(state); - self.mq_recvwait.hash(state); - } - } impl PartialEq for sockaddr_storage { fn eq(&self, other: &sockaddr_storage) -> bool { @@ -2742,7 +2539,7 @@ f! { .offset(_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as isize) } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { _CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length } @@ -2809,14 +2606,6 @@ f! { }; ::mem::size_of::() + ::mem::size_of::<::gid_t>() * ngrps } - - pub fn major(dev: ::dev_t) -> ::c_uint { - ((dev as ::c_uint) >> 10) & 0x3f - } - - pub fn minor(dev: ::dev_t) -> ::c_uint { - (dev as ::c_uint) & 0x3ff - } } safe_f! { @@ -2855,10 +2644,6 @@ safe_f! { pub {const} fn IPTOS_ECN(x: u8) -> u8 { x & ::IPTOS_ECN_MASK } - - pub {const} fn makedev(major: ::c_uint, minor: ::c_uint) -> ::dev_t { - ((major << 10) | (minor)) as ::dev_t - } } // Network related functions are provided by libsocket and regex @@ -2873,12 +2658,6 @@ extern "C" { pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int; pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char, mode: ::mode_t) -> ::c_int; - pub fn mknodat( - __fd: ::c_int, - pathname: *const ::c_char, - mode: ::mode_t, - dev: ::dev_t, - ) -> ::c_int; pub fn clock_getres(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; pub fn clock_gettime(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; @@ -2969,6 +2748,7 @@ extern "C" { pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int; pub fn abs(i: ::c_int) -> ::c_int; + pub fn atof(s: *const ::c_char) -> ::c_double; pub fn labs(i: ::c_long) -> ::c_long; pub fn rand() -> ::c_int; pub fn srand(seed: ::c_uint); diff --git a/third_party/rust/libc/src/unix/nto/neutrino.rs b/third_party/rust/libc/src/unix/nto/neutrino.rs index 1a6f7da9cece..cedd2165962a 100644 --- a/third_party/rust/libc/src/unix/nto/neutrino.rs +++ b/third_party/rust/libc/src/unix/nto/neutrino.rs @@ -1,16 +1,6 @@ pub type nto_job_t = ::sync_t; s! { - pub struct syspage_entry_info { - pub entry_off: u16, - pub entry_size: u16, - } - pub struct syspage_array_info { - entry_off: u16, - entry_size: u16, - element_size: u16, - } - pub struct intrspin { pub value: ::c_uint, // volatile } @@ -212,6 +202,16 @@ s! { } s_no_extra_traits! { + pub struct syspage_entry_info { + pub entry_off: u16, + pub entry_size: u16, + } + + pub struct syspage_array_info { + entry_off: u16, + entry_size: u16, + element_size: u16, + } #[repr(align(8))] pub struct syspage_entry { diff --git a/third_party/rust/libc/src/unix/redox/mod.rs b/third_party/rust/libc/src/unix/redox/mod.rs index 5003cda0accf..afba67727799 100644 --- a/third_party/rust/libc/src/unix/redox/mod.rs +++ b/third_party/rust/libc/src/unix/redox/mod.rs @@ -47,10 +47,6 @@ pub type speed_t = u32; pub type suseconds_t = ::c_int; pub type tcflag_t = u32; pub type time_t = ::c_longlong; -pub type id_t = ::c_uint; -pub type pid_t = usize; -pub type uid_t = u32; -pub type gid_t = u32; #[cfg_attr(feature = "extra_traits", derive(Debug))] pub enum timezone {} @@ -259,12 +255,6 @@ s! { pub tm_gmtoff: ::c_long, pub tm_zone: *const ::c_char, } - - pub struct ucred { - pub pid: pid_t, - pub uid: uid_t, - pub gid: gid_t, - } } pub const UTSLENGTH: usize = 65; @@ -287,10 +277,6 @@ pub const PATH_MAX: ::c_int = 4096; pub const F_GETLK: ::c_int = 5; pub const F_SETLK: ::c_int = 6; pub const F_SETLKW: ::c_int = 7; -pub const F_ULOCK: ::c_int = 0; -pub const F_LOCK: ::c_int = 1; -pub const F_TLOCK: ::c_int = 2; -pub const F_TEST: ::c_int = 3; // FIXME: relibc { pub const RTLD_DEFAULT: *mut ::c_void = 0i64 as *mut ::c_void; @@ -473,15 +459,6 @@ pub const O_SYMLINK: ::c_int = 0x4000_0000; // FIXME: Fix negative values missing from includes pub const O_NOFOLLOW: ::c_int = -0x8000_0000; -// locale.h -pub const LC_ALL: ::c_int = 0; -pub const LC_COLLATE: ::c_int = 1; -pub const LC_CTYPE: ::c_int = 2; -pub const LC_MESSAGES: ::c_int = 3; -pub const LC_MONETARY: ::c_int = 4; -pub const LC_NUMERIC: ::c_int = 5; -pub const LC_TIME: ::c_int = 6; - // netdb.h pub const AI_PASSIVE: ::c_int = 0x0001; pub const AI_CANONNAME: ::c_int = 0x0002; @@ -525,7 +502,6 @@ pub const IP_MULTICAST_TTL: ::c_int = 33; pub const IP_MULTICAST_LOOP: ::c_int = 34; pub const IP_ADD_MEMBERSHIP: ::c_int = 35; pub const IP_DROP_MEMBERSHIP: ::c_int = 36; -pub const IPPROTO_RAW: ::c_int = 255; // } // netinet/tcp.h @@ -541,10 +517,6 @@ pub const POLLOUT: ::c_short = 0x004; pub const POLLERR: ::c_short = 0x008; pub const POLLHUP: ::c_short = 0x010; pub const POLLNVAL: ::c_short = 0x020; -pub const POLLRDNORM: ::c_short = 0x040; -pub const POLLRDBAND: ::c_short = 0x080; -pub const POLLWRNORM: ::c_short = 0x100; -pub const POLLWRBAND: ::c_short = 0x200; // pthread.h pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0; @@ -1011,29 +983,6 @@ extern "C" { // unistd.h pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int; - pub fn getdtablesize() -> ::c_int; - - // grp.h - pub fn getgrgid_r( - gid: ::gid_t, - grp: *mut ::group, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut ::group, - ) -> ::c_int; - pub fn getgrnam_r( - name: *const ::c_char, - grp: *mut ::group, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut ::group, - ) -> ::c_int; - pub fn getgrouplist( - user: *const ::c_char, - group: ::gid_t, - groups: *mut ::gid_t, - ngroups: *mut ::c_int, - ) -> ::c_int; // malloc.h pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void; @@ -1067,16 +1016,6 @@ extern "C" { ) -> ::c_int; // pwd.h - pub fn getpwent() -> *mut passwd; - pub fn setpwent(); - pub fn endpwent(); - pub fn getpwnam_r( - name: *const ::c_char, - pwd: *mut passwd, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut passwd, - ) -> ::c_int; pub fn getpwuid_r( uid: ::uid_t, pwd: *mut passwd, @@ -1093,19 +1032,6 @@ extern "C" { ) -> ::c_int; pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int; pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int; - pub fn sigtimedwait( - set: *const sigset_t, - sig: *mut siginfo_t, - timeout: *const ::timespec, - ) -> ::c_int; - pub fn sigwait(set: *const sigset_t, sig: *mut ::c_int) -> ::c_int; - - // stdlib.h - pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void; - - // string.h - pub fn strlcat(dst: *mut ::c_char, src: *const ::c_char, siz: ::size_t) -> ::size_t; - pub fn strlcpy(dst: *mut ::c_char, src: *const ::c_char, siz: ::size_t) -> ::size_t; // sys/epoll.h pub fn epoll_create(size: ::c_int) -> ::c_int; @@ -1157,18 +1083,6 @@ extern "C" { // time.h pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int; pub fn clock_gettime(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; - - // strings.h - pub fn explicit_bzero(p: *mut ::c_void, len: ::size_t); - - pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; - pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int; - - pub fn getsubopt( - optionp: *mut *mut c_char, - tokens: *const *mut c_char, - valuep: *mut *mut c_char, - ) -> ::c_int; } cfg_if! { diff --git a/third_party/rust/libc/src/unix/solarish/mod.rs b/third_party/rust/libc/src/unix/solarish/mod.rs index a3fa56a65a67..99135d5f5940 100644 --- a/third_party/rust/libc/src/unix/solarish/mod.rs +++ b/third_party/rust/libc/src/unix/solarish/mod.rs @@ -1280,8 +1280,8 @@ pub const FILENAME_MAX: ::c_uint = 1024; pub const L_tmpnam: ::c_uint = 25; pub const TMP_MAX: ::c_uint = 17576; -pub const GRND_NONBLOCK: ::c_uint = 0x0001; -pub const GRND_RANDOM: ::c_uint = 0x0002; +pub const GRND_NONBLOCK: ::c_int = 0x0001; +pub const GRND_RANDOM: ::c_int = 0x0002; pub const O_RDONLY: ::c_int = 0; pub const O_WRONLY: ::c_int = 1; @@ -1825,8 +1825,6 @@ pub const SO_SNDTIMEO: ::c_int = 0x1005; pub const SO_RCVTIMEO: ::c_int = 0x1006; pub const SO_ERROR: ::c_int = 0x1007; pub const SO_TYPE: ::c_int = 0x1008; -pub const SO_PROTOTYPE: ::c_int = 0x1009; -pub const SO_DOMAIN: ::c_int = 0x100c; pub const SO_TIMESTAMP: ::c_int = 0x1013; pub const SCM_RIGHTS: ::c_int = 0x1010; @@ -2581,13 +2579,11 @@ pub const AT_SUN_FPTYPE: ::c_uint = 2027; // and 4 bytes everywhere else: #[cfg(target_arch = "sparc64")] const _CMSG_HDR_ALIGNMENT: usize = 8; -#[cfg(not(target_arch = "sparc64"))] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] const _CMSG_HDR_ALIGNMENT: usize = 4; const _CMSG_DATA_ALIGNMENT: usize = ::mem::size_of::<::c_int>(); -const NEWDEV: ::c_int = 1; - const_fn! { {const} fn _CMSG_HDR_ALIGN(p: usize) -> usize { (p + _CMSG_HDR_ALIGNMENT - 1) & !(_CMSG_HDR_ALIGNMENT - 1) @@ -2603,7 +2599,7 @@ f! { _CMSG_DATA_ALIGN(cmsg.offset(1) as usize) as *mut ::c_uchar } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { _CMSG_DATA_ALIGN(::mem::size_of::<::cmsghdr>()) as ::c_uint + length } @@ -3200,12 +3196,6 @@ extern "C" { longopts: *const option, longindex: *mut ::c_int, ) -> ::c_int; - - pub fn sync(); - - fn __major(version: ::c_int, devnum: ::dev_t) -> ::major_t; - fn __minor(version: ::c_int, devnum: ::dev_t) -> ::minor_t; - fn __makedev(version: ::c_int, majdev: ::major_t, mindev: ::minor_t) -> ::dev_t; } #[link(name = "sendfile")] @@ -3262,18 +3252,6 @@ extern "C" { pub fn lgrp_root(cookie: ::lgrp_cookie_t) -> ::lgrp_id_t; } -pub unsafe fn major(device: ::dev_t) -> ::major_t { - __major(NEWDEV, device) -} - -pub unsafe fn minor(device: ::dev_t) -> ::minor_t { - __minor(NEWDEV, device) -} - -pub unsafe fn makedev(maj: ::major_t, min: ::minor_t) -> ::dev_t { - __makedev(NEWDEV, maj, min) -} - mod compat; pub use self::compat::*; diff --git a/third_party/rust/libc/src/vxworks/mod.rs b/third_party/rust/libc/src/vxworks/mod.rs index c337a82793e6..6b705e8a22c8 100644 --- a/third_party/rust/libc/src/vxworks/mod.rs +++ b/third_party/rust/libc/src/vxworks/mod.rs @@ -1072,7 +1072,7 @@ f! { as ::c_uint } - pub {const} fn CMSG_LEN(length: ::c_uint) -> ::c_uint { + pub fn CMSG_LEN(length: ::c_uint) -> ::c_uint { CMSG_ALIGN(::mem::size_of::()) as ::c_uint + length } } diff --git a/third_party/rust/libc/src/wasi.rs b/third_party/rust/libc/src/wasi.rs index 1a855e0e0fe7..abfebd643932 100644 --- a/third_party/rust/libc/src/wasi.rs +++ b/third_party/rust/libc/src/wasi.rs @@ -246,15 +246,12 @@ pub const S_IFREG: mode_t = 32768; pub const S_IFLNK: mode_t = 40960; pub const S_IFSOCK: mode_t = 49152; pub const S_IFMT: mode_t = 57344; -pub const S_IRWXO: mode_t = 0x7; pub const S_IXOTH: mode_t = 0x1; pub const S_IWOTH: mode_t = 0x2; pub const S_IROTH: mode_t = 0x4; -pub const S_IRWXG: mode_t = 0x38; pub const S_IXGRP: mode_t = 0x8; pub const S_IWGRP: mode_t = 0x10; pub const S_IRGRP: mode_t = 0x20; -pub const S_IRWXU: mode_t = 0x1c0; pub const S_IXUSR: mode_t = 0x40; pub const S_IWUSR: mode_t = 0x80; pub const S_IRUSR: mode_t = 0x100; @@ -825,6 +822,4 @@ extern "C" { pub fn arc4random() -> u32; pub fn arc4random_buf(a: *mut c_void, b: size_t); pub fn arc4random_uniform(a: u32) -> u32; - - pub fn __errno_location() -> *mut ::c_int; } diff --git a/third_party/rust/libc/src/windows/mod.rs b/third_party/rust/libc/src/windows/mod.rs index 196f1f2e4b74..7f2f1ded19ec 100644 --- a/third_party/rust/libc/src/windows/mod.rs +++ b/third_party/rust/libc/src/windows/mod.rs @@ -278,17 +278,13 @@ impl ::Clone for fpos_t { } // Special handling for all print and scan type functions because of https://github.com/rust-lang/libc/issues/2860 -cfg_if! { - if #[cfg(not(feature = "rustc-dep-of-std"))] { - #[cfg_attr( - all(windows, target_env = "msvc"), - link(name = "legacy_stdio_definitions") - )] - extern "C" { - pub fn printf(format: *const c_char, ...) -> ::c_int; - pub fn fprintf(stream: *mut FILE, format: *const c_char, ...) -> ::c_int; - } - } +#[cfg_attr( + all(windows, target_env = "msvc"), + link(name = "legacy_stdio_definitions") +)] +extern "C" { + pub fn printf(format: *const c_char, ...) -> ::c_int; + pub fn fprintf(stream: *mut FILE, format: *const c_char, ...) -> ::c_int; } extern "C" { @@ -345,7 +341,6 @@ extern "C" { pub fn strtoull(s: *const c_char, endp: *mut *mut c_char, base: c_int) -> c_ulonglong; pub fn calloc(nobj: size_t, size: size_t) -> *mut c_void; pub fn malloc(size: size_t) -> *mut c_void; - pub fn _msize(p: *mut c_void) -> size_t; pub fn realloc(p: *mut c_void, size: size_t) -> *mut c_void; pub fn free(p: *mut c_void); pub fn abort() -> !; diff --git a/third_party/rust/libc/src/xous.rs b/third_party/rust/libc/src/xous.rs deleted file mode 100644 index e6c0c2573d07..000000000000 --- a/third_party/rust/libc/src/xous.rs +++ /dev/null @@ -1,49 +0,0 @@ -//! Xous C type definitions - -pub type c_schar = i8; -pub type c_uchar = u8; -pub type c_short = i16; -pub type c_ushort = u16; -pub type c_int = i32; -pub type c_uint = u32; -pub type c_float = f32; -pub type c_double = f64; -pub type c_longlong = i64; -pub type c_ulonglong = u64; -pub type intmax_t = i64; -pub type uintmax_t = u64; - -pub type size_t = usize; -pub type ptrdiff_t = isize; -pub type intptr_t = isize; -pub type uintptr_t = usize; -pub type ssize_t = isize; - -pub type off_t = i64; -pub type c_char = u8; -pub type c_long = i64; -pub type c_ulong = u64; -pub type wchar_t = u32; - -pub const INT_MIN: c_int = -2147483648; -pub const INT_MAX: c_int = 2147483647; - -cfg_if! { - if #[cfg(libc_core_cvoid)] { - pub use ::ffi::c_void; - } else { - // Use repr(u8) as LLVM expects `void*` to be the same as `i8*` to help - // enable more optimization opportunities around it recognizing things - // like malloc/free. - #[repr(u8)] - #[allow(missing_copy_implementations)] - #[allow(missing_debug_implementations)] - pub enum c_void { - // Two dummy variants so the #[repr] attribute can be used. - #[doc(hidden)] - __variant1, - #[doc(hidden)] - __variant2, - } - } -} diff --git a/third_party/rust/linux-raw-sys/.cargo-checksum.json b/third_party/rust/linux-raw-sys/.cargo-checksum.json deleted file mode 100644 index e5b1b7a43bf4..000000000000 --- a/third_party/rust/linux-raw-sys/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"CODE_OF_CONDUCT.md":"ccd9e538ce44713a2486cc8e4c01b8c8b846d1ccff15de728d8d6fa9a7f846cd","COPYRIGHT":"3290ae0fbc9ddb77d2239121d710f0bb9d31b3b4744e6d97fe01e652b4c1870b","Cargo.toml":"53b55bc02bcd7f75bd0be76f9440ffb888294cd35e9287f644188a82252c6ce0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-Apache-2.0_WITH_LLVM-exception":"268872b9816f90fd8e85db5a28d33f8150ebb8dd016653fb39ef1f94f2686bc5","LICENSE-MIT":"23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3","ORG_CODE_OF_CONDUCT.md":"a62b69bf86e605ee1bcbb2f0a12ba79e4cebb6983a7b6491949750aecc4f2178","README.md":"3d4ae2ec9429adfd329b4506f7ca6faa84dca30d1c3b416f8f4e6f57bdb3aa96","src/aarch64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/aarch64/general.rs":"a5be5de0f98244a28265c46588c324ba3f8dee51717e6222a1241b10a9ac593d","src/aarch64/if_ether.rs":"f558bfec1f5e80235db79f507e4afd3120647a5caddf17a87b7ad5540e5c1462","src/aarch64/io_uring.rs":"9ce4c9005b5b99e041b9d58be6866367605e4bee1e30a7096235cb234ed73e1b","src/aarch64/ioctl.rs":"f83af7f7cab6611c9f316b2289998d3276d844ac8f96111bc65f6c3340c3301a","src/aarch64/net.rs":"b88bcacd7cd153d417cb3adb176bbc441dda1e90880e53d89404439adf47ab88","src/aarch64/netlink.rs":"f6642310b8bd37b5775ba1a52cfe638beddd7c880f8dfacab62c3180255fb75f","src/aarch64/prctl.rs":"a80e2f89aa978210d980538e1d9c5b922bb073d118ee51b1f14c1f397c7cd576","src/aarch64/system.rs":"851a95c0d1b76782970a28c373a313954eea0db35f6ebce562e6047095f587c4","src/arm/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/arm/general.rs":"eb33bd0c5835ecf0a33e582e8460f056ef79d9a2fca06c7607568ed0605d1391","src/arm/if_ether.rs":"3873beb1f57bdcc52da345608c5deda5937d7b92b114b414ce6161784173b925","src/arm/io_uring.rs":"5e2e254d5853ed30568e17fab184f8cc458607465d19dcee6c87ca1b565d6d2d","src/arm/ioctl.rs":"54cb9bdc5fe4ee7cff30e087bb0d04f1d811b55be7604bb056387f859120935a","src/arm/net.rs":"3192a24c15f0f4e4d856678fd05e82d7ae3585921f6243e907c539d603873896","src/arm/netlink.rs":"2f98b8c0349c2d3d538164e4d06c28fa1fb9308f7691aa097526ce2fb3ac176f","src/arm/prctl.rs":"5477c74fec958d9f9d2028f58e95657840ead28445956e53fe0894e45922f8a5","src/arm/system.rs":"9aca94a4a553e09e6d2d43741fb8c120c05a193822e850951dc469bbd89cc703","src/csky/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/csky/general.rs":"dce0451c2876b8ab010026d5f100298c2024b8706dcb459d4799ee2fdbd9200a","src/csky/if_ether.rs":"aac7a069000195b9b18c6d25b2d7c338efb1062347a84e31cda7c93de374b3c6","src/csky/io_uring.rs":"bb7541d82f627cb681ea11f4e5c4162b0d0616ca08fcc6d31bcf22ef813f754d","src/csky/ioctl.rs":"77f30e67f9a4748bc31184454a0ff45fd821c3536cd98dc2411def8eeb59a268","src/csky/net.rs":"6df28547fc867f3e66dab6561e494573a416add67c1968ec2371c43d8e28da86","src/csky/netlink.rs":"9fc99e88df0efc15d39b397c9d653c32b4729e31a2434e730435fbdfcb362da4","src/csky/prctl.rs":"8df2f33387d5b4865d9417f796cc4d43b3cf549cfa41d7ce7d41dd367ed8b6c9","src/csky/system.rs":"a2913685b359e60bbfae413b89a6fd37ea38fa448f980ffadef42d227b33ada5","src/elf.rs":"d78049c38c52dfca608fcf9790613df786a03a18a80e7eb8c7acf4cb19e9a8a9","src/lib.rs":"f3399ba35206764ac4e2d755cfc7e0c580464b8fcc76968f6c4b9f64523a1d02","src/loongarch64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/loongarch64/general.rs":"95fbc2507feb167109ce386f939e72b8c5f5a16c18f8ab0389a74516c3ca288e","src/loongarch64/if_ether.rs":"a7b0918afc9dbf8e79490f83a809e4bd563af20ab2b3432d58b763ff31418daf","src/loongarch64/io_uring.rs":"ef851913c86bc2d629048e781edc76b59c63e659f8bd4bcd7fa7ff982186ed6d","src/loongarch64/ioctl.rs":"6f631e0ac37f2c2398168683a1523d1559b85369ffe4cdcc284ffe7455672c18","src/loongarch64/net.rs":"50ef111f314db8683e0f2f845f930e7e2209b97a17aa3e9fa774832ee9ef0599","src/loongarch64/netlink.rs":"789357343b94276e6f8fc8f3a32f06f3d3efd464c7850b2568dc609a49d1f305","src/loongarch64/prctl.rs":"624e4d3b8f3b4f1d6dcb1540c124ed03ce47f0580aa3425c0baed431dcd267ea","src/loongarch64/system.rs":"4cfcd4c28481b9ff5fc0330d5c713d637d3615c0184830d3a4391882eaed68f5","src/mips/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips/general.rs":"ff31df33aa8a2ff9c1fdca63224130d2503bc3a1ff75bd86c16562069df4e9dd","src/mips/if_ether.rs":"1ecdc654cb3eda633bb7192829b1001a0a5ae5a126110b4208bbee5b41f87f5e","src/mips/io_uring.rs":"c69479bb1f862febe78e0989745c202146aaef7e8ceaa0d7bf291af584748992","src/mips/ioctl.rs":"f7464d2cd0548ab4735a1ca8deba47f13ea0946a9bf86adfec1a77feb3a0f475","src/mips/net.rs":"89b8cc80411dadd23843b037ceb06cef47af1e57244d974a805c3914d7ffa4aa","src/mips/netlink.rs":"5045dece259abaa5b5974500a20a9325e4cd6eb87c344dd7448056dff469994f","src/mips/prctl.rs":"cd59615adf6f561ef6c542df59cf25f75877693ca1c4c489f5e460eb7e798d4d","src/mips/system.rs":"acbc69a1fe7299860f8bd142bc2ff5595a410e1528994139062fc680d1a87e71","src/mips32r6/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips32r6/general.rs":"ff31df33aa8a2ff9c1fdca63224130d2503bc3a1ff75bd86c16562069df4e9dd","src/mips32r6/if_ether.rs":"1ecdc654cb3eda633bb7192829b1001a0a5ae5a126110b4208bbee5b41f87f5e","src/mips32r6/io_uring.rs":"c69479bb1f862febe78e0989745c202146aaef7e8ceaa0d7bf291af584748992","src/mips32r6/ioctl.rs":"f7464d2cd0548ab4735a1ca8deba47f13ea0946a9bf86adfec1a77feb3a0f475","src/mips32r6/net.rs":"89b8cc80411dadd23843b037ceb06cef47af1e57244d974a805c3914d7ffa4aa","src/mips32r6/netlink.rs":"5045dece259abaa5b5974500a20a9325e4cd6eb87c344dd7448056dff469994f","src/mips32r6/prctl.rs":"cd59615adf6f561ef6c542df59cf25f75877693ca1c4c489f5e460eb7e798d4d","src/mips32r6/system.rs":"acbc69a1fe7299860f8bd142bc2ff5595a410e1528994139062fc680d1a87e71","src/mips64/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips64/general.rs":"c7eaf11b39338a76aa1647a2ca90fbb8657e9811558aa831ad979da56e5a6a60","src/mips64/if_ether.rs":"6d24518acba5bc8fa2a775d039ed9594de8349d6028621134626ccaa8ea18bcd","src/mips64/io_uring.rs":"18bd5d96c53aff44f4a37a71f16fa12c11b7c934b395bf841e47d98283146a50","src/mips64/ioctl.rs":"39f3276ec6f36ba78f5635bd418310b21bc228902d4da889fa01094c26f9b57d","src/mips64/net.rs":"f979c44d7d0bd12847664a2864b2c38bfd8f5b90826e9e31d5c6e64ba6365859","src/mips64/netlink.rs":"18f139573337be18fb9bd56de4d0bd8af5c80828cdf68ef68751c18dcb39c761","src/mips64/prctl.rs":"a8d9ae240ce582d7b66e13937b99df73c7247ce9f69bfdd12109903d7c6dfb0e","src/mips64/system.rs":"95805c533a8eb8f53c28f138e6a2d12064681cc9db55d3042ee748c655a5d7cd","src/mips64r6/errno.rs":"9ab1ed2bf371a27401745c2a6f9692f7e66dfd481d032cb40a354826d394ea8e","src/mips64r6/general.rs":"c7eaf11b39338a76aa1647a2ca90fbb8657e9811558aa831ad979da56e5a6a60","src/mips64r6/if_ether.rs":"6d24518acba5bc8fa2a775d039ed9594de8349d6028621134626ccaa8ea18bcd","src/mips64r6/io_uring.rs":"18bd5d96c53aff44f4a37a71f16fa12c11b7c934b395bf841e47d98283146a50","src/mips64r6/ioctl.rs":"39f3276ec6f36ba78f5635bd418310b21bc228902d4da889fa01094c26f9b57d","src/mips64r6/net.rs":"f979c44d7d0bd12847664a2864b2c38bfd8f5b90826e9e31d5c6e64ba6365859","src/mips64r6/netlink.rs":"18f139573337be18fb9bd56de4d0bd8af5c80828cdf68ef68751c18dcb39c761","src/mips64r6/prctl.rs":"a8d9ae240ce582d7b66e13937b99df73c7247ce9f69bfdd12109903d7c6dfb0e","src/mips64r6/system.rs":"95805c533a8eb8f53c28f138e6a2d12064681cc9db55d3042ee748c655a5d7cd","src/powerpc/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/powerpc/general.rs":"f88e1b68f45f544c80b639d0aa8b9dba1ab79f4a0c47f3f65ece335cf36df8c7","src/powerpc/if_ether.rs":"56ab5fbf8c9d0dd0654412fabdca6759cbb421a876e5cebe2fec10e25728b55c","src/powerpc/io_uring.rs":"38ead79180c96e8af69929dacbc36e8cfbccec96875c61f094e531e6860639db","src/powerpc/ioctl.rs":"513a1dda33b2cd6c57212263c1bf0d8d443e54af6efe75e938fd700c1ca2b630","src/powerpc/net.rs":"86d206a03f980402d580fd872c26c2156acf6ea64cde4cc9379201a36bd3330a","src/powerpc/netlink.rs":"4f10870fbd23de17efd4cba6d5a40ba85564effc5d0b71f9d7f928a42cb77b20","src/powerpc/prctl.rs":"f236987bc8ae993ab2b0e88b2eacbae51eee4da170ac075552070a76c717d803","src/powerpc/system.rs":"3e01e5e145adb87263f04c9e053faac0c0758689fd32917d2c7c2eec1d89f9e6","src/powerpc64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/powerpc64/general.rs":"87d30f8909dc64b9fa914139db7f0aad8544015b197f2113807a7baa31b1eacf","src/powerpc64/if_ether.rs":"15e12d56b1367cb5c9d8fd1b9995acf1429a923bf603698bd732efe1acc30cd6","src/powerpc64/io_uring.rs":"50018e504d78c584beaec3b1a6d477d30d566d25cb1a40b0a2adfb23d726674f","src/powerpc64/ioctl.rs":"513a1dda33b2cd6c57212263c1bf0d8d443e54af6efe75e938fd700c1ca2b630","src/powerpc64/net.rs":"70622d7df4f2c89941eee6b629e77b09c3b69d7b4b5ad40b1425843a470ab8cd","src/powerpc64/netlink.rs":"352a06995f7de6e4fc1c2ff54c1eccb93a3d833a923e834ec75c6a4d30ea5051","src/powerpc64/prctl.rs":"1fcccc5b6dac472a30b7701b5c9e436c238410077cfe158d600b51d55bcc074a","src/powerpc64/system.rs":"500116b7613a504ebad028cec1ba37323310e29864d885ae62191ccb1f86d333","src/riscv32/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/riscv32/general.rs":"7bd0740d489d74f2e4af6cf17ff4c5a0201bb8b1e074c0ef51c2af2a54a46243","src/riscv32/if_ether.rs":"aac7a069000195b9b18c6d25b2d7c338efb1062347a84e31cda7c93de374b3c6","src/riscv32/io_uring.rs":"5c67dde8fdb3641407d4ebd744171606b82596176343fe6766afd3220eda2ab1","src/riscv32/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/riscv32/net.rs":"6df28547fc867f3e66dab6561e494573a416add67c1968ec2371c43d8e28da86","src/riscv32/netlink.rs":"9fc99e88df0efc15d39b397c9d653c32b4729e31a2434e730435fbdfcb362da4","src/riscv32/prctl.rs":"8df2f33387d5b4865d9417f796cc4d43b3cf549cfa41d7ce7d41dd367ed8b6c9","src/riscv32/system.rs":"a2913685b359e60bbfae413b89a6fd37ea38fa448f980ffadef42d227b33ada5","src/riscv64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/riscv64/general.rs":"bb8edd39188ced7f8e3f404c7559af11e1d80c8f18126e83ce03272d89e8ef0d","src/riscv64/if_ether.rs":"a7b0918afc9dbf8e79490f83a809e4bd563af20ab2b3432d58b763ff31418daf","src/riscv64/io_uring.rs":"ef851913c86bc2d629048e781edc76b59c63e659f8bd4bcd7fa7ff982186ed6d","src/riscv64/ioctl.rs":"6f631e0ac37f2c2398168683a1523d1559b85369ffe4cdcc284ffe7455672c18","src/riscv64/net.rs":"50ef111f314db8683e0f2f845f930e7e2209b97a17aa3e9fa774832ee9ef0599","src/riscv64/netlink.rs":"789357343b94276e6f8fc8f3a32f06f3d3efd464c7850b2568dc609a49d1f305","src/riscv64/prctl.rs":"624e4d3b8f3b4f1d6dcb1540c124ed03ce47f0580aa3425c0baed431dcd267ea","src/riscv64/system.rs":"4cfcd4c28481b9ff5fc0330d5c713d637d3615c0184830d3a4391882eaed68f5","src/s390x/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/s390x/general.rs":"f7fb19059aca9182d4cc97a807fbe1727b4082791e316c63365d115803948d18","src/s390x/if_ether.rs":"2a6b2132be1aebe126eb64ea230a82c2ab18433ece37226c9dacd81392ad6ca2","src/s390x/io_uring.rs":"57790b4ce46a4a2a87a329ff935033dfb430117bcc2154fa066c5d681f115319","src/s390x/ioctl.rs":"f806407c91520bc994c7cd638576686710700a4cfa30c8ca3f81d55ce1d6ecdd","src/s390x/net.rs":"28abfbe5beca5dff444ed226f90ea9e37e2f7bb5c12e564c1efb59600322d773","src/s390x/netlink.rs":"c3c11102a55d15dfb534d748c8bc8ece58c9d56170b6afe07d1f2cc783fd6372","src/s390x/prctl.rs":"6fe9f5349f9a694b391f309f208235c1d4669430d3f051ef64467576e91df7a1","src/s390x/system.rs":"f68e8afbd02bc87a8fec2cae4e367f296873f2c1a651032da4ccc4f1c0ed4670","src/sparc/errno.rs":"b3c5e1a6c8378d613c6ef3dd44e2199ea7455da65e83d6bb19582a79de880f80","src/sparc/general.rs":"13c5b4e0c6f9f2cfb9c062de637f88ff0b9114aaf940278cd7b4161b3d52c0c4","src/sparc/if_ether.rs":"c574c6d1ea11a8bb213b18928fe2d342c897d8ff04458991a5192eb401fbbc57","src/sparc/io_uring.rs":"d813aabc93f383c8522773ed431209627d810c78bcdb4dae931a702aae55e09f","src/sparc/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/sparc/net.rs":"aee68381686374b66f05b33d2b8235530af957831121c17c4583caef2e515855","src/sparc/netlink.rs":"0f176c24de7b2b19ac16dd95625947b8047d48bc7b871e12a3acd31f8e97c6f5","src/sparc/prctl.rs":"5f5686fe04d8cc5e746d789340331095044f244c123ecf1468dcb089bbb931cd","src/sparc/system.rs":"6f1f8ce9978693845621880031ac4805f00027315a691cfe1d466703c7a96e8d","src/sparc64/errno.rs":"b3c5e1a6c8378d613c6ef3dd44e2199ea7455da65e83d6bb19582a79de880f80","src/sparc64/general.rs":"a026441b0dbfc2dd3138bd7fc15c99a0843b13ff194a610dbe97498d068ef769","src/sparc64/if_ether.rs":"e51661cb54922c3c01853617a61b3d141768adf5b94162c4aefb326d31ef55f5","src/sparc64/io_uring.rs":"688f4678c259eb940aa0216c0183843d436b918d214e13bed56a38ddb55132db","src/sparc64/ioctl.rs":"b2a4c7d649b18a4d2a1142400de687d48c195dcf8a86b58ac261413c33809d7b","src/sparc64/net.rs":"a9ee3df43212c6f5016fd59b8fcf28b8b49016b4e143e2de97b7b60093f326d5","src/sparc64/netlink.rs":"7cec2a77af7ec17cad96d63027fd4a9164f0e6503f2e6cc2a99e79aa1bba3147","src/sparc64/prctl.rs":"ff897312b99274ce4eefecccc9797e34accc69efce1299712ab631e9542cb8ca","src/sparc64/system.rs":"becb2e706ed6df77860a2a3884b28181dca606db22fcd604a8a1803f937e8baf","src/x32/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x32/general.rs":"ab1327fc01e9529abded9429e6720ec84b441744b68898f1a1cf8ce48d7de85d","src/x32/if_ether.rs":"859047581be4a3ae923b88516e86230a4f9a447a5203285dd8bcc539038c5c4f","src/x32/io_uring.rs":"40834d29cf819e43a23f9a2e075e2ea0c001be817f7200aa059c24eae6d29123","src/x32/ioctl.rs":"085227ec906237903b5e8b2e90b80fd078ddb4f9e44bbd6c9bee54ea7d5d6b1a","src/x32/net.rs":"c3133d3ac4cafff36bf8e0e374a788bd6aae6b36d0cd28be0cc1ee140529962a","src/x32/netlink.rs":"f74042f6cf0eabccfa6b8008a89ee7ab347fb7eaa89499757a786b13b2403982","src/x32/prctl.rs":"2d1eb6873dc5b72a8252f12e695d98a045e01026f730302a6515f53a394bba7c","src/x32/system.rs":"69c125aea6b21f2c4981f3386602283a691524671fef1da7d67de3b67fffdc42","src/x86/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x86/general.rs":"8f48e3f5136a3aadf0282674937c4748dabc59dbb3cce4b9f2f73f8d2d25d52f","src/x86/if_ether.rs":"3873beb1f57bdcc52da345608c5deda5937d7b92b114b414ce6161784173b925","src/x86/io_uring.rs":"3f60400dfc11a5eafa5a54466f7f9ca74a63219feda2278c388529bf40c0a6a3","src/x86/ioctl.rs":"8dd0afaa7c3017c3866e579705699be75acc1a095694232b2903a12b3c07a770","src/x86/net.rs":"3192a24c15f0f4e4d856678fd05e82d7ae3585921f6243e907c539d603873896","src/x86/netlink.rs":"2f98b8c0349c2d3d538164e4d06c28fa1fb9308f7691aa097526ce2fb3ac176f","src/x86/prctl.rs":"5477c74fec958d9f9d2028f58e95657840ead28445956e53fe0894e45922f8a5","src/x86/system.rs":"9aca94a4a553e09e6d2d43741fb8c120c05a193822e850951dc469bbd89cc703","src/x86_64/errno.rs":"db283e5ea7fb63e0f57acb241e6471a951b4218660c01ca37b80be9a53629b92","src/x86_64/general.rs":"24f147e5800b36d49645997571cffab9d6e562c4b317000278f743dc41e3ef71","src/x86_64/if_ether.rs":"feb5362d90fbd5113b6f1f22fcc77a7b3bb7c8f5081be7eacb2e270d2f24a293","src/x86_64/io_uring.rs":"6c008c59b6905b7872b788e30d546efa3b5bb03a0fe17e33b90bfc8beec23f29","src/x86_64/ioctl.rs":"085227ec906237903b5e8b2e90b80fd078ddb4f9e44bbd6c9bee54ea7d5d6b1a","src/x86_64/net.rs":"d0f08df0ce735b8c75b6a7f466b97a199330395ccc04e8a8d5899f8426a9e798","src/x86_64/netlink.rs":"d47b8b117007b1c29db325dad68ed1b92562b98f90916b1b192f57a935a98038","src/x86_64/prctl.rs":"6d0f63fff8d76cc2f4678f38e40a68d072d7da4094d5217ce92872370bb4df9b","src/x86_64/system.rs":"6a415f104e7dd34829b36c19ad89e0cfcfbc69a846c87f81e202411386d46966"},"package":"1a9bad9f94746442c783ca431b22403b519cd7fbeed0533fdd6328b2f2212128"} \ No newline at end of file diff --git a/third_party/rust/linux-raw-sys/CODE_OF_CONDUCT.md b/third_party/rust/linux-raw-sys/CODE_OF_CONDUCT.md deleted file mode 100644 index affbd3dbbe44..000000000000 --- a/third_party/rust/linux-raw-sys/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,49 +0,0 @@ -# Contributor Covenant Code of Conduct - -*Note*: this Code of Conduct pertains to individuals' behavior. Please also see the [Organizational Code of Conduct][OCoC]. - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Bytecode Alliance CoC team at [report@bytecodealliance.org](mailto:report@bytecodealliance.org). The CoC team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The CoC team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the Bytecode Alliance's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[OCoC]: https://github.com/sunfishcode/linux-raw-sys/blob/main/ORG_CODE_OF_CONDUCT.md -[homepage]: https://www.contributor-covenant.org -[version]: https://www.contributor-covenant.org/version/1/4/ diff --git a/third_party/rust/linux-raw-sys/COPYRIGHT b/third_party/rust/linux-raw-sys/COPYRIGHT deleted file mode 100644 index 719e3dbc85e2..000000000000 --- a/third_party/rust/linux-raw-sys/COPYRIGHT +++ /dev/null @@ -1,29 +0,0 @@ -Short version for non-lawyers: - -`linux-raw-sys` is triple-licensed under Apache 2.0 with the LLVM Exception, -Apache 2.0, and MIT terms. - - -Longer version: - -Copyrights in the `linux-raw-sys` project are retained by their contributors. -No copyright assignment is required to contribute to the `linux-raw-sys` -project. - -Some files include code derived from Rust's `libstd`; see the comments in -the code for details. - -Except as otherwise noted (below and/or in individual files), `linux-raw-sys` -is licensed under: - - - the Apache License, Version 2.0, with the LLVM Exception - or - - - the Apache License, Version 2.0 - or - , - - or the MIT license - or - , - -at your option. diff --git a/third_party/rust/linux-raw-sys/Cargo.toml b/third_party/rust/linux-raw-sys/Cargo.toml deleted file mode 100644 index 55baa0be119b..000000000000 --- a/third_party/rust/linux-raw-sys/Cargo.toml +++ /dev/null @@ -1,82 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - -[package] -edition = "2021" -rust-version = "1.63" -name = "linux-raw-sys" -version = "0.4.7" -authors = ["Dan Gohman "] -exclude = [ - "/gen", - "/.*", -] -description = "Generated bindings for Linux's userspace API" -documentation = "https://docs.rs/linux-raw-sys" -readme = "README.md" -keywords = [ - "linux", - "uapi", - "ffi", -] -categories = ["external-ffi-bindings"] -license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" -repository = "https://github.com/sunfishcode/linux-raw-sys" - -[package.metadata.docs.rs] -features = [ - "default", - "ioctl", - "netlink", -] -targets = [ - "x86_64-unknown-linux-gnu", - "i686-unknown-linux-gnu", -] - -[dependencies.compiler_builtins] -version = "0.1.49" -optional = true - -[dependencies.core] -version = "1.0.0" -optional = true -package = "rustc-std-workspace-core" - -[dev-dependencies.libc] -version = "0.2.100" - -[dev-dependencies.static_assertions] -version = "1.1.0" - -[features] -default = [ - "std", - "general", - "errno", -] -elf = [] -errno = [] -general = [] -if_ether = [] -io_uring = [] -ioctl = [] -net = [] -netlink = [] -no_std = [] -prctl = [] -rustc-dep-of-std = [ - "core", - "compiler_builtins", - "no_std", -] -std = [] -system = [] diff --git a/third_party/rust/linux-raw-sys/LICENSE-APACHE b/third_party/rust/linux-raw-sys/LICENSE-APACHE deleted file mode 100644 index 16fe87b06e80..000000000000 --- a/third_party/rust/linux-raw-sys/LICENSE-APACHE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/third_party/rust/linux-raw-sys/LICENSE-Apache-2.0_WITH_LLVM-exception b/third_party/rust/linux-raw-sys/LICENSE-Apache-2.0_WITH_LLVM-exception deleted file mode 100644 index f9d81955f4bc..000000000000 --- a/third_party/rust/linux-raw-sys/LICENSE-Apache-2.0_WITH_LLVM-exception +++ /dev/null @@ -1,220 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ---- LLVM Exceptions to the Apache 2.0 License ---- - -As an exception, if, as a result of your compiling your source code, portions -of this Software are embedded into an Object form of such source code, you -may redistribute such embedded portions in such Object form without complying -with the conditions of Sections 4(a), 4(b) and 4(d) of the License. - -In addition, if you combine or link compiled forms of this Software with -software that is licensed under the GPLv2 ("Combined Software") and if a -court of competent jurisdiction determines that the patent provision (Section -3), the indemnity provision (Section 9) or other Section of the License -conflicts with the conditions of the GPLv2, you may retroactively and -prospectively choose to deem waived or otherwise exclude such Section(s) of -the License, but only in their entirety and only with respect to the Combined -Software. - diff --git a/third_party/rust/linux-raw-sys/LICENSE-MIT b/third_party/rust/linux-raw-sys/LICENSE-MIT deleted file mode 100644 index 31aa79387f27..000000000000 --- a/third_party/rust/linux-raw-sys/LICENSE-MIT +++ /dev/null @@ -1,23 +0,0 @@ -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/third_party/rust/linux-raw-sys/ORG_CODE_OF_CONDUCT.md b/third_party/rust/linux-raw-sys/ORG_CODE_OF_CONDUCT.md deleted file mode 100644 index 6f4fb3f537d1..000000000000 --- a/third_party/rust/linux-raw-sys/ORG_CODE_OF_CONDUCT.md +++ /dev/null @@ -1,143 +0,0 @@ -# Bytecode Alliance Organizational Code of Conduct (OCoC) - -*Note*: this Code of Conduct pertains to organizations' behavior. Please also see the [Individual Code of Conduct](CODE_OF_CONDUCT.md). - -## Preamble - -The Bytecode Alliance (BA) welcomes involvement from organizations, -including commercial organizations. This document is an -*organizational* code of conduct, intended particularly to provide -guidance to commercial organizations. It is distinct from the -[Individual Code of Conduct (ICoC)](CODE_OF_CONDUCT.md), and does not -replace the ICoC. This OCoC applies to any group of people acting in -concert as a BA member or as a participant in BA activities, whether -or not that group is formally incorporated in some jurisdiction. - -The code of conduct described below is not a set of rigid rules, and -we did not write it to encompass every conceivable scenario that might -arise. For example, it is theoretically possible there would be times -when asserting patents is in the best interest of the BA community as -a whole. In such instances, consult with the BA, strive for -consensus, and interpret these rules with an intent that is generous -to the community the BA serves. - -While we may revise these guidelines from time to time based on -real-world experience, overall they are based on a simple principle: - -*Bytecode Alliance members should observe the distinction between - public community functions and private functions — especially - commercial ones — and should ensure that the latter support, or at - least do not harm, the former.* - -## Guidelines - - * **Do not cause confusion about Wasm standards or interoperability.** - - Having an interoperable WebAssembly core is a high priority for - the BA, and members should strive to preserve that core. It is fine - to develop additional non-standard features or APIs, but they - should always be clearly distinguished from the core interoperable - Wasm. - - Treat the WebAssembly name and any BA-associated names with - respect, and follow BA trademark and branding guidelines. If you - distribute a customized version of software originally produced by - the BA, or if you build a product or service using BA-derived - software, use names that clearly distinguish your work from the - original. (You should still provide proper attribution to the - original, of course, wherever such attribution would normally be - given.) - - Further, do not use the WebAssembly name or BA-associated names in - other public namespaces in ways that could cause confusion, e.g., - in company names, names of commercial service offerings, domain - names, publicly-visible social media accounts or online service - accounts, etc. It may sometimes be reasonable, however, to - register such a name in a new namespace and then immediately donate - control of that account to the BA, because that would help the project - maintain its identity. - - For further guidance, see the BA Trademark and Branding Policy - [TODO: create policy, then insert link]. - - * **Do not restrict contributors.** If your company requires - employees or contractors to sign non-compete agreements, those - agreements must not prevent people from participating in the BA or - contributing to related projects. - - This does not mean that all non-compete agreements are incompatible - with this code of conduct. For example, a company may restrict an - employee's ability to solicit the company's customers. However, an - agreement must not block any form of technical or social - participation in BA activities, including but not limited to the - implementation of particular features. - - The accumulation of experience and expertise in individual persons, - who are ultimately free to direct their energy and attention as - they decide, is one of the most important drivers of progress in - open source projects. A company that limits this freedom may hinder - the success of the BA's efforts. - - * **Do not use patents as offensive weapons.** If any BA participant - prevents the adoption or development of BA technologies by - asserting its patents, that undermines the purpose of the - coalition. The collaboration fostered by the BA cannot include - members who act to undermine its work. - - * **Practice responsible disclosure** for security vulnerabilities. - Use designated, non-public reporting channels to disclose technical - vulnerabilities, and give the project a reasonable period to - respond, remediate, and patch. [TODO: optionally include the - security vulnerability reporting URL here.] - - Vulnerability reporters may patch their company's own offerings, as - long as that patching does not significantly delay the reporting of - the vulnerability. Vulnerability information should never be used - for unilateral commercial advantage. Vendors may legitimately - compete on the speed and reliability with which they deploy - security fixes, but withholding vulnerability information damages - everyone in the long run by risking harm to the BA project's - reputation and to the security of all users. - - * **Respect the letter and spirit of open source practice.** While - there is not space to list here all possible aspects of standard - open source practice, some examples will help show what we mean: - - * Abide by all applicable open source license terms. Do not engage - in copyright violation or misattribution of any kind. - - * Do not claim others' ideas or designs as your own. - - * When others engage in publicly visible work (e.g., an upcoming - demo that is coordinated in a public issue tracker), do not - unilaterally announce early releases or early demonstrations of - that work ahead of their schedule in order to secure private - advantage (such as marketplace advantage) for yourself. - - The BA reserves the right to determine what constitutes good open - source practices and to take action as it deems appropriate to - encourage, and if necessary enforce, such practices. - -## Enforcement - -Instances of organizational behavior in violation of the OCoC may -be reported by contacting the Bytecode Alliance CoC team at -[report@bytecodealliance.org](mailto:report@bytecodealliance.org). The -CoC team will review and investigate all complaints, and will respond -in a way that it deems appropriate to the circumstances. The CoC team -is obligated to maintain confidentiality with regard to the reporter of -an incident. Further details of specific enforcement policies may be -posted separately. - -When the BA deems an organization in violation of this OCoC, the BA -will, at its sole discretion, determine what action to take. The BA -will decide what type, degree, and duration of corrective action is -needed, if any, before a violating organization can be considered for -membership (if it was not already a member) or can have its membership -reinstated (if it was a member and the BA canceled its membership due -to the violation). - -In practice, the BA's first approach will be to start a conversation, -with punitive enforcement used only as a last resort. Violations -often turn out to be unintentional and swiftly correctable with all -parties acting in good faith. diff --git a/third_party/rust/linux-raw-sys/README.md b/third_party/rust/linux-raw-sys/README.md deleted file mode 100644 index b44ef22e72ee..000000000000 --- a/third_party/rust/linux-raw-sys/README.md +++ /dev/null @@ -1,44 +0,0 @@ -
-

linux-raw-sys

- -

- Generated bindings for Linux's userspace API -

- -

- Github Actions CI Status - zulip chat - crates.io page - docs.rs docs -

-
- -This crate contains bindgen-generated bindings for Linux's userspace API. - -This is primarily of interest if you want to make raw system calls directly, -which is tedious and error prone and not necessary for most use cases. For a -minimal type-safe, memory-safe, and I/O-safe API to the Linux system calls -built on these bindings, see the [rustix crate]. - -The full bindings are quite large, so they've been split up into modules and -cargo features. By default, `general` and `errno` are enabled, which provide -most things needed by general-purpose code. - -To regenerate the generated bindings, run `cargo update && cd gen && cargo run --release`. - -## Similar crates - -This is similar to [linux-sys], except the bindings are generated offline, -rather than in a build.rs, making downstream builds simpler. And, this crate -has bindings for more headers, as well as supplementary definitions not -exported by Linux's headers but nonetheless needed by userspace. - -# Minimum Supported Rust Version (MSRV) - -This crate currently works on the version of [Rust on Debian stable], which is -currently Rust 1.63. This policy may change in the future, in minor version -releases, so users using a fixed version of Rust should pin to a specific -version of this crate. - -[linux-sys]: https://crates.io/crates/linux-sys -[rustix crate]: https://github.com/bytecodealliance/rustix#linux-raw-syscall-support diff --git a/third_party/rust/linux-raw-sys/src/aarch64/errno.rs b/third_party/rust/linux-raw-sys/src/aarch64/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/aarch64/general.rs b/third_party/rust/linux-raw-sys/src/aarch64/general.rs deleted file mode 100644 index 812c1bab9ab0..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/general.rs +++ /dev/null @@ -1,2805 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __kernel_long_t; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulong, -pub __pad1: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_int, -pub __pad2: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __kernel_long_t, -pub f_bfree: __kernel_long_t, -pub f_bavail: __kernel_long_t, -pub f_files: __kernel_long_t, -pub f_ffree: __kernel_long_t, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -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_EXECFN: u32 = 31; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_DIRECTORY: u32 = 16384; -pub const O_NOFOLLOW: u32 = 32768; -pub const O_DIRECT: u32 = 65536; -pub const O_LARGEFILE: u32 = 131072; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4210688; -pub const O_TMPFILE_MASK: u32 = 4210752; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const PROT_BTI: u32 = 16; -pub const PROT_MTE: u32 = 32; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 5120; -pub const SIGSTKSZ: u32 = 16384; -pub const _NSIG: u32 = 64; -pub const _NSIG_BPW: u32 = 64; -pub const _NSIG_WORDS: u32 = 1; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_io_setup: u32 = 0; -pub const __NR_io_destroy: u32 = 1; -pub const __NR_io_submit: u32 = 2; -pub const __NR_io_cancel: u32 = 3; -pub const __NR_io_getevents: u32 = 4; -pub const __NR_setxattr: u32 = 5; -pub const __NR_lsetxattr: u32 = 6; -pub const __NR_fsetxattr: u32 = 7; -pub const __NR_getxattr: u32 = 8; -pub const __NR_lgetxattr: u32 = 9; -pub const __NR_fgetxattr: u32 = 10; -pub const __NR_listxattr: u32 = 11; -pub const __NR_llistxattr: u32 = 12; -pub const __NR_flistxattr: u32 = 13; -pub const __NR_removexattr: u32 = 14; -pub const __NR_lremovexattr: u32 = 15; -pub const __NR_fremovexattr: u32 = 16; -pub const __NR_getcwd: u32 = 17; -pub const __NR_lookup_dcookie: u32 = 18; -pub const __NR_eventfd2: u32 = 19; -pub const __NR_epoll_create1: u32 = 20; -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 __NR3264_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; -pub const __NR_ioctl: u32 = 29; -pub const __NR_ioprio_set: u32 = 30; -pub const __NR_ioprio_get: u32 = 31; -pub const __NR_flock: u32 = 32; -pub const __NR_mknodat: u32 = 33; -pub const __NR_mkdirat: u32 = 34; -pub const __NR_unlinkat: u32 = 35; -pub const __NR_symlinkat: u32 = 36; -pub const __NR_linkat: u32 = 37; -pub const __NR_renameat: u32 = 38; -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 __NR3264_statfs: u32 = 43; -pub const __NR3264_fstatfs: u32 = 44; -pub const __NR3264_truncate: u32 = 45; -pub const __NR3264_ftruncate: u32 = 46; -pub const __NR_fallocate: u32 = 47; -pub const __NR_faccessat: u32 = 48; -pub const __NR_chdir: u32 = 49; -pub const __NR_fchdir: u32 = 50; -pub const __NR_chroot: u32 = 51; -pub const __NR_fchmod: u32 = 52; -pub const __NR_fchmodat: u32 = 53; -pub const __NR_fchownat: u32 = 54; -pub const __NR_fchown: u32 = 55; -pub const __NR_openat: u32 = 56; -pub const __NR_close: u32 = 57; -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 __NR3264_lseek: u32 = 62; -pub const __NR_read: u32 = 63; -pub const __NR_write: u32 = 64; -pub const __NR_readv: u32 = 65; -pub const __NR_writev: u32 = 66; -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 __NR3264_sendfile: u32 = 71; -pub const __NR_pselect6: u32 = 72; -pub const __NR_ppoll: u32 = 73; -pub const __NR_signalfd4: u32 = 74; -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 __NR3264_fstatat: u32 = 79; -pub const __NR3264_fstat: u32 = 80; -pub const __NR_sync: u32 = 81; -pub const __NR_fsync: u32 = 82; -pub const __NR_fdatasync: u32 = 83; -pub const __NR_sync_file_range: u32 = 84; -pub const __NR_timerfd_create: u32 = 85; -pub const __NR_timerfd_settime: u32 = 86; -pub const __NR_timerfd_gettime: u32 = 87; -pub const __NR_utimensat: u32 = 88; -pub const __NR_acct: u32 = 89; -pub const __NR_capget: u32 = 90; -pub const __NR_capset: u32 = 91; -pub const __NR_personality: u32 = 92; -pub const __NR_exit: u32 = 93; -pub const __NR_exit_group: u32 = 94; -pub const __NR_waitid: u32 = 95; -pub const __NR_set_tid_address: u32 = 96; -pub const __NR_unshare: u32 = 97; -pub const __NR_futex: u32 = 98; -pub const __NR_set_robust_list: u32 = 99; -pub const __NR_get_robust_list: u32 = 100; -pub const __NR_nanosleep: u32 = 101; -pub const __NR_getitimer: u32 = 102; -pub const __NR_setitimer: u32 = 103; -pub const __NR_kexec_load: u32 = 104; -pub const __NR_init_module: u32 = 105; -pub const __NR_delete_module: u32 = 106; -pub const __NR_timer_create: u32 = 107; -pub const __NR_timer_gettime: u32 = 108; -pub const __NR_timer_getoverrun: u32 = 109; -pub const __NR_timer_settime: u32 = 110; -pub const __NR_timer_delete: u32 = 111; -pub const __NR_clock_settime: u32 = 112; -pub const __NR_clock_gettime: u32 = 113; -pub const __NR_clock_getres: u32 = 114; -pub const __NR_clock_nanosleep: u32 = 115; -pub const __NR_syslog: u32 = 116; -pub const __NR_ptrace: u32 = 117; -pub const __NR_sched_setparam: u32 = 118; -pub const __NR_sched_setscheduler: u32 = 119; -pub const __NR_sched_getscheduler: u32 = 120; -pub const __NR_sched_getparam: u32 = 121; -pub const __NR_sched_setaffinity: u32 = 122; -pub const __NR_sched_getaffinity: u32 = 123; -pub const __NR_sched_yield: u32 = 124; -pub const __NR_sched_get_priority_max: u32 = 125; -pub const __NR_sched_get_priority_min: u32 = 126; -pub const __NR_sched_rr_get_interval: u32 = 127; -pub const __NR_restart_syscall: u32 = 128; -pub const __NR_kill: u32 = 129; -pub const __NR_tkill: u32 = 130; -pub const __NR_tgkill: u32 = 131; -pub const __NR_sigaltstack: u32 = 132; -pub const __NR_rt_sigsuspend: u32 = 133; -pub const __NR_rt_sigaction: u32 = 134; -pub const __NR_rt_sigprocmask: u32 = 135; -pub const __NR_rt_sigpending: u32 = 136; -pub const __NR_rt_sigtimedwait: u32 = 137; -pub const __NR_rt_sigqueueinfo: u32 = 138; -pub const __NR_rt_sigreturn: u32 = 139; -pub const __NR_setpriority: u32 = 140; -pub const __NR_getpriority: u32 = 141; -pub const __NR_reboot: u32 = 142; -pub const __NR_setregid: u32 = 143; -pub const __NR_setgid: u32 = 144; -pub const __NR_setreuid: u32 = 145; -pub const __NR_setuid: u32 = 146; -pub const __NR_setresuid: u32 = 147; -pub const __NR_getresuid: u32 = 148; -pub const __NR_setresgid: u32 = 149; -pub const __NR_getresgid: u32 = 150; -pub const __NR_setfsuid: u32 = 151; -pub const __NR_setfsgid: u32 = 152; -pub const __NR_times: u32 = 153; -pub const __NR_setpgid: u32 = 154; -pub const __NR_getpgid: u32 = 155; -pub const __NR_getsid: u32 = 156; -pub const __NR_setsid: u32 = 157; -pub const __NR_getgroups: u32 = 158; -pub const __NR_setgroups: u32 = 159; -pub const __NR_uname: u32 = 160; -pub const __NR_sethostname: u32 = 161; -pub const __NR_setdomainname: u32 = 162; -pub const __NR_getrlimit: u32 = 163; -pub const __NR_setrlimit: u32 = 164; -pub const __NR_getrusage: u32 = 165; -pub const __NR_umask: u32 = 166; -pub const __NR_prctl: u32 = 167; -pub const __NR_getcpu: u32 = 168; -pub const __NR_gettimeofday: u32 = 169; -pub const __NR_settimeofday: u32 = 170; -pub const __NR_adjtimex: u32 = 171; -pub const __NR_getpid: u32 = 172; -pub const __NR_getppid: u32 = 173; -pub const __NR_getuid: u32 = 174; -pub const __NR_geteuid: u32 = 175; -pub const __NR_getgid: u32 = 176; -pub const __NR_getegid: u32 = 177; -pub const __NR_gettid: u32 = 178; -pub const __NR_sysinfo: u32 = 179; -pub const __NR_mq_open: u32 = 180; -pub const __NR_mq_unlink: u32 = 181; -pub const __NR_mq_timedsend: u32 = 182; -pub const __NR_mq_timedreceive: u32 = 183; -pub const __NR_mq_notify: u32 = 184; -pub const __NR_mq_getsetattr: u32 = 185; -pub const __NR_msgget: u32 = 186; -pub const __NR_msgctl: u32 = 187; -pub const __NR_msgrcv: u32 = 188; -pub const __NR_msgsnd: u32 = 189; -pub const __NR_semget: u32 = 190; -pub const __NR_semctl: u32 = 191; -pub const __NR_semtimedop: u32 = 192; -pub const __NR_semop: u32 = 193; -pub const __NR_shmget: u32 = 194; -pub const __NR_shmctl: u32 = 195; -pub const __NR_shmat: u32 = 196; -pub const __NR_shmdt: u32 = 197; -pub const __NR_socket: u32 = 198; -pub const __NR_socketpair: u32 = 199; -pub const __NR_bind: u32 = 200; -pub const __NR_listen: u32 = 201; -pub const __NR_accept: u32 = 202; -pub const __NR_connect: u32 = 203; -pub const __NR_getsockname: u32 = 204; -pub const __NR_getpeername: u32 = 205; -pub const __NR_sendto: u32 = 206; -pub const __NR_recvfrom: u32 = 207; -pub const __NR_setsockopt: u32 = 208; -pub const __NR_getsockopt: u32 = 209; -pub const __NR_shutdown: u32 = 210; -pub const __NR_sendmsg: u32 = 211; -pub const __NR_recvmsg: u32 = 212; -pub const __NR_readahead: u32 = 213; -pub const __NR_brk: u32 = 214; -pub const __NR_munmap: u32 = 215; -pub const __NR_mremap: u32 = 216; -pub const __NR_add_key: u32 = 217; -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 __NR3264_mmap: u32 = 222; -pub const __NR3264_fadvise64: u32 = 223; -pub const __NR_swapon: u32 = 224; -pub const __NR_swapoff: u32 = 225; -pub const __NR_mprotect: u32 = 226; -pub const __NR_msync: u32 = 227; -pub const __NR_mlock: u32 = 228; -pub const __NR_munlock: u32 = 229; -pub const __NR_mlockall: u32 = 230; -pub const __NR_munlockall: u32 = 231; -pub const __NR_mincore: u32 = 232; -pub const __NR_madvise: u32 = 233; -pub const __NR_remap_file_pages: u32 = 234; -pub const __NR_mbind: u32 = 235; -pub const __NR_get_mempolicy: u32 = 236; -pub const __NR_set_mempolicy: u32 = 237; -pub const __NR_migrate_pages: u32 = 238; -pub const __NR_move_pages: u32 = 239; -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; -pub const __NR_fanotify_mark: u32 = 263; -pub const __NR_name_to_handle_at: u32 = 264; -pub const __NR_open_by_handle_at: u32 = 265; -pub const __NR_clock_adjtime: u32 = 266; -pub const __NR_syncfs: u32 = 267; -pub const __NR_setns: u32 = 268; -pub const __NR_sendmmsg: u32 = 269; -pub const __NR_process_vm_readv: u32 = 270; -pub const __NR_process_vm_writev: u32 = 271; -pub const __NR_kcmp: u32 = 272; -pub const __NR_finit_module: u32 = 273; -pub const __NR_sched_setattr: u32 = 274; -pub const __NR_sched_getattr: u32 = 275; -pub const __NR_renameat2: u32 = 276; -pub const __NR_seccomp: u32 = 277; -pub const __NR_getrandom: u32 = 278; -pub const __NR_memfd_create: u32 = 279; -pub const __NR_bpf: u32 = 280; -pub const __NR_execveat: u32 = 281; -pub const __NR_userfaultfd: u32 = 282; -pub const __NR_membarrier: u32 = 283; -pub const __NR_mlock2: u32 = 284; -pub const __NR_copy_file_range: u32 = 285; -pub const __NR_preadv2: u32 = 286; -pub const __NR_pwritev2: u32 = 287; -pub const __NR_pkey_mprotect: u32 = 288; -pub const __NR_pkey_alloc: u32 = 289; -pub const __NR_pkey_free: u32 = 290; -pub const __NR_statx: u32 = 291; -pub const __NR_io_pgetevents: u32 = 292; -pub const __NR_rseq: u32 = 293; -pub const __NR_kexec_file_load: u32 = 294; -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_syscalls: u32 = 451; -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; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/aarch64/if_ether.rs b/third_party/rust/linux-raw-sys/src/aarch64/if_ether.rs deleted file mode 100644 index 177b4020cba3..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/aarch64/io_uring.rs b/third_party/rust/linux-raw-sys/src/aarch64/io_uring.rs deleted file mode 100644 index a3ef8de23054..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/io_uring.rs +++ /dev/null @@ -1,1083 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/aarch64/ioctl.rs b/third_party/rust/linux-raw-sys/src/aarch64/ioctl.rs deleted file mode 100644 index 127351b771b2..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/ioctl.rs +++ /dev/null @@ -1,1593 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21600; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2150657282; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2148012656; -pub const BLKBSZSET: u32 = 1074270833; -pub const BLKGETSIZE64: u32 = 2148012658; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2148034049; -pub const FS_IOC_SETFLAGS: u32 = 1074292226; -pub const FS_IOC_GETVERSION: u32 = 2148038145; -pub const FS_IOC_SETVERSION: u32 = 1074296322; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2148034051; -pub const EXT4_IOC_SETVERSION: u32 = 1074292228; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; -pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074815370; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const KVM_SET_BOOT_CPU_ID: u32 = 44664; -pub const KVM_SET_MP_STATE: u32 = 1074048665; -pub const KVM_GET_MP_STATE: u32 = 2147790488; -pub const KVM_GET_API_VERSION: u32 = 44544; -pub const KVM_S390_GET_SKEYS: u32 = 1077980850; -pub const KVM_SET_ONE_REG: u32 = 1074835116; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 1075883590; -pub const KVM_S390_INTERRUPT: u32 = 1074835092; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 2147528332; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 1074835060; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 2148576955; -pub const KVM_S390_UCAS_MAP: u32 = 1075359312; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 1077980836; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221794490; -pub const KVM_CREATE_PIT2: u32 = 1077980791; -pub const KVM_S390_VCPU_FAULT: u32 = 1074310738; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 1074835047; -pub const KVM_SET_VAPIC_ADDR: u32 = 1074310803; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 1074835094; -pub const KVM_X86_SETUP_MCE: u32 = 1074310812; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 1077980786; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 1078505161; -pub const KVM_GET_CLOCK: u32 = 2150674044; -pub const KVM_SET_FPU: u32 = 1073786509; -pub const KVM_KVMCLOCK_CTRL: u32 = 44717; -pub const KVM_PPC_GET_PVINFO: u32 = 1082175137; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 2148052637; -pub const KVM_S390_GET_IRQ_STATE: u32 = 1075883702; -pub const KVM_GET_DEVICE_ATTR: u32 = 1075359458; -pub const KVM_S390_INITIAL_RESET: u32 = 44695; -pub const KVM_SET_REGS: u32 = 1130409602; -pub const KVM_GET_TSC_KHZ: u32 = 44707; -pub const KVM_CHECK_EXTENSION: u32 = 44547; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 2148576942; -pub const KVM_GET_DIRTY_LOG: u32 = 1074835010; -pub const KVM_S390_SET_IRQ_STATE: u32 = 1075883701; -pub const KVM_S390_NORMAL_RESET: u32 = 44739; -pub const KVM_SET_SIGNAL_MASK: u32 = 1074048651; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 1078505163; -pub const KVM_SET_GSI_ROUTING: u32 = 1074310762; -pub const KVM_CREATE_VCPU: u32 = 44609; -pub const KVM_S390_UCAS_UNMAP: u32 = 1075359313; -pub const KVM_S390_STORE_STATUS: u32 = 1074310805; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 1074835048; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 1077980784; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 44550; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 1074835115; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 1074835115; -pub const KVM_DIRTY_TLB: u32 = 1074835114; -pub const KVM_NMI: u32 = 44698; -pub const KVM_HYPERV_EVENTFD: u32 = 1075359421; -pub const KVM_S390_MEM_OP: u32 = 1077980849; -pub const KVM_PPC_SVM_OFF: u32 = 44723; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 2148576941; -pub const KVM_INTERRUPT: u32 = 1074048646; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 2147528323; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 1074310728; -pub const KVM_GET_REGS: u32 = 2204151425; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 44640; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 2151722601; -pub const KVM_SET_NR_MMU_PAGES: u32 = 44612; -pub const KVM_IOEVENTFD: u32 = 1077980793; -pub const KVM_RUN: u32 = 44672; -pub const KVM_S390_SET_SKEYS: u32 = 1077980851; -pub const KVM_SET_DEVICE_ATTR: u32 = 1075359457; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 1077980789; -pub const KVM_SMI: u32 = 44727; -pub const KVM_SET_TSS_ADDR: u32 = 44615; -pub const KVM_GET_NR_MMU_PAGES: u32 = 44613; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 44657; -pub const KVM_HAS_DEVICE_ATTR: u32 = 1075359459; -pub const KVM_IRQFD: u32 = 1075883638; -pub const KVM_S390_SET_CMMA_BITS: u32 = 1075883705; -pub const KVM_SET_IRQCHIP: u32 = 2181607011; -pub const KVM_SIGNAL_MSI: u32 = 1075883685; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 44548; -pub const KVM_CREATE_VM: u32 = 44545; -pub const KVM_S390_CLEAR_RESET: u32 = 44740; -pub const KVM_RESET_DIRTY_RINGS: u32 = 44743; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 1074310771; -pub const KVM_CREATE_PIT: u32 = 44644; -pub const KVM_SET_GUEST_DEBUG: u32 = 1107865243; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 1074048706; -pub const KVM_SET_CLOCK: u32 = 1076932219; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 2186325670; -pub const KVM_SET_TSC_KHZ: u32 = 44706; -pub const KVM_S390_IRQ: u32 = 1078505140; -pub const KVM_ENABLE_CAP: u32 = 1080602275; -pub const KVM_IRQ_LINE: u32 = 1074310753; -pub const KVM_SET_SREGS: u32 = 1073786500; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 2148576956; -pub const KVM_GET_STATS_FD: u32 = 44750; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2156418649; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148561045; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149581316; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2148036621; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074331138; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; -pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074815373; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; -pub const PMU_IOC_GET_MODEL: u32 = 2148024835; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2155872785; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2148035841; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074815316; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150651402; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074812118; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149609489; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076905344; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2148035649; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074819222; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2148035650; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 1074815371; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2148017159; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074292742; -pub const ATM_GETESI: u32 = 1074815365; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2148036769; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2151175434; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078498342; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075839555; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074294785; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074815752; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074815314; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074820166; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074318593; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148559116; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074295041; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080579529; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2152727058; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074815364; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1082131088; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074291706; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; -pub const MTIOCPOS: u32 = 2148035843; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2149083139; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074820167; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2148036771; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075867666; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; -pub const FDSETPRM: u32 = 1075839554; -pub const ATM_GETSTATZ: u32 = 1074815313; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074286598; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2148036619; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148553947; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2148025993; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074815312; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074812117; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; -pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2148024836; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076909579; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2148033281; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074286597; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074287884; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148561983; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074815363; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074294949; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074287980; -pub const FDWERRORGET: u32 = 2150105623; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2152727059; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074815361; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074820173; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2150105621; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074294946; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074815372; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074294796; -pub const PCITEST_WRITE: u32 = 1074286596; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2148035842; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074291201; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2148035849; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/third_party/rust/linux-raw-sys/src/aarch64/net.rs b/third_party/rust/linux-raw-sys/src/aarch64/net.rs deleted file mode 100644 index 4675e03e474b..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/net.rs +++ /dev/null @@ -1,1844 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/aarch64/netlink.rs b/third_party/rust/linux-raw-sys/src/aarch64/netlink.rs deleted file mode 100644 index ec285f20691e..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/aarch64/prctl.rs b/third_party/rust/linux-raw-sys/src/aarch64/prctl.rs deleted file mode 100644 index e14ea9a58d0f..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/aarch64/system.rs b/third_party/rust/linux-raw-sys/src/aarch64/system.rs deleted file mode 100644 index 472b23f2be36..000000000000 --- a/third_party/rust/linux-raw-sys/src/aarch64/system.rs +++ /dev/null @@ -1,129 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/arm/errno.rs b/third_party/rust/linux-raw-sys/src/arm/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/arm/general.rs b/third_party/rust/linux-raw-sys/src/arm/general.rs deleted file mode 100644 index 3d282a09a63c..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/general.rs +++ /dev/null @@ -1,2937 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { -pub _u: sigaction__bindgen_ty_1, -pub sa_mask: sigset_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __old_kernel_stat { -pub st_dev: crate::ctypes::c_ushort, -pub st_ino: crate::ctypes::c_ushort, -pub st_mode: crate::ctypes::c_ushort, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_ushort, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_ulong, -pub st_blksize: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_ulong, -pub __unused5: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulonglong, -pub __pad0: [crate::ctypes::c_uchar; 4usize], -pub __st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_ulong, -pub st_gid: crate::ctypes::c_ulong, -pub st_rdev: crate::ctypes::c_ulonglong, -pub __pad3: [crate::ctypes::c_uchar; 4usize], -pub st_size: crate::ctypes::c_longlong, -pub st_blksize: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_ulonglong, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulonglong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u32, -pub f_bfree: __u32, -pub f_bavail: __u32, -pub f_files: __u32, -pub f_ffree: __u32, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_DIRECTORY: u32 = 16384; -pub const O_NOFOLLOW: u32 = 32768; -pub const O_DIRECT: u32 = 65536; -pub const O_LARGEFILE: u32 = 131072; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4210688; -pub const O_TMPFILE_MASK: u32 = 4210752; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGSWI: u32 = 32; -pub const SA_THIRTYTWO: u32 = 33554432; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_OABI_SYSCALL_BASE: u32 = 9437184; -pub const __NR_SYSCALL_MASK: u32 = 1048575; -pub const __NR_SYSCALL_BASE: u32 = 0; -pub const __NR_restart_syscall: u32 = 0; -pub const __NR_exit: u32 = 1; -pub const __NR_fork: u32 = 2; -pub const __NR_read: u32 = 3; -pub const __NR_write: u32 = 4; -pub const __NR_open: u32 = 5; -pub const __NR_close: u32 = 6; -pub const __NR_creat: u32 = 8; -pub const __NR_link: u32 = 9; -pub const __NR_unlink: u32 = 10; -pub const __NR_execve: u32 = 11; -pub const __NR_chdir: u32 = 12; -pub const __NR_mknod: u32 = 14; -pub const __NR_chmod: u32 = 15; -pub const __NR_lchown: u32 = 16; -pub const __NR_lseek: u32 = 19; -pub const __NR_getpid: u32 = 20; -pub const __NR_mount: u32 = 21; -pub const __NR_setuid: u32 = 23; -pub const __NR_getuid: u32 = 24; -pub const __NR_ptrace: u32 = 26; -pub const __NR_pause: u32 = 29; -pub const __NR_access: u32 = 33; -pub const __NR_nice: u32 = 34; -pub const __NR_sync: u32 = 36; -pub const __NR_kill: u32 = 37; -pub const __NR_rename: u32 = 38; -pub const __NR_mkdir: u32 = 39; -pub const __NR_rmdir: u32 = 40; -pub const __NR_dup: u32 = 41; -pub const __NR_pipe: u32 = 42; -pub const __NR_times: u32 = 43; -pub const __NR_brk: u32 = 45; -pub const __NR_setgid: u32 = 46; -pub const __NR_getgid: u32 = 47; -pub const __NR_geteuid: u32 = 49; -pub const __NR_getegid: u32 = 50; -pub const __NR_acct: u32 = 51; -pub const __NR_umount2: u32 = 52; -pub const __NR_ioctl: u32 = 54; -pub const __NR_fcntl: u32 = 55; -pub const __NR_setpgid: u32 = 57; -pub const __NR_umask: u32 = 60; -pub const __NR_chroot: u32 = 61; -pub const __NR_ustat: u32 = 62; -pub const __NR_dup2: u32 = 63; -pub const __NR_getppid: u32 = 64; -pub const __NR_getpgrp: u32 = 65; -pub const __NR_setsid: u32 = 66; -pub const __NR_sigaction: u32 = 67; -pub const __NR_setreuid: u32 = 70; -pub const __NR_setregid: u32 = 71; -pub const __NR_sigsuspend: u32 = 72; -pub const __NR_sigpending: u32 = 73; -pub const __NR_sethostname: u32 = 74; -pub const __NR_setrlimit: u32 = 75; -pub const __NR_getrusage: u32 = 77; -pub const __NR_gettimeofday: u32 = 78; -pub const __NR_settimeofday: u32 = 79; -pub const __NR_getgroups: u32 = 80; -pub const __NR_setgroups: u32 = 81; -pub const __NR_symlink: u32 = 83; -pub const __NR_readlink: u32 = 85; -pub const __NR_uselib: u32 = 86; -pub const __NR_swapon: u32 = 87; -pub const __NR_reboot: u32 = 88; -pub const __NR_munmap: u32 = 91; -pub const __NR_truncate: u32 = 92; -pub const __NR_ftruncate: u32 = 93; -pub const __NR_fchmod: u32 = 94; -pub const __NR_fchown: u32 = 95; -pub const __NR_getpriority: u32 = 96; -pub const __NR_setpriority: u32 = 97; -pub const __NR_statfs: u32 = 99; -pub const __NR_fstatfs: u32 = 100; -pub const __NR_syslog: u32 = 103; -pub const __NR_setitimer: u32 = 104; -pub const __NR_getitimer: u32 = 105; -pub const __NR_stat: u32 = 106; -pub const __NR_lstat: u32 = 107; -pub const __NR_fstat: u32 = 108; -pub const __NR_vhangup: u32 = 111; -pub const __NR_wait4: u32 = 114; -pub const __NR_swapoff: u32 = 115; -pub const __NR_sysinfo: u32 = 116; -pub const __NR_fsync: u32 = 118; -pub const __NR_sigreturn: u32 = 119; -pub const __NR_clone: u32 = 120; -pub const __NR_setdomainname: u32 = 121; -pub const __NR_uname: u32 = 122; -pub const __NR_adjtimex: u32 = 124; -pub const __NR_mprotect: u32 = 125; -pub const __NR_sigprocmask: u32 = 126; -pub const __NR_init_module: u32 = 128; -pub const __NR_delete_module: u32 = 129; -pub const __NR_quotactl: u32 = 131; -pub const __NR_getpgid: u32 = 132; -pub const __NR_fchdir: u32 = 133; -pub const __NR_bdflush: u32 = 134; -pub const __NR_sysfs: u32 = 135; -pub const __NR_personality: u32 = 136; -pub const __NR_setfsuid: u32 = 138; -pub const __NR_setfsgid: u32 = 139; -pub const __NR__llseek: u32 = 140; -pub const __NR_getdents: u32 = 141; -pub const __NR__newselect: u32 = 142; -pub const __NR_flock: u32 = 143; -pub const __NR_msync: u32 = 144; -pub const __NR_readv: u32 = 145; -pub const __NR_writev: u32 = 146; -pub const __NR_getsid: u32 = 147; -pub const __NR_fdatasync: u32 = 148; -pub const __NR__sysctl: u32 = 149; -pub const __NR_mlock: u32 = 150; -pub const __NR_munlock: u32 = 151; -pub const __NR_mlockall: u32 = 152; -pub const __NR_munlockall: u32 = 153; -pub const __NR_sched_setparam: u32 = 154; -pub const __NR_sched_getparam: u32 = 155; -pub const __NR_sched_setscheduler: u32 = 156; -pub const __NR_sched_getscheduler: u32 = 157; -pub const __NR_sched_yield: u32 = 158; -pub const __NR_sched_get_priority_max: u32 = 159; -pub const __NR_sched_get_priority_min: u32 = 160; -pub const __NR_sched_rr_get_interval: u32 = 161; -pub const __NR_nanosleep: u32 = 162; -pub const __NR_mremap: u32 = 163; -pub const __NR_setresuid: u32 = 164; -pub const __NR_getresuid: u32 = 165; -pub const __NR_poll: u32 = 168; -pub const __NR_nfsservctl: u32 = 169; -pub const __NR_setresgid: u32 = 170; -pub const __NR_getresgid: u32 = 171; -pub const __NR_prctl: u32 = 172; -pub const __NR_rt_sigreturn: u32 = 173; -pub const __NR_rt_sigaction: u32 = 174; -pub const __NR_rt_sigprocmask: u32 = 175; -pub const __NR_rt_sigpending: u32 = 176; -pub const __NR_rt_sigtimedwait: u32 = 177; -pub const __NR_rt_sigqueueinfo: u32 = 178; -pub const __NR_rt_sigsuspend: u32 = 179; -pub const __NR_pread64: u32 = 180; -pub const __NR_pwrite64: u32 = 181; -pub const __NR_chown: u32 = 182; -pub const __NR_getcwd: u32 = 183; -pub const __NR_capget: u32 = 184; -pub const __NR_capset: u32 = 185; -pub const __NR_sigaltstack: u32 = 186; -pub const __NR_sendfile: u32 = 187; -pub const __NR_vfork: u32 = 190; -pub const __NR_ugetrlimit: u32 = 191; -pub const __NR_mmap2: u32 = 192; -pub const __NR_truncate64: u32 = 193; -pub const __NR_ftruncate64: u32 = 194; -pub const __NR_stat64: u32 = 195; -pub const __NR_lstat64: u32 = 196; -pub const __NR_fstat64: u32 = 197; -pub const __NR_lchown32: u32 = 198; -pub const __NR_getuid32: u32 = 199; -pub const __NR_getgid32: u32 = 200; -pub const __NR_geteuid32: u32 = 201; -pub const __NR_getegid32: u32 = 202; -pub const __NR_setreuid32: u32 = 203; -pub const __NR_setregid32: u32 = 204; -pub const __NR_getgroups32: u32 = 205; -pub const __NR_setgroups32: u32 = 206; -pub const __NR_fchown32: u32 = 207; -pub const __NR_setresuid32: u32 = 208; -pub const __NR_getresuid32: u32 = 209; -pub const __NR_setresgid32: u32 = 210; -pub const __NR_getresgid32: u32 = 211; -pub const __NR_chown32: u32 = 212; -pub const __NR_setuid32: u32 = 213; -pub const __NR_setgid32: u32 = 214; -pub const __NR_setfsuid32: u32 = 215; -pub const __NR_setfsgid32: u32 = 216; -pub const __NR_getdents64: u32 = 217; -pub const __NR_pivot_root: u32 = 218; -pub const __NR_mincore: u32 = 219; -pub const __NR_madvise: u32 = 220; -pub const __NR_fcntl64: u32 = 221; -pub const __NR_gettid: u32 = 224; -pub const __NR_readahead: u32 = 225; -pub const __NR_setxattr: u32 = 226; -pub const __NR_lsetxattr: u32 = 227; -pub const __NR_fsetxattr: u32 = 228; -pub const __NR_getxattr: u32 = 229; -pub const __NR_lgetxattr: u32 = 230; -pub const __NR_fgetxattr: u32 = 231; -pub const __NR_listxattr: u32 = 232; -pub const __NR_llistxattr: u32 = 233; -pub const __NR_flistxattr: u32 = 234; -pub const __NR_removexattr: u32 = 235; -pub const __NR_lremovexattr: u32 = 236; -pub const __NR_fremovexattr: u32 = 237; -pub const __NR_tkill: u32 = 238; -pub const __NR_sendfile64: u32 = 239; -pub const __NR_futex: u32 = 240; -pub const __NR_sched_setaffinity: u32 = 241; -pub const __NR_sched_getaffinity: u32 = 242; -pub const __NR_io_setup: u32 = 243; -pub const __NR_io_destroy: u32 = 244; -pub const __NR_io_getevents: u32 = 245; -pub const __NR_io_submit: u32 = 246; -pub const __NR_io_cancel: u32 = 247; -pub const __NR_exit_group: u32 = 248; -pub const __NR_lookup_dcookie: u32 = 249; -pub const __NR_epoll_create: u32 = 250; -pub const __NR_epoll_ctl: u32 = 251; -pub const __NR_epoll_wait: u32 = 252; -pub const __NR_remap_file_pages: u32 = 253; -pub const __NR_set_tid_address: u32 = 256; -pub const __NR_timer_create: u32 = 257; -pub const __NR_timer_settime: u32 = 258; -pub const __NR_timer_gettime: u32 = 259; -pub const __NR_timer_getoverrun: u32 = 260; -pub const __NR_timer_delete: u32 = 261; -pub const __NR_clock_settime: u32 = 262; -pub const __NR_clock_gettime: u32 = 263; -pub const __NR_clock_getres: u32 = 264; -pub const __NR_clock_nanosleep: u32 = 265; -pub const __NR_statfs64: u32 = 266; -pub const __NR_fstatfs64: u32 = 267; -pub const __NR_tgkill: u32 = 268; -pub const __NR_utimes: u32 = 269; -pub const __NR_arm_fadvise64_64: u32 = 270; -pub const __NR_pciconfig_iobase: u32 = 271; -pub const __NR_pciconfig_read: u32 = 272; -pub const __NR_pciconfig_write: u32 = 273; -pub const __NR_mq_open: u32 = 274; -pub const __NR_mq_unlink: u32 = 275; -pub const __NR_mq_timedsend: u32 = 276; -pub const __NR_mq_timedreceive: u32 = 277; -pub const __NR_mq_notify: u32 = 278; -pub const __NR_mq_getsetattr: u32 = 279; -pub const __NR_waitid: u32 = 280; -pub const __NR_socket: u32 = 281; -pub const __NR_bind: u32 = 282; -pub const __NR_connect: u32 = 283; -pub const __NR_listen: u32 = 284; -pub const __NR_accept: u32 = 285; -pub const __NR_getsockname: u32 = 286; -pub const __NR_getpeername: u32 = 287; -pub const __NR_socketpair: u32 = 288; -pub const __NR_send: u32 = 289; -pub const __NR_sendto: u32 = 290; -pub const __NR_recv: u32 = 291; -pub const __NR_recvfrom: u32 = 292; -pub const __NR_shutdown: u32 = 293; -pub const __NR_setsockopt: u32 = 294; -pub const __NR_getsockopt: u32 = 295; -pub const __NR_sendmsg: u32 = 296; -pub const __NR_recvmsg: u32 = 297; -pub const __NR_semop: u32 = 298; -pub const __NR_semget: u32 = 299; -pub const __NR_semctl: u32 = 300; -pub const __NR_msgsnd: u32 = 301; -pub const __NR_msgrcv: u32 = 302; -pub const __NR_msgget: u32 = 303; -pub const __NR_msgctl: u32 = 304; -pub const __NR_shmat: u32 = 305; -pub const __NR_shmdt: u32 = 306; -pub const __NR_shmget: u32 = 307; -pub const __NR_shmctl: u32 = 308; -pub const __NR_add_key: u32 = 309; -pub const __NR_request_key: u32 = 310; -pub const __NR_keyctl: u32 = 311; -pub const __NR_semtimedop: u32 = 312; -pub const __NR_vserver: u32 = 313; -pub const __NR_ioprio_set: u32 = 314; -pub const __NR_ioprio_get: u32 = 315; -pub const __NR_inotify_init: u32 = 316; -pub const __NR_inotify_add_watch: u32 = 317; -pub const __NR_inotify_rm_watch: u32 = 318; -pub const __NR_mbind: u32 = 319; -pub const __NR_get_mempolicy: u32 = 320; -pub const __NR_set_mempolicy: u32 = 321; -pub const __NR_openat: u32 = 322; -pub const __NR_mkdirat: u32 = 323; -pub const __NR_mknodat: u32 = 324; -pub const __NR_fchownat: u32 = 325; -pub const __NR_futimesat: u32 = 326; -pub const __NR_fstatat64: u32 = 327; -pub const __NR_unlinkat: u32 = 328; -pub const __NR_renameat: u32 = 329; -pub const __NR_linkat: u32 = 330; -pub const __NR_symlinkat: u32 = 331; -pub const __NR_readlinkat: u32 = 332; -pub const __NR_fchmodat: u32 = 333; -pub const __NR_faccessat: u32 = 334; -pub const __NR_pselect6: u32 = 335; -pub const __NR_ppoll: u32 = 336; -pub const __NR_unshare: u32 = 337; -pub const __NR_set_robust_list: u32 = 338; -pub const __NR_get_robust_list: u32 = 339; -pub const __NR_splice: u32 = 340; -pub const __NR_arm_sync_file_range: u32 = 341; -pub const __NR_tee: u32 = 342; -pub const __NR_vmsplice: u32 = 343; -pub const __NR_move_pages: u32 = 344; -pub const __NR_getcpu: u32 = 345; -pub const __NR_epoll_pwait: u32 = 346; -pub const __NR_kexec_load: u32 = 347; -pub const __NR_utimensat: u32 = 348; -pub const __NR_signalfd: u32 = 349; -pub const __NR_timerfd_create: u32 = 350; -pub const __NR_eventfd: u32 = 351; -pub const __NR_fallocate: u32 = 352; -pub const __NR_timerfd_settime: u32 = 353; -pub const __NR_timerfd_gettime: u32 = 354; -pub const __NR_signalfd4: u32 = 355; -pub const __NR_eventfd2: u32 = 356; -pub const __NR_epoll_create1: u32 = 357; -pub const __NR_dup3: u32 = 358; -pub const __NR_pipe2: u32 = 359; -pub const __NR_inotify_init1: u32 = 360; -pub const __NR_preadv: u32 = 361; -pub const __NR_pwritev: u32 = 362; -pub const __NR_rt_tgsigqueueinfo: u32 = 363; -pub const __NR_perf_event_open: u32 = 364; -pub const __NR_recvmmsg: u32 = 365; -pub const __NR_accept4: u32 = 366; -pub const __NR_fanotify_init: u32 = 367; -pub const __NR_fanotify_mark: u32 = 368; -pub const __NR_prlimit64: u32 = 369; -pub const __NR_name_to_handle_at: u32 = 370; -pub const __NR_open_by_handle_at: u32 = 371; -pub const __NR_clock_adjtime: u32 = 372; -pub const __NR_syncfs: u32 = 373; -pub const __NR_sendmmsg: u32 = 374; -pub const __NR_setns: u32 = 375; -pub const __NR_process_vm_readv: u32 = 376; -pub const __NR_process_vm_writev: u32 = 377; -pub const __NR_kcmp: u32 = 378; -pub const __NR_finit_module: u32 = 379; -pub const __NR_sched_setattr: u32 = 380; -pub const __NR_sched_getattr: u32 = 381; -pub const __NR_renameat2: u32 = 382; -pub const __NR_seccomp: u32 = 383; -pub const __NR_getrandom: u32 = 384; -pub const __NR_memfd_create: u32 = 385; -pub const __NR_bpf: u32 = 386; -pub const __NR_execveat: u32 = 387; -pub const __NR_userfaultfd: u32 = 388; -pub const __NR_membarrier: u32 = 389; -pub const __NR_mlock2: u32 = 390; -pub const __NR_copy_file_range: u32 = 391; -pub const __NR_preadv2: u32 = 392; -pub const __NR_pwritev2: u32 = 393; -pub const __NR_pkey_mprotect: u32 = 394; -pub const __NR_pkey_alloc: u32 = 395; -pub const __NR_pkey_free: u32 = 396; -pub const __NR_statx: u32 = 397; -pub const __NR_rseq: u32 = 398; -pub const __NR_io_pgetevents: u32 = 399; -pub const __NR_migrate_pages: u32 = 400; -pub const __NR_kexec_file_load: u32 = 401; -pub const __NR_clock_gettime64: u32 = 403; -pub const __NR_clock_settime64: u32 = 404; -pub const __NR_clock_adjtime64: u32 = 405; -pub const __NR_clock_getres_time64: u32 = 406; -pub const __NR_clock_nanosleep_time64: u32 = 407; -pub const __NR_timer_gettime64: u32 = 408; -pub const __NR_timer_settime64: u32 = 409; -pub const __NR_timerfd_gettime64: u32 = 410; -pub const __NR_timerfd_settime64: u32 = 411; -pub const __NR_utimensat_time64: u32 = 412; -pub const __NR_pselect6_time64: u32 = 413; -pub const __NR_ppoll_time64: u32 = 414; -pub const __NR_io_pgetevents_time64: u32 = 416; -pub const __NR_recvmmsg_time64: u32 = 417; -pub const __NR_mq_timedsend_time64: u32 = 418; -pub const __NR_mq_timedreceive_time64: u32 = 419; -pub const __NR_semtimedop_time64: u32 = 420; -pub const __NR_rt_sigtimedwait_time64: u32 = 421; -pub const __NR_futex_time64: u32 = 422; -pub const __NR_sched_rr_get_interval_time64: u32 = 423; -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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const __NR_sync_file_range2: u32 = 341; -pub const __ARM_NR_BASE: u32 = 983040; -pub const __ARM_NR_breakpoint: u32 = 983041; -pub const __ARM_NR_cacheflush: u32 = 983042; -pub const __ARM_NR_usr26: u32 = 983043; -pub const __ARM_NR_usr32: u32 = 983044; -pub const __ARM_NR_set_tls: u32 = 983045; -pub const __ARM_NR_get_tls: u32 = 983046; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT64_HAS_BROKEN_ST_INO: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -pub const _NSIG: u32 = 64; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { -pub _sa_handler: __sighandler_t, -pub _sa_sigaction: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/arm/if_ether.rs b/third_party/rust/linux-raw-sys/src/arm/if_ether.rs deleted file mode 100644 index 080940ebeb7a..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/arm/io_uring.rs b/third_party/rust/linux-raw-sys/src/arm/io_uring.rs deleted file mode 100644 index 3fe1d53edbc8..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/io_uring.rs +++ /dev/null @@ -1,1083 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/arm/ioctl.rs b/third_party/rust/linux-raw-sys/src/arm/ioctl.rs deleted file mode 100644 index aac97b415487..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/ioctl.rs +++ /dev/null @@ -1,1489 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21598; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2149346562; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2147750512; -pub const BLKBSZSET: u32 = 1074008689; -pub const BLKGETSIZE64: u32 = 2147750514; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2147771905; -pub const FS_IOC_SETFLAGS: u32 = 1074030082; -pub const FS_IOC_GETVERSION: u32 = 2147776001; -pub const FS_IOC_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; -pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074553226; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149608705; -pub const ENI_SETMULT: u32 = 1074553191; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234616896; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2155894361; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227022624; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148036757; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3222825227; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149319172; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2147774477; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074068994; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074025741; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2147762179; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1074550464; -pub const IPMICTL_SEND_COMMAND: u32 = 2148821261; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074553229; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; -pub const PMU_IOC_GET_MODEL: u32 = 2147762691; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2153251345; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2147773697; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3223087369; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; -pub const I2OPARMSET: u32 = 3222825219; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074553172; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3225961992; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150389258; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074287830; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149347345; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148029710; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076643200; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075866880; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2147773505; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074294934; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2147773506; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222038785; -pub const ATM_SETCIRANGE: u32 = 1074553227; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2147755015; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222033682; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074030598; -pub const ATM_GETESI: u32 = 1074553221; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2147774625; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2147762689; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221515331; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234616837; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2150389002; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078498342; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2147762694; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075577411; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222295810; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074020866; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074013195; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074020356; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074032641; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3222820550; -pub const PPS_FETCH: u32 = 3221516452; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074291464; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234616836; -pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074553170; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221514631; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074295878; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074056449; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148034828; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3225703951; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3223087365; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3223087366; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074032897; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221514630; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080055241; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222295808; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2182640130; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2150892050; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074553220; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1079509648; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074029562; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; -pub const MTIOCPOS: u32 = 2147773699; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2148296707; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074026177; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074295879; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3223087367; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3225703945; -pub const VIDIOC_S_EDID: u32 = 3223606825; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2147774627; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075605522; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; -pub const FDSETPRM: u32 = 1075577410; -pub const ATM_GETSTATZ: u32 = 1074553169; -pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074024454; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2147774475; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148029659; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2147763849; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074553168; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074287829; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; -pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221512970; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2147762692; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076647435; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2147771137; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074553231; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074024453; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2147774203; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074025740; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148037695; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3222825220; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074291075; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222038786; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074032805; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2147810816; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074025836; -pub const FDWERRORGET: u32 = 2149057047; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221516288; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221504262; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2150892051; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074553217; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; -pub const PHN_GET_REGS: u32 = 3221516290; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074558029; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221552643; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221496842; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2149581333; -pub const CM_IOCGATR: u32 = 3221512961; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074553186; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3222820424; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3223344833; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074032802; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223606824; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221514629; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074553228; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074032652; -pub const PCITEST_WRITE: u32 = 1074024452; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3225703953; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2147773698; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074029057; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2182640129; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2147773705; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; diff --git a/third_party/rust/linux-raw-sys/src/arm/net.rs b/third_party/rust/linux-raw-sys/src/arm/net.rs deleted file mode 100644 index 86228098f6ab..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/net.rs +++ /dev/null @@ -1,1836 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/arm/netlink.rs b/third_party/rust/linux-raw-sys/src/arm/netlink.rs deleted file mode 100644 index 366dbc3fe7d5..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/arm/prctl.rs b/third_party/rust/linux-raw-sys/src/arm/prctl.rs deleted file mode 100644 index 949be1712bf0..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/arm/system.rs b/third_party/rust/linux-raw-sys/src/arm/system.rs deleted file mode 100644 index 3ffa430545a0..000000000000 --- a/third_party/rust/linux-raw-sys/src/arm/system.rs +++ /dev/null @@ -1,99 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/csky/errno.rs b/third_party/rust/linux-raw-sys/src/csky/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/csky/general.rs b/third_party/rust/linux-raw-sys/src/csky/general.rs deleted file mode 100644 index 6a562ce7ecb2..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/general.rs +++ /dev/null @@ -1,2846 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulong, -pub __pad1: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_int, -pub __pad2: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulonglong, -pub st_ino: crate::ctypes::c_ulonglong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulonglong, -pub __pad1: crate::ctypes::c_ulonglong, -pub st_size: crate::ctypes::c_longlong, -pub st_blksize: crate::ctypes::c_int, -pub __pad2: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_longlong, -pub st_atime: crate::ctypes::c_int, -pub st_atime_nsec: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_int, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_int, -pub st_ctime_nsec: crate::ctypes::c_uint, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u32, -pub f_bfree: __u32, -pub f_bavail: __u32, -pub f_files: __u32, -pub f_ffree: __u32, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 64; -pub const _NSIG_BPW: u32 = 32; -pub const _NSIG_WORDS: u32 = 2; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_io_setup: u32 = 0; -pub const __NR_io_destroy: u32 = 1; -pub const __NR_io_submit: u32 = 2; -pub const __NR_io_cancel: u32 = 3; -pub const __NR_io_getevents: u32 = 4; -pub const __NR_setxattr: u32 = 5; -pub const __NR_lsetxattr: u32 = 6; -pub const __NR_fsetxattr: u32 = 7; -pub const __NR_getxattr: u32 = 8; -pub const __NR_lgetxattr: u32 = 9; -pub const __NR_fgetxattr: u32 = 10; -pub const __NR_listxattr: u32 = 11; -pub const __NR_llistxattr: u32 = 12; -pub const __NR_flistxattr: u32 = 13; -pub const __NR_removexattr: u32 = 14; -pub const __NR_lremovexattr: u32 = 15; -pub const __NR_fremovexattr: u32 = 16; -pub const __NR_getcwd: u32 = 17; -pub const __NR_lookup_dcookie: u32 = 18; -pub const __NR_eventfd2: u32 = 19; -pub const __NR_epoll_create1: u32 = 20; -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 __NR3264_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; -pub const __NR_ioctl: u32 = 29; -pub const __NR_ioprio_set: u32 = 30; -pub const __NR_ioprio_get: u32 = 31; -pub const __NR_flock: u32 = 32; -pub const __NR_mknodat: u32 = 33; -pub const __NR_mkdirat: u32 = 34; -pub const __NR_unlinkat: u32 = 35; -pub const __NR_symlinkat: u32 = 36; -pub const __NR_linkat: u32 = 37; -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 __NR3264_statfs: u32 = 43; -pub const __NR3264_fstatfs: u32 = 44; -pub const __NR3264_truncate: u32 = 45; -pub const __NR3264_ftruncate: u32 = 46; -pub const __NR_fallocate: u32 = 47; -pub const __NR_faccessat: u32 = 48; -pub const __NR_chdir: u32 = 49; -pub const __NR_fchdir: u32 = 50; -pub const __NR_chroot: u32 = 51; -pub const __NR_fchmod: u32 = 52; -pub const __NR_fchmodat: u32 = 53; -pub const __NR_fchownat: u32 = 54; -pub const __NR_fchown: u32 = 55; -pub const __NR_openat: u32 = 56; -pub const __NR_close: u32 = 57; -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 __NR3264_lseek: u32 = 62; -pub const __NR_read: u32 = 63; -pub const __NR_write: u32 = 64; -pub const __NR_readv: u32 = 65; -pub const __NR_writev: u32 = 66; -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 __NR3264_sendfile: u32 = 71; -pub const __NR_pselect6: u32 = 72; -pub const __NR_ppoll: u32 = 73; -pub const __NR_signalfd4: u32 = 74; -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 __NR3264_fstatat: u32 = 79; -pub const __NR3264_fstat: u32 = 80; -pub const __NR_sync: u32 = 81; -pub const __NR_fsync: u32 = 82; -pub const __NR_fdatasync: u32 = 83; -pub const __NR_sync_file_range: u32 = 84; -pub const __NR_timerfd_create: u32 = 85; -pub const __NR_timerfd_settime: u32 = 86; -pub const __NR_timerfd_gettime: u32 = 87; -pub const __NR_utimensat: u32 = 88; -pub const __NR_acct: u32 = 89; -pub const __NR_capget: u32 = 90; -pub const __NR_capset: u32 = 91; -pub const __NR_personality: u32 = 92; -pub const __NR_exit: u32 = 93; -pub const __NR_exit_group: u32 = 94; -pub const __NR_waitid: u32 = 95; -pub const __NR_set_tid_address: u32 = 96; -pub const __NR_unshare: u32 = 97; -pub const __NR_futex: u32 = 98; -pub const __NR_set_robust_list: u32 = 99; -pub const __NR_get_robust_list: u32 = 100; -pub const __NR_nanosleep: u32 = 101; -pub const __NR_getitimer: u32 = 102; -pub const __NR_setitimer: u32 = 103; -pub const __NR_kexec_load: u32 = 104; -pub const __NR_init_module: u32 = 105; -pub const __NR_delete_module: u32 = 106; -pub const __NR_timer_create: u32 = 107; -pub const __NR_timer_gettime: u32 = 108; -pub const __NR_timer_getoverrun: u32 = 109; -pub const __NR_timer_settime: u32 = 110; -pub const __NR_timer_delete: u32 = 111; -pub const __NR_clock_settime: u32 = 112; -pub const __NR_clock_gettime: u32 = 113; -pub const __NR_clock_getres: u32 = 114; -pub const __NR_clock_nanosleep: u32 = 115; -pub const __NR_syslog: u32 = 116; -pub const __NR_ptrace: u32 = 117; -pub const __NR_sched_setparam: u32 = 118; -pub const __NR_sched_setscheduler: u32 = 119; -pub const __NR_sched_getscheduler: u32 = 120; -pub const __NR_sched_getparam: u32 = 121; -pub const __NR_sched_setaffinity: u32 = 122; -pub const __NR_sched_getaffinity: u32 = 123; -pub const __NR_sched_yield: u32 = 124; -pub const __NR_sched_get_priority_max: u32 = 125; -pub const __NR_sched_get_priority_min: u32 = 126; -pub const __NR_sched_rr_get_interval: u32 = 127; -pub const __NR_restart_syscall: u32 = 128; -pub const __NR_kill: u32 = 129; -pub const __NR_tkill: u32 = 130; -pub const __NR_tgkill: u32 = 131; -pub const __NR_sigaltstack: u32 = 132; -pub const __NR_rt_sigsuspend: u32 = 133; -pub const __NR_rt_sigaction: u32 = 134; -pub const __NR_rt_sigprocmask: u32 = 135; -pub const __NR_rt_sigpending: u32 = 136; -pub const __NR_rt_sigtimedwait: u32 = 137; -pub const __NR_rt_sigqueueinfo: u32 = 138; -pub const __NR_rt_sigreturn: u32 = 139; -pub const __NR_setpriority: u32 = 140; -pub const __NR_getpriority: u32 = 141; -pub const __NR_reboot: u32 = 142; -pub const __NR_setregid: u32 = 143; -pub const __NR_setgid: u32 = 144; -pub const __NR_setreuid: u32 = 145; -pub const __NR_setuid: u32 = 146; -pub const __NR_setresuid: u32 = 147; -pub const __NR_getresuid: u32 = 148; -pub const __NR_setresgid: u32 = 149; -pub const __NR_getresgid: u32 = 150; -pub const __NR_setfsuid: u32 = 151; -pub const __NR_setfsgid: u32 = 152; -pub const __NR_times: u32 = 153; -pub const __NR_setpgid: u32 = 154; -pub const __NR_getpgid: u32 = 155; -pub const __NR_getsid: u32 = 156; -pub const __NR_setsid: u32 = 157; -pub const __NR_getgroups: u32 = 158; -pub const __NR_setgroups: u32 = 159; -pub const __NR_uname: u32 = 160; -pub const __NR_sethostname: u32 = 161; -pub const __NR_setdomainname: u32 = 162; -pub const __NR_getrlimit: u32 = 163; -pub const __NR_setrlimit: u32 = 164; -pub const __NR_getrusage: u32 = 165; -pub const __NR_umask: u32 = 166; -pub const __NR_prctl: u32 = 167; -pub const __NR_getcpu: u32 = 168; -pub const __NR_gettimeofday: u32 = 169; -pub const __NR_settimeofday: u32 = 170; -pub const __NR_adjtimex: u32 = 171; -pub const __NR_getpid: u32 = 172; -pub const __NR_getppid: u32 = 173; -pub const __NR_getuid: u32 = 174; -pub const __NR_geteuid: u32 = 175; -pub const __NR_getgid: u32 = 176; -pub const __NR_getegid: u32 = 177; -pub const __NR_gettid: u32 = 178; -pub const __NR_sysinfo: u32 = 179; -pub const __NR_mq_open: u32 = 180; -pub const __NR_mq_unlink: u32 = 181; -pub const __NR_mq_timedsend: u32 = 182; -pub const __NR_mq_timedreceive: u32 = 183; -pub const __NR_mq_notify: u32 = 184; -pub const __NR_mq_getsetattr: u32 = 185; -pub const __NR_msgget: u32 = 186; -pub const __NR_msgctl: u32 = 187; -pub const __NR_msgrcv: u32 = 188; -pub const __NR_msgsnd: u32 = 189; -pub const __NR_semget: u32 = 190; -pub const __NR_semctl: u32 = 191; -pub const __NR_semtimedop: u32 = 192; -pub const __NR_semop: u32 = 193; -pub const __NR_shmget: u32 = 194; -pub const __NR_shmctl: u32 = 195; -pub const __NR_shmat: u32 = 196; -pub const __NR_shmdt: u32 = 197; -pub const __NR_socket: u32 = 198; -pub const __NR_socketpair: u32 = 199; -pub const __NR_bind: u32 = 200; -pub const __NR_listen: u32 = 201; -pub const __NR_accept: u32 = 202; -pub const __NR_connect: u32 = 203; -pub const __NR_getsockname: u32 = 204; -pub const __NR_getpeername: u32 = 205; -pub const __NR_sendto: u32 = 206; -pub const __NR_recvfrom: u32 = 207; -pub const __NR_setsockopt: u32 = 208; -pub const __NR_getsockopt: u32 = 209; -pub const __NR_shutdown: u32 = 210; -pub const __NR_sendmsg: u32 = 211; -pub const __NR_recvmsg: u32 = 212; -pub const __NR_readahead: u32 = 213; -pub const __NR_brk: u32 = 214; -pub const __NR_munmap: u32 = 215; -pub const __NR_mremap: u32 = 216; -pub const __NR_add_key: u32 = 217; -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 __NR3264_mmap: u32 = 222; -pub const __NR3264_fadvise64: u32 = 223; -pub const __NR_swapon: u32 = 224; -pub const __NR_swapoff: u32 = 225; -pub const __NR_mprotect: u32 = 226; -pub const __NR_msync: u32 = 227; -pub const __NR_mlock: u32 = 228; -pub const __NR_munlock: u32 = 229; -pub const __NR_mlockall: u32 = 230; -pub const __NR_munlockall: u32 = 231; -pub const __NR_mincore: u32 = 232; -pub const __NR_madvise: u32 = 233; -pub const __NR_remap_file_pages: u32 = 234; -pub const __NR_mbind: u32 = 235; -pub const __NR_get_mempolicy: u32 = 236; -pub const __NR_set_mempolicy: u32 = 237; -pub const __NR_migrate_pages: u32 = 238; -pub const __NR_move_pages: u32 = 239; -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; -pub const __NR_fanotify_mark: u32 = 263; -pub const __NR_name_to_handle_at: u32 = 264; -pub const __NR_open_by_handle_at: u32 = 265; -pub const __NR_clock_adjtime: u32 = 266; -pub const __NR_syncfs: u32 = 267; -pub const __NR_setns: u32 = 268; -pub const __NR_sendmmsg: u32 = 269; -pub const __NR_process_vm_readv: u32 = 270; -pub const __NR_process_vm_writev: u32 = 271; -pub const __NR_kcmp: u32 = 272; -pub const __NR_finit_module: u32 = 273; -pub const __NR_sched_setattr: u32 = 274; -pub const __NR_sched_getattr: u32 = 275; -pub const __NR_renameat2: u32 = 276; -pub const __NR_seccomp: u32 = 277; -pub const __NR_getrandom: u32 = 278; -pub const __NR_memfd_create: u32 = 279; -pub const __NR_bpf: u32 = 280; -pub const __NR_execveat: u32 = 281; -pub const __NR_userfaultfd: u32 = 282; -pub const __NR_membarrier: u32 = 283; -pub const __NR_mlock2: u32 = 284; -pub const __NR_copy_file_range: u32 = 285; -pub const __NR_preadv2: u32 = 286; -pub const __NR_pwritev2: u32 = 287; -pub const __NR_pkey_mprotect: u32 = 288; -pub const __NR_pkey_alloc: u32 = 289; -pub const __NR_pkey_free: u32 = 290; -pub const __NR_statx: u32 = 291; -pub const __NR_io_pgetevents: u32 = 292; -pub const __NR_rseq: u32 = 293; -pub const __NR_kexec_file_load: u32 = 294; -pub const __NR_clock_gettime64: u32 = 403; -pub const __NR_clock_settime64: u32 = 404; -pub const __NR_clock_adjtime64: u32 = 405; -pub const __NR_clock_getres_time64: u32 = 406; -pub const __NR_clock_nanosleep_time64: u32 = 407; -pub const __NR_timer_gettime64: u32 = 408; -pub const __NR_timer_settime64: u32 = 409; -pub const __NR_timerfd_gettime64: u32 = 410; -pub const __NR_timerfd_settime64: u32 = 411; -pub const __NR_utimensat_time64: u32 = 412; -pub const __NR_pselect6_time64: u32 = 413; -pub const __NR_ppoll_time64: u32 = 414; -pub const __NR_io_pgetevents_time64: u32 = 416; -pub const __NR_recvmmsg_time64: u32 = 417; -pub const __NR_mq_timedsend_time64: u32 = 418; -pub const __NR_mq_timedreceive_time64: u32 = 419; -pub const __NR_semtimedop_time64: u32 = 420; -pub const __NR_rt_sigtimedwait_time64: u32 = 421; -pub const __NR_futex_time64: u32 = 422; -pub const __NR_sched_rr_get_interval_time64: u32 = 423; -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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const __NR_syscalls: u32 = 451; -pub const __NR_fcntl64: u32 = 25; -pub const __NR_statfs64: u32 = 43; -pub const __NR_fstatfs64: u32 = 44; -pub const __NR_truncate64: u32 = 45; -pub const __NR_ftruncate64: u32 = 46; -pub const __NR_llseek: u32 = 62; -pub const __NR_sendfile64: u32 = 71; -pub const __NR_fstatat64: u32 = 79; -pub const __NR_fstat64: u32 = 80; -pub const __NR_mmap2: u32 = 222; -pub const __NR_fadvise64_64: u32 = 223; -pub const __NR_set_thread_area: u32 = 244; -pub const __NR_cacheflush: u32 = 245; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/csky/if_ether.rs b/third_party/rust/linux-raw-sys/src/csky/if_ether.rs deleted file mode 100644 index 55627c774d03..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/csky/io_uring.rs b/third_party/rust/linux-raw-sys/src/csky/io_uring.rs deleted file mode 100644 index 2f116ae2abdc..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/io_uring.rs +++ /dev/null @@ -1,1087 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/csky/ioctl.rs b/third_party/rust/linux-raw-sys/src/csky/ioctl.rs deleted file mode 100644 index 536d7ace296e..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/ioctl.rs +++ /dev/null @@ -1,1489 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21600; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2149346562; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2147750512; -pub const BLKBSZSET: u32 = 1074008689; -pub const BLKGETSIZE64: u32 = 2147750514; -pub const BLKTRACESETUP: u32 = 3225424499; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2147771905; -pub const FS_IOC_SETFLAGS: u32 = 1074030082; -pub const FS_IOC_GETVERSION: u32 = 2147776001; -pub const FS_IOC_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; -pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074553226; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149608705; -pub const ENI_SETMULT: u32 = 1074553191; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234616896; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2155370073; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227022624; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148036757; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3222825227; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076645442; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149319172; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2147774477; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074068994; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074025741; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2147762179; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1074550464; -pub const IPMICTL_SEND_COMMAND: u32 = 2148821261; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074553229; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075061508; -pub const PMU_IOC_GET_MODEL: u32 = 2147762691; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2153251345; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2147773697; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225441817; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076110081; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3223087369; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; -pub const I2OPARMSET: u32 = 3222825219; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074553172; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3225961992; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222565639; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150389258; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148279052; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074537239; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223614220; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074287830; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223614218; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149347345; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148029710; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076643200; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075866880; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2147773505; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074294934; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2147773506; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222038785; -pub const ATM_SETCIRANGE: u32 = 1074553227; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2147755015; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222033682; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074030598; -pub const ATM_GETESI: u32 = 1074553221; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2147774625; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2147762689; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223614219; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221515331; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228508482; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223069448; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234616837; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2150389002; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078236198; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2147762694; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075577411; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222295810; -pub const SCIF_VWRITETO: u32 = 3223614221; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3233846309; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074020866; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074013195; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074020356; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074032641; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3222820550; -pub const PPS_FETCH: u32 = 3221516452; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074291464; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234616836; -pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074553170; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223123209; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221514631; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074295878; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222545173; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074056449; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148034828; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3225703951; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222565638; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3223087365; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3223087366; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225441817; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074032897; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221514630; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080055241; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222295808; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2182640130; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2150892050; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074553220; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1079509648; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074029562; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076110098; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; -pub const MTIOCPOS: u32 = 2147773699; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2148296707; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074026177; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074295879; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3223087367; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3225703945; -pub const VIDIOC_S_EDID: u32 = 3223606825; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2147774627; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222565646; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075605522; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; -pub const FDSETPRM: u32 = 1075577410; -pub const ATM_GETSTATZ: u32 = 1074553169; -pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2179503164; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074024454; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2147774475; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148029659; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2147763849; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074553168; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074287829; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; -pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221512970; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2147762692; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076647435; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2147771137; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391394869; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222545172; -pub const ATM_DELLECSADDR: u32 = 1074553231; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074024453; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2147774203; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074025740; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148037695; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3222825220; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074291075; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222038786; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074032805; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2147810816; -pub const SCIF_FENCE_MARK: u32 = 3222041359; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074025836; -pub const FDWERRORGET: u32 = 2149057047; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221516288; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221504262; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2150892051; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074553217; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; -pub const PHN_GET_REGS: u32 = 3221516290; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223614225; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074558029; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221552643; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221496842; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2149581333; -pub const CM_IOCGATR: u32 = 3221512961; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226228250; -pub const ZATM_GETPOOLZ: u32 = 1074553186; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223093520; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223593728; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3222820424; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3223344833; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074032802; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223606824; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075115275; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221514629; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074553228; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074032652; -pub const PCITEST_WRITE: u32 = 1074024452; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3225703953; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2147773698; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074029057; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2182640129; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2147773705; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224142101; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1092919830; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; diff --git a/third_party/rust/linux-raw-sys/src/csky/net.rs b/third_party/rust/linux-raw-sys/src/csky/net.rs deleted file mode 100644 index cfadfa5a2467..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/net.rs +++ /dev/null @@ -1,1836 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/csky/netlink.rs b/third_party/rust/linux-raw-sys/src/csky/netlink.rs deleted file mode 100644 index ecd8524c33b3..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/csky/prctl.rs b/third_party/rust/linux-raw-sys/src/csky/prctl.rs deleted file mode 100644 index a18ddb573e46..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/csky/system.rs b/third_party/rust/linux-raw-sys/src/csky/system.rs deleted file mode 100644 index ad14d197dd7b..000000000000 --- a/third_party/rust/linux-raw-sys/src/csky/system.rs +++ /dev/null @@ -1,99 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/elf.rs b/third_party/rust/linux-raw-sys/src/elf.rs deleted file mode 100644 index 0141329f651b..000000000000 --- a/third_party/rust/linux-raw-sys/src/elf.rs +++ /dev/null @@ -1,256 +0,0 @@ -//! The ELF ABI. 🧝 - -pub const SELFMAG: usize = 4; -pub const ELFMAG: [u8; SELFMAG] = [0x7f, b'E', b'L', b'F']; -pub const EI_CLASS: usize = 4; -pub const EI_DATA: usize = 5; -pub const EI_VERSION: usize = 6; -pub const EI_OSABI: usize = 7; -pub const EI_ABIVERSION: usize = 8; -pub const EV_CURRENT: u8 = 1; -#[cfg(target_pointer_width = "32")] -pub const ELFCLASS: u8 = 1; // ELFCLASS32 -#[cfg(target_pointer_width = "64")] -pub const ELFCLASS: u8 = 2; // ELFCLASS64 -#[cfg(target_endian = "little")] -pub const ELFDATA: u8 = 1; // ELFDATA2LSB -#[cfg(target_endian = "big")] -pub const ELFDATA: u8 = 2; // ELFDATA2MSB -pub const ELFOSABI_SYSV: u8 = 0; -pub const ELFOSABI_LINUX: u8 = 3; -// At present all of our supported platforms use 0. -pub const ELFABIVERSION: u8 = 0; -pub const ET_DYN: u16 = 3; -pub const EI_NIDENT: usize = 16; -pub const SHN_UNDEF: u16 = 0; -pub const SHN_ABS: u16 = 0xfff1; -pub const PN_XNUM: u16 = 0xffff; -pub const PT_LOAD: u32 = 1; -pub const PT_DYNAMIC: u32 = 2; -pub const PT_INTERP: u32 = 3; -pub const PT_PHDR: u32 = 6; -pub const PT_TLS: u32 = 7; -pub const PT_GNU_STACK: u32 = 0x6474_e551; -pub const PT_GNU_RELRO: u32 = 0x6474_e552; -pub const PF_X: u32 = 1; -pub const PF_W: u32 = 2; -pub const PF_R: u32 = 4; -pub const DT_NULL: usize = 0; -pub const DT_HASH: usize = 4; -pub const DT_STRTAB: usize = 5; -pub const DT_SYMTAB: usize = 6; -pub const DT_RELA: usize = 7; -pub const DT_RELASZ: usize = 8; -pub const DT_RELAENT: usize = 9; -pub const DT_SYMENT: usize = 11; -pub const DT_VERSYM: usize = 0x6fff_fff0; -pub const DT_VERDEF: usize = 0x6fff_fffc; -pub const STB_WEAK: u8 = 2; -pub const STB_GLOBAL: u8 = 1; -pub const STT_NOTYPE: u8 = 0; -pub const STT_FUNC: u8 = 2; -pub const STN_UNDEF: u32 = 0; -pub const VER_FLG_BASE: u16 = 0x1; -pub const VER_DEF_CURRENT: u16 = 1; -pub const STV_DEFAULT: u8 = 0; -#[cfg(target_arch = "arm")] -pub const EM_CURRENT: u16 = 40; // EM_ARM -#[cfg(target_arch = "x86")] -pub const EM_CURRENT: u16 = 3; // EM_386 -#[cfg(target_arch = "powerpc64")] -pub const EM_CURRENT: u16 = 21; // EM_PPC64 -#[cfg(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" -))] -pub const EM_CURRENT: u16 = 8; // EM_MIPS -#[cfg(target_arch = "x86_64")] -pub const EM_CURRENT: u16 = 62; // EM_X86_64 -#[cfg(target_arch = "aarch64")] -pub const EM_CURRENT: u16 = 183; // EM_AARCH64 -#[cfg(target_arch = "riscv64")] -pub const EM_CURRENT: u16 = 243; // EM_RISCV - -#[inline] -pub const fn ELF_ST_VISIBILITY(o: u8) -> u8 { - o & 0x03 -} - -#[inline] -pub const fn ELF_ST_BIND(val: u8) -> u8 { - val >> 4 -} - -#[inline] -pub const fn ELF_ST_TYPE(val: u8) -> u8 { - val & 0xf -} - -#[repr(C)] -pub struct Elf_Ehdr { - pub e_ident: [u8; EI_NIDENT], - pub e_type: u16, - pub e_machine: u16, - pub e_version: u32, - pub e_entry: usize, - pub e_phoff: usize, - pub e_shoff: usize, - pub e_flags: u32, - pub e_ehsize: u16, - pub e_phentsize: u16, - pub e_phnum: u16, - pub e_shentsize: u16, - pub e_shnum: u16, - pub e_shstrndx: u16, -} - -#[cfg(target_pointer_width = "32")] -#[repr(C)] -pub struct Elf_Phdr { - pub p_type: u32, - pub p_offset: usize, - pub p_vaddr: usize, - pub p_paddr: usize, - pub p_filesz: usize, - pub p_memsz: usize, - pub p_flags: u32, - pub p_align: usize, -} - -#[cfg(target_pointer_width = "64")] -#[repr(C)] -pub struct Elf_Phdr { - pub p_type: u32, - pub p_flags: u32, - pub p_offset: usize, - pub p_vaddr: usize, - pub p_paddr: usize, - pub p_filesz: usize, - pub p_memsz: usize, - pub p_align: usize, -} - -#[cfg(target_pointer_width = "32")] -#[repr(C)] -pub struct Elf_Sym { - pub st_name: u32, - pub st_value: usize, - pub st_size: usize, - pub st_info: u8, - pub st_other: u8, - pub st_shndx: u16, -} - -#[cfg(target_pointer_width = "64")] -#[repr(C)] -pub struct Elf_Sym { - pub st_name: u32, - pub st_info: u8, - pub st_other: u8, - pub st_shndx: u16, - pub st_value: usize, - pub st_size: usize, -} - -#[repr(C)] -pub struct Elf_Verdef { - pub vd_version: u16, - pub vd_flags: u16, - pub vd_ndx: u16, - pub vd_cnt: u16, - pub vd_hash: u32, - pub vd_aux: u32, - pub vd_next: u32, -} - -#[repr(C)] -pub struct Elf_Verdaux { - pub vda_name: u32, - pub _vda_next: u32, -} - -#[cfg(target_pointer_width = "32")] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct Elf_Dyn { - pub d_tag: usize, - pub d_un: Elf_Dyn_Union, -} - -#[cfg(target_pointer_width = "32")] -#[repr(C)] -#[derive(Copy, Clone)] -pub union Elf_Dyn_Union { - pub d_val: u32, - pub d_ptr: usize, -} - -#[cfg(target_pointer_width = "64")] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct Elf_Dyn { - pub d_tag: usize, - pub d_un: Elf_Dyn_Union, -} - -#[cfg(target_pointer_width = "64")] -#[repr(C)] -#[derive(Copy, Clone)] -pub union Elf_Dyn_Union { - pub d_val: u64, - pub d_ptr: usize, -} - -#[cfg(target_pointer_width = "32")] -#[repr(C)] -pub struct Elf_Rela { - pub r_offset: usize, - pub r_info: u32, - pub r_addend: usize, -} - -#[cfg(target_pointer_width = "64")] -#[repr(C)] -pub struct Elf_Rela { - pub r_offset: usize, - pub r_info: u64, - pub r_addend: usize, -} - -impl Elf_Rela { - #[inline] - pub fn type_(&self) -> u32 { - #[cfg(target_pointer_width = "32")] - { - self.r_info & 0xff - } - #[cfg(target_pointer_width = "64")] - { - (self.r_info & 0xffff_ffff) as u32 - } - } -} - -#[cfg(target_arch = "x86_64")] -pub const R_RELATIVE: u32 = 8; // `R_X86_64_RELATIVE` -#[cfg(target_arch = "x86")] -pub const R_RELATIVE: u32 = 8; // `R_386_RELATIVE` -#[cfg(target_arch = "aarch64")] -pub const R_RELATIVE: u32 = 1027; // `R_AARCH64_RELATIVE` -#[cfg(target_arch = "riscv64")] -pub const R_RELATIVE: u32 = 3; // `R_RISCV_RELATIVE` -#[cfg(target_arch = "arm")] -pub const R_RELATIVE: u32 = 23; // `R_ARM_RELATIVE` - -#[repr(C)] -#[derive(Clone)] -pub struct Elf_auxv_t { - pub a_type: usize, - - // Some of the values in the auxv array are pointers, so we make `a_val` a - // pointer, in order to preserve their provenance. For the values which are - // integers, we cast this to `usize`. - pub a_val: *mut crate::ctypes::c_void, -} diff --git a/third_party/rust/linux-raw-sys/src/lib.rs b/third_party/rust/linux-raw-sys/src/lib.rs deleted file mode 100644 index 924a56d635b9..000000000000 --- a/third_party/rust/linux-raw-sys/src/lib.rs +++ /dev/null @@ -1,840 +0,0 @@ -#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] -#![cfg_attr(not(feature = "std"), no_std)] - -#[cfg(feature = "std")] -pub use std::os::raw as ctypes; - -#[cfg(all(not(feature = "std"), feature = "no_std"))] -pub mod ctypes { - // The signedness of `char` is platform-specific, however a consequence - // of it being platform-specific is that any code which depends on the - // signedness of `char` is already non-portable. So we can just use `u8` - // here and no portable code will notice. - pub type c_char = u8; - - // The following assumes that Linux is always either ILP32 or LP64, - // and char is always 8-bit. - // - // In theory, `c_long` and `c_ulong` could be `isize` and `usize` - // respectively, however in practice Linux doesn't use them in that way - // consistently. So stick with the convention followed by `libc` and - // others and use the fixed-width types. - pub type c_schar = i8; - pub type c_uchar = u8; - pub type c_short = i16; - pub type c_ushort = u16; - pub type c_int = i32; - pub type c_uint = u32; - #[cfg(target_pointer_width = "32")] - pub type c_long = i32; - #[cfg(target_pointer_width = "32")] - pub type c_ulong = u32; - #[cfg(target_pointer_width = "64")] - pub type c_long = i64; - #[cfg(target_pointer_width = "64")] - pub type c_ulong = u64; - pub type c_longlong = i64; - pub type c_ulonglong = u64; - pub type c_float = f32; - pub type c_double = f64; - - pub use core::ffi::c_void; -} - -// Confirm that our type definitions above match the actual type definitions. -#[cfg(test)] -mod assertions { - use super::ctypes; - static_assertions::assert_eq_size!(ctypes::c_char, libc::c_char); - static_assertions::assert_type_eq_all!(ctypes::c_schar, libc::c_schar); - static_assertions::assert_type_eq_all!(ctypes::c_uchar, libc::c_uchar); - static_assertions::assert_type_eq_all!(ctypes::c_short, libc::c_short); - static_assertions::assert_type_eq_all!(ctypes::c_ushort, libc::c_ushort); - static_assertions::assert_type_eq_all!(ctypes::c_int, libc::c_int); - static_assertions::assert_type_eq_all!(ctypes::c_uint, libc::c_uint); - static_assertions::assert_type_eq_all!(ctypes::c_long, libc::c_long); - static_assertions::assert_type_eq_all!(ctypes::c_ulong, libc::c_ulong); - static_assertions::assert_type_eq_all!(ctypes::c_longlong, libc::c_longlong); - static_assertions::assert_type_eq_all!(ctypes::c_ulonglong, libc::c_ulonglong); - static_assertions::assert_type_eq_all!(ctypes::c_float, libc::c_float); - static_assertions::assert_type_eq_all!(ctypes::c_double, libc::c_double); -} - -// We don't enable `derive_eq` in bindgen because adding `PartialEq`/`Eq` to -// *all* structs noticeably increases compile times. But we can add a few -// manual impls where they're especially useful. -#[cfg(feature = "general")] -impl PartialEq for general::__kernel_timespec { - fn eq(&self, other: &Self) -> bool { - ({ - let Self { tv_sec, tv_nsec } = self; - (tv_sec, tv_nsec) - }) == ({ - let Self { tv_sec, tv_nsec } = other; - (tv_sec, tv_nsec) - }) - } -} -#[cfg(feature = "general")] -impl Eq for general::__kernel_timespec {} - -#[cfg(feature = "net")] -pub mod cmsg_macros { - use crate::ctypes::{c_long, c_uchar, c_uint}; - use crate::net::{cmsghdr, msghdr}; - use core::mem::size_of; - use core::ptr; - - pub const unsafe fn CMSG_ALIGN(len: c_uint) -> c_uint { - let c_long_size = size_of::() as c_uint; - (len + c_long_size - 1) & !(c_long_size - 1) - } - - pub const unsafe fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar { - (cmsg as *mut c_uchar).add(size_of::()) - } - - pub const unsafe fn CMSG_SPACE(len: c_uint) -> c_uint { - size_of::() as c_uint + CMSG_ALIGN(len) - } - - pub const unsafe fn CMSG_LEN(len: c_uint) -> c_uint { - size_of::() as c_uint + len - } - - pub const unsafe fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { - if (*mhdr).msg_controllen < size_of::() as _ { - return ptr::null_mut(); - } - - (*mhdr).msg_control as *mut cmsghdr - } - - pub unsafe fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr { - // We convert from raw pointers to usize here, which may not be sound in a - // future version of Rust. Once the provenance rules are set in stone, - // it will be a good idea to give this function a once-over. - - let cmsg_len = (*cmsg).cmsg_len; - let next_cmsg = (cmsg as *mut u8).add(CMSG_ALIGN(cmsg_len as _) as usize) as *mut cmsghdr; - let max = ((*mhdr).msg_control as usize) + ((*mhdr).msg_controllen as usize); - - if cmsg_len < size_of::() as _ { - return ptr::null_mut(); - } - - if next_cmsg.add(1) as usize > max - || next_cmsg as usize + CMSG_ALIGN(cmsg_len as _) as usize > max - { - return ptr::null_mut(); - } - - next_cmsg - } -} - -#[cfg(feature = "general")] -pub mod select_macros { - use crate::ctypes::c_int; - use crate::general::__kernel_fd_set; - use core::mem::size_of; - - pub unsafe fn FD_CLR(fd: c_int, set: *mut __kernel_fd_set) { - let bytes = set as *mut u8; - if fd >= 0 { - *bytes.add((fd / 8) as usize) &= !(1 << (fd % 8)); - } - } - - pub unsafe fn FD_SET(fd: c_int, set: *mut __kernel_fd_set) { - let bytes = set as *mut u8; - if fd >= 0 { - *bytes.add((fd / 8) as usize) |= 1 << (fd % 8); - } - } - - pub unsafe fn FD_ISSET(fd: c_int, set: *const __kernel_fd_set) -> bool { - let bytes = set as *const u8; - if fd >= 0 { - *bytes.add((fd / 8) as usize) & (1 << (fd % 8)) != 0 - } else { - false - } - } - - pub unsafe fn FD_ZERO(set: *mut __kernel_fd_set) { - let bytes = set as *mut u8; - core::ptr::write_bytes(bytes, 0, size_of::<__kernel_fd_set>()); - } -} - -#[cfg(feature = "general")] -pub mod signal_macros { - pub const SIG_DFL: super::general::__kernel_sighandler_t = None; - - /// Rust doesn't currently permit us to use `transmute` to convert the - /// `SIG_IGN` value into a function pointer in a `const` initializer, so - /// we make it a function instead. - /// - #[inline] - pub const fn sig_ign() -> super::general::__kernel_sighandler_t { - // Safety: This creates an invalid pointer, but the pointer type - // includes `unsafe`, which covers the safety of calling it. - Some(unsafe { - core::mem::transmute::(1) - }) - } -} - -#[cfg(feature = "elf")] -pub mod elf; - -// The rest of this file is auto-generated! -#[cfg(feature = "errno")] -#[cfg(target_arch = "arm")] -#[path = "arm/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "arm")] -#[path = "arm/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "arm")] -#[path = "arm/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "arm")] -#[path = "arm/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "arm")] -#[path = "arm/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "arm")] -#[path = "arm/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "arm")] -#[path = "arm/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "arm")] -#[path = "arm/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "arm")] -#[path = "arm/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "aarch64")] -#[path = "aarch64/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "csky")] -#[path = "csky/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "csky")] -#[path = "csky/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "csky")] -#[path = "csky/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "csky")] -#[path = "csky/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "csky")] -#[path = "csky/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "csky")] -#[path = "csky/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "csky")] -#[path = "csky/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "csky")] -#[path = "csky/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "csky")] -#[path = "csky/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "loongarch64")] -#[path = "loongarch64/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "mips")] -#[path = "mips/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "mips")] -#[path = "mips/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "mips")] -#[path = "mips/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "mips")] -#[path = "mips/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "mips")] -#[path = "mips/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "mips")] -#[path = "mips/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "mips")] -#[path = "mips/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "mips")] -#[path = "mips/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "mips")] -#[path = "mips/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "mips64")] -#[path = "mips64/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "mips32r6")] -#[path = "mips32r6/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "mips64r6")] -#[path = "mips64r6/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "powerpc")] -#[path = "powerpc/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "powerpc64")] -#[path = "powerpc64/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "riscv32")] -#[path = "riscv32/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "riscv64")] -#[path = "riscv64/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "s390x")] -#[path = "s390x/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "sparc")] -#[path = "sparc/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "sparc64")] -#[path = "sparc64/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(target_arch = "x86")] -#[path = "x86/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(target_arch = "x86")] -#[path = "x86/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(target_arch = "x86")] -#[path = "x86/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(target_arch = "x86")] -#[path = "x86/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(target_arch = "x86")] -#[path = "x86/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(target_arch = "x86")] -#[path = "x86/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(target_arch = "x86")] -#[path = "x86/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(target_arch = "x86")] -#[path = "x86/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(target_arch = "x86")] -#[path = "x86/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] -#[path = "x86_64/system.rs"] -pub mod system; -#[cfg(feature = "errno")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/errno.rs"] -pub mod errno; -#[cfg(feature = "general")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/general.rs"] -pub mod general; -#[cfg(feature = "if_ether")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/if_ether.rs"] -pub mod if_ether; -#[cfg(feature = "io_uring")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/io_uring.rs"] -pub mod io_uring; -#[cfg(feature = "ioctl")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/ioctl.rs"] -pub mod ioctl; -#[cfg(feature = "net")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/net.rs"] -pub mod net; -#[cfg(feature = "netlink")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/netlink.rs"] -pub mod netlink; -#[cfg(feature = "prctl")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/prctl.rs"] -pub mod prctl; -#[cfg(feature = "system")] -#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] -#[path = "x32/system.rs"] -pub mod system; diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/errno.rs b/third_party/rust/linux-raw-sys/src/loongarch64/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/general.rs b/third_party/rust/linux-raw-sys/src/loongarch64/general.rs deleted file mode 100644 index 893a49235881..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/general.rs +++ /dev/null @@ -1,2790 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __kernel_long_t; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulong, -pub __pad1: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_int, -pub __pad2: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __kernel_long_t, -pub f_bfree: __kernel_long_t, -pub f_bavail: __kernel_long_t, -pub f_files: __kernel_long_t, -pub f_ffree: __kernel_long_t, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 1; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const MINSIGSTKSZ: u32 = 4096; -pub const SIGSTKSZ: u32 = 16384; -pub const _NSIG: u32 = 64; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_io_setup: u32 = 0; -pub const __NR_io_destroy: u32 = 1; -pub const __NR_io_submit: u32 = 2; -pub const __NR_io_cancel: u32 = 3; -pub const __NR_io_getevents: u32 = 4; -pub const __NR_setxattr: u32 = 5; -pub const __NR_lsetxattr: u32 = 6; -pub const __NR_fsetxattr: u32 = 7; -pub const __NR_getxattr: u32 = 8; -pub const __NR_lgetxattr: u32 = 9; -pub const __NR_fgetxattr: u32 = 10; -pub const __NR_listxattr: u32 = 11; -pub const __NR_llistxattr: u32 = 12; -pub const __NR_flistxattr: u32 = 13; -pub const __NR_removexattr: u32 = 14; -pub const __NR_lremovexattr: u32 = 15; -pub const __NR_fremovexattr: u32 = 16; -pub const __NR_getcwd: u32 = 17; -pub const __NR_lookup_dcookie: u32 = 18; -pub const __NR_eventfd2: u32 = 19; -pub const __NR_epoll_create1: u32 = 20; -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 __NR3264_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; -pub const __NR_ioctl: u32 = 29; -pub const __NR_ioprio_set: u32 = 30; -pub const __NR_ioprio_get: u32 = 31; -pub const __NR_flock: u32 = 32; -pub const __NR_mknodat: u32 = 33; -pub const __NR_mkdirat: u32 = 34; -pub const __NR_unlinkat: u32 = 35; -pub const __NR_symlinkat: u32 = 36; -pub const __NR_linkat: u32 = 37; -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 __NR3264_statfs: u32 = 43; -pub const __NR3264_fstatfs: u32 = 44; -pub const __NR3264_truncate: u32 = 45; -pub const __NR3264_ftruncate: u32 = 46; -pub const __NR_fallocate: u32 = 47; -pub const __NR_faccessat: u32 = 48; -pub const __NR_chdir: u32 = 49; -pub const __NR_fchdir: u32 = 50; -pub const __NR_chroot: u32 = 51; -pub const __NR_fchmod: u32 = 52; -pub const __NR_fchmodat: u32 = 53; -pub const __NR_fchownat: u32 = 54; -pub const __NR_fchown: u32 = 55; -pub const __NR_openat: u32 = 56; -pub const __NR_close: u32 = 57; -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 __NR3264_lseek: u32 = 62; -pub const __NR_read: u32 = 63; -pub const __NR_write: u32 = 64; -pub const __NR_readv: u32 = 65; -pub const __NR_writev: u32 = 66; -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 __NR3264_sendfile: u32 = 71; -pub const __NR_pselect6: u32 = 72; -pub const __NR_ppoll: u32 = 73; -pub const __NR_signalfd4: u32 = 74; -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_sync: u32 = 81; -pub const __NR_fsync: u32 = 82; -pub const __NR_fdatasync: u32 = 83; -pub const __NR_sync_file_range: u32 = 84; -pub const __NR_timerfd_create: u32 = 85; -pub const __NR_timerfd_settime: u32 = 86; -pub const __NR_timerfd_gettime: u32 = 87; -pub const __NR_utimensat: u32 = 88; -pub const __NR_acct: u32 = 89; -pub const __NR_capget: u32 = 90; -pub const __NR_capset: u32 = 91; -pub const __NR_personality: u32 = 92; -pub const __NR_exit: u32 = 93; -pub const __NR_exit_group: u32 = 94; -pub const __NR_waitid: u32 = 95; -pub const __NR_set_tid_address: u32 = 96; -pub const __NR_unshare: u32 = 97; -pub const __NR_futex: u32 = 98; -pub const __NR_set_robust_list: u32 = 99; -pub const __NR_get_robust_list: u32 = 100; -pub const __NR_nanosleep: u32 = 101; -pub const __NR_getitimer: u32 = 102; -pub const __NR_setitimer: u32 = 103; -pub const __NR_kexec_load: u32 = 104; -pub const __NR_init_module: u32 = 105; -pub const __NR_delete_module: u32 = 106; -pub const __NR_timer_create: u32 = 107; -pub const __NR_timer_gettime: u32 = 108; -pub const __NR_timer_getoverrun: u32 = 109; -pub const __NR_timer_settime: u32 = 110; -pub const __NR_timer_delete: u32 = 111; -pub const __NR_clock_settime: u32 = 112; -pub const __NR_clock_gettime: u32 = 113; -pub const __NR_clock_getres: u32 = 114; -pub const __NR_clock_nanosleep: u32 = 115; -pub const __NR_syslog: u32 = 116; -pub const __NR_ptrace: u32 = 117; -pub const __NR_sched_setparam: u32 = 118; -pub const __NR_sched_setscheduler: u32 = 119; -pub const __NR_sched_getscheduler: u32 = 120; -pub const __NR_sched_getparam: u32 = 121; -pub const __NR_sched_setaffinity: u32 = 122; -pub const __NR_sched_getaffinity: u32 = 123; -pub const __NR_sched_yield: u32 = 124; -pub const __NR_sched_get_priority_max: u32 = 125; -pub const __NR_sched_get_priority_min: u32 = 126; -pub const __NR_sched_rr_get_interval: u32 = 127; -pub const __NR_restart_syscall: u32 = 128; -pub const __NR_kill: u32 = 129; -pub const __NR_tkill: u32 = 130; -pub const __NR_tgkill: u32 = 131; -pub const __NR_sigaltstack: u32 = 132; -pub const __NR_rt_sigsuspend: u32 = 133; -pub const __NR_rt_sigaction: u32 = 134; -pub const __NR_rt_sigprocmask: u32 = 135; -pub const __NR_rt_sigpending: u32 = 136; -pub const __NR_rt_sigtimedwait: u32 = 137; -pub const __NR_rt_sigqueueinfo: u32 = 138; -pub const __NR_rt_sigreturn: u32 = 139; -pub const __NR_setpriority: u32 = 140; -pub const __NR_getpriority: u32 = 141; -pub const __NR_reboot: u32 = 142; -pub const __NR_setregid: u32 = 143; -pub const __NR_setgid: u32 = 144; -pub const __NR_setreuid: u32 = 145; -pub const __NR_setuid: u32 = 146; -pub const __NR_setresuid: u32 = 147; -pub const __NR_getresuid: u32 = 148; -pub const __NR_setresgid: u32 = 149; -pub const __NR_getresgid: u32 = 150; -pub const __NR_setfsuid: u32 = 151; -pub const __NR_setfsgid: u32 = 152; -pub const __NR_times: u32 = 153; -pub const __NR_setpgid: u32 = 154; -pub const __NR_getpgid: u32 = 155; -pub const __NR_getsid: u32 = 156; -pub const __NR_setsid: u32 = 157; -pub const __NR_getgroups: u32 = 158; -pub const __NR_setgroups: u32 = 159; -pub const __NR_uname: u32 = 160; -pub const __NR_sethostname: u32 = 161; -pub const __NR_setdomainname: u32 = 162; -pub const __NR_getrusage: u32 = 165; -pub const __NR_umask: u32 = 166; -pub const __NR_prctl: u32 = 167; -pub const __NR_getcpu: u32 = 168; -pub const __NR_gettimeofday: u32 = 169; -pub const __NR_settimeofday: u32 = 170; -pub const __NR_adjtimex: u32 = 171; -pub const __NR_getpid: u32 = 172; -pub const __NR_getppid: u32 = 173; -pub const __NR_getuid: u32 = 174; -pub const __NR_geteuid: u32 = 175; -pub const __NR_getgid: u32 = 176; -pub const __NR_getegid: u32 = 177; -pub const __NR_gettid: u32 = 178; -pub const __NR_sysinfo: u32 = 179; -pub const __NR_mq_open: u32 = 180; -pub const __NR_mq_unlink: u32 = 181; -pub const __NR_mq_timedsend: u32 = 182; -pub const __NR_mq_timedreceive: u32 = 183; -pub const __NR_mq_notify: u32 = 184; -pub const __NR_mq_getsetattr: u32 = 185; -pub const __NR_msgget: u32 = 186; -pub const __NR_msgctl: u32 = 187; -pub const __NR_msgrcv: u32 = 188; -pub const __NR_msgsnd: u32 = 189; -pub const __NR_semget: u32 = 190; -pub const __NR_semctl: u32 = 191; -pub const __NR_semtimedop: u32 = 192; -pub const __NR_semop: u32 = 193; -pub const __NR_shmget: u32 = 194; -pub const __NR_shmctl: u32 = 195; -pub const __NR_shmat: u32 = 196; -pub const __NR_shmdt: u32 = 197; -pub const __NR_socket: u32 = 198; -pub const __NR_socketpair: u32 = 199; -pub const __NR_bind: u32 = 200; -pub const __NR_listen: u32 = 201; -pub const __NR_accept: u32 = 202; -pub const __NR_connect: u32 = 203; -pub const __NR_getsockname: u32 = 204; -pub const __NR_getpeername: u32 = 205; -pub const __NR_sendto: u32 = 206; -pub const __NR_recvfrom: u32 = 207; -pub const __NR_setsockopt: u32 = 208; -pub const __NR_getsockopt: u32 = 209; -pub const __NR_shutdown: u32 = 210; -pub const __NR_sendmsg: u32 = 211; -pub const __NR_recvmsg: u32 = 212; -pub const __NR_readahead: u32 = 213; -pub const __NR_brk: u32 = 214; -pub const __NR_munmap: u32 = 215; -pub const __NR_mremap: u32 = 216; -pub const __NR_add_key: u32 = 217; -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 __NR3264_mmap: u32 = 222; -pub const __NR3264_fadvise64: u32 = 223; -pub const __NR_swapon: u32 = 224; -pub const __NR_swapoff: u32 = 225; -pub const __NR_mprotect: u32 = 226; -pub const __NR_msync: u32 = 227; -pub const __NR_mlock: u32 = 228; -pub const __NR_munlock: u32 = 229; -pub const __NR_mlockall: u32 = 230; -pub const __NR_munlockall: u32 = 231; -pub const __NR_mincore: u32 = 232; -pub const __NR_madvise: u32 = 233; -pub const __NR_remap_file_pages: u32 = 234; -pub const __NR_mbind: u32 = 235; -pub const __NR_get_mempolicy: u32 = 236; -pub const __NR_set_mempolicy: u32 = 237; -pub const __NR_migrate_pages: u32 = 238; -pub const __NR_move_pages: u32 = 239; -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; -pub const __NR_fanotify_mark: u32 = 263; -pub const __NR_name_to_handle_at: u32 = 264; -pub const __NR_open_by_handle_at: u32 = 265; -pub const __NR_clock_adjtime: u32 = 266; -pub const __NR_syncfs: u32 = 267; -pub const __NR_setns: u32 = 268; -pub const __NR_sendmmsg: u32 = 269; -pub const __NR_process_vm_readv: u32 = 270; -pub const __NR_process_vm_writev: u32 = 271; -pub const __NR_kcmp: u32 = 272; -pub const __NR_finit_module: u32 = 273; -pub const __NR_sched_setattr: u32 = 274; -pub const __NR_sched_getattr: u32 = 275; -pub const __NR_renameat2: u32 = 276; -pub const __NR_seccomp: u32 = 277; -pub const __NR_getrandom: u32 = 278; -pub const __NR_memfd_create: u32 = 279; -pub const __NR_bpf: u32 = 280; -pub const __NR_execveat: u32 = 281; -pub const __NR_userfaultfd: u32 = 282; -pub const __NR_membarrier: u32 = 283; -pub const __NR_mlock2: u32 = 284; -pub const __NR_copy_file_range: u32 = 285; -pub const __NR_preadv2: u32 = 286; -pub const __NR_pwritev2: u32 = 287; -pub const __NR_pkey_mprotect: u32 = 288; -pub const __NR_pkey_alloc: u32 = 289; -pub const __NR_pkey_free: u32 = 290; -pub const __NR_statx: u32 = 291; -pub const __NR_io_pgetevents: u32 = 292; -pub const __NR_rseq: u32 = 293; -pub const __NR_kexec_file_load: u32 = 294; -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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const __NR_syscalls: u32 = 451; -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_mmap: u32 = 222; -pub const __NR_fadvise64: u32 = 223; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/if_ether.rs b/third_party/rust/linux-raw-sys/src/loongarch64/if_ether.rs deleted file mode 100644 index d4beeb4369af..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/io_uring.rs b/third_party/rust/linux-raw-sys/src/loongarch64/io_uring.rs deleted file mode 100644 index 36ddd1d6a1de..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/io_uring.rs +++ /dev/null @@ -1,1083 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/ioctl.rs b/third_party/rust/linux-raw-sys/src/loongarch64/ioctl.rs deleted file mode 100644 index 1d973962f4a2..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/ioctl.rs +++ /dev/null @@ -1,1489 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21600; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2150657282; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2148012656; -pub const BLKBSZSET: u32 = 1074270833; -pub const BLKGETSIZE64: u32 = 2148012658; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2148034049; -pub const FS_IOC_SETFLAGS: u32 = 1074292226; -pub const FS_IOC_GETVERSION: u32 = 2148038145; -pub const FS_IOC_SETVERSION: u32 = 1074296322; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2148034051; -pub const EXT4_IOC_SETVERSION: u32 = 1074292228; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; -pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074815370; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2156418649; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148561045; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149581316; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2148036621; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074331138; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; -pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074815373; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; -pub const PMU_IOC_GET_MODEL: u32 = 2148024835; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2155872785; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2148035841; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074815316; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150651402; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074812118; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149609489; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076905344; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2148035649; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074819222; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2148035650; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 1074815371; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2148017159; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074292742; -pub const ATM_GETESI: u32 = 1074815365; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2148036769; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2151175434; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078498342; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075839555; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074294785; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074815752; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074815314; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074820166; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074318593; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148559116; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074295041; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080579529; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2152727058; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074815364; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1082131088; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074291706; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; -pub const MTIOCPOS: u32 = 2148035843; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2149083139; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074820167; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2148036771; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075867666; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; -pub const FDSETPRM: u32 = 1075839554; -pub const ATM_GETSTATZ: u32 = 1074815313; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074286598; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2148036619; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148553947; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2148025993; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074815312; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074812117; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; -pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2148024836; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076909579; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2148033281; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074286597; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074287884; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148561983; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074815363; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074294949; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074287980; -pub const FDWERRORGET: u32 = 2150105623; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2152727059; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074815361; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074820173; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2150105621; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074294946; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074815372; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074294796; -pub const PCITEST_WRITE: u32 = 1074286596; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2148035842; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074291201; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2148035849; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/net.rs b/third_party/rust/linux-raw-sys/src/loongarch64/net.rs deleted file mode 100644 index 77630ebf25c6..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/net.rs +++ /dev/null @@ -1,1844 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/netlink.rs b/third_party/rust/linux-raw-sys/src/loongarch64/netlink.rs deleted file mode 100644 index 9a439a3bf04e..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/prctl.rs b/third_party/rust/linux-raw-sys/src/loongarch64/prctl.rs deleted file mode 100644 index 0469933ce542..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/loongarch64/system.rs b/third_party/rust/linux-raw-sys/src/loongarch64/system.rs deleted file mode 100644 index 8c55d581e624..000000000000 --- a/third_party/rust/linux-raw-sys/src/loongarch64/system.rs +++ /dev/null @@ -1,129 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips/errno.rs b/third_party/rust/linux-raw-sys/src/mips/errno.rs deleted file mode 100644 index 337d8379f58d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/errno.rs +++ /dev/null @@ -1,137 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; diff --git a/third_party/rust/linux-raw-sys/src/mips/general.rs b/third_party/rust/linux-raw-sys/src/mips/general.rs deleted file mode 100644 index 275eb6536ab9..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/general.rs +++ /dev/null @@ -1,3100 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type fsid_t = __kernel_fsid_t; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -pub l_sysid: crate::ctypes::c_long, -pub pad: [crate::ctypes::c_long; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_flags: crate::ctypes::c_uint, -pub sa_handler: __sighandler_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_size: __kernel_size_t, -pub ss_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sgttyb { -pub sg_ispeed: crate::ctypes::c_char, -pub sg_ospeed: crate::ctypes::c_char, -pub sg_erase: crate::ctypes::c_char, -pub sg_kill: crate::ctypes::c_char, -pub sg_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tchars { -pub t_intrc: crate::ctypes::c_char, -pub t_quitc: crate::ctypes::c_char, -pub t_startc: crate::ctypes::c_char, -pub t_stopc: crate::ctypes::c_char, -pub t_eofc: crate::ctypes::c_char, -pub t_brkc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ltchars { -pub t_suspc: crate::ctypes::c_char, -pub t_dsuspc: crate::ctypes::c_char, -pub t_rprntc: crate::ctypes::c_char, -pub t_flushc: crate::ctypes::c_char, -pub t_werasc: crate::ctypes::c_char, -pub t_lnextc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_char, -pub c_cc: [crate::ctypes::c_uchar; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_uint, -pub st_pad1: [crate::ctypes::c_long; 3usize], -pub st_ino: __kernel_ino_t, -pub st_mode: __kernel_mode_t, -pub st_nlink: __u32, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_uint, -pub st_pad2: [crate::ctypes::c_long; 2usize], -pub st_size: crate::ctypes::c_long, -pub st_pad3: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_long, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_long, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_long, -pub st_blocks: crate::ctypes::c_long, -pub st_pad4: [crate::ctypes::c_long; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulong, -pub st_pad0: [crate::ctypes::c_ulong; 3usize], -pub st_ino: crate::ctypes::c_ulonglong, -pub st_mode: __kernel_mode_t, -pub st_nlink: __u32, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_ulong, -pub st_pad1: [crate::ctypes::c_ulong; 3usize], -pub st_size: crate::ctypes::c_longlong, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub st_blksize: crate::ctypes::c_ulong, -pub st_pad2: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: crate::ctypes::c_long, -pub f_bsize: crate::ctypes::c_long, -pub f_frsize: crate::ctypes::c_long, -pub f_blocks: crate::ctypes::c_long, -pub f_bfree: crate::ctypes::c_long, -pub f_files: crate::ctypes::c_long, -pub f_ffree: crate::ctypes::c_long, -pub f_bavail: crate::ctypes::c_long, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_long, -pub f_flags: crate::ctypes::c_long, -pub f_spare: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_frsize: __u32, -pub __pad: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_bavail: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 1; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_APPEND: u32 = 8; -pub const O_DSYNC: u32 = 16; -pub const O_NONBLOCK: u32 = 128; -pub const O_CREAT: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_EXCL: u32 = 1024; -pub const O_NOCTTY: u32 = 2048; -pub const FASYNC: u32 = 4096; -pub const O_LARGEFILE: u32 = 8192; -pub const __O_SYNC: u32 = 16384; -pub const O_SYNC: u32 = 16400; -pub const O_DIRECT: u32 = 32768; -pub const F_GETLK: u32 = 14; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 24; -pub const F_GETOWN: u32 = 23; -pub const F_GETLK64: u32 = 33; -pub const F_SETLK64: u32 = 34; -pub const F_SETLKW64: u32 = 35; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4260096; -pub const O_NDELAY: u32 = 128; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 128; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_NONE: u32 = 0; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 16; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_AUTOGROW: u32 = 64; -pub const MAP_LOCAL: u32 = 128; -pub const MAP_AUTORSRV: u32 = 256; -pub const MAP_NORESERVE: u32 = 1024; -pub const MAP_ANONYMOUS: u32 = 2048; -pub const MAP_GROWSDOWN: u32 = 4096; -pub const MAP_DENYWRITE: u32 = 8192; -pub const MAP_EXECUTABLE: u32 = 16384; -pub const MAP_LOCKED: u32 = 32768; -pub const MAP_POPULATE: u32 = 65536; -pub const MAP_NONBLOCK: u32 = 131072; -pub const MAP_STACK: u32 = 262144; -pub const MAP_HUGETLB: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLWRBAND: u32 = 256; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_NOFILE: u32 = 5; -pub const RLIMIT_AS: u32 = 6; -pub const RLIMIT_RSS: u32 = 7; -pub const RLIMIT_NPROC: u32 = 8; -pub const RLIMIT_MEMLOCK: u32 = 9; -pub const RLIM_INFINITY: u32 = 2147483647; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 128; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGIOT: u32 = 6; -pub const SIGABRT: u32 = 6; -pub const SIGEMT: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGBUS: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGSYS: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGUSR1: u32 = 16; -pub const SIGUSR2: u32 = 17; -pub const SIGCHLD: u32 = 18; -pub const SIGCLD: u32 = 18; -pub const SIGPWR: u32 = 19; -pub const SIGWINCH: u32 = 20; -pub const SIGURG: u32 = 21; -pub const SIGIO: u32 = 22; -pub const SIGPOLL: u32 = 22; -pub const SIGSTOP: u32 = 23; -pub const SIGTSTP: u32 = 24; -pub const SIGCONT: u32 = 25; -pub const SIGTTIN: u32 = 26; -pub const SIGTTOU: u32 = 27; -pub const SIGVTALRM: u32 = 28; -pub const SIGPROF: u32 = 29; -pub const SIGXCPU: u32 = 30; -pub const SIGXFSZ: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 128; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_RESTART: u32 = 268435456; -pub const SA_SIGINFO: u32 = 8; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_NOCLDWAIT: u32 = 65536; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 3; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 23; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VMIN: u32 = 4; -pub const VTIME: u32 = 5; -pub const VEOL2: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSWTCH: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOF: u32 = 16; -pub const VEOL: u32 = 17; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const IEXTEN: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 8192; -pub const PENDIN: u32 = 16384; -pub const TOSTOP: u32 = 32768; -pub const ITOSTOP: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TIOCSER_TEMT: u32 = 1; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCGLTC: u32 = 29812; -pub const TIOCSLTC: u32 = 29813; -pub const TIOCGETP: u32 = 29704; -pub const TIOCSETP: u32 = 29705; -pub const TIOCSETN: u32 = 29706; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 16; -pub const TIOCM_SR: u32 = 32; -pub const TIOCM_CTS: u32 = 64; -pub const TIOCM_CAR: u32 = 256; -pub const TIOCM_CD: u32 = 256; -pub const TIOCM_RNG: u32 = 512; -pub const TIOCM_RI: u32 = 512; -pub const TIOCM_DSR: u32 = 1024; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_Linux: u32 = 4000; -pub const __NR_syscall: u32 = 4000; -pub const __NR_exit: u32 = 4001; -pub const __NR_fork: u32 = 4002; -pub const __NR_read: u32 = 4003; -pub const __NR_write: u32 = 4004; -pub const __NR_open: u32 = 4005; -pub const __NR_close: u32 = 4006; -pub const __NR_waitpid: u32 = 4007; -pub const __NR_creat: u32 = 4008; -pub const __NR_link: u32 = 4009; -pub const __NR_unlink: u32 = 4010; -pub const __NR_execve: u32 = 4011; -pub const __NR_chdir: u32 = 4012; -pub const __NR_time: u32 = 4013; -pub const __NR_mknod: u32 = 4014; -pub const __NR_chmod: u32 = 4015; -pub const __NR_lchown: u32 = 4016; -pub const __NR_break: u32 = 4017; -pub const __NR_unused18: u32 = 4018; -pub const __NR_lseek: u32 = 4019; -pub const __NR_getpid: u32 = 4020; -pub const __NR_mount: u32 = 4021; -pub const __NR_umount: u32 = 4022; -pub const __NR_setuid: u32 = 4023; -pub const __NR_getuid: u32 = 4024; -pub const __NR_stime: u32 = 4025; -pub const __NR_ptrace: u32 = 4026; -pub const __NR_alarm: u32 = 4027; -pub const __NR_unused28: u32 = 4028; -pub const __NR_pause: u32 = 4029; -pub const __NR_utime: u32 = 4030; -pub const __NR_stty: u32 = 4031; -pub const __NR_gtty: u32 = 4032; -pub const __NR_access: u32 = 4033; -pub const __NR_nice: u32 = 4034; -pub const __NR_ftime: u32 = 4035; -pub const __NR_sync: u32 = 4036; -pub const __NR_kill: u32 = 4037; -pub const __NR_rename: u32 = 4038; -pub const __NR_mkdir: u32 = 4039; -pub const __NR_rmdir: u32 = 4040; -pub const __NR_dup: u32 = 4041; -pub const __NR_pipe: u32 = 4042; -pub const __NR_times: u32 = 4043; -pub const __NR_prof: u32 = 4044; -pub const __NR_brk: u32 = 4045; -pub const __NR_setgid: u32 = 4046; -pub const __NR_getgid: u32 = 4047; -pub const __NR_signal: u32 = 4048; -pub const __NR_geteuid: u32 = 4049; -pub const __NR_getegid: u32 = 4050; -pub const __NR_acct: u32 = 4051; -pub const __NR_umount2: u32 = 4052; -pub const __NR_lock: u32 = 4053; -pub const __NR_ioctl: u32 = 4054; -pub const __NR_fcntl: u32 = 4055; -pub const __NR_mpx: u32 = 4056; -pub const __NR_setpgid: u32 = 4057; -pub const __NR_ulimit: u32 = 4058; -pub const __NR_unused59: u32 = 4059; -pub const __NR_umask: u32 = 4060; -pub const __NR_chroot: u32 = 4061; -pub const __NR_ustat: u32 = 4062; -pub const __NR_dup2: u32 = 4063; -pub const __NR_getppid: u32 = 4064; -pub const __NR_getpgrp: u32 = 4065; -pub const __NR_setsid: u32 = 4066; -pub const __NR_sigaction: u32 = 4067; -pub const __NR_sgetmask: u32 = 4068; -pub const __NR_ssetmask: u32 = 4069; -pub const __NR_setreuid: u32 = 4070; -pub const __NR_setregid: u32 = 4071; -pub const __NR_sigsuspend: u32 = 4072; -pub const __NR_sigpending: u32 = 4073; -pub const __NR_sethostname: u32 = 4074; -pub const __NR_setrlimit: u32 = 4075; -pub const __NR_getrlimit: u32 = 4076; -pub const __NR_getrusage: u32 = 4077; -pub const __NR_gettimeofday: u32 = 4078; -pub const __NR_settimeofday: u32 = 4079; -pub const __NR_getgroups: u32 = 4080; -pub const __NR_setgroups: u32 = 4081; -pub const __NR_reserved82: u32 = 4082; -pub const __NR_symlink: u32 = 4083; -pub const __NR_unused84: u32 = 4084; -pub const __NR_readlink: u32 = 4085; -pub const __NR_uselib: u32 = 4086; -pub const __NR_swapon: u32 = 4087; -pub const __NR_reboot: u32 = 4088; -pub const __NR_readdir: u32 = 4089; -pub const __NR_mmap: u32 = 4090; -pub const __NR_munmap: u32 = 4091; -pub const __NR_truncate: u32 = 4092; -pub const __NR_ftruncate: u32 = 4093; -pub const __NR_fchmod: u32 = 4094; -pub const __NR_fchown: u32 = 4095; -pub const __NR_getpriority: u32 = 4096; -pub const __NR_setpriority: u32 = 4097; -pub const __NR_profil: u32 = 4098; -pub const __NR_statfs: u32 = 4099; -pub const __NR_fstatfs: u32 = 4100; -pub const __NR_ioperm: u32 = 4101; -pub const __NR_socketcall: u32 = 4102; -pub const __NR_syslog: u32 = 4103; -pub const __NR_setitimer: u32 = 4104; -pub const __NR_getitimer: u32 = 4105; -pub const __NR_stat: u32 = 4106; -pub const __NR_lstat: u32 = 4107; -pub const __NR_fstat: u32 = 4108; -pub const __NR_unused109: u32 = 4109; -pub const __NR_iopl: u32 = 4110; -pub const __NR_vhangup: u32 = 4111; -pub const __NR_idle: u32 = 4112; -pub const __NR_vm86: u32 = 4113; -pub const __NR_wait4: u32 = 4114; -pub const __NR_swapoff: u32 = 4115; -pub const __NR_sysinfo: u32 = 4116; -pub const __NR_ipc: u32 = 4117; -pub const __NR_fsync: u32 = 4118; -pub const __NR_sigreturn: u32 = 4119; -pub const __NR_clone: u32 = 4120; -pub const __NR_setdomainname: u32 = 4121; -pub const __NR_uname: u32 = 4122; -pub const __NR_modify_ldt: u32 = 4123; -pub const __NR_adjtimex: u32 = 4124; -pub const __NR_mprotect: u32 = 4125; -pub const __NR_sigprocmask: u32 = 4126; -pub const __NR_create_module: u32 = 4127; -pub const __NR_init_module: u32 = 4128; -pub const __NR_delete_module: u32 = 4129; -pub const __NR_get_kernel_syms: u32 = 4130; -pub const __NR_quotactl: u32 = 4131; -pub const __NR_getpgid: u32 = 4132; -pub const __NR_fchdir: u32 = 4133; -pub const __NR_bdflush: u32 = 4134; -pub const __NR_sysfs: u32 = 4135; -pub const __NR_personality: u32 = 4136; -pub const __NR_afs_syscall: u32 = 4137; -pub const __NR_setfsuid: u32 = 4138; -pub const __NR_setfsgid: u32 = 4139; -pub const __NR__llseek: u32 = 4140; -pub const __NR_getdents: u32 = 4141; -pub const __NR__newselect: u32 = 4142; -pub const __NR_flock: u32 = 4143; -pub const __NR_msync: u32 = 4144; -pub const __NR_readv: u32 = 4145; -pub const __NR_writev: u32 = 4146; -pub const __NR_cacheflush: u32 = 4147; -pub const __NR_cachectl: u32 = 4148; -pub const __NR_sysmips: u32 = 4149; -pub const __NR_unused150: u32 = 4150; -pub const __NR_getsid: u32 = 4151; -pub const __NR_fdatasync: u32 = 4152; -pub const __NR__sysctl: u32 = 4153; -pub const __NR_mlock: u32 = 4154; -pub const __NR_munlock: u32 = 4155; -pub const __NR_mlockall: u32 = 4156; -pub const __NR_munlockall: u32 = 4157; -pub const __NR_sched_setparam: u32 = 4158; -pub const __NR_sched_getparam: u32 = 4159; -pub const __NR_sched_setscheduler: u32 = 4160; -pub const __NR_sched_getscheduler: u32 = 4161; -pub const __NR_sched_yield: u32 = 4162; -pub const __NR_sched_get_priority_max: u32 = 4163; -pub const __NR_sched_get_priority_min: u32 = 4164; -pub const __NR_sched_rr_get_interval: u32 = 4165; -pub const __NR_nanosleep: u32 = 4166; -pub const __NR_mremap: u32 = 4167; -pub const __NR_accept: u32 = 4168; -pub const __NR_bind: u32 = 4169; -pub const __NR_connect: u32 = 4170; -pub const __NR_getpeername: u32 = 4171; -pub const __NR_getsockname: u32 = 4172; -pub const __NR_getsockopt: u32 = 4173; -pub const __NR_listen: u32 = 4174; -pub const __NR_recv: u32 = 4175; -pub const __NR_recvfrom: u32 = 4176; -pub const __NR_recvmsg: u32 = 4177; -pub const __NR_send: u32 = 4178; -pub const __NR_sendmsg: u32 = 4179; -pub const __NR_sendto: u32 = 4180; -pub const __NR_setsockopt: u32 = 4181; -pub const __NR_shutdown: u32 = 4182; -pub const __NR_socket: u32 = 4183; -pub const __NR_socketpair: u32 = 4184; -pub const __NR_setresuid: u32 = 4185; -pub const __NR_getresuid: u32 = 4186; -pub const __NR_query_module: u32 = 4187; -pub const __NR_poll: u32 = 4188; -pub const __NR_nfsservctl: u32 = 4189; -pub const __NR_setresgid: u32 = 4190; -pub const __NR_getresgid: u32 = 4191; -pub const __NR_prctl: u32 = 4192; -pub const __NR_rt_sigreturn: u32 = 4193; -pub const __NR_rt_sigaction: u32 = 4194; -pub const __NR_rt_sigprocmask: u32 = 4195; -pub const __NR_rt_sigpending: u32 = 4196; -pub const __NR_rt_sigtimedwait: u32 = 4197; -pub const __NR_rt_sigqueueinfo: u32 = 4198; -pub const __NR_rt_sigsuspend: u32 = 4199; -pub const __NR_pread64: u32 = 4200; -pub const __NR_pwrite64: u32 = 4201; -pub const __NR_chown: u32 = 4202; -pub const __NR_getcwd: u32 = 4203; -pub const __NR_capget: u32 = 4204; -pub const __NR_capset: u32 = 4205; -pub const __NR_sigaltstack: u32 = 4206; -pub const __NR_sendfile: u32 = 4207; -pub const __NR_getpmsg: u32 = 4208; -pub const __NR_putpmsg: u32 = 4209; -pub const __NR_mmap2: u32 = 4210; -pub const __NR_truncate64: u32 = 4211; -pub const __NR_ftruncate64: u32 = 4212; -pub const __NR_stat64: u32 = 4213; -pub const __NR_lstat64: u32 = 4214; -pub const __NR_fstat64: u32 = 4215; -pub const __NR_pivot_root: u32 = 4216; -pub const __NR_mincore: u32 = 4217; -pub const __NR_madvise: u32 = 4218; -pub const __NR_getdents64: u32 = 4219; -pub const __NR_fcntl64: u32 = 4220; -pub const __NR_reserved221: u32 = 4221; -pub const __NR_gettid: u32 = 4222; -pub const __NR_readahead: u32 = 4223; -pub const __NR_setxattr: u32 = 4224; -pub const __NR_lsetxattr: u32 = 4225; -pub const __NR_fsetxattr: u32 = 4226; -pub const __NR_getxattr: u32 = 4227; -pub const __NR_lgetxattr: u32 = 4228; -pub const __NR_fgetxattr: u32 = 4229; -pub const __NR_listxattr: u32 = 4230; -pub const __NR_llistxattr: u32 = 4231; -pub const __NR_flistxattr: u32 = 4232; -pub const __NR_removexattr: u32 = 4233; -pub const __NR_lremovexattr: u32 = 4234; -pub const __NR_fremovexattr: u32 = 4235; -pub const __NR_tkill: u32 = 4236; -pub const __NR_sendfile64: u32 = 4237; -pub const __NR_futex: u32 = 4238; -pub const __NR_sched_setaffinity: u32 = 4239; -pub const __NR_sched_getaffinity: u32 = 4240; -pub const __NR_io_setup: u32 = 4241; -pub const __NR_io_destroy: u32 = 4242; -pub const __NR_io_getevents: u32 = 4243; -pub const __NR_io_submit: u32 = 4244; -pub const __NR_io_cancel: u32 = 4245; -pub const __NR_exit_group: u32 = 4246; -pub const __NR_lookup_dcookie: u32 = 4247; -pub const __NR_epoll_create: u32 = 4248; -pub const __NR_epoll_ctl: u32 = 4249; -pub const __NR_epoll_wait: u32 = 4250; -pub const __NR_remap_file_pages: u32 = 4251; -pub const __NR_set_tid_address: u32 = 4252; -pub const __NR_restart_syscall: u32 = 4253; -pub const __NR_fadvise64: u32 = 4254; -pub const __NR_statfs64: u32 = 4255; -pub const __NR_fstatfs64: u32 = 4256; -pub const __NR_timer_create: u32 = 4257; -pub const __NR_timer_settime: u32 = 4258; -pub const __NR_timer_gettime: u32 = 4259; -pub const __NR_timer_getoverrun: u32 = 4260; -pub const __NR_timer_delete: u32 = 4261; -pub const __NR_clock_settime: u32 = 4262; -pub const __NR_clock_gettime: u32 = 4263; -pub const __NR_clock_getres: u32 = 4264; -pub const __NR_clock_nanosleep: u32 = 4265; -pub const __NR_tgkill: u32 = 4266; -pub const __NR_utimes: u32 = 4267; -pub const __NR_mbind: u32 = 4268; -pub const __NR_get_mempolicy: u32 = 4269; -pub const __NR_set_mempolicy: u32 = 4270; -pub const __NR_mq_open: u32 = 4271; -pub const __NR_mq_unlink: u32 = 4272; -pub const __NR_mq_timedsend: u32 = 4273; -pub const __NR_mq_timedreceive: u32 = 4274; -pub const __NR_mq_notify: u32 = 4275; -pub const __NR_mq_getsetattr: u32 = 4276; -pub const __NR_vserver: u32 = 4277; -pub const __NR_waitid: u32 = 4278; -pub const __NR_add_key: u32 = 4280; -pub const __NR_request_key: u32 = 4281; -pub const __NR_keyctl: u32 = 4282; -pub const __NR_set_thread_area: u32 = 4283; -pub const __NR_inotify_init: u32 = 4284; -pub const __NR_inotify_add_watch: u32 = 4285; -pub const __NR_inotify_rm_watch: u32 = 4286; -pub const __NR_migrate_pages: u32 = 4287; -pub const __NR_openat: u32 = 4288; -pub const __NR_mkdirat: u32 = 4289; -pub const __NR_mknodat: u32 = 4290; -pub const __NR_fchownat: u32 = 4291; -pub const __NR_futimesat: u32 = 4292; -pub const __NR_fstatat64: u32 = 4293; -pub const __NR_unlinkat: u32 = 4294; -pub const __NR_renameat: u32 = 4295; -pub const __NR_linkat: u32 = 4296; -pub const __NR_symlinkat: u32 = 4297; -pub const __NR_readlinkat: u32 = 4298; -pub const __NR_fchmodat: u32 = 4299; -pub const __NR_faccessat: u32 = 4300; -pub const __NR_pselect6: u32 = 4301; -pub const __NR_ppoll: u32 = 4302; -pub const __NR_unshare: u32 = 4303; -pub const __NR_splice: u32 = 4304; -pub const __NR_sync_file_range: u32 = 4305; -pub const __NR_tee: u32 = 4306; -pub const __NR_vmsplice: u32 = 4307; -pub const __NR_move_pages: u32 = 4308; -pub const __NR_set_robust_list: u32 = 4309; -pub const __NR_get_robust_list: u32 = 4310; -pub const __NR_kexec_load: u32 = 4311; -pub const __NR_getcpu: u32 = 4312; -pub const __NR_epoll_pwait: u32 = 4313; -pub const __NR_ioprio_set: u32 = 4314; -pub const __NR_ioprio_get: u32 = 4315; -pub const __NR_utimensat: u32 = 4316; -pub const __NR_signalfd: u32 = 4317; -pub const __NR_timerfd: u32 = 4318; -pub const __NR_eventfd: u32 = 4319; -pub const __NR_fallocate: u32 = 4320; -pub const __NR_timerfd_create: u32 = 4321; -pub const __NR_timerfd_gettime: u32 = 4322; -pub const __NR_timerfd_settime: u32 = 4323; -pub const __NR_signalfd4: u32 = 4324; -pub const __NR_eventfd2: u32 = 4325; -pub const __NR_epoll_create1: u32 = 4326; -pub const __NR_dup3: u32 = 4327; -pub const __NR_pipe2: u32 = 4328; -pub const __NR_inotify_init1: u32 = 4329; -pub const __NR_preadv: u32 = 4330; -pub const __NR_pwritev: u32 = 4331; -pub const __NR_rt_tgsigqueueinfo: u32 = 4332; -pub const __NR_perf_event_open: u32 = 4333; -pub const __NR_accept4: u32 = 4334; -pub const __NR_recvmmsg: u32 = 4335; -pub const __NR_fanotify_init: u32 = 4336; -pub const __NR_fanotify_mark: u32 = 4337; -pub const __NR_prlimit64: u32 = 4338; -pub const __NR_name_to_handle_at: u32 = 4339; -pub const __NR_open_by_handle_at: u32 = 4340; -pub const __NR_clock_adjtime: u32 = 4341; -pub const __NR_syncfs: u32 = 4342; -pub const __NR_sendmmsg: u32 = 4343; -pub const __NR_setns: u32 = 4344; -pub const __NR_process_vm_readv: u32 = 4345; -pub const __NR_process_vm_writev: u32 = 4346; -pub const __NR_kcmp: u32 = 4347; -pub const __NR_finit_module: u32 = 4348; -pub const __NR_sched_setattr: u32 = 4349; -pub const __NR_sched_getattr: u32 = 4350; -pub const __NR_renameat2: u32 = 4351; -pub const __NR_seccomp: u32 = 4352; -pub const __NR_getrandom: u32 = 4353; -pub const __NR_memfd_create: u32 = 4354; -pub const __NR_bpf: u32 = 4355; -pub const __NR_execveat: u32 = 4356; -pub const __NR_userfaultfd: u32 = 4357; -pub const __NR_membarrier: u32 = 4358; -pub const __NR_mlock2: u32 = 4359; -pub const __NR_copy_file_range: u32 = 4360; -pub const __NR_preadv2: u32 = 4361; -pub const __NR_pwritev2: u32 = 4362; -pub const __NR_pkey_mprotect: u32 = 4363; -pub const __NR_pkey_alloc: u32 = 4364; -pub const __NR_pkey_free: u32 = 4365; -pub const __NR_statx: u32 = 4366; -pub const __NR_rseq: u32 = 4367; -pub const __NR_io_pgetevents: u32 = 4368; -pub const __NR_semget: u32 = 4393; -pub const __NR_semctl: u32 = 4394; -pub const __NR_shmget: u32 = 4395; -pub const __NR_shmctl: u32 = 4396; -pub const __NR_shmat: u32 = 4397; -pub const __NR_shmdt: u32 = 4398; -pub const __NR_msgget: u32 = 4399; -pub const __NR_msgsnd: u32 = 4400; -pub const __NR_msgrcv: u32 = 4401; -pub const __NR_msgctl: u32 = 4402; -pub const __NR_clock_gettime64: u32 = 4403; -pub const __NR_clock_settime64: u32 = 4404; -pub const __NR_clock_adjtime64: u32 = 4405; -pub const __NR_clock_getres_time64: u32 = 4406; -pub const __NR_clock_nanosleep_time64: u32 = 4407; -pub const __NR_timer_gettime64: u32 = 4408; -pub const __NR_timer_settime64: u32 = 4409; -pub const __NR_timerfd_gettime64: u32 = 4410; -pub const __NR_timerfd_settime64: u32 = 4411; -pub const __NR_utimensat_time64: u32 = 4412; -pub const __NR_pselect6_time64: u32 = 4413; -pub const __NR_ppoll_time64: u32 = 4414; -pub const __NR_io_pgetevents_time64: u32 = 4416; -pub const __NR_recvmmsg_time64: u32 = 4417; -pub const __NR_mq_timedsend_time64: u32 = 4418; -pub const __NR_mq_timedreceive_time64: u32 = 4419; -pub const __NR_semtimedop_time64: u32 = 4420; -pub const __NR_rt_sigtimedwait_time64: u32 = 4421; -pub const __NR_futex_time64: u32 = 4422; -pub const __NR_sched_rr_get_interval_time64: u32 = 4423; -pub const __NR_pidfd_send_signal: u32 = 4424; -pub const __NR_io_uring_setup: u32 = 4425; -pub const __NR_io_uring_enter: u32 = 4426; -pub const __NR_io_uring_register: u32 = 4427; -pub const __NR_open_tree: u32 = 4428; -pub const __NR_move_mount: u32 = 4429; -pub const __NR_fsopen: u32 = 4430; -pub const __NR_fsconfig: u32 = 4431; -pub const __NR_fsmount: u32 = 4432; -pub const __NR_fspick: u32 = 4433; -pub const __NR_pidfd_open: u32 = 4434; -pub const __NR_clone3: u32 = 4435; -pub const __NR_close_range: u32 = 4436; -pub const __NR_openat2: u32 = 4437; -pub const __NR_pidfd_getfd: u32 = 4438; -pub const __NR_faccessat2: u32 = 4439; -pub const __NR_process_madvise: u32 = 4440; -pub const __NR_epoll_pwait2: u32 = 4441; -pub const __NR_mount_setattr: u32 = 4442; -pub const __NR_quotactl_fd: u32 = 4443; -pub const __NR_landlock_create_ruleset: u32 = 4444; -pub const __NR_landlock_add_rule: u32 = 4445; -pub const __NR_landlock_restrict_self: u32 = 4446; -pub const __NR_process_mrelease: u32 = 4448; -pub const __NR_futex_waitv: u32 = 4449; -pub const __NR_set_mempolicy_home_node: u32 = 4450; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 128; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 128; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416; -pub const TFD_CREATE_FLAGS: u32 = 524416; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const POLLWRNORM: u32 = 4; -pub const TCSANOW: u32 = 21518; -pub const TCSADRAIN: u32 = 21519; -pub const TCSAFLUSH: u32 = 21520; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips/if_ether.rs b/third_party/rust/linux-raw-sys/src/mips/if_ether.rs deleted file mode 100644 index f05e426e8662..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/if_ether.rs +++ /dev/null @@ -1,177 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/mips/io_uring.rs b/third_party/rust/linux-raw-sys/src/mips/io_uring.rs deleted file mode 100644 index d81c9576aa1e..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/io_uring.rs +++ /dev/null @@ -1,1093 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/mips/ioctl.rs b/third_party/rust/linux-raw-sys/src/mips/ioctl.rs deleted file mode 100644 index d08b3cb90467..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/ioctl.rs +++ /dev/null @@ -1,1587 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 18047; -pub const FIONBIO: u32 = 26238; -pub const FIOCLEX: u32 = 26113; -pub const FIONCLEX: u32 = 26114; -pub const FIOASYNC: u32 = 26237; -pub const FIOQSIZE: u32 = 26239; -pub const TCXONC: u32 = 21510; -pub const TCFLSH: u32 = 21511; -pub const TIOCSCTTY: u32 = 21632; -pub const TIOCSPGRP: u32 = 2147775606; -pub const TIOCOUTQ: u32 = 29810; -pub const TIOCSTI: u32 = 21618; -pub const TIOCSWINSZ: u32 = 2148037735; -pub const TIOCMGET: u32 = 29725; -pub const TIOCMBIS: u32 = 29723; -pub const TIOCMBIC: u32 = 29724; -pub const TIOCMSET: u32 = 29722; -pub const TIOCSSOFTCAR: u32 = 21634; -pub const TIOCLINUX: u32 = 21635; -pub const TIOCCONS: u32 = 2147775608; -pub const TIOCSSERIAL: u32 = 21637; -pub const TIOCPKT: u32 = 21616; -pub const TIOCNOTTY: u32 = 21617; -pub const TIOCSETD: u32 = 29697; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSPTLCK: u32 = 2147767345; -pub const TIOCSIG: u32 = 2147767350; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21640; -pub const TIOCSERGWILD: u32 = 21641; -pub const TIOCSERSWILD: u32 = 21642; -pub const TIOCSLCKTRMIOS: u32 = 21644; -pub const TIOCSERGSTRUCT: u32 = 21645; -pub const TIOCSERGETLSR: u32 = 21646; -pub const TIOCSERGETMULTI: u32 = 21647; -pub const TIOCSERSETMULTI: u32 = 21648; -pub const TIOCMIWAIT: u32 = 21649; -pub const TCGETS: u32 = 21517; -pub const TCGETA: u32 = 21505; -pub const TCSBRK: u32 = 21509; -pub const TCSBRKP: u32 = 21638; -pub const TCSETA: u32 = 21506; -pub const TCSETAF: u32 = 21508; -pub const TCSETAW: u32 = 21507; -pub const TIOCEXCL: u32 = 29709; -pub const TIOCNXCL: u32 = 29710; -pub const TIOCGDEV: u32 = 1074025522; -pub const TIOCGEXCL: u32 = 1074025536; -pub const TIOCGICOUNT: u32 = 21650; -pub const TIOCGLCKTRMIOS: u32 = 21643; -pub const TIOCGPGRP: u32 = 1074033783; -pub const TIOCGPKT: u32 = 1074025528; -pub const TIOCGPTLCK: u32 = 1074025529; -pub const TIOCGPTN: u32 = 1074025520; -pub const TIOCGPTPEER: u32 = 536892481; -pub const TIOCGSERIAL: u32 = 21636; -pub const TIOCGSID: u32 = 29718; -pub const TIOCGSOFTCAR: u32 = 21633; -pub const TIOCGWINSZ: u32 = 1074295912; -pub const TCGETS2: u32 = 1076909098; -pub const TCSETS: u32 = 21518; -pub const TCSETS2: u32 = 2150650923; -pub const TCSETSF: u32 = 21520; -pub const TCSETSF2: u32 = 2150650925; -pub const TCSETSW: u32 = 21519; -pub const TCSETSW2: u32 = 2150650924; -pub const TIOCGETD: u32 = 29696; -pub const TIOCGETP: u32 = 29704; -pub const TIOCGLTC: u32 = 29812; -pub const MTIOCGET: u32 = 1075604738; -pub const BLKSSZGET: u32 = 536875624; -pub const BLKPBSZGET: u32 = 536875643; -pub const BLKROSET: u32 = 536875613; -pub const BLKROGET: u32 = 536875614; -pub const BLKRRPART: u32 = 536875615; -pub const BLKGETSIZE: u32 = 536875616; -pub const BLKFLSBUF: u32 = 536875617; -pub const BLKRASET: u32 = 536875618; -pub const BLKRAGET: u32 = 536875619; -pub const BLKFRASET: u32 = 536875620; -pub const BLKFRAGET: u32 = 536875621; -pub const BLKSECTSET: u32 = 536875622; -pub const BLKSECTGET: u32 = 536875623; -pub const BLKPG: u32 = 536875625; -pub const BLKBSZGET: u32 = 1074008688; -pub const BLKBSZSET: u32 = 2147750513; -pub const BLKGETSIZE64: u32 = 1074008690; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 536875636; -pub const BLKTRACESTOP: u32 = 536875637; -pub const BLKTRACETEARDOWN: u32 = 536875638; -pub const BLKDISCARD: u32 = 536875639; -pub const BLKIOMIN: u32 = 536875640; -pub const BLKIOOPT: u32 = 536875641; -pub const BLKALIGNOFF: u32 = 536875642; -pub const BLKDISCARDZEROES: u32 = 536875644; -pub const BLKSECDISCARD: u32 = 536875645; -pub const BLKROTATIONAL: u32 = 536875646; -pub const BLKZEROOUT: u32 = 536875647; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 1074833921; -pub const UFFDIO_WAKE: u32 = 1074833922; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 536917761; -pub const NS_GET_PARENT: u32 = 536917762; -pub const NS_GET_NSTYPE: u32 = 536917763; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 2147772028; -pub const FIOGETOWN: u32 = 1074030203; -pub const SIOCATMARK: u32 = 1074033415; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 18047; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 536870913; -pub const FIGETBSZ: u32 = 536870914; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 2147783689; -pub const FICLONERANGE: u32 = 2149618701; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 1074030081; -pub const FS_IOC_SETFLAGS: u32 = 2147771906; -pub const FS_IOC_GETVERSION: u32 = 1074034177; -pub const FS_IOC_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 1074030081; -pub const FS_IOC32_SETFLAGS: u32 = 2147771906; -pub const FS_IOC32_GETVERSION: u32 = 1074034177; -pub const FS_IOC32_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FSGETXATTR: u32 = 1075599391; -pub const FS_IOC_FSSETXATTR: u32 = 2149341216; -pub const FS_IOC_GETFSLABEL: u32 = 1090556977; -pub const FS_IOC_SETFSLABEL: u32 = 2164298802; -pub const EXT4_IOC_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; -pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC_MIGRATE: u32 = 536897033; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; -pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; -pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; -pub const EXT4_IOC_GETSTATE: u32 = 2147771945; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; -pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; -pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 2148295050; -pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 2147767499; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1075866881; -pub const ENI_SETMULT: u32 = 2148295015; -pub const RIO_GET_EVENT_MASK: u32 = 1074031886; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; -pub const KVM_SET_BOOT_CPU_ID: u32 = 536915576; -pub const KVM_SET_MP_STATE: u32 = 2147790489; -pub const KVM_GET_MP_STATE: u32 = 1074048664; -pub const KVM_GET_API_VERSION: u32 = 536915456; -pub const KVM_S390_GET_SKEYS: u32 = 2151722674; -pub const KVM_SET_ONE_REG: u32 = 2148576940; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 2149625414; -pub const KVM_S390_INTERRUPT: u32 = 2148576916; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 1073786508; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 2148576884; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 1074835131; -pub const KVM_S390_UCAS_MAP: u32 = 2149101136; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 2151722660; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221532346; -pub const KVM_CREATE_PIT2: u32 = 2151722615; -pub const KVM_S390_VCPU_FAULT: u32 = 2147790418; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 2148576871; -pub const KVM_SET_VAPIC_ADDR: u32 = 2148052627; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 2148576918; -pub const KVM_X86_SETUP_MCE: u32 = 2148052636; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 2151722610; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 2152246985; -pub const KVM_GET_CLOCK: u32 = 1076932220; -pub const KVM_SET_FPU: u32 = 2147528333; -pub const KVM_KVMCLOCK_CTRL: u32 = 536915629; -pub const KVM_PPC_GET_PVINFO: u32 = 2155916961; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 1074310813; -pub const KVM_S390_GET_IRQ_STATE: u32 = 2149625526; -pub const KVM_GET_DEVICE_ATTR: u32 = 2149101282; -pub const KVM_S390_INITIAL_RESET: u32 = 536915607; -pub const KVM_SET_REGS: u32 = 2165878402; -pub const KVM_GET_TSC_KHZ: u32 = 536915619; -pub const KVM_CHECK_EXTENSION: u32 = 536915459; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 1074835118; -pub const KVM_GET_DIRTY_LOG: u32 = 2148576834; -pub const KVM_S390_SET_IRQ_STATE: u32 = 2149625525; -pub const KVM_S390_NORMAL_RESET: u32 = 536915651; -pub const KVM_SET_SIGNAL_MASK: u32 = 2147790475; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 2152246987; -pub const KVM_SET_GSI_ROUTING: u32 = 2148052586; -pub const KVM_CREATE_VCPU: u32 = 536915521; -pub const KVM_S390_UCAS_UNMAP: u32 = 2149101137; -pub const KVM_S390_STORE_STATUS: u32 = 2147790485; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 2148576872; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 2151722608; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 536915462; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 2148576939; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 2148576939; -pub const KVM_DIRTY_TLB: u32 = 2148576938; -pub const KVM_NMI: u32 = 536915610; -pub const KVM_HYPERV_EVENTFD: u32 = 2149101245; -pub const KVM_S390_MEM_OP: u32 = 2151722673; -pub const KVM_PPC_SVM_OFF: u32 = 536915635; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 1074835117; -pub const KVM_INTERRUPT: u32 = 2147790470; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 1073786499; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 2148052552; -pub const KVM_GET_REGS: u32 = 1092136577; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 536915552; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 1077980777; -pub const KVM_SET_NR_MMU_PAGES: u32 = 536915524; -pub const KVM_IOEVENTFD: u32 = 2151722617; -pub const KVM_RUN: u32 = 536915584; -pub const KVM_S390_SET_SKEYS: u32 = 2151722675; -pub const KVM_SET_DEVICE_ATTR: u32 = 2149101281; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 2151722613; -pub const KVM_SMI: u32 = 536915639; -pub const KVM_SET_TSS_ADDR: u32 = 536915527; -pub const KVM_GET_NR_MMU_PAGES: u32 = 536915525; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 536915569; -pub const KVM_HAS_DEVICE_ATTR: u32 = 2149101283; -pub const KVM_IRQFD: u32 = 2149625462; -pub const KVM_S390_SET_CMMA_BITS: u32 = 2149625529; -pub const KVM_SET_IRQCHIP: u32 = 1107865187; -pub const KVM_SIGNAL_MSI: u32 = 2149625509; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 536915460; -pub const KVM_CREATE_VM: u32 = 536915457; -pub const KVM_S390_CLEAR_RESET: u32 = 536915652; -pub const KVM_RESET_DIRTY_RINGS: u32 = 536915655; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 2148052595; -pub const KVM_CREATE_PIT: u32 = 536915556; -pub const KVM_SET_GUEST_DEBUG: u32 = 2148052635; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 2147790530; -pub const KVM_SET_CLOCK: u32 = 2150674043; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 1112583846; -pub const KVM_SET_TSC_KHZ: u32 = 536915618; -pub const KVM_S390_IRQ: u32 = 2152246964; -pub const KVM_ENABLE_CAP: u32 = 2154344099; -pub const KVM_IRQ_LINE: u32 = 2148052577; -pub const KVM_SET_SREGS: u32 = 2147528324; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 1074835132; -pub const KVM_GET_STATS_FD: u32 = 536915662; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; -pub const CHIOMOVE: u32 = 2148819713; -pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; -pub const BTRFS_IOC_SYNC: u32 = 536908808; -pub const VIDIOC_TRY_FMT: u32 = 3234616896; -pub const LIRC_SET_REC_MODE: u32 = 2147772690; -pub const VIDIOC_DQEVENT: u32 = 1082152537; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; -pub const UVCIOC_CTRL_MAP: u32 = 3227022624; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; -pub const UI_SET_KEYBIT: u32 = 2147767653; -pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 2148052754; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; -pub const LIRC_GET_REC_MODE: u32 = 1074030850; -pub const PPGETTIME: u32 = 1074294933; -pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; -pub const ATM_SETBACKEND: u32 = 2147639794; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 536888968; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3222825227; -pub const FDTWADDLE: u32 = 536871513; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; -pub const NILFS_IOCTL_SYNC: u32 = 1074294410; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222036833; -pub const UI_SET_PROPBIT: u32 = 2147767662; -pub const TUNSETFILTEREBPF: u32 = 1074025697; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 1074026244; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148295054; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 1075577348; -pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148295008; -pub const PTP_SYS_OFFSET2: u32 = 2202025230; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; -pub const RTC_EPOCH_READ: u32 = 1074032653; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148295056; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 2153534723; -pub const ISST_IF_IO_CMD: u32 = 2147810818; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 1074008709; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; -pub const PPPIOCGCHAN: u32 = 1074033719; -pub const EVIOCGVERSION: u32 = 1074021633; -pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; -pub const USBDEVFS_REAPURBNDELAY: u32 = 2147767565; -pub const RNDZAPENTCNT: u32 = 536891908; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 536892643; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; -pub const VHOST_SET_VRING_ERR: u32 = 2148052770; -pub const VDUSE_VQ_SETUP: u32 = 2149613844; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; -pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; -pub const STP_SET_OPTIONS: u32 = 2148017410; -pub const FBIO_RADEON_GET_MIRROR: u32 = 1074020355; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 2148292288; -pub const IPMICTL_SEND_COMMAND: u32 = 1075079437; -pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; -pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; -pub const CHIOSVOLTAG: u32 = 2150654738; -pub const ATM_SETESIF: u32 = 2148295053; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; -pub const PMU_IOC_GET_MODEL: u32 = 1074020867; -pub const JSIOCGBTNMAP: u32 = 1140877876; -pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 536871489; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 536892694; -pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; -pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 1079509521; -pub const TUNSETVNETLE: u32 = 2147767516; -pub const PHN_SETREG: u32 = 2148036614; -pub const PPPIOCDETACH: u32 = 2147775548; -pub const MMTIMER_GETRES: u32 = 1074031873; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 1074032794; -pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 1074310688; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; -pub const SONYPI_IOCGBLUE: u32 = 1073837576; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; -pub const I2OHTML: u32 = 3223087369; -pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148294963; -pub const I2OPARMSET: u32 = 3222825219; -pub const TEE_IOC_CANCEL: u32 = 1074308100; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 536917568; -pub const PPPIOCGASYNCMAP: u32 = 1074033752; -pub const EVIOCGKEYCODE_V2: u32 = 1076380932; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 2149074956; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; -pub const PTP_EXTTS_REQUEST: u32 = 2148547842; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; -pub const JSIOCGAXES: u32 = 1073834513; -pub const HIDIOCSFLAG: u32 = 2147764239; -pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; -pub const PPWDATA: u32 = 2147577990; -pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; -pub const FDGETMAXERRS: u32 = 1075053070; -pub const TUNSETQUEUE: u32 = 2147767513; -pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 536914689; -pub const NBD_SET_TIMEOUT: u32 = 536914697; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; -pub const RIO_UNMAP_INBOUND: u32 = 2148035858; -pub const ATM_QUERYLOOP: u32 = 2148294996; -pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; -pub const FBIO_CURSOR: u32 = 3225961992; -pub const RNDCLEARPOOL: u32 = 536891910; -pub const VIDIOC_QUERYSTD: u32 = 1074288191; -pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 1076647434; -pub const PTP_ENABLE_PPS2: u32 = 2147761421; -pub const PCITEST_CLEAR_IRQ: u32 = 536891408; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; -pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; -pub const JSIOCGAXMAP: u32 = 1077963314; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; -pub const RTC_WIE_OFF: u32 = 536899600; -pub const PPGETMODE: u32 = 1074032792; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 2202025221; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 536908806; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; -pub const TUNDETACHFILTER: u32 = 2148029654; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 2148561101; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 1074033729; -pub const BLKGETZONESZ: u32 = 1074008708; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 1073837580; -pub const UI_SET_MSCBIT: u32 = 2147767656; -pub const APM_IOC_SUSPEND: u32 = 536887554; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 1075605521; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 1074287886; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; -pub const EVIOCSFF: u32 = 2150385024; -pub const TUNSETGROUP: u32 = 2147767502; -pub const EVIOCGKEYCODE: u32 = 1074283780; -pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 536871514; -pub const TUNSETOFFLOAD: u32 = 2147767504; -pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148295048; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; -pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; -pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; -pub const UI_ABS_SETUP: u32 = 2149340420; -pub const UI_DEV_DESTROY: u32 = 536892674; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 536899585; -pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; -pub const PPPIOCSDEBUG: u32 = 2147775552; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 2147775570; -pub const CCISS_DEREGDISK: u32 = 536887820; -pub const UI_DEV_CREATE: u32 = 536892673; -pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; -pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 1074283010; -pub const PPPIOCSASYNCMAP: u32 = 2147775575; -pub const I2OEVTGET: u32 = 1080584459; -pub const NVME_IOCTL_RESET: u32 = 536890948; -pub const PPYIELD: u32 = 536899725; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 2147767522; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 536899599; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2149608704; -pub const RTC_SET_TIME: u32 = 2149871626; -pub const VHOST_RESET_OWNER: u32 = 536915714; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 1074031681; -pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; -pub const HIDIOCGFLAG: u32 = 1074022414; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 2148577793; -pub const CCISS_GETFIRMVER: u32 = 1074020872; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 2147775547; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 2148036758; -pub const RTC_ALM_READ: u32 = 1076129800; -pub const VDUSE_SET_API_VERSION: u32 = 2148040961; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 536892695; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; -pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148295047; -pub const NBD_SET_SIZE: u32 = 536914690; -pub const UDF_GETVOLIDENT: u32 = 1074031682; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; -pub const UDF_GETEASIZE: u32 = 1074031680; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 536915713; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222038785; -pub const ATM_SETCIRANGE: u32 = 2148295051; -pub const HPET_IE_ON: u32 = 536897537; -pub const PERF_EVENT_IOC_ID: u32 = 1074013191; -pub const TUNSETSNDBUF: u32 = 2147767508; -pub const PTP_PIN_SETFUNC: u32 = 2153790727; -pub const PPPIOCDISCONN: u32 = 536900665; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 536899727; -pub const PCITEST_MSI: u32 = 2147766275; -pub const FDWERRORCLR: u32 = 536871510; -pub const AUTOFS_IOC_FAIL: u32 = 536908641; -pub const USBDEVFS_IOCTL: u32 = 3222033682; -pub const VIDIOC_S_STD: u32 = 2148029976; -pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; -pub const CCISS_GETDRIVVER: u32 = 1074020873; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; -pub const HPET_IRQFREQ: u32 = 2147772422; -pub const ATM_GETESI: u32 = 2148295045; -pub const CCISS_GETLUNINFO: u32 = 1074545169; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; -pub const UDMABUF_CREATE_LIST: u32 = 2148037955; -pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148295009; -pub const BR2684_SETFILT: u32 = 2149343632; -pub const RNDGETPOOL: u32 = 1074287106; -pub const PPS_GETPARAMS: u32 = 1074032801; -pub const IOC_PR_RESERVE: u32 = 2148561097; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074020865; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221515331; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 536887822; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; -pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; -pub const VFIO_EEH_PE_OP: u32 = 536886137; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; -pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 2150913586; -pub const VIDIOC_S_FMT: u32 = 3234616837; -pub const PPPIOCATTACH: u32 = 2147775549; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; -pub const PCITEST_LEGACY_IRQ: u32 = 536891394; -pub const USBDEVFS_SUBMITURB: u32 = 1076647178; -pub const AUTOFS_IOC_READY: u32 = 536908640; -pub const BTRFS_IOC_SEND: u32 = 2152240166; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; -pub const JSIOCSBTNMAP: u32 = 2214619699; -pub const PPPIOCSFLAGS: u32 = 2147775577; -pub const NVRAM_INIT: u32 = 536899648; -pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; -pub const BTRFS_IOC_BALANCE: u32 = 2415957004; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; -pub const STP_POLICY_ID_GET: u32 = 1074799873; -pub const PPSETFLAGS: u32 = 2147774619; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; -pub const PPPIOCGXASYNCMAP: u32 = 1075868752; -pub const VHOST_SET_VRING_CALL: u32 = 2148052769; -pub const LIRC_GET_FEATURES: u32 = 1074030848; -pub const GSMIOC_DISABLE_NET: u32 = 536889091; -pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; -pub const NBD_DO_IT: u32 = 536914691; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; -pub const EVIOCSCLOCKID: u32 = 2147763616; -pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; -pub const FSI_SCOM_RESET: u32 = 2147775235; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074020870; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 2149319235; -pub const TEE_IOC_INVOKE: u32 = 1074832387; -pub const USBDEVFS_BULK: u32 = 3222295810; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 2147579392; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 536899589; -pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; -pub const PPPIOCXFERUNIT: u32 = 536900686; -pub const WDIOC_GETTIMEOUT: u32 = 1074026247; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; -pub const FBIO_WAITFORVSYNC: u32 = 2147763744; -pub const RTC_PIE_OFF: u32 = 536899590; -pub const EVIOCGRAB: u32 = 2147763600; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 2147762690; -pub const EVIOCGREP: u32 = 1074283779; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2147755019; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 1074299136; -pub const RTC_RD_TIME: u32 = 1076129801; -pub const FDMSGOFF: u32 = 536871494; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; -pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; -pub const RIO_DEV_ADD: u32 = 2149608727; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 2147762180; -pub const PCITEST_GET_IRQTYPE: u32 = 536891401; -pub const JSIOCGVERSION: u32 = 1074031105; -pub const SONYPI_IOCSBLUE: u32 = 2147579401; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; -pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; -pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; -pub const VHOST_SET_VRING_NUM: u32 = 2148052752; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; -pub const PPPIOCGL2TPSTATS: u32 = 1078490166; -pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; -pub const PTP_PIN_SETFUNC2: u32 = 2153790736; -pub const CHIOEXCHANGE: u32 = 2149344002; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 2147767661; -pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; -pub const TUNSETIFF: u32 = 2147767498; -pub const CHIOPOSITION: u32 = 2148295427; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; -pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; -pub const EVIOCSMASK: u32 = 2148550035; -pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; -pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 2147774592; -pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; -pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 2149086530; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 2147774465; -pub const RNDADDTOENTCNT: u32 = 2147766785; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3222820550; -pub const PPS_FETCH: u32 = 3221516452; -pub const RTC_AIE_OFF: u32 = 536899586; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; -pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; -pub const PPPIOCSXASYNCMAP: u32 = 2149610575; -pub const CHIOGSTATUS: u32 = 2148033288; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; -pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; -pub const VHOST_GET_FEATURES: u32 = 1074310912; -pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; -pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; -pub const JSIOCGCORR: u32 = 1076128290; -pub const VIDIOC_G_FMT: u32 = 3234616836; -pub const RTC_EPOCH_SET: u32 = 2147774478; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 2148294994; -pub const SCIF_LISTEN: u32 = 2147775234; -pub const NBD_CLEAR_QUE: u32 = 536914693; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 1074030863; -pub const I8K_SET_FAN: u32 = 3221514631; -pub const FDSETMAXERRS: u32 = 2148794956; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; -pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; -pub const EVIOCRMFF: u32 = 2147763585; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 1073836165; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; -pub const TUNSETVNETHDRSZ: u32 = 2147767512; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 1078740736; -pub const LIRC_GET_SEND_MODE: u32 = 1074030849; -pub const PPPIOCSACTIVE: u32 = 2148037702; -pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; -pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; -pub const UI_END_FF_ERASE: u32 = 2148292043; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 536914698; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; -pub const REISERFS_IOC_UNPACK: u32 = 2147798273; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; -pub const RIO_SET_EVENT_MASK: u32 = 2147773709; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; -pub const I2OPASSTHRU: u32 = 1074293004; -pub const IOC_OPAL_SET_PW: u32 = 2183164128; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; -pub const VIDIOC_QBUF: u32 = 3225703951; -pub const VIDIOC_S_TUNER: u32 = 2153010718; -pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 1074570240; -pub const VIDIOC_LOG_STATUS: u32 = 536892998; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; -pub const VHOST_SET_LOG_FD: u32 = 2147790599; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; -pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; -pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3223087365; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; -pub const JSIOCGBUTTONS: u32 = 1073834514; -pub const VFIO_IOMMU_ENABLE: u32 = 536886131; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 2147790711; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 2148816444; -pub const WDIOC_GETTEMP: u32 = 1074026243; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; -pub const UI_SET_LEDBIT: u32 = 2147767657; -pub const NBD_SET_SOCK: u32 = 536914688; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3223087366; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; -pub const FDFMTTRK: u32 = 2148270664; -pub const MMTIMER_GETBITS: u32 = 536898820; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; -pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; -pub const RTC_VL_READ: u32 = 1074032659; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 2149608728; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 2147579403; -pub const SPIOCSTYPE: u32 = 2147774721; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; -pub const I8K_GET_FAN: u32 = 3221514630; -pub const TUNGETVNETBE: u32 = 1074025695; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 2153797065; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; -pub const PPPIOCSNPMODE: u32 = 2148037707; -pub const USBDEVFS_CONTROL: u32 = 3222295808; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 2147767505; -pub const TUNGETVNETLE: u32 = 1074025693; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; -pub const I2OVALIDATE: u32 = 1074030856; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1108898306; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; -pub const FDGETDRVSTAT: u32 = 1077150226; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 2147775541; -pub const LIRC_SET_SEND_MODE: u32 = 2147772689; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; -pub const ATM_GETTYPE: u32 = 2148295044; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 536871498; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; -pub const EVIOCGMASK: u32 = 1074808210; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 1074022148; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 2153251472; -pub const IOC_OPAL_SAVE: u32 = 2165862620; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 2147767514; -pub const CCISS_SETINTINFO: u32 = 2148024835; -pub const CM_IOSDBGLVL: u32 = 2147771386; -pub const RTC_VL_CLR: u32 = 536899604; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; -pub const CCISS_GETNODENAME: u32 = 1074807300; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; -pub const LPSETTIMEOUT_NEW: u32 = 2148533775; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 536871512; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 1074820159; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; -pub const PHN_SET_REGS: u32 = 2147774467; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148295011; -pub const MTIOCPOS: u32 = 1074031875; -pub const PMU_IOC_SLEEP: u32 = 536887808; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; -pub const VIDIOC_QUERYCAP: u32 = 1080579584; -pub const HPET_INFO: u32 = 1074554883; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2147768001; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 2147767500; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 2148028931; -pub const USBDEVFS_RESET: u32 = 536892692; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; -pub const FDGETDRVTYP: u32 = 1074790927; -pub const PPWCONTROL: u32 = 2147577988; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 536896357; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; -pub const PPPIOCSPASS: u32 = 2148037703; -pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; -pub const I2OSWDEL: u32 = 3223087367; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; -pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; -pub const PPPIOCSMAXCID: u32 = 2147775569; -pub const PPSETPHASE: u32 = 2147774612; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; -pub const USBDEVFS_GET_SPEED: u32 = 536892703; -pub const SONET_GETFRAMING: u32 = 1074028822; -pub const VIDIOC_QUERYBUF: u32 = 3225703945; -pub const VIDIOC_S_EDID: u32 = 3223606825; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; -pub const PPS_GETCAP: u32 = 1074032803; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 536914696; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 536886132; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; -pub const SNAPSHOT_POWER_OFF: u32 = 536883984; -pub const APM_IOC_STANDBY: u32 = 536887553; -pub const PPPIOCGUNIT: u32 = 1074033750; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; -pub const PPPIOCGRASYNCMAP: u32 = 1074033749; -pub const MMTIMER_MMAPAVAIL: u32 = 536898822; -pub const I2OPASSTHRU32: u32 = 1074293004; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const UI_SET_SNDBIT: u32 = 2147767658; -pub const VIDIOC_G_AUDOUT: u32 = 1077171761; -pub const RTC_PLL_SET: u32 = 2149347346; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 2147790660; -pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; -pub const VDUSE_CREATE_DEV: u32 = 2169536770; -pub const FDFLUSH: u32 = 536871499; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148033012; -pub const FDSETPRM: u32 = 2149319234; -pub const ATM_GETSTATZ: u32 = 2148294993; -pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 2147766278; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; -pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; -pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; -pub const CHIOGVPARAMS: u32 = 1081107219; -pub const PTP_PEROUT_REQUEST: u32 = 2151169283; -pub const FSI_SCOM_CHECK: u32 = 1074033408; -pub const RTC_IRQP_READ: u32 = 1074032651; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; -pub const HIDIOCGRDESCSIZE: u32 = 1074022401; -pub const UI_GET_VERSION: u32 = 1074025773; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; -pub const CCISS_GETBUSTYPES: u32 = 1074020871; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 2147767654; -pub const VFIO_SET_IOMMU: u32 = 536886118; -pub const VIDIOC_S_MODULATOR: u32 = 2151962167; -pub const TUNGETFILTER: u32 = 1074287835; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 2148549125; -pub const FBIO_GETCONTROL2: u32 = 1074022025; -pub const TUNSETDEBUG: u32 = 2147767497; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 2417772564; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 1075856914; -pub const ATM_GETSTAT: u32 = 2148294992; -pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; -pub const TUNATTACHFILTER: u32 = 2148029653; -pub const UI_SET_ABSBIT: u32 = 2147767655; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; -pub const USBDEVFS_REAPURB32: u32 = 2147767564; -pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; -pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148295008; -pub const ATM_SETLOOP: u32 = 2148294995; -pub const ATMSIGD_CTRL: u32 = 536895984; -pub const CIOC_KERNEL_VERSION: u32 = 3221512970; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; -pub const SNAPSHOT_UNFREEZE: u32 = 536883970; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; -pub const PMU_IOC_HAS_ADB: u32 = 1074020868; -pub const I2OGETIOPS: u32 = 1075865856; -pub const VIDIOC_S_FBUF: u32 = 2150389259; -pub const PPRCONTROL: u32 = 1073836163; -pub const CHIOSPICKER: u32 = 2147771141; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; -pub const TUNGETSNDBUF: u32 = 1074025683; -pub const GSMIOC_SETCONF: u32 = 2152482561; -pub const IOC_PR_PREEMPT: u32 = 2149085387; -pub const KCOV_INIT_TRACE: u32 = 1074029313; -pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; -pub const MTIOCTOP: u32 = 2148035841; -pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 1074033747; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 1074033754; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148295055; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; -pub const PPPIOCGIDLE32: u32 = 1074295871; -pub const VFIO_DEVICE_RESET: u32 = 536886127; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 1074026241; -pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 2147766277; -pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074032379; -pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 1077171745; -pub const CCISS_RESCANDISK: u32 = 536887824; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; -pub const USBDEVFS_REAPURB: u32 = 2147767564; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; -pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; -pub const PCITEST_MSIX: u32 = 2147766279; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 1074295871; -pub const NVRAM_SETCKS: u32 = 536899649; -pub const WDIOC_GETSUPPORT: u32 = 1076385536; -pub const GSMIOC_ENABLE_NET: u32 = 2150909698; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 2150122756; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 2149084422; -pub const I2OEVTREG: u32 = 2148296970; -pub const I2OPARMGET: u32 = 3222825220; -pub const EVIOCGID: u32 = 1074283778; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 1074025696; -pub const ATM_GETNAMES: u32 = 2148032899; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; -pub const I2OLCTGET: u32 = 3222038786; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148295010; -pub const BLKCLOSEZONE: u32 = 2148536967; -pub const SONET_GETFRSENSE: u32 = 1074159895; -pub const UI_SET_EVBIT: u32 = 2147767652; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 1090799620; -pub const PPPIOCATTCHAN: u32 = 2147775544; -pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; -pub const TUNGETFEATURES: u32 = 1074025679; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; -pub const CCISS_REGNEWDISK: u32 = 2147762701; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const PHN_SETREGS: u32 = 2150133768; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 1074025682; -pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; -pub const BTRFS_IOC_RESIZE: u32 = 2415956995; -pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; -pub const PPS_KC_BIND: u32 = 2147774629; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; -pub const UI_SET_FFBIT: u32 = 2147767659; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; -pub const CEC_G_MODE: u32 = 1074028808; -pub const USBDEVFS_RESETEP: u32 = 1074025731; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074068992; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; -pub const VFIO_CHECK_EXTENSION: u32 = 536886117; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; -pub const UI_SET_PHYS: u32 = 2147767660; -pub const FDWERRORGET: u32 = 1075315223; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 536898823; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; -pub const SIOCGSTAMP_NEW: u32 = 1074825478; -pub const RTC_WKALM_RD: u32 = 1076391952; -pub const PHN_GET_REG: u32 = 3221516288; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 536899588; -pub const PPGETMODES: u32 = 1074032791; -pub const CHIOGPARAMS: u32 = 1075077894; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; -pub const KCOV_ENABLE: u32 = 536896356; -pub const BTRFS_IOC_CLONE: u32 = 2147783689; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; -pub const AGPIOC_ALLOCATE: u32 = 3221504262; -pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; -pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; -pub const RTC_UIE_OFF: u32 = 536899588; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; -pub const NVME_IOCTL_ID: u32 = 536890944; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 2147767826; -pub const FDPOLLDRVSTAT: u32 = 1077150227; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; -pub const WDIOC_GETTIMELEFT: u32 = 1074026250; -pub const ATM_GETLINKRATE: u32 = 2148295041; -pub const RTC_WKALM_SET: u32 = 2150133775; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; -pub const NS_GET_OWNER_UID: u32 = 536917764; -pub const VIDIOC_OVERLAY: u32 = 2147767822; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148295046; -pub const PHN_GET_REGS: u32 = 3221516290; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 536883979; -pub const JSIOCSAXMAP: u32 = 2151705137; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 536886128; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 536898816; -pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; -pub const ATM_SETSC: u32 = 2147770865; -pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; -pub const NVME_IOCTL_RESCAN: u32 = 536890950; -pub const BLKOPENZONE: u32 = 2148536966; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; -pub const HIDIOCGVERSION: u32 = 1074022401; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; -pub const EVIOCGEFFECTS: u32 = 1074021764; -pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148294962; -pub const HIDIOCINITREPORT: u32 = 536889349; -pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 1074024960; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 536871508; -pub const IOC_PR_REGISTER: u32 = 2149085384; -pub const HIDIOCSREPORT: u32 = 2148288520; -pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; -pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 1074284547; -pub const PPPIOCSCOMPRESS: u32 = 2148299853; -pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; -pub const BLKRESETZONE: u32 = 2148536963; -pub const CHIOINITELEM: u32 = 536896273; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; -pub const PPGETPHASE: u32 = 1074032793; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; -pub const FDMSGON: u32 = 536871493; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; -pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; -pub const FDFMTBEG: u32 = 536871495; -pub const RNDRESEEDCRNG: u32 = 536891911; -pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; -pub const TUNSETNOCSUM: u32 = 2147767496; -pub const SONET_GETSTAT: u32 = 1076125968; -pub const TFD_IOC_SET_TICKS: u32 = 2148029440; -pub const PPDATADIR: u32 = 2147774608; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 2148557577; -pub const PPWCTLONIRQ: u32 = 2147578002; -pub const SONYPI_IOCGBRT: u32 = 1073837568; -pub const IOC_PR_RELEASE: u32 = 2148561098; -pub const PPCLRIRQ: u32 = 1074032787; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; -pub const HPET_IE_OFF: u32 = 536897538; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; -pub const SONET_SETFRAMING: u32 = 2147770645; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 2148536968; -pub const EVIOCREVOKE: u32 = 2147763601; -pub const VFIO_DEVICE_FEATURE: u32 = 536886133; -pub const CCISS_GETPCIINFO: u32 = 1074283009; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221552643; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221496842; -pub const VIDIOC_STREAMOFF: u32 = 2147767827; -pub const VDUSE_DESTROY_DEV: u32 = 2164293891; -pub const FDGETFDCSTAT: u32 = 1075839509; -pub const CM_IOCGATR: u32 = 3221512961; -pub const VIDIOC_S_PRIORITY: u32 = 2147767876; -pub const SNAPSHOT_FREEZE: u32 = 536883969; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148295010; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 1074288151; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; -pub const SONET_GETSTATZ: u32 = 1076125969; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 2147775572; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 536914692; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; -pub const WDIOC_KEEPALIVE: u32 = 1074026245; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; -pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; -pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; -pub const EVIOCSREP: u32 = 2148025603; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; -pub const HPET_DPI: u32 = 536897541; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 1075595267; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 1074026051; -pub const ATM_NEWBACKENDIF: u32 = 2147639795; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3222820424; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3223344833; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; -pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; -pub const CHIOGELEM: u32 = 2154586896; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; -pub const EVIOCSKEYCODE: u32 = 2148025604; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 2147767501; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; -pub const PPS_SETPARAMS: u32 = 2147774626; -pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; -pub const VIDIOC_G_EDID: u32 = 3223606824; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; -pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; -pub const VIDIOC_S_AUDIO: u32 = 2150913570; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; -pub const SNAPSHOT_FREE: u32 = 536883973; -pub const I8K_GET_SPEED: u32 = 3221514629; -pub const HIDIOCGREPORT: u32 = 2148288519; -pub const HPET_EPI: u32 = 536897540; -pub const JSIOCSCORR: u32 = 2149870113; -pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 2148295052; -pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148295049; -pub const PPFCONTROL: u32 = 2147643534; -pub const SONYPI_IOCGFAN: u32 = 1073837578; -pub const RTC_IRQP_SET: u32 = 2147774476; -pub const PCITEST_WRITE: u32 = 2147766276; -pub const PPCLAIM: u32 = 536899723; -pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; -pub const VHOST_SET_FEATURES: u32 = 2148052736; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3225703953; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; -pub const MMTIMER_GETFREQ: u32 = 1074031874; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2147791104; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; -pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 536871497; -pub const DMA_BUF_SET_NAME: u32 = 2147770881; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; -pub const RTC_UIE_ON: u32 = 536899587; -pub const PPRELEASE: u32 = 536899724; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1108898305; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 2148052768; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; -pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; -pub const PPNEGOT: u32 = 2147774609; -pub const NBD_PRINT_DEBUG: u32 = 536914694; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 1140888607; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 1074026022; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; -pub const MMTIMER_GETCOUNTER: u32 = 1074031881; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; -pub const RIO_CM_CHAN_BIND: u32 = 2148033285; -pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; -pub const BLKGETDISKSEQ: u32 = 1074270848; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; -pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; -pub const ACRN_IOCTL_START_VM: u32 = 536912402; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; -pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; diff --git a/third_party/rust/linux-raw-sys/src/mips/net.rs b/third_party/rust/linux-raw-sys/src/mips/net.rs deleted file mode 100644 index a0386f4bb29d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/net.rs +++ /dev/null @@ -1,1867 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 65535; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 4; -pub const SO_KEEPALIVE: u32 = 8; -pub const SO_DONTROUTE: u32 = 16; -pub const SO_BROADCAST: u32 = 32; -pub const SO_LINGER: u32 = 128; -pub const SO_OOBINLINE: u32 = 256; -pub const SO_REUSEPORT: u32 = 512; -pub const SO_TYPE: u32 = 4104; -pub const SO_STYLE: u32 = 4104; -pub const SO_ERROR: u32 = 4103; -pub const SO_SNDBUF: u32 = 4097; -pub const SO_RCVBUF: u32 = 4098; -pub const SO_SNDLOWAT: u32 = 4099; -pub const SO_RCVLOWAT: u32 = 4100; -pub const SO_SNDTIMEO_OLD: u32 = 4101; -pub const SO_RCVTIMEO_OLD: u32 = 4102; -pub const SO_ACCEPTCONN: u32 = 4105; -pub const SO_PROTOCOL: u32 = 4136; -pub const SO_DOMAIN: u32 = 4137; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_PASSCRED: u32 = 17; -pub const SO_PEERCRED: u32 = 18; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_PEERSEC: u32 = 30; -pub const SO_SNDBUFFORCE: u32 = 31; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 2; -pub const SOCK_DGRAM: u32 = 1; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips/netlink.rs b/third_party/rust/linux-raw-sys/src/mips/netlink.rs deleted file mode 100644 index f828d926cb16..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/netlink.rs +++ /dev/null @@ -1,2864 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/mips/prctl.rs b/third_party/rust/linux-raw-sys/src/mips/prctl.rs deleted file mode 100644 index 05ef459cde7d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/prctl.rs +++ /dev/null @@ -1,231 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/mips/system.rs b/third_party/rust/linux-raw-sys/src/mips/system.rs deleted file mode 100644 index fad89656ef02..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips/system.rs +++ /dev/null @@ -1,109 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/errno.rs b/third_party/rust/linux-raw-sys/src/mips32r6/errno.rs deleted file mode 100644 index 337d8379f58d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/errno.rs +++ /dev/null @@ -1,137 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/general.rs b/third_party/rust/linux-raw-sys/src/mips32r6/general.rs deleted file mode 100644 index 275eb6536ab9..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/general.rs +++ /dev/null @@ -1,3100 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type fsid_t = __kernel_fsid_t; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -pub l_sysid: crate::ctypes::c_long, -pub pad: [crate::ctypes::c_long; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_flags: crate::ctypes::c_uint, -pub sa_handler: __sighandler_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_size: __kernel_size_t, -pub ss_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sgttyb { -pub sg_ispeed: crate::ctypes::c_char, -pub sg_ospeed: crate::ctypes::c_char, -pub sg_erase: crate::ctypes::c_char, -pub sg_kill: crate::ctypes::c_char, -pub sg_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tchars { -pub t_intrc: crate::ctypes::c_char, -pub t_quitc: crate::ctypes::c_char, -pub t_startc: crate::ctypes::c_char, -pub t_stopc: crate::ctypes::c_char, -pub t_eofc: crate::ctypes::c_char, -pub t_brkc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ltchars { -pub t_suspc: crate::ctypes::c_char, -pub t_dsuspc: crate::ctypes::c_char, -pub t_rprntc: crate::ctypes::c_char, -pub t_flushc: crate::ctypes::c_char, -pub t_werasc: crate::ctypes::c_char, -pub t_lnextc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_char, -pub c_cc: [crate::ctypes::c_uchar; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_uint, -pub st_pad1: [crate::ctypes::c_long; 3usize], -pub st_ino: __kernel_ino_t, -pub st_mode: __kernel_mode_t, -pub st_nlink: __u32, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_uint, -pub st_pad2: [crate::ctypes::c_long; 2usize], -pub st_size: crate::ctypes::c_long, -pub st_pad3: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_long, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_long, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_long, -pub st_blocks: crate::ctypes::c_long, -pub st_pad4: [crate::ctypes::c_long; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulong, -pub st_pad0: [crate::ctypes::c_ulong; 3usize], -pub st_ino: crate::ctypes::c_ulonglong, -pub st_mode: __kernel_mode_t, -pub st_nlink: __u32, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_ulong, -pub st_pad1: [crate::ctypes::c_ulong; 3usize], -pub st_size: crate::ctypes::c_longlong, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub st_blksize: crate::ctypes::c_ulong, -pub st_pad2: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: crate::ctypes::c_long, -pub f_bsize: crate::ctypes::c_long, -pub f_frsize: crate::ctypes::c_long, -pub f_blocks: crate::ctypes::c_long, -pub f_bfree: crate::ctypes::c_long, -pub f_files: crate::ctypes::c_long, -pub f_ffree: crate::ctypes::c_long, -pub f_bavail: crate::ctypes::c_long, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_long, -pub f_flags: crate::ctypes::c_long, -pub f_spare: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_frsize: __u32, -pub __pad: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_bavail: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 1; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_APPEND: u32 = 8; -pub const O_DSYNC: u32 = 16; -pub const O_NONBLOCK: u32 = 128; -pub const O_CREAT: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_EXCL: u32 = 1024; -pub const O_NOCTTY: u32 = 2048; -pub const FASYNC: u32 = 4096; -pub const O_LARGEFILE: u32 = 8192; -pub const __O_SYNC: u32 = 16384; -pub const O_SYNC: u32 = 16400; -pub const O_DIRECT: u32 = 32768; -pub const F_GETLK: u32 = 14; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 24; -pub const F_GETOWN: u32 = 23; -pub const F_GETLK64: u32 = 33; -pub const F_SETLK64: u32 = 34; -pub const F_SETLKW64: u32 = 35; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4260096; -pub const O_NDELAY: u32 = 128; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 128; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_NONE: u32 = 0; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 16; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_AUTOGROW: u32 = 64; -pub const MAP_LOCAL: u32 = 128; -pub const MAP_AUTORSRV: u32 = 256; -pub const MAP_NORESERVE: u32 = 1024; -pub const MAP_ANONYMOUS: u32 = 2048; -pub const MAP_GROWSDOWN: u32 = 4096; -pub const MAP_DENYWRITE: u32 = 8192; -pub const MAP_EXECUTABLE: u32 = 16384; -pub const MAP_LOCKED: u32 = 32768; -pub const MAP_POPULATE: u32 = 65536; -pub const MAP_NONBLOCK: u32 = 131072; -pub const MAP_STACK: u32 = 262144; -pub const MAP_HUGETLB: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLWRBAND: u32 = 256; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_NOFILE: u32 = 5; -pub const RLIMIT_AS: u32 = 6; -pub const RLIMIT_RSS: u32 = 7; -pub const RLIMIT_NPROC: u32 = 8; -pub const RLIMIT_MEMLOCK: u32 = 9; -pub const RLIM_INFINITY: u32 = 2147483647; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 128; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGIOT: u32 = 6; -pub const SIGABRT: u32 = 6; -pub const SIGEMT: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGBUS: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGSYS: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGUSR1: u32 = 16; -pub const SIGUSR2: u32 = 17; -pub const SIGCHLD: u32 = 18; -pub const SIGCLD: u32 = 18; -pub const SIGPWR: u32 = 19; -pub const SIGWINCH: u32 = 20; -pub const SIGURG: u32 = 21; -pub const SIGIO: u32 = 22; -pub const SIGPOLL: u32 = 22; -pub const SIGSTOP: u32 = 23; -pub const SIGTSTP: u32 = 24; -pub const SIGCONT: u32 = 25; -pub const SIGTTIN: u32 = 26; -pub const SIGTTOU: u32 = 27; -pub const SIGVTALRM: u32 = 28; -pub const SIGPROF: u32 = 29; -pub const SIGXCPU: u32 = 30; -pub const SIGXFSZ: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 128; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_RESTART: u32 = 268435456; -pub const SA_SIGINFO: u32 = 8; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_NOCLDWAIT: u32 = 65536; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 3; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 23; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VMIN: u32 = 4; -pub const VTIME: u32 = 5; -pub const VEOL2: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSWTCH: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOF: u32 = 16; -pub const VEOL: u32 = 17; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const IEXTEN: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 8192; -pub const PENDIN: u32 = 16384; -pub const TOSTOP: u32 = 32768; -pub const ITOSTOP: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TIOCSER_TEMT: u32 = 1; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCGLTC: u32 = 29812; -pub const TIOCSLTC: u32 = 29813; -pub const TIOCGETP: u32 = 29704; -pub const TIOCSETP: u32 = 29705; -pub const TIOCSETN: u32 = 29706; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 16; -pub const TIOCM_SR: u32 = 32; -pub const TIOCM_CTS: u32 = 64; -pub const TIOCM_CAR: u32 = 256; -pub const TIOCM_CD: u32 = 256; -pub const TIOCM_RNG: u32 = 512; -pub const TIOCM_RI: u32 = 512; -pub const TIOCM_DSR: u32 = 1024; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_Linux: u32 = 4000; -pub const __NR_syscall: u32 = 4000; -pub const __NR_exit: u32 = 4001; -pub const __NR_fork: u32 = 4002; -pub const __NR_read: u32 = 4003; -pub const __NR_write: u32 = 4004; -pub const __NR_open: u32 = 4005; -pub const __NR_close: u32 = 4006; -pub const __NR_waitpid: u32 = 4007; -pub const __NR_creat: u32 = 4008; -pub const __NR_link: u32 = 4009; -pub const __NR_unlink: u32 = 4010; -pub const __NR_execve: u32 = 4011; -pub const __NR_chdir: u32 = 4012; -pub const __NR_time: u32 = 4013; -pub const __NR_mknod: u32 = 4014; -pub const __NR_chmod: u32 = 4015; -pub const __NR_lchown: u32 = 4016; -pub const __NR_break: u32 = 4017; -pub const __NR_unused18: u32 = 4018; -pub const __NR_lseek: u32 = 4019; -pub const __NR_getpid: u32 = 4020; -pub const __NR_mount: u32 = 4021; -pub const __NR_umount: u32 = 4022; -pub const __NR_setuid: u32 = 4023; -pub const __NR_getuid: u32 = 4024; -pub const __NR_stime: u32 = 4025; -pub const __NR_ptrace: u32 = 4026; -pub const __NR_alarm: u32 = 4027; -pub const __NR_unused28: u32 = 4028; -pub const __NR_pause: u32 = 4029; -pub const __NR_utime: u32 = 4030; -pub const __NR_stty: u32 = 4031; -pub const __NR_gtty: u32 = 4032; -pub const __NR_access: u32 = 4033; -pub const __NR_nice: u32 = 4034; -pub const __NR_ftime: u32 = 4035; -pub const __NR_sync: u32 = 4036; -pub const __NR_kill: u32 = 4037; -pub const __NR_rename: u32 = 4038; -pub const __NR_mkdir: u32 = 4039; -pub const __NR_rmdir: u32 = 4040; -pub const __NR_dup: u32 = 4041; -pub const __NR_pipe: u32 = 4042; -pub const __NR_times: u32 = 4043; -pub const __NR_prof: u32 = 4044; -pub const __NR_brk: u32 = 4045; -pub const __NR_setgid: u32 = 4046; -pub const __NR_getgid: u32 = 4047; -pub const __NR_signal: u32 = 4048; -pub const __NR_geteuid: u32 = 4049; -pub const __NR_getegid: u32 = 4050; -pub const __NR_acct: u32 = 4051; -pub const __NR_umount2: u32 = 4052; -pub const __NR_lock: u32 = 4053; -pub const __NR_ioctl: u32 = 4054; -pub const __NR_fcntl: u32 = 4055; -pub const __NR_mpx: u32 = 4056; -pub const __NR_setpgid: u32 = 4057; -pub const __NR_ulimit: u32 = 4058; -pub const __NR_unused59: u32 = 4059; -pub const __NR_umask: u32 = 4060; -pub const __NR_chroot: u32 = 4061; -pub const __NR_ustat: u32 = 4062; -pub const __NR_dup2: u32 = 4063; -pub const __NR_getppid: u32 = 4064; -pub const __NR_getpgrp: u32 = 4065; -pub const __NR_setsid: u32 = 4066; -pub const __NR_sigaction: u32 = 4067; -pub const __NR_sgetmask: u32 = 4068; -pub const __NR_ssetmask: u32 = 4069; -pub const __NR_setreuid: u32 = 4070; -pub const __NR_setregid: u32 = 4071; -pub const __NR_sigsuspend: u32 = 4072; -pub const __NR_sigpending: u32 = 4073; -pub const __NR_sethostname: u32 = 4074; -pub const __NR_setrlimit: u32 = 4075; -pub const __NR_getrlimit: u32 = 4076; -pub const __NR_getrusage: u32 = 4077; -pub const __NR_gettimeofday: u32 = 4078; -pub const __NR_settimeofday: u32 = 4079; -pub const __NR_getgroups: u32 = 4080; -pub const __NR_setgroups: u32 = 4081; -pub const __NR_reserved82: u32 = 4082; -pub const __NR_symlink: u32 = 4083; -pub const __NR_unused84: u32 = 4084; -pub const __NR_readlink: u32 = 4085; -pub const __NR_uselib: u32 = 4086; -pub const __NR_swapon: u32 = 4087; -pub const __NR_reboot: u32 = 4088; -pub const __NR_readdir: u32 = 4089; -pub const __NR_mmap: u32 = 4090; -pub const __NR_munmap: u32 = 4091; -pub const __NR_truncate: u32 = 4092; -pub const __NR_ftruncate: u32 = 4093; -pub const __NR_fchmod: u32 = 4094; -pub const __NR_fchown: u32 = 4095; -pub const __NR_getpriority: u32 = 4096; -pub const __NR_setpriority: u32 = 4097; -pub const __NR_profil: u32 = 4098; -pub const __NR_statfs: u32 = 4099; -pub const __NR_fstatfs: u32 = 4100; -pub const __NR_ioperm: u32 = 4101; -pub const __NR_socketcall: u32 = 4102; -pub const __NR_syslog: u32 = 4103; -pub const __NR_setitimer: u32 = 4104; -pub const __NR_getitimer: u32 = 4105; -pub const __NR_stat: u32 = 4106; -pub const __NR_lstat: u32 = 4107; -pub const __NR_fstat: u32 = 4108; -pub const __NR_unused109: u32 = 4109; -pub const __NR_iopl: u32 = 4110; -pub const __NR_vhangup: u32 = 4111; -pub const __NR_idle: u32 = 4112; -pub const __NR_vm86: u32 = 4113; -pub const __NR_wait4: u32 = 4114; -pub const __NR_swapoff: u32 = 4115; -pub const __NR_sysinfo: u32 = 4116; -pub const __NR_ipc: u32 = 4117; -pub const __NR_fsync: u32 = 4118; -pub const __NR_sigreturn: u32 = 4119; -pub const __NR_clone: u32 = 4120; -pub const __NR_setdomainname: u32 = 4121; -pub const __NR_uname: u32 = 4122; -pub const __NR_modify_ldt: u32 = 4123; -pub const __NR_adjtimex: u32 = 4124; -pub const __NR_mprotect: u32 = 4125; -pub const __NR_sigprocmask: u32 = 4126; -pub const __NR_create_module: u32 = 4127; -pub const __NR_init_module: u32 = 4128; -pub const __NR_delete_module: u32 = 4129; -pub const __NR_get_kernel_syms: u32 = 4130; -pub const __NR_quotactl: u32 = 4131; -pub const __NR_getpgid: u32 = 4132; -pub const __NR_fchdir: u32 = 4133; -pub const __NR_bdflush: u32 = 4134; -pub const __NR_sysfs: u32 = 4135; -pub const __NR_personality: u32 = 4136; -pub const __NR_afs_syscall: u32 = 4137; -pub const __NR_setfsuid: u32 = 4138; -pub const __NR_setfsgid: u32 = 4139; -pub const __NR__llseek: u32 = 4140; -pub const __NR_getdents: u32 = 4141; -pub const __NR__newselect: u32 = 4142; -pub const __NR_flock: u32 = 4143; -pub const __NR_msync: u32 = 4144; -pub const __NR_readv: u32 = 4145; -pub const __NR_writev: u32 = 4146; -pub const __NR_cacheflush: u32 = 4147; -pub const __NR_cachectl: u32 = 4148; -pub const __NR_sysmips: u32 = 4149; -pub const __NR_unused150: u32 = 4150; -pub const __NR_getsid: u32 = 4151; -pub const __NR_fdatasync: u32 = 4152; -pub const __NR__sysctl: u32 = 4153; -pub const __NR_mlock: u32 = 4154; -pub const __NR_munlock: u32 = 4155; -pub const __NR_mlockall: u32 = 4156; -pub const __NR_munlockall: u32 = 4157; -pub const __NR_sched_setparam: u32 = 4158; -pub const __NR_sched_getparam: u32 = 4159; -pub const __NR_sched_setscheduler: u32 = 4160; -pub const __NR_sched_getscheduler: u32 = 4161; -pub const __NR_sched_yield: u32 = 4162; -pub const __NR_sched_get_priority_max: u32 = 4163; -pub const __NR_sched_get_priority_min: u32 = 4164; -pub const __NR_sched_rr_get_interval: u32 = 4165; -pub const __NR_nanosleep: u32 = 4166; -pub const __NR_mremap: u32 = 4167; -pub const __NR_accept: u32 = 4168; -pub const __NR_bind: u32 = 4169; -pub const __NR_connect: u32 = 4170; -pub const __NR_getpeername: u32 = 4171; -pub const __NR_getsockname: u32 = 4172; -pub const __NR_getsockopt: u32 = 4173; -pub const __NR_listen: u32 = 4174; -pub const __NR_recv: u32 = 4175; -pub const __NR_recvfrom: u32 = 4176; -pub const __NR_recvmsg: u32 = 4177; -pub const __NR_send: u32 = 4178; -pub const __NR_sendmsg: u32 = 4179; -pub const __NR_sendto: u32 = 4180; -pub const __NR_setsockopt: u32 = 4181; -pub const __NR_shutdown: u32 = 4182; -pub const __NR_socket: u32 = 4183; -pub const __NR_socketpair: u32 = 4184; -pub const __NR_setresuid: u32 = 4185; -pub const __NR_getresuid: u32 = 4186; -pub const __NR_query_module: u32 = 4187; -pub const __NR_poll: u32 = 4188; -pub const __NR_nfsservctl: u32 = 4189; -pub const __NR_setresgid: u32 = 4190; -pub const __NR_getresgid: u32 = 4191; -pub const __NR_prctl: u32 = 4192; -pub const __NR_rt_sigreturn: u32 = 4193; -pub const __NR_rt_sigaction: u32 = 4194; -pub const __NR_rt_sigprocmask: u32 = 4195; -pub const __NR_rt_sigpending: u32 = 4196; -pub const __NR_rt_sigtimedwait: u32 = 4197; -pub const __NR_rt_sigqueueinfo: u32 = 4198; -pub const __NR_rt_sigsuspend: u32 = 4199; -pub const __NR_pread64: u32 = 4200; -pub const __NR_pwrite64: u32 = 4201; -pub const __NR_chown: u32 = 4202; -pub const __NR_getcwd: u32 = 4203; -pub const __NR_capget: u32 = 4204; -pub const __NR_capset: u32 = 4205; -pub const __NR_sigaltstack: u32 = 4206; -pub const __NR_sendfile: u32 = 4207; -pub const __NR_getpmsg: u32 = 4208; -pub const __NR_putpmsg: u32 = 4209; -pub const __NR_mmap2: u32 = 4210; -pub const __NR_truncate64: u32 = 4211; -pub const __NR_ftruncate64: u32 = 4212; -pub const __NR_stat64: u32 = 4213; -pub const __NR_lstat64: u32 = 4214; -pub const __NR_fstat64: u32 = 4215; -pub const __NR_pivot_root: u32 = 4216; -pub const __NR_mincore: u32 = 4217; -pub const __NR_madvise: u32 = 4218; -pub const __NR_getdents64: u32 = 4219; -pub const __NR_fcntl64: u32 = 4220; -pub const __NR_reserved221: u32 = 4221; -pub const __NR_gettid: u32 = 4222; -pub const __NR_readahead: u32 = 4223; -pub const __NR_setxattr: u32 = 4224; -pub const __NR_lsetxattr: u32 = 4225; -pub const __NR_fsetxattr: u32 = 4226; -pub const __NR_getxattr: u32 = 4227; -pub const __NR_lgetxattr: u32 = 4228; -pub const __NR_fgetxattr: u32 = 4229; -pub const __NR_listxattr: u32 = 4230; -pub const __NR_llistxattr: u32 = 4231; -pub const __NR_flistxattr: u32 = 4232; -pub const __NR_removexattr: u32 = 4233; -pub const __NR_lremovexattr: u32 = 4234; -pub const __NR_fremovexattr: u32 = 4235; -pub const __NR_tkill: u32 = 4236; -pub const __NR_sendfile64: u32 = 4237; -pub const __NR_futex: u32 = 4238; -pub const __NR_sched_setaffinity: u32 = 4239; -pub const __NR_sched_getaffinity: u32 = 4240; -pub const __NR_io_setup: u32 = 4241; -pub const __NR_io_destroy: u32 = 4242; -pub const __NR_io_getevents: u32 = 4243; -pub const __NR_io_submit: u32 = 4244; -pub const __NR_io_cancel: u32 = 4245; -pub const __NR_exit_group: u32 = 4246; -pub const __NR_lookup_dcookie: u32 = 4247; -pub const __NR_epoll_create: u32 = 4248; -pub const __NR_epoll_ctl: u32 = 4249; -pub const __NR_epoll_wait: u32 = 4250; -pub const __NR_remap_file_pages: u32 = 4251; -pub const __NR_set_tid_address: u32 = 4252; -pub const __NR_restart_syscall: u32 = 4253; -pub const __NR_fadvise64: u32 = 4254; -pub const __NR_statfs64: u32 = 4255; -pub const __NR_fstatfs64: u32 = 4256; -pub const __NR_timer_create: u32 = 4257; -pub const __NR_timer_settime: u32 = 4258; -pub const __NR_timer_gettime: u32 = 4259; -pub const __NR_timer_getoverrun: u32 = 4260; -pub const __NR_timer_delete: u32 = 4261; -pub const __NR_clock_settime: u32 = 4262; -pub const __NR_clock_gettime: u32 = 4263; -pub const __NR_clock_getres: u32 = 4264; -pub const __NR_clock_nanosleep: u32 = 4265; -pub const __NR_tgkill: u32 = 4266; -pub const __NR_utimes: u32 = 4267; -pub const __NR_mbind: u32 = 4268; -pub const __NR_get_mempolicy: u32 = 4269; -pub const __NR_set_mempolicy: u32 = 4270; -pub const __NR_mq_open: u32 = 4271; -pub const __NR_mq_unlink: u32 = 4272; -pub const __NR_mq_timedsend: u32 = 4273; -pub const __NR_mq_timedreceive: u32 = 4274; -pub const __NR_mq_notify: u32 = 4275; -pub const __NR_mq_getsetattr: u32 = 4276; -pub const __NR_vserver: u32 = 4277; -pub const __NR_waitid: u32 = 4278; -pub const __NR_add_key: u32 = 4280; -pub const __NR_request_key: u32 = 4281; -pub const __NR_keyctl: u32 = 4282; -pub const __NR_set_thread_area: u32 = 4283; -pub const __NR_inotify_init: u32 = 4284; -pub const __NR_inotify_add_watch: u32 = 4285; -pub const __NR_inotify_rm_watch: u32 = 4286; -pub const __NR_migrate_pages: u32 = 4287; -pub const __NR_openat: u32 = 4288; -pub const __NR_mkdirat: u32 = 4289; -pub const __NR_mknodat: u32 = 4290; -pub const __NR_fchownat: u32 = 4291; -pub const __NR_futimesat: u32 = 4292; -pub const __NR_fstatat64: u32 = 4293; -pub const __NR_unlinkat: u32 = 4294; -pub const __NR_renameat: u32 = 4295; -pub const __NR_linkat: u32 = 4296; -pub const __NR_symlinkat: u32 = 4297; -pub const __NR_readlinkat: u32 = 4298; -pub const __NR_fchmodat: u32 = 4299; -pub const __NR_faccessat: u32 = 4300; -pub const __NR_pselect6: u32 = 4301; -pub const __NR_ppoll: u32 = 4302; -pub const __NR_unshare: u32 = 4303; -pub const __NR_splice: u32 = 4304; -pub const __NR_sync_file_range: u32 = 4305; -pub const __NR_tee: u32 = 4306; -pub const __NR_vmsplice: u32 = 4307; -pub const __NR_move_pages: u32 = 4308; -pub const __NR_set_robust_list: u32 = 4309; -pub const __NR_get_robust_list: u32 = 4310; -pub const __NR_kexec_load: u32 = 4311; -pub const __NR_getcpu: u32 = 4312; -pub const __NR_epoll_pwait: u32 = 4313; -pub const __NR_ioprio_set: u32 = 4314; -pub const __NR_ioprio_get: u32 = 4315; -pub const __NR_utimensat: u32 = 4316; -pub const __NR_signalfd: u32 = 4317; -pub const __NR_timerfd: u32 = 4318; -pub const __NR_eventfd: u32 = 4319; -pub const __NR_fallocate: u32 = 4320; -pub const __NR_timerfd_create: u32 = 4321; -pub const __NR_timerfd_gettime: u32 = 4322; -pub const __NR_timerfd_settime: u32 = 4323; -pub const __NR_signalfd4: u32 = 4324; -pub const __NR_eventfd2: u32 = 4325; -pub const __NR_epoll_create1: u32 = 4326; -pub const __NR_dup3: u32 = 4327; -pub const __NR_pipe2: u32 = 4328; -pub const __NR_inotify_init1: u32 = 4329; -pub const __NR_preadv: u32 = 4330; -pub const __NR_pwritev: u32 = 4331; -pub const __NR_rt_tgsigqueueinfo: u32 = 4332; -pub const __NR_perf_event_open: u32 = 4333; -pub const __NR_accept4: u32 = 4334; -pub const __NR_recvmmsg: u32 = 4335; -pub const __NR_fanotify_init: u32 = 4336; -pub const __NR_fanotify_mark: u32 = 4337; -pub const __NR_prlimit64: u32 = 4338; -pub const __NR_name_to_handle_at: u32 = 4339; -pub const __NR_open_by_handle_at: u32 = 4340; -pub const __NR_clock_adjtime: u32 = 4341; -pub const __NR_syncfs: u32 = 4342; -pub const __NR_sendmmsg: u32 = 4343; -pub const __NR_setns: u32 = 4344; -pub const __NR_process_vm_readv: u32 = 4345; -pub const __NR_process_vm_writev: u32 = 4346; -pub const __NR_kcmp: u32 = 4347; -pub const __NR_finit_module: u32 = 4348; -pub const __NR_sched_setattr: u32 = 4349; -pub const __NR_sched_getattr: u32 = 4350; -pub const __NR_renameat2: u32 = 4351; -pub const __NR_seccomp: u32 = 4352; -pub const __NR_getrandom: u32 = 4353; -pub const __NR_memfd_create: u32 = 4354; -pub const __NR_bpf: u32 = 4355; -pub const __NR_execveat: u32 = 4356; -pub const __NR_userfaultfd: u32 = 4357; -pub const __NR_membarrier: u32 = 4358; -pub const __NR_mlock2: u32 = 4359; -pub const __NR_copy_file_range: u32 = 4360; -pub const __NR_preadv2: u32 = 4361; -pub const __NR_pwritev2: u32 = 4362; -pub const __NR_pkey_mprotect: u32 = 4363; -pub const __NR_pkey_alloc: u32 = 4364; -pub const __NR_pkey_free: u32 = 4365; -pub const __NR_statx: u32 = 4366; -pub const __NR_rseq: u32 = 4367; -pub const __NR_io_pgetevents: u32 = 4368; -pub const __NR_semget: u32 = 4393; -pub const __NR_semctl: u32 = 4394; -pub const __NR_shmget: u32 = 4395; -pub const __NR_shmctl: u32 = 4396; -pub const __NR_shmat: u32 = 4397; -pub const __NR_shmdt: u32 = 4398; -pub const __NR_msgget: u32 = 4399; -pub const __NR_msgsnd: u32 = 4400; -pub const __NR_msgrcv: u32 = 4401; -pub const __NR_msgctl: u32 = 4402; -pub const __NR_clock_gettime64: u32 = 4403; -pub const __NR_clock_settime64: u32 = 4404; -pub const __NR_clock_adjtime64: u32 = 4405; -pub const __NR_clock_getres_time64: u32 = 4406; -pub const __NR_clock_nanosleep_time64: u32 = 4407; -pub const __NR_timer_gettime64: u32 = 4408; -pub const __NR_timer_settime64: u32 = 4409; -pub const __NR_timerfd_gettime64: u32 = 4410; -pub const __NR_timerfd_settime64: u32 = 4411; -pub const __NR_utimensat_time64: u32 = 4412; -pub const __NR_pselect6_time64: u32 = 4413; -pub const __NR_ppoll_time64: u32 = 4414; -pub const __NR_io_pgetevents_time64: u32 = 4416; -pub const __NR_recvmmsg_time64: u32 = 4417; -pub const __NR_mq_timedsend_time64: u32 = 4418; -pub const __NR_mq_timedreceive_time64: u32 = 4419; -pub const __NR_semtimedop_time64: u32 = 4420; -pub const __NR_rt_sigtimedwait_time64: u32 = 4421; -pub const __NR_futex_time64: u32 = 4422; -pub const __NR_sched_rr_get_interval_time64: u32 = 4423; -pub const __NR_pidfd_send_signal: u32 = 4424; -pub const __NR_io_uring_setup: u32 = 4425; -pub const __NR_io_uring_enter: u32 = 4426; -pub const __NR_io_uring_register: u32 = 4427; -pub const __NR_open_tree: u32 = 4428; -pub const __NR_move_mount: u32 = 4429; -pub const __NR_fsopen: u32 = 4430; -pub const __NR_fsconfig: u32 = 4431; -pub const __NR_fsmount: u32 = 4432; -pub const __NR_fspick: u32 = 4433; -pub const __NR_pidfd_open: u32 = 4434; -pub const __NR_clone3: u32 = 4435; -pub const __NR_close_range: u32 = 4436; -pub const __NR_openat2: u32 = 4437; -pub const __NR_pidfd_getfd: u32 = 4438; -pub const __NR_faccessat2: u32 = 4439; -pub const __NR_process_madvise: u32 = 4440; -pub const __NR_epoll_pwait2: u32 = 4441; -pub const __NR_mount_setattr: u32 = 4442; -pub const __NR_quotactl_fd: u32 = 4443; -pub const __NR_landlock_create_ruleset: u32 = 4444; -pub const __NR_landlock_add_rule: u32 = 4445; -pub const __NR_landlock_restrict_self: u32 = 4446; -pub const __NR_process_mrelease: u32 = 4448; -pub const __NR_futex_waitv: u32 = 4449; -pub const __NR_set_mempolicy_home_node: u32 = 4450; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 128; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 128; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416; -pub const TFD_CREATE_FLAGS: u32 = 524416; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const POLLWRNORM: u32 = 4; -pub const TCSANOW: u32 = 21518; -pub const TCSADRAIN: u32 = 21519; -pub const TCSAFLUSH: u32 = 21520; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/if_ether.rs b/third_party/rust/linux-raw-sys/src/mips32r6/if_ether.rs deleted file mode 100644 index f05e426e8662..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/if_ether.rs +++ /dev/null @@ -1,177 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/io_uring.rs b/third_party/rust/linux-raw-sys/src/mips32r6/io_uring.rs deleted file mode 100644 index d81c9576aa1e..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/io_uring.rs +++ /dev/null @@ -1,1093 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/ioctl.rs b/third_party/rust/linux-raw-sys/src/mips32r6/ioctl.rs deleted file mode 100644 index d08b3cb90467..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/ioctl.rs +++ /dev/null @@ -1,1587 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 18047; -pub const FIONBIO: u32 = 26238; -pub const FIOCLEX: u32 = 26113; -pub const FIONCLEX: u32 = 26114; -pub const FIOASYNC: u32 = 26237; -pub const FIOQSIZE: u32 = 26239; -pub const TCXONC: u32 = 21510; -pub const TCFLSH: u32 = 21511; -pub const TIOCSCTTY: u32 = 21632; -pub const TIOCSPGRP: u32 = 2147775606; -pub const TIOCOUTQ: u32 = 29810; -pub const TIOCSTI: u32 = 21618; -pub const TIOCSWINSZ: u32 = 2148037735; -pub const TIOCMGET: u32 = 29725; -pub const TIOCMBIS: u32 = 29723; -pub const TIOCMBIC: u32 = 29724; -pub const TIOCMSET: u32 = 29722; -pub const TIOCSSOFTCAR: u32 = 21634; -pub const TIOCLINUX: u32 = 21635; -pub const TIOCCONS: u32 = 2147775608; -pub const TIOCSSERIAL: u32 = 21637; -pub const TIOCPKT: u32 = 21616; -pub const TIOCNOTTY: u32 = 21617; -pub const TIOCSETD: u32 = 29697; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSPTLCK: u32 = 2147767345; -pub const TIOCSIG: u32 = 2147767350; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21640; -pub const TIOCSERGWILD: u32 = 21641; -pub const TIOCSERSWILD: u32 = 21642; -pub const TIOCSLCKTRMIOS: u32 = 21644; -pub const TIOCSERGSTRUCT: u32 = 21645; -pub const TIOCSERGETLSR: u32 = 21646; -pub const TIOCSERGETMULTI: u32 = 21647; -pub const TIOCSERSETMULTI: u32 = 21648; -pub const TIOCMIWAIT: u32 = 21649; -pub const TCGETS: u32 = 21517; -pub const TCGETA: u32 = 21505; -pub const TCSBRK: u32 = 21509; -pub const TCSBRKP: u32 = 21638; -pub const TCSETA: u32 = 21506; -pub const TCSETAF: u32 = 21508; -pub const TCSETAW: u32 = 21507; -pub const TIOCEXCL: u32 = 29709; -pub const TIOCNXCL: u32 = 29710; -pub const TIOCGDEV: u32 = 1074025522; -pub const TIOCGEXCL: u32 = 1074025536; -pub const TIOCGICOUNT: u32 = 21650; -pub const TIOCGLCKTRMIOS: u32 = 21643; -pub const TIOCGPGRP: u32 = 1074033783; -pub const TIOCGPKT: u32 = 1074025528; -pub const TIOCGPTLCK: u32 = 1074025529; -pub const TIOCGPTN: u32 = 1074025520; -pub const TIOCGPTPEER: u32 = 536892481; -pub const TIOCGSERIAL: u32 = 21636; -pub const TIOCGSID: u32 = 29718; -pub const TIOCGSOFTCAR: u32 = 21633; -pub const TIOCGWINSZ: u32 = 1074295912; -pub const TCGETS2: u32 = 1076909098; -pub const TCSETS: u32 = 21518; -pub const TCSETS2: u32 = 2150650923; -pub const TCSETSF: u32 = 21520; -pub const TCSETSF2: u32 = 2150650925; -pub const TCSETSW: u32 = 21519; -pub const TCSETSW2: u32 = 2150650924; -pub const TIOCGETD: u32 = 29696; -pub const TIOCGETP: u32 = 29704; -pub const TIOCGLTC: u32 = 29812; -pub const MTIOCGET: u32 = 1075604738; -pub const BLKSSZGET: u32 = 536875624; -pub const BLKPBSZGET: u32 = 536875643; -pub const BLKROSET: u32 = 536875613; -pub const BLKROGET: u32 = 536875614; -pub const BLKRRPART: u32 = 536875615; -pub const BLKGETSIZE: u32 = 536875616; -pub const BLKFLSBUF: u32 = 536875617; -pub const BLKRASET: u32 = 536875618; -pub const BLKRAGET: u32 = 536875619; -pub const BLKFRASET: u32 = 536875620; -pub const BLKFRAGET: u32 = 536875621; -pub const BLKSECTSET: u32 = 536875622; -pub const BLKSECTGET: u32 = 536875623; -pub const BLKPG: u32 = 536875625; -pub const BLKBSZGET: u32 = 1074008688; -pub const BLKBSZSET: u32 = 2147750513; -pub const BLKGETSIZE64: u32 = 1074008690; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 536875636; -pub const BLKTRACESTOP: u32 = 536875637; -pub const BLKTRACETEARDOWN: u32 = 536875638; -pub const BLKDISCARD: u32 = 536875639; -pub const BLKIOMIN: u32 = 536875640; -pub const BLKIOOPT: u32 = 536875641; -pub const BLKALIGNOFF: u32 = 536875642; -pub const BLKDISCARDZEROES: u32 = 536875644; -pub const BLKSECDISCARD: u32 = 536875645; -pub const BLKROTATIONAL: u32 = 536875646; -pub const BLKZEROOUT: u32 = 536875647; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 1074833921; -pub const UFFDIO_WAKE: u32 = 1074833922; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 536917761; -pub const NS_GET_PARENT: u32 = 536917762; -pub const NS_GET_NSTYPE: u32 = 536917763; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 2147772028; -pub const FIOGETOWN: u32 = 1074030203; -pub const SIOCATMARK: u32 = 1074033415; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 18047; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 536870913; -pub const FIGETBSZ: u32 = 536870914; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 2147783689; -pub const FICLONERANGE: u32 = 2149618701; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 1074030081; -pub const FS_IOC_SETFLAGS: u32 = 2147771906; -pub const FS_IOC_GETVERSION: u32 = 1074034177; -pub const FS_IOC_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 1074030081; -pub const FS_IOC32_SETFLAGS: u32 = 2147771906; -pub const FS_IOC32_GETVERSION: u32 = 1074034177; -pub const FS_IOC32_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FSGETXATTR: u32 = 1075599391; -pub const FS_IOC_FSSETXATTR: u32 = 2149341216; -pub const FS_IOC_GETFSLABEL: u32 = 1090556977; -pub const FS_IOC_SETFSLABEL: u32 = 2164298802; -pub const EXT4_IOC_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; -pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC_MIGRATE: u32 = 536897033; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; -pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; -pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; -pub const EXT4_IOC_GETSTATE: u32 = 2147771945; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; -pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; -pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 2148295050; -pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 2147767499; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1075866881; -pub const ENI_SETMULT: u32 = 2148295015; -pub const RIO_GET_EVENT_MASK: u32 = 1074031886; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; -pub const KVM_SET_BOOT_CPU_ID: u32 = 536915576; -pub const KVM_SET_MP_STATE: u32 = 2147790489; -pub const KVM_GET_MP_STATE: u32 = 1074048664; -pub const KVM_GET_API_VERSION: u32 = 536915456; -pub const KVM_S390_GET_SKEYS: u32 = 2151722674; -pub const KVM_SET_ONE_REG: u32 = 2148576940; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 2149625414; -pub const KVM_S390_INTERRUPT: u32 = 2148576916; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 1073786508; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 2148576884; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 1074835131; -pub const KVM_S390_UCAS_MAP: u32 = 2149101136; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 2151722660; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221532346; -pub const KVM_CREATE_PIT2: u32 = 2151722615; -pub const KVM_S390_VCPU_FAULT: u32 = 2147790418; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 2148576871; -pub const KVM_SET_VAPIC_ADDR: u32 = 2148052627; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 2148576918; -pub const KVM_X86_SETUP_MCE: u32 = 2148052636; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 2151722610; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 2152246985; -pub const KVM_GET_CLOCK: u32 = 1076932220; -pub const KVM_SET_FPU: u32 = 2147528333; -pub const KVM_KVMCLOCK_CTRL: u32 = 536915629; -pub const KVM_PPC_GET_PVINFO: u32 = 2155916961; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 1074310813; -pub const KVM_S390_GET_IRQ_STATE: u32 = 2149625526; -pub const KVM_GET_DEVICE_ATTR: u32 = 2149101282; -pub const KVM_S390_INITIAL_RESET: u32 = 536915607; -pub const KVM_SET_REGS: u32 = 2165878402; -pub const KVM_GET_TSC_KHZ: u32 = 536915619; -pub const KVM_CHECK_EXTENSION: u32 = 536915459; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 1074835118; -pub const KVM_GET_DIRTY_LOG: u32 = 2148576834; -pub const KVM_S390_SET_IRQ_STATE: u32 = 2149625525; -pub const KVM_S390_NORMAL_RESET: u32 = 536915651; -pub const KVM_SET_SIGNAL_MASK: u32 = 2147790475; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 2152246987; -pub const KVM_SET_GSI_ROUTING: u32 = 2148052586; -pub const KVM_CREATE_VCPU: u32 = 536915521; -pub const KVM_S390_UCAS_UNMAP: u32 = 2149101137; -pub const KVM_S390_STORE_STATUS: u32 = 2147790485; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 2148576872; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 2151722608; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 536915462; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 2148576939; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 2148576939; -pub const KVM_DIRTY_TLB: u32 = 2148576938; -pub const KVM_NMI: u32 = 536915610; -pub const KVM_HYPERV_EVENTFD: u32 = 2149101245; -pub const KVM_S390_MEM_OP: u32 = 2151722673; -pub const KVM_PPC_SVM_OFF: u32 = 536915635; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 1074835117; -pub const KVM_INTERRUPT: u32 = 2147790470; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 1073786499; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 2148052552; -pub const KVM_GET_REGS: u32 = 1092136577; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 536915552; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 1077980777; -pub const KVM_SET_NR_MMU_PAGES: u32 = 536915524; -pub const KVM_IOEVENTFD: u32 = 2151722617; -pub const KVM_RUN: u32 = 536915584; -pub const KVM_S390_SET_SKEYS: u32 = 2151722675; -pub const KVM_SET_DEVICE_ATTR: u32 = 2149101281; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 2151722613; -pub const KVM_SMI: u32 = 536915639; -pub const KVM_SET_TSS_ADDR: u32 = 536915527; -pub const KVM_GET_NR_MMU_PAGES: u32 = 536915525; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 536915569; -pub const KVM_HAS_DEVICE_ATTR: u32 = 2149101283; -pub const KVM_IRQFD: u32 = 2149625462; -pub const KVM_S390_SET_CMMA_BITS: u32 = 2149625529; -pub const KVM_SET_IRQCHIP: u32 = 1107865187; -pub const KVM_SIGNAL_MSI: u32 = 2149625509; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 536915460; -pub const KVM_CREATE_VM: u32 = 536915457; -pub const KVM_S390_CLEAR_RESET: u32 = 536915652; -pub const KVM_RESET_DIRTY_RINGS: u32 = 536915655; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 2148052595; -pub const KVM_CREATE_PIT: u32 = 536915556; -pub const KVM_SET_GUEST_DEBUG: u32 = 2148052635; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 2147790530; -pub const KVM_SET_CLOCK: u32 = 2150674043; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 1112583846; -pub const KVM_SET_TSC_KHZ: u32 = 536915618; -pub const KVM_S390_IRQ: u32 = 2152246964; -pub const KVM_ENABLE_CAP: u32 = 2154344099; -pub const KVM_IRQ_LINE: u32 = 2148052577; -pub const KVM_SET_SREGS: u32 = 2147528324; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 1074835132; -pub const KVM_GET_STATS_FD: u32 = 536915662; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; -pub const CHIOMOVE: u32 = 2148819713; -pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; -pub const BTRFS_IOC_SYNC: u32 = 536908808; -pub const VIDIOC_TRY_FMT: u32 = 3234616896; -pub const LIRC_SET_REC_MODE: u32 = 2147772690; -pub const VIDIOC_DQEVENT: u32 = 1082152537; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; -pub const UVCIOC_CTRL_MAP: u32 = 3227022624; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; -pub const UI_SET_KEYBIT: u32 = 2147767653; -pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 2148052754; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; -pub const LIRC_GET_REC_MODE: u32 = 1074030850; -pub const PPGETTIME: u32 = 1074294933; -pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; -pub const ATM_SETBACKEND: u32 = 2147639794; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 536888968; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3222825227; -pub const FDTWADDLE: u32 = 536871513; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; -pub const NILFS_IOCTL_SYNC: u32 = 1074294410; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222036833; -pub const UI_SET_PROPBIT: u32 = 2147767662; -pub const TUNSETFILTEREBPF: u32 = 1074025697; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 1074026244; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148295054; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 1075577348; -pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148295008; -pub const PTP_SYS_OFFSET2: u32 = 2202025230; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; -pub const RTC_EPOCH_READ: u32 = 1074032653; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148295056; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 2153534723; -pub const ISST_IF_IO_CMD: u32 = 2147810818; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 1074008709; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; -pub const PPPIOCGCHAN: u32 = 1074033719; -pub const EVIOCGVERSION: u32 = 1074021633; -pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; -pub const USBDEVFS_REAPURBNDELAY: u32 = 2147767565; -pub const RNDZAPENTCNT: u32 = 536891908; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 536892643; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; -pub const VHOST_SET_VRING_ERR: u32 = 2148052770; -pub const VDUSE_VQ_SETUP: u32 = 2149613844; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; -pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; -pub const STP_SET_OPTIONS: u32 = 2148017410; -pub const FBIO_RADEON_GET_MIRROR: u32 = 1074020355; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 2148292288; -pub const IPMICTL_SEND_COMMAND: u32 = 1075079437; -pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; -pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; -pub const CHIOSVOLTAG: u32 = 2150654738; -pub const ATM_SETESIF: u32 = 2148295053; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; -pub const PMU_IOC_GET_MODEL: u32 = 1074020867; -pub const JSIOCGBTNMAP: u32 = 1140877876; -pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 536871489; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 536892694; -pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; -pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 1079509521; -pub const TUNSETVNETLE: u32 = 2147767516; -pub const PHN_SETREG: u32 = 2148036614; -pub const PPPIOCDETACH: u32 = 2147775548; -pub const MMTIMER_GETRES: u32 = 1074031873; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 1074032794; -pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 1074310688; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; -pub const SONYPI_IOCGBLUE: u32 = 1073837576; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; -pub const I2OHTML: u32 = 3223087369; -pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148294963; -pub const I2OPARMSET: u32 = 3222825219; -pub const TEE_IOC_CANCEL: u32 = 1074308100; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 536917568; -pub const PPPIOCGASYNCMAP: u32 = 1074033752; -pub const EVIOCGKEYCODE_V2: u32 = 1076380932; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 2149074956; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; -pub const PTP_EXTTS_REQUEST: u32 = 2148547842; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; -pub const JSIOCGAXES: u32 = 1073834513; -pub const HIDIOCSFLAG: u32 = 2147764239; -pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; -pub const PPWDATA: u32 = 2147577990; -pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; -pub const FDGETMAXERRS: u32 = 1075053070; -pub const TUNSETQUEUE: u32 = 2147767513; -pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 536914689; -pub const NBD_SET_TIMEOUT: u32 = 536914697; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; -pub const RIO_UNMAP_INBOUND: u32 = 2148035858; -pub const ATM_QUERYLOOP: u32 = 2148294996; -pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; -pub const FBIO_CURSOR: u32 = 3225961992; -pub const RNDCLEARPOOL: u32 = 536891910; -pub const VIDIOC_QUERYSTD: u32 = 1074288191; -pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 1076647434; -pub const PTP_ENABLE_PPS2: u32 = 2147761421; -pub const PCITEST_CLEAR_IRQ: u32 = 536891408; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; -pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; -pub const JSIOCGAXMAP: u32 = 1077963314; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; -pub const RTC_WIE_OFF: u32 = 536899600; -pub const PPGETMODE: u32 = 1074032792; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 2202025221; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 536908806; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; -pub const TUNDETACHFILTER: u32 = 2148029654; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 2148561101; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 1074033729; -pub const BLKGETZONESZ: u32 = 1074008708; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 1073837580; -pub const UI_SET_MSCBIT: u32 = 2147767656; -pub const APM_IOC_SUSPEND: u32 = 536887554; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 1075605521; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 1074287886; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; -pub const EVIOCSFF: u32 = 2150385024; -pub const TUNSETGROUP: u32 = 2147767502; -pub const EVIOCGKEYCODE: u32 = 1074283780; -pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 536871514; -pub const TUNSETOFFLOAD: u32 = 2147767504; -pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148295048; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; -pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; -pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; -pub const UI_ABS_SETUP: u32 = 2149340420; -pub const UI_DEV_DESTROY: u32 = 536892674; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 536899585; -pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; -pub const PPPIOCSDEBUG: u32 = 2147775552; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 2147775570; -pub const CCISS_DEREGDISK: u32 = 536887820; -pub const UI_DEV_CREATE: u32 = 536892673; -pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; -pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 1074283010; -pub const PPPIOCSASYNCMAP: u32 = 2147775575; -pub const I2OEVTGET: u32 = 1080584459; -pub const NVME_IOCTL_RESET: u32 = 536890948; -pub const PPYIELD: u32 = 536899725; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 2147767522; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 536899599; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2149608704; -pub const RTC_SET_TIME: u32 = 2149871626; -pub const VHOST_RESET_OWNER: u32 = 536915714; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 1074031681; -pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; -pub const HIDIOCGFLAG: u32 = 1074022414; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 2148577793; -pub const CCISS_GETFIRMVER: u32 = 1074020872; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 2147775547; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 2148036758; -pub const RTC_ALM_READ: u32 = 1076129800; -pub const VDUSE_SET_API_VERSION: u32 = 2148040961; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 536892695; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; -pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148295047; -pub const NBD_SET_SIZE: u32 = 536914690; -pub const UDF_GETVOLIDENT: u32 = 1074031682; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; -pub const UDF_GETEASIZE: u32 = 1074031680; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 536915713; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222038785; -pub const ATM_SETCIRANGE: u32 = 2148295051; -pub const HPET_IE_ON: u32 = 536897537; -pub const PERF_EVENT_IOC_ID: u32 = 1074013191; -pub const TUNSETSNDBUF: u32 = 2147767508; -pub const PTP_PIN_SETFUNC: u32 = 2153790727; -pub const PPPIOCDISCONN: u32 = 536900665; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 536899727; -pub const PCITEST_MSI: u32 = 2147766275; -pub const FDWERRORCLR: u32 = 536871510; -pub const AUTOFS_IOC_FAIL: u32 = 536908641; -pub const USBDEVFS_IOCTL: u32 = 3222033682; -pub const VIDIOC_S_STD: u32 = 2148029976; -pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; -pub const CCISS_GETDRIVVER: u32 = 1074020873; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; -pub const HPET_IRQFREQ: u32 = 2147772422; -pub const ATM_GETESI: u32 = 2148295045; -pub const CCISS_GETLUNINFO: u32 = 1074545169; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; -pub const UDMABUF_CREATE_LIST: u32 = 2148037955; -pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148295009; -pub const BR2684_SETFILT: u32 = 2149343632; -pub const RNDGETPOOL: u32 = 1074287106; -pub const PPS_GETPARAMS: u32 = 1074032801; -pub const IOC_PR_RESERVE: u32 = 2148561097; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074020865; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221515331; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 536887822; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; -pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; -pub const VFIO_EEH_PE_OP: u32 = 536886137; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; -pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 2150913586; -pub const VIDIOC_S_FMT: u32 = 3234616837; -pub const PPPIOCATTACH: u32 = 2147775549; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; -pub const PCITEST_LEGACY_IRQ: u32 = 536891394; -pub const USBDEVFS_SUBMITURB: u32 = 1076647178; -pub const AUTOFS_IOC_READY: u32 = 536908640; -pub const BTRFS_IOC_SEND: u32 = 2152240166; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; -pub const JSIOCSBTNMAP: u32 = 2214619699; -pub const PPPIOCSFLAGS: u32 = 2147775577; -pub const NVRAM_INIT: u32 = 536899648; -pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; -pub const BTRFS_IOC_BALANCE: u32 = 2415957004; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; -pub const STP_POLICY_ID_GET: u32 = 1074799873; -pub const PPSETFLAGS: u32 = 2147774619; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; -pub const PPPIOCGXASYNCMAP: u32 = 1075868752; -pub const VHOST_SET_VRING_CALL: u32 = 2148052769; -pub const LIRC_GET_FEATURES: u32 = 1074030848; -pub const GSMIOC_DISABLE_NET: u32 = 536889091; -pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; -pub const NBD_DO_IT: u32 = 536914691; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; -pub const EVIOCSCLOCKID: u32 = 2147763616; -pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; -pub const FSI_SCOM_RESET: u32 = 2147775235; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074020870; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 2149319235; -pub const TEE_IOC_INVOKE: u32 = 1074832387; -pub const USBDEVFS_BULK: u32 = 3222295810; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 2147579392; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 536899589; -pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; -pub const PPPIOCXFERUNIT: u32 = 536900686; -pub const WDIOC_GETTIMEOUT: u32 = 1074026247; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; -pub const FBIO_WAITFORVSYNC: u32 = 2147763744; -pub const RTC_PIE_OFF: u32 = 536899590; -pub const EVIOCGRAB: u32 = 2147763600; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 2147762690; -pub const EVIOCGREP: u32 = 1074283779; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2147755019; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 1074299136; -pub const RTC_RD_TIME: u32 = 1076129801; -pub const FDMSGOFF: u32 = 536871494; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; -pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; -pub const RIO_DEV_ADD: u32 = 2149608727; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 2147762180; -pub const PCITEST_GET_IRQTYPE: u32 = 536891401; -pub const JSIOCGVERSION: u32 = 1074031105; -pub const SONYPI_IOCSBLUE: u32 = 2147579401; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; -pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; -pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; -pub const VHOST_SET_VRING_NUM: u32 = 2148052752; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; -pub const PPPIOCGL2TPSTATS: u32 = 1078490166; -pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; -pub const PTP_PIN_SETFUNC2: u32 = 2153790736; -pub const CHIOEXCHANGE: u32 = 2149344002; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 2147767661; -pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; -pub const TUNSETIFF: u32 = 2147767498; -pub const CHIOPOSITION: u32 = 2148295427; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; -pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; -pub const EVIOCSMASK: u32 = 2148550035; -pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; -pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 2147774592; -pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; -pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 2149086530; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 2147774465; -pub const RNDADDTOENTCNT: u32 = 2147766785; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3222820550; -pub const PPS_FETCH: u32 = 3221516452; -pub const RTC_AIE_OFF: u32 = 536899586; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; -pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; -pub const PPPIOCSXASYNCMAP: u32 = 2149610575; -pub const CHIOGSTATUS: u32 = 2148033288; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; -pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; -pub const VHOST_GET_FEATURES: u32 = 1074310912; -pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; -pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; -pub const JSIOCGCORR: u32 = 1076128290; -pub const VIDIOC_G_FMT: u32 = 3234616836; -pub const RTC_EPOCH_SET: u32 = 2147774478; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 2148294994; -pub const SCIF_LISTEN: u32 = 2147775234; -pub const NBD_CLEAR_QUE: u32 = 536914693; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 1074030863; -pub const I8K_SET_FAN: u32 = 3221514631; -pub const FDSETMAXERRS: u32 = 2148794956; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; -pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; -pub const EVIOCRMFF: u32 = 2147763585; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 1073836165; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; -pub const TUNSETVNETHDRSZ: u32 = 2147767512; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 1078740736; -pub const LIRC_GET_SEND_MODE: u32 = 1074030849; -pub const PPPIOCSACTIVE: u32 = 2148037702; -pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; -pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; -pub const UI_END_FF_ERASE: u32 = 2148292043; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 536914698; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; -pub const REISERFS_IOC_UNPACK: u32 = 2147798273; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; -pub const RIO_SET_EVENT_MASK: u32 = 2147773709; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; -pub const I2OPASSTHRU: u32 = 1074293004; -pub const IOC_OPAL_SET_PW: u32 = 2183164128; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; -pub const VIDIOC_QBUF: u32 = 3225703951; -pub const VIDIOC_S_TUNER: u32 = 2153010718; -pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 1074570240; -pub const VIDIOC_LOG_STATUS: u32 = 536892998; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; -pub const VHOST_SET_LOG_FD: u32 = 2147790599; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; -pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; -pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3223087365; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; -pub const JSIOCGBUTTONS: u32 = 1073834514; -pub const VFIO_IOMMU_ENABLE: u32 = 536886131; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 2147790711; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 2148816444; -pub const WDIOC_GETTEMP: u32 = 1074026243; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; -pub const UI_SET_LEDBIT: u32 = 2147767657; -pub const NBD_SET_SOCK: u32 = 536914688; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3223087366; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; -pub const FDFMTTRK: u32 = 2148270664; -pub const MMTIMER_GETBITS: u32 = 536898820; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; -pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; -pub const RTC_VL_READ: u32 = 1074032659; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 2149608728; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 2147579403; -pub const SPIOCSTYPE: u32 = 2147774721; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; -pub const I8K_GET_FAN: u32 = 3221514630; -pub const TUNGETVNETBE: u32 = 1074025695; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 2153797065; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; -pub const PPPIOCSNPMODE: u32 = 2148037707; -pub const USBDEVFS_CONTROL: u32 = 3222295808; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 2147767505; -pub const TUNGETVNETLE: u32 = 1074025693; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; -pub const I2OVALIDATE: u32 = 1074030856; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1108898306; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; -pub const FDGETDRVSTAT: u32 = 1077150226; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 2147775541; -pub const LIRC_SET_SEND_MODE: u32 = 2147772689; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; -pub const ATM_GETTYPE: u32 = 2148295044; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 536871498; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; -pub const EVIOCGMASK: u32 = 1074808210; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 1074022148; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 2153251472; -pub const IOC_OPAL_SAVE: u32 = 2165862620; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 2147767514; -pub const CCISS_SETINTINFO: u32 = 2148024835; -pub const CM_IOSDBGLVL: u32 = 2147771386; -pub const RTC_VL_CLR: u32 = 536899604; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; -pub const CCISS_GETNODENAME: u32 = 1074807300; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; -pub const LPSETTIMEOUT_NEW: u32 = 2148533775; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 536871512; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 1074820159; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; -pub const PHN_SET_REGS: u32 = 2147774467; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148295011; -pub const MTIOCPOS: u32 = 1074031875; -pub const PMU_IOC_SLEEP: u32 = 536887808; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; -pub const VIDIOC_QUERYCAP: u32 = 1080579584; -pub const HPET_INFO: u32 = 1074554883; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2147768001; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 2147767500; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 2148028931; -pub const USBDEVFS_RESET: u32 = 536892692; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; -pub const FDGETDRVTYP: u32 = 1074790927; -pub const PPWCONTROL: u32 = 2147577988; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 536896357; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; -pub const PPPIOCSPASS: u32 = 2148037703; -pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; -pub const I2OSWDEL: u32 = 3223087367; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; -pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; -pub const PPPIOCSMAXCID: u32 = 2147775569; -pub const PPSETPHASE: u32 = 2147774612; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; -pub const USBDEVFS_GET_SPEED: u32 = 536892703; -pub const SONET_GETFRAMING: u32 = 1074028822; -pub const VIDIOC_QUERYBUF: u32 = 3225703945; -pub const VIDIOC_S_EDID: u32 = 3223606825; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; -pub const PPS_GETCAP: u32 = 1074032803; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 536914696; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 536886132; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; -pub const SNAPSHOT_POWER_OFF: u32 = 536883984; -pub const APM_IOC_STANDBY: u32 = 536887553; -pub const PPPIOCGUNIT: u32 = 1074033750; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; -pub const PPPIOCGRASYNCMAP: u32 = 1074033749; -pub const MMTIMER_MMAPAVAIL: u32 = 536898822; -pub const I2OPASSTHRU32: u32 = 1074293004; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const UI_SET_SNDBIT: u32 = 2147767658; -pub const VIDIOC_G_AUDOUT: u32 = 1077171761; -pub const RTC_PLL_SET: u32 = 2149347346; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 2147790660; -pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; -pub const VDUSE_CREATE_DEV: u32 = 2169536770; -pub const FDFLUSH: u32 = 536871499; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148033012; -pub const FDSETPRM: u32 = 2149319234; -pub const ATM_GETSTATZ: u32 = 2148294993; -pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 2147766278; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; -pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; -pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; -pub const CHIOGVPARAMS: u32 = 1081107219; -pub const PTP_PEROUT_REQUEST: u32 = 2151169283; -pub const FSI_SCOM_CHECK: u32 = 1074033408; -pub const RTC_IRQP_READ: u32 = 1074032651; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; -pub const HIDIOCGRDESCSIZE: u32 = 1074022401; -pub const UI_GET_VERSION: u32 = 1074025773; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; -pub const CCISS_GETBUSTYPES: u32 = 1074020871; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 2147767654; -pub const VFIO_SET_IOMMU: u32 = 536886118; -pub const VIDIOC_S_MODULATOR: u32 = 2151962167; -pub const TUNGETFILTER: u32 = 1074287835; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 2148549125; -pub const FBIO_GETCONTROL2: u32 = 1074022025; -pub const TUNSETDEBUG: u32 = 2147767497; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 2417772564; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 1075856914; -pub const ATM_GETSTAT: u32 = 2148294992; -pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; -pub const TUNATTACHFILTER: u32 = 2148029653; -pub const UI_SET_ABSBIT: u32 = 2147767655; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; -pub const USBDEVFS_REAPURB32: u32 = 2147767564; -pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; -pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148295008; -pub const ATM_SETLOOP: u32 = 2148294995; -pub const ATMSIGD_CTRL: u32 = 536895984; -pub const CIOC_KERNEL_VERSION: u32 = 3221512970; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; -pub const SNAPSHOT_UNFREEZE: u32 = 536883970; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; -pub const PMU_IOC_HAS_ADB: u32 = 1074020868; -pub const I2OGETIOPS: u32 = 1075865856; -pub const VIDIOC_S_FBUF: u32 = 2150389259; -pub const PPRCONTROL: u32 = 1073836163; -pub const CHIOSPICKER: u32 = 2147771141; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; -pub const TUNGETSNDBUF: u32 = 1074025683; -pub const GSMIOC_SETCONF: u32 = 2152482561; -pub const IOC_PR_PREEMPT: u32 = 2149085387; -pub const KCOV_INIT_TRACE: u32 = 1074029313; -pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; -pub const MTIOCTOP: u32 = 2148035841; -pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 1074033747; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 1074033754; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148295055; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; -pub const PPPIOCGIDLE32: u32 = 1074295871; -pub const VFIO_DEVICE_RESET: u32 = 536886127; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 1074026241; -pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 2147766277; -pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074032379; -pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 1077171745; -pub const CCISS_RESCANDISK: u32 = 536887824; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; -pub const USBDEVFS_REAPURB: u32 = 2147767564; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; -pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; -pub const PCITEST_MSIX: u32 = 2147766279; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 1074295871; -pub const NVRAM_SETCKS: u32 = 536899649; -pub const WDIOC_GETSUPPORT: u32 = 1076385536; -pub const GSMIOC_ENABLE_NET: u32 = 2150909698; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 2150122756; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 2149084422; -pub const I2OEVTREG: u32 = 2148296970; -pub const I2OPARMGET: u32 = 3222825220; -pub const EVIOCGID: u32 = 1074283778; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 1074025696; -pub const ATM_GETNAMES: u32 = 2148032899; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; -pub const I2OLCTGET: u32 = 3222038786; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148295010; -pub const BLKCLOSEZONE: u32 = 2148536967; -pub const SONET_GETFRSENSE: u32 = 1074159895; -pub const UI_SET_EVBIT: u32 = 2147767652; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 1090799620; -pub const PPPIOCATTCHAN: u32 = 2147775544; -pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; -pub const TUNGETFEATURES: u32 = 1074025679; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; -pub const CCISS_REGNEWDISK: u32 = 2147762701; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const PHN_SETREGS: u32 = 2150133768; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 1074025682; -pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; -pub const BTRFS_IOC_RESIZE: u32 = 2415956995; -pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; -pub const PPS_KC_BIND: u32 = 2147774629; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; -pub const UI_SET_FFBIT: u32 = 2147767659; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; -pub const CEC_G_MODE: u32 = 1074028808; -pub const USBDEVFS_RESETEP: u32 = 1074025731; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074068992; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; -pub const VFIO_CHECK_EXTENSION: u32 = 536886117; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; -pub const UI_SET_PHYS: u32 = 2147767660; -pub const FDWERRORGET: u32 = 1075315223; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 536898823; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; -pub const SIOCGSTAMP_NEW: u32 = 1074825478; -pub const RTC_WKALM_RD: u32 = 1076391952; -pub const PHN_GET_REG: u32 = 3221516288; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 536899588; -pub const PPGETMODES: u32 = 1074032791; -pub const CHIOGPARAMS: u32 = 1075077894; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; -pub const KCOV_ENABLE: u32 = 536896356; -pub const BTRFS_IOC_CLONE: u32 = 2147783689; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; -pub const AGPIOC_ALLOCATE: u32 = 3221504262; -pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; -pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; -pub const RTC_UIE_OFF: u32 = 536899588; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; -pub const NVME_IOCTL_ID: u32 = 536890944; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 2147767826; -pub const FDPOLLDRVSTAT: u32 = 1077150227; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; -pub const WDIOC_GETTIMELEFT: u32 = 1074026250; -pub const ATM_GETLINKRATE: u32 = 2148295041; -pub const RTC_WKALM_SET: u32 = 2150133775; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; -pub const NS_GET_OWNER_UID: u32 = 536917764; -pub const VIDIOC_OVERLAY: u32 = 2147767822; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148295046; -pub const PHN_GET_REGS: u32 = 3221516290; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 536883979; -pub const JSIOCSAXMAP: u32 = 2151705137; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 536886128; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 536898816; -pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; -pub const ATM_SETSC: u32 = 2147770865; -pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; -pub const NVME_IOCTL_RESCAN: u32 = 536890950; -pub const BLKOPENZONE: u32 = 2148536966; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; -pub const HIDIOCGVERSION: u32 = 1074022401; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; -pub const EVIOCGEFFECTS: u32 = 1074021764; -pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148294962; -pub const HIDIOCINITREPORT: u32 = 536889349; -pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 1074024960; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 536871508; -pub const IOC_PR_REGISTER: u32 = 2149085384; -pub const HIDIOCSREPORT: u32 = 2148288520; -pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; -pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 1074284547; -pub const PPPIOCSCOMPRESS: u32 = 2148299853; -pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; -pub const BLKRESETZONE: u32 = 2148536963; -pub const CHIOINITELEM: u32 = 536896273; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; -pub const PPGETPHASE: u32 = 1074032793; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; -pub const FDMSGON: u32 = 536871493; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; -pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; -pub const FDFMTBEG: u32 = 536871495; -pub const RNDRESEEDCRNG: u32 = 536891911; -pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; -pub const TUNSETNOCSUM: u32 = 2147767496; -pub const SONET_GETSTAT: u32 = 1076125968; -pub const TFD_IOC_SET_TICKS: u32 = 2148029440; -pub const PPDATADIR: u32 = 2147774608; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 2148557577; -pub const PPWCTLONIRQ: u32 = 2147578002; -pub const SONYPI_IOCGBRT: u32 = 1073837568; -pub const IOC_PR_RELEASE: u32 = 2148561098; -pub const PPCLRIRQ: u32 = 1074032787; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; -pub const HPET_IE_OFF: u32 = 536897538; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; -pub const SONET_SETFRAMING: u32 = 2147770645; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 2148536968; -pub const EVIOCREVOKE: u32 = 2147763601; -pub const VFIO_DEVICE_FEATURE: u32 = 536886133; -pub const CCISS_GETPCIINFO: u32 = 1074283009; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221552643; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221496842; -pub const VIDIOC_STREAMOFF: u32 = 2147767827; -pub const VDUSE_DESTROY_DEV: u32 = 2164293891; -pub const FDGETFDCSTAT: u32 = 1075839509; -pub const CM_IOCGATR: u32 = 3221512961; -pub const VIDIOC_S_PRIORITY: u32 = 2147767876; -pub const SNAPSHOT_FREEZE: u32 = 536883969; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148295010; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 1074288151; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; -pub const SONET_GETSTATZ: u32 = 1076125969; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 2147775572; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 536914692; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; -pub const WDIOC_KEEPALIVE: u32 = 1074026245; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; -pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; -pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; -pub const EVIOCSREP: u32 = 2148025603; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; -pub const HPET_DPI: u32 = 536897541; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 1075595267; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 1074026051; -pub const ATM_NEWBACKENDIF: u32 = 2147639795; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3222820424; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3223344833; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; -pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; -pub const CHIOGELEM: u32 = 2154586896; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; -pub const EVIOCSKEYCODE: u32 = 2148025604; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 2147767501; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; -pub const PPS_SETPARAMS: u32 = 2147774626; -pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; -pub const VIDIOC_G_EDID: u32 = 3223606824; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; -pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; -pub const VIDIOC_S_AUDIO: u32 = 2150913570; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; -pub const SNAPSHOT_FREE: u32 = 536883973; -pub const I8K_GET_SPEED: u32 = 3221514629; -pub const HIDIOCGREPORT: u32 = 2148288519; -pub const HPET_EPI: u32 = 536897540; -pub const JSIOCSCORR: u32 = 2149870113; -pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 2148295052; -pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148295049; -pub const PPFCONTROL: u32 = 2147643534; -pub const SONYPI_IOCGFAN: u32 = 1073837578; -pub const RTC_IRQP_SET: u32 = 2147774476; -pub const PCITEST_WRITE: u32 = 2147766276; -pub const PPCLAIM: u32 = 536899723; -pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; -pub const VHOST_SET_FEATURES: u32 = 2148052736; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3225703953; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; -pub const MMTIMER_GETFREQ: u32 = 1074031874; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2147791104; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; -pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 536871497; -pub const DMA_BUF_SET_NAME: u32 = 2147770881; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; -pub const RTC_UIE_ON: u32 = 536899587; -pub const PPRELEASE: u32 = 536899724; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1108898305; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 2148052768; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; -pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; -pub const PPNEGOT: u32 = 2147774609; -pub const NBD_PRINT_DEBUG: u32 = 536914694; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 1140888607; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 1074026022; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; -pub const MMTIMER_GETCOUNTER: u32 = 1074031881; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; -pub const RIO_CM_CHAN_BIND: u32 = 2148033285; -pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; -pub const BLKGETDISKSEQ: u32 = 1074270848; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; -pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; -pub const ACRN_IOCTL_START_VM: u32 = 536912402; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; -pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/net.rs b/third_party/rust/linux-raw-sys/src/mips32r6/net.rs deleted file mode 100644 index a0386f4bb29d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/net.rs +++ /dev/null @@ -1,1867 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 65535; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 4; -pub const SO_KEEPALIVE: u32 = 8; -pub const SO_DONTROUTE: u32 = 16; -pub const SO_BROADCAST: u32 = 32; -pub const SO_LINGER: u32 = 128; -pub const SO_OOBINLINE: u32 = 256; -pub const SO_REUSEPORT: u32 = 512; -pub const SO_TYPE: u32 = 4104; -pub const SO_STYLE: u32 = 4104; -pub const SO_ERROR: u32 = 4103; -pub const SO_SNDBUF: u32 = 4097; -pub const SO_RCVBUF: u32 = 4098; -pub const SO_SNDLOWAT: u32 = 4099; -pub const SO_RCVLOWAT: u32 = 4100; -pub const SO_SNDTIMEO_OLD: u32 = 4101; -pub const SO_RCVTIMEO_OLD: u32 = 4102; -pub const SO_ACCEPTCONN: u32 = 4105; -pub const SO_PROTOCOL: u32 = 4136; -pub const SO_DOMAIN: u32 = 4137; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_PASSCRED: u32 = 17; -pub const SO_PEERCRED: u32 = 18; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_PEERSEC: u32 = 30; -pub const SO_SNDBUFFORCE: u32 = 31; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 2; -pub const SOCK_DGRAM: u32 = 1; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/netlink.rs b/third_party/rust/linux-raw-sys/src/mips32r6/netlink.rs deleted file mode 100644 index f828d926cb16..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/netlink.rs +++ /dev/null @@ -1,2864 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/prctl.rs b/third_party/rust/linux-raw-sys/src/mips32r6/prctl.rs deleted file mode 100644 index 05ef459cde7d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/prctl.rs +++ /dev/null @@ -1,231 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/mips32r6/system.rs b/third_party/rust/linux-raw-sys/src/mips32r6/system.rs deleted file mode 100644 index fad89656ef02..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips32r6/system.rs +++ /dev/null @@ -1,109 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/mips64/errno.rs b/third_party/rust/linux-raw-sys/src/mips64/errno.rs deleted file mode 100644 index 337d8379f58d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/errno.rs +++ /dev/null @@ -1,137 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; diff --git a/third_party/rust/linux-raw-sys/src/mips64/general.rs b/third_party/rust/linux-raw-sys/src/mips64/general.rs deleted file mode 100644 index 112de05eabd2..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/general.rs +++ /dev/null @@ -1,3017 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type fsid_t = __kernel_fsid_t; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_flags: crate::ctypes::c_uint, -pub sa_handler: __sighandler_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_size: __kernel_size_t, -pub ss_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sgttyb { -pub sg_ispeed: crate::ctypes::c_char, -pub sg_ospeed: crate::ctypes::c_char, -pub sg_erase: crate::ctypes::c_char, -pub sg_kill: crate::ctypes::c_char, -pub sg_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tchars { -pub t_intrc: crate::ctypes::c_char, -pub t_quitc: crate::ctypes::c_char, -pub t_startc: crate::ctypes::c_char, -pub t_stopc: crate::ctypes::c_char, -pub t_eofc: crate::ctypes::c_char, -pub t_brkc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ltchars { -pub t_suspc: crate::ctypes::c_char, -pub t_dsuspc: crate::ctypes::c_char, -pub t_rprntc: crate::ctypes::c_char, -pub t_flushc: crate::ctypes::c_char, -pub t_werasc: crate::ctypes::c_char, -pub t_lnextc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_char, -pub c_cc: [crate::ctypes::c_uchar; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_uint, -pub st_pad0: [crate::ctypes::c_uint; 3usize], -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: __kernel_mode_t, -pub st_nlink: __u32, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_uint, -pub st_pad1: [crate::ctypes::c_uint; 3usize], -pub st_size: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_uint, -pub st_atime_nsec: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_uint, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_uint, -pub st_ctime_nsec: crate::ctypes::c_uint, -pub st_blksize: crate::ctypes::c_uint, -pub st_pad2: crate::ctypes::c_uint, -pub st_blocks: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: crate::ctypes::c_long, -pub f_bsize: crate::ctypes::c_long, -pub f_frsize: crate::ctypes::c_long, -pub f_blocks: crate::ctypes::c_long, -pub f_bfree: crate::ctypes::c_long, -pub f_files: crate::ctypes::c_long, -pub f_ffree: crate::ctypes::c_long, -pub f_bavail: crate::ctypes::c_long, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_long, -pub f_flags: crate::ctypes::c_long, -pub f_spare: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: crate::ctypes::c_long, -pub f_bsize: crate::ctypes::c_long, -pub f_frsize: crate::ctypes::c_long, -pub f_blocks: crate::ctypes::c_long, -pub f_bfree: crate::ctypes::c_long, -pub f_files: crate::ctypes::c_long, -pub f_ffree: crate::ctypes::c_long, -pub f_bavail: crate::ctypes::c_long, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_long, -pub f_flags: crate::ctypes::c_long, -pub f_spare: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_frsize: __u32, -pub __pad: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_bavail: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 1; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_APPEND: u32 = 8; -pub const O_DSYNC: u32 = 16; -pub const O_NONBLOCK: u32 = 128; -pub const O_CREAT: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_EXCL: u32 = 1024; -pub const O_NOCTTY: u32 = 2048; -pub const FASYNC: u32 = 4096; -pub const O_LARGEFILE: u32 = 8192; -pub const __O_SYNC: u32 = 16384; -pub const O_SYNC: u32 = 16400; -pub const O_DIRECT: u32 = 32768; -pub const F_GETLK: u32 = 14; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 24; -pub const F_GETOWN: u32 = 23; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4260096; -pub const O_NDELAY: u32 = 128; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 128; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_NONE: u32 = 0; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 16; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_AUTOGROW: u32 = 64; -pub const MAP_LOCAL: u32 = 128; -pub const MAP_AUTORSRV: u32 = 256; -pub const MAP_NORESERVE: u32 = 1024; -pub const MAP_ANONYMOUS: u32 = 2048; -pub const MAP_GROWSDOWN: u32 = 4096; -pub const MAP_DENYWRITE: u32 = 8192; -pub const MAP_EXECUTABLE: u32 = 16384; -pub const MAP_LOCKED: u32 = 32768; -pub const MAP_POPULATE: u32 = 65536; -pub const MAP_NONBLOCK: u32 = 131072; -pub const MAP_STACK: u32 = 262144; -pub const MAP_HUGETLB: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLWRBAND: u32 = 256; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_NOFILE: u32 = 5; -pub const RLIMIT_AS: u32 = 6; -pub const RLIMIT_RSS: u32 = 7; -pub const RLIMIT_NPROC: u32 = 8; -pub const RLIMIT_MEMLOCK: u32 = 9; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 128; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGIOT: u32 = 6; -pub const SIGABRT: u32 = 6; -pub const SIGEMT: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGBUS: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGSYS: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGUSR1: u32 = 16; -pub const SIGUSR2: u32 = 17; -pub const SIGCHLD: u32 = 18; -pub const SIGCLD: u32 = 18; -pub const SIGPWR: u32 = 19; -pub const SIGWINCH: u32 = 20; -pub const SIGURG: u32 = 21; -pub const SIGIO: u32 = 22; -pub const SIGPOLL: u32 = 22; -pub const SIGSTOP: u32 = 23; -pub const SIGTSTP: u32 = 24; -pub const SIGCONT: u32 = 25; -pub const SIGTTIN: u32 = 26; -pub const SIGTTOU: u32 = 27; -pub const SIGVTALRM: u32 = 28; -pub const SIGPROF: u32 = 29; -pub const SIGXCPU: u32 = 30; -pub const SIGXFSZ: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 128; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_RESTART: u32 = 268435456; -pub const SA_SIGINFO: u32 = 8; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_NOCLDWAIT: u32 = 65536; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 3; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 23; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VMIN: u32 = 4; -pub const VTIME: u32 = 5; -pub const VEOL2: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSWTCH: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOF: u32 = 16; -pub const VEOL: u32 = 17; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const IEXTEN: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 8192; -pub const PENDIN: u32 = 16384; -pub const TOSTOP: u32 = 32768; -pub const ITOSTOP: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TIOCSER_TEMT: u32 = 1; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCGLTC: u32 = 29812; -pub const TIOCSLTC: u32 = 29813; -pub const TIOCGETP: u32 = 29704; -pub const TIOCSETP: u32 = 29705; -pub const TIOCSETN: u32 = 29706; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 16; -pub const TIOCM_SR: u32 = 32; -pub const TIOCM_CTS: u32 = 64; -pub const TIOCM_CAR: u32 = 256; -pub const TIOCM_CD: u32 = 256; -pub const TIOCM_RNG: u32 = 512; -pub const TIOCM_RI: u32 = 512; -pub const TIOCM_DSR: u32 = 1024; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_Linux: u32 = 5000; -pub const __NR_read: u32 = 5000; -pub const __NR_write: u32 = 5001; -pub const __NR_open: u32 = 5002; -pub const __NR_close: u32 = 5003; -pub const __NR_stat: u32 = 5004; -pub const __NR_fstat: u32 = 5005; -pub const __NR_lstat: u32 = 5006; -pub const __NR_poll: u32 = 5007; -pub const __NR_lseek: u32 = 5008; -pub const __NR_mmap: u32 = 5009; -pub const __NR_mprotect: u32 = 5010; -pub const __NR_munmap: u32 = 5011; -pub const __NR_brk: u32 = 5012; -pub const __NR_rt_sigaction: u32 = 5013; -pub const __NR_rt_sigprocmask: u32 = 5014; -pub const __NR_ioctl: u32 = 5015; -pub const __NR_pread64: u32 = 5016; -pub const __NR_pwrite64: u32 = 5017; -pub const __NR_readv: u32 = 5018; -pub const __NR_writev: u32 = 5019; -pub const __NR_access: u32 = 5020; -pub const __NR_pipe: u32 = 5021; -pub const __NR__newselect: u32 = 5022; -pub const __NR_sched_yield: u32 = 5023; -pub const __NR_mremap: u32 = 5024; -pub const __NR_msync: u32 = 5025; -pub const __NR_mincore: u32 = 5026; -pub const __NR_madvise: u32 = 5027; -pub const __NR_shmget: u32 = 5028; -pub const __NR_shmat: u32 = 5029; -pub const __NR_shmctl: u32 = 5030; -pub const __NR_dup: u32 = 5031; -pub const __NR_dup2: u32 = 5032; -pub const __NR_pause: u32 = 5033; -pub const __NR_nanosleep: u32 = 5034; -pub const __NR_getitimer: u32 = 5035; -pub const __NR_setitimer: u32 = 5036; -pub const __NR_alarm: u32 = 5037; -pub const __NR_getpid: u32 = 5038; -pub const __NR_sendfile: u32 = 5039; -pub const __NR_socket: u32 = 5040; -pub const __NR_connect: u32 = 5041; -pub const __NR_accept: u32 = 5042; -pub const __NR_sendto: u32 = 5043; -pub const __NR_recvfrom: u32 = 5044; -pub const __NR_sendmsg: u32 = 5045; -pub const __NR_recvmsg: u32 = 5046; -pub const __NR_shutdown: u32 = 5047; -pub const __NR_bind: u32 = 5048; -pub const __NR_listen: u32 = 5049; -pub const __NR_getsockname: u32 = 5050; -pub const __NR_getpeername: u32 = 5051; -pub const __NR_socketpair: u32 = 5052; -pub const __NR_setsockopt: u32 = 5053; -pub const __NR_getsockopt: u32 = 5054; -pub const __NR_clone: u32 = 5055; -pub const __NR_fork: u32 = 5056; -pub const __NR_execve: u32 = 5057; -pub const __NR_exit: u32 = 5058; -pub const __NR_wait4: u32 = 5059; -pub const __NR_kill: u32 = 5060; -pub const __NR_uname: u32 = 5061; -pub const __NR_semget: u32 = 5062; -pub const __NR_semop: u32 = 5063; -pub const __NR_semctl: u32 = 5064; -pub const __NR_shmdt: u32 = 5065; -pub const __NR_msgget: u32 = 5066; -pub const __NR_msgsnd: u32 = 5067; -pub const __NR_msgrcv: u32 = 5068; -pub const __NR_msgctl: u32 = 5069; -pub const __NR_fcntl: u32 = 5070; -pub const __NR_flock: u32 = 5071; -pub const __NR_fsync: u32 = 5072; -pub const __NR_fdatasync: u32 = 5073; -pub const __NR_truncate: u32 = 5074; -pub const __NR_ftruncate: u32 = 5075; -pub const __NR_getdents: u32 = 5076; -pub const __NR_getcwd: u32 = 5077; -pub const __NR_chdir: u32 = 5078; -pub const __NR_fchdir: u32 = 5079; -pub const __NR_rename: u32 = 5080; -pub const __NR_mkdir: u32 = 5081; -pub const __NR_rmdir: u32 = 5082; -pub const __NR_creat: u32 = 5083; -pub const __NR_link: u32 = 5084; -pub const __NR_unlink: u32 = 5085; -pub const __NR_symlink: u32 = 5086; -pub const __NR_readlink: u32 = 5087; -pub const __NR_chmod: u32 = 5088; -pub const __NR_fchmod: u32 = 5089; -pub const __NR_chown: u32 = 5090; -pub const __NR_fchown: u32 = 5091; -pub const __NR_lchown: u32 = 5092; -pub const __NR_umask: u32 = 5093; -pub const __NR_gettimeofday: u32 = 5094; -pub const __NR_getrlimit: u32 = 5095; -pub const __NR_getrusage: u32 = 5096; -pub const __NR_sysinfo: u32 = 5097; -pub const __NR_times: u32 = 5098; -pub const __NR_ptrace: u32 = 5099; -pub const __NR_getuid: u32 = 5100; -pub const __NR_syslog: u32 = 5101; -pub const __NR_getgid: u32 = 5102; -pub const __NR_setuid: u32 = 5103; -pub const __NR_setgid: u32 = 5104; -pub const __NR_geteuid: u32 = 5105; -pub const __NR_getegid: u32 = 5106; -pub const __NR_setpgid: u32 = 5107; -pub const __NR_getppid: u32 = 5108; -pub const __NR_getpgrp: u32 = 5109; -pub const __NR_setsid: u32 = 5110; -pub const __NR_setreuid: u32 = 5111; -pub const __NR_setregid: u32 = 5112; -pub const __NR_getgroups: u32 = 5113; -pub const __NR_setgroups: u32 = 5114; -pub const __NR_setresuid: u32 = 5115; -pub const __NR_getresuid: u32 = 5116; -pub const __NR_setresgid: u32 = 5117; -pub const __NR_getresgid: u32 = 5118; -pub const __NR_getpgid: u32 = 5119; -pub const __NR_setfsuid: u32 = 5120; -pub const __NR_setfsgid: u32 = 5121; -pub const __NR_getsid: u32 = 5122; -pub const __NR_capget: u32 = 5123; -pub const __NR_capset: u32 = 5124; -pub const __NR_rt_sigpending: u32 = 5125; -pub const __NR_rt_sigtimedwait: u32 = 5126; -pub const __NR_rt_sigqueueinfo: u32 = 5127; -pub const __NR_rt_sigsuspend: u32 = 5128; -pub const __NR_sigaltstack: u32 = 5129; -pub const __NR_utime: u32 = 5130; -pub const __NR_mknod: u32 = 5131; -pub const __NR_personality: u32 = 5132; -pub const __NR_ustat: u32 = 5133; -pub const __NR_statfs: u32 = 5134; -pub const __NR_fstatfs: u32 = 5135; -pub const __NR_sysfs: u32 = 5136; -pub const __NR_getpriority: u32 = 5137; -pub const __NR_setpriority: u32 = 5138; -pub const __NR_sched_setparam: u32 = 5139; -pub const __NR_sched_getparam: u32 = 5140; -pub const __NR_sched_setscheduler: u32 = 5141; -pub const __NR_sched_getscheduler: u32 = 5142; -pub const __NR_sched_get_priority_max: u32 = 5143; -pub const __NR_sched_get_priority_min: u32 = 5144; -pub const __NR_sched_rr_get_interval: u32 = 5145; -pub const __NR_mlock: u32 = 5146; -pub const __NR_munlock: u32 = 5147; -pub const __NR_mlockall: u32 = 5148; -pub const __NR_munlockall: u32 = 5149; -pub const __NR_vhangup: u32 = 5150; -pub const __NR_pivot_root: u32 = 5151; -pub const __NR__sysctl: u32 = 5152; -pub const __NR_prctl: u32 = 5153; -pub const __NR_adjtimex: u32 = 5154; -pub const __NR_setrlimit: u32 = 5155; -pub const __NR_chroot: u32 = 5156; -pub const __NR_sync: u32 = 5157; -pub const __NR_acct: u32 = 5158; -pub const __NR_settimeofday: u32 = 5159; -pub const __NR_mount: u32 = 5160; -pub const __NR_umount2: u32 = 5161; -pub const __NR_swapon: u32 = 5162; -pub const __NR_swapoff: u32 = 5163; -pub const __NR_reboot: u32 = 5164; -pub const __NR_sethostname: u32 = 5165; -pub const __NR_setdomainname: u32 = 5166; -pub const __NR_create_module: u32 = 5167; -pub const __NR_init_module: u32 = 5168; -pub const __NR_delete_module: u32 = 5169; -pub const __NR_get_kernel_syms: u32 = 5170; -pub const __NR_query_module: u32 = 5171; -pub const __NR_quotactl: u32 = 5172; -pub const __NR_nfsservctl: u32 = 5173; -pub const __NR_getpmsg: u32 = 5174; -pub const __NR_putpmsg: u32 = 5175; -pub const __NR_afs_syscall: u32 = 5176; -pub const __NR_reserved177: u32 = 5177; -pub const __NR_gettid: u32 = 5178; -pub const __NR_readahead: u32 = 5179; -pub const __NR_setxattr: u32 = 5180; -pub const __NR_lsetxattr: u32 = 5181; -pub const __NR_fsetxattr: u32 = 5182; -pub const __NR_getxattr: u32 = 5183; -pub const __NR_lgetxattr: u32 = 5184; -pub const __NR_fgetxattr: u32 = 5185; -pub const __NR_listxattr: u32 = 5186; -pub const __NR_llistxattr: u32 = 5187; -pub const __NR_flistxattr: u32 = 5188; -pub const __NR_removexattr: u32 = 5189; -pub const __NR_lremovexattr: u32 = 5190; -pub const __NR_fremovexattr: u32 = 5191; -pub const __NR_tkill: u32 = 5192; -pub const __NR_reserved193: u32 = 5193; -pub const __NR_futex: u32 = 5194; -pub const __NR_sched_setaffinity: u32 = 5195; -pub const __NR_sched_getaffinity: u32 = 5196; -pub const __NR_cacheflush: u32 = 5197; -pub const __NR_cachectl: u32 = 5198; -pub const __NR_sysmips: u32 = 5199; -pub const __NR_io_setup: u32 = 5200; -pub const __NR_io_destroy: u32 = 5201; -pub const __NR_io_getevents: u32 = 5202; -pub const __NR_io_submit: u32 = 5203; -pub const __NR_io_cancel: u32 = 5204; -pub const __NR_exit_group: u32 = 5205; -pub const __NR_lookup_dcookie: u32 = 5206; -pub const __NR_epoll_create: u32 = 5207; -pub const __NR_epoll_ctl: u32 = 5208; -pub const __NR_epoll_wait: u32 = 5209; -pub const __NR_remap_file_pages: u32 = 5210; -pub const __NR_rt_sigreturn: u32 = 5211; -pub const __NR_set_tid_address: u32 = 5212; -pub const __NR_restart_syscall: u32 = 5213; -pub const __NR_semtimedop: u32 = 5214; -pub const __NR_fadvise64: u32 = 5215; -pub const __NR_timer_create: u32 = 5216; -pub const __NR_timer_settime: u32 = 5217; -pub const __NR_timer_gettime: u32 = 5218; -pub const __NR_timer_getoverrun: u32 = 5219; -pub const __NR_timer_delete: u32 = 5220; -pub const __NR_clock_settime: u32 = 5221; -pub const __NR_clock_gettime: u32 = 5222; -pub const __NR_clock_getres: u32 = 5223; -pub const __NR_clock_nanosleep: u32 = 5224; -pub const __NR_tgkill: u32 = 5225; -pub const __NR_utimes: u32 = 5226; -pub const __NR_mbind: u32 = 5227; -pub const __NR_get_mempolicy: u32 = 5228; -pub const __NR_set_mempolicy: u32 = 5229; -pub const __NR_mq_open: u32 = 5230; -pub const __NR_mq_unlink: u32 = 5231; -pub const __NR_mq_timedsend: u32 = 5232; -pub const __NR_mq_timedreceive: u32 = 5233; -pub const __NR_mq_notify: u32 = 5234; -pub const __NR_mq_getsetattr: u32 = 5235; -pub const __NR_vserver: u32 = 5236; -pub const __NR_waitid: u32 = 5237; -pub const __NR_add_key: u32 = 5239; -pub const __NR_request_key: u32 = 5240; -pub const __NR_keyctl: u32 = 5241; -pub const __NR_set_thread_area: u32 = 5242; -pub const __NR_inotify_init: u32 = 5243; -pub const __NR_inotify_add_watch: u32 = 5244; -pub const __NR_inotify_rm_watch: u32 = 5245; -pub const __NR_migrate_pages: u32 = 5246; -pub const __NR_openat: u32 = 5247; -pub const __NR_mkdirat: u32 = 5248; -pub const __NR_mknodat: u32 = 5249; -pub const __NR_fchownat: u32 = 5250; -pub const __NR_futimesat: u32 = 5251; -pub const __NR_newfstatat: u32 = 5252; -pub const __NR_unlinkat: u32 = 5253; -pub const __NR_renameat: u32 = 5254; -pub const __NR_linkat: u32 = 5255; -pub const __NR_symlinkat: u32 = 5256; -pub const __NR_readlinkat: u32 = 5257; -pub const __NR_fchmodat: u32 = 5258; -pub const __NR_faccessat: u32 = 5259; -pub const __NR_pselect6: u32 = 5260; -pub const __NR_ppoll: u32 = 5261; -pub const __NR_unshare: u32 = 5262; -pub const __NR_splice: u32 = 5263; -pub const __NR_sync_file_range: u32 = 5264; -pub const __NR_tee: u32 = 5265; -pub const __NR_vmsplice: u32 = 5266; -pub const __NR_move_pages: u32 = 5267; -pub const __NR_set_robust_list: u32 = 5268; -pub const __NR_get_robust_list: u32 = 5269; -pub const __NR_kexec_load: u32 = 5270; -pub const __NR_getcpu: u32 = 5271; -pub const __NR_epoll_pwait: u32 = 5272; -pub const __NR_ioprio_set: u32 = 5273; -pub const __NR_ioprio_get: u32 = 5274; -pub const __NR_utimensat: u32 = 5275; -pub const __NR_signalfd: u32 = 5276; -pub const __NR_timerfd: u32 = 5277; -pub const __NR_eventfd: u32 = 5278; -pub const __NR_fallocate: u32 = 5279; -pub const __NR_timerfd_create: u32 = 5280; -pub const __NR_timerfd_gettime: u32 = 5281; -pub const __NR_timerfd_settime: u32 = 5282; -pub const __NR_signalfd4: u32 = 5283; -pub const __NR_eventfd2: u32 = 5284; -pub const __NR_epoll_create1: u32 = 5285; -pub const __NR_dup3: u32 = 5286; -pub const __NR_pipe2: u32 = 5287; -pub const __NR_inotify_init1: u32 = 5288; -pub const __NR_preadv: u32 = 5289; -pub const __NR_pwritev: u32 = 5290; -pub const __NR_rt_tgsigqueueinfo: u32 = 5291; -pub const __NR_perf_event_open: u32 = 5292; -pub const __NR_accept4: u32 = 5293; -pub const __NR_recvmmsg: u32 = 5294; -pub const __NR_fanotify_init: u32 = 5295; -pub const __NR_fanotify_mark: u32 = 5296; -pub const __NR_prlimit64: u32 = 5297; -pub const __NR_name_to_handle_at: u32 = 5298; -pub const __NR_open_by_handle_at: u32 = 5299; -pub const __NR_clock_adjtime: u32 = 5300; -pub const __NR_syncfs: u32 = 5301; -pub const __NR_sendmmsg: u32 = 5302; -pub const __NR_setns: u32 = 5303; -pub const __NR_process_vm_readv: u32 = 5304; -pub const __NR_process_vm_writev: u32 = 5305; -pub const __NR_kcmp: u32 = 5306; -pub const __NR_finit_module: u32 = 5307; -pub const __NR_getdents64: u32 = 5308; -pub const __NR_sched_setattr: u32 = 5309; -pub const __NR_sched_getattr: u32 = 5310; -pub const __NR_renameat2: u32 = 5311; -pub const __NR_seccomp: u32 = 5312; -pub const __NR_getrandom: u32 = 5313; -pub const __NR_memfd_create: u32 = 5314; -pub const __NR_bpf: u32 = 5315; -pub const __NR_execveat: u32 = 5316; -pub const __NR_userfaultfd: u32 = 5317; -pub const __NR_membarrier: u32 = 5318; -pub const __NR_mlock2: u32 = 5319; -pub const __NR_copy_file_range: u32 = 5320; -pub const __NR_preadv2: u32 = 5321; -pub const __NR_pwritev2: u32 = 5322; -pub const __NR_pkey_mprotect: u32 = 5323; -pub const __NR_pkey_alloc: u32 = 5324; -pub const __NR_pkey_free: u32 = 5325; -pub const __NR_statx: u32 = 5326; -pub const __NR_rseq: u32 = 5327; -pub const __NR_io_pgetevents: u32 = 5328; -pub const __NR_pidfd_send_signal: u32 = 5424; -pub const __NR_io_uring_setup: u32 = 5425; -pub const __NR_io_uring_enter: u32 = 5426; -pub const __NR_io_uring_register: u32 = 5427; -pub const __NR_open_tree: u32 = 5428; -pub const __NR_move_mount: u32 = 5429; -pub const __NR_fsopen: u32 = 5430; -pub const __NR_fsconfig: u32 = 5431; -pub const __NR_fsmount: u32 = 5432; -pub const __NR_fspick: u32 = 5433; -pub const __NR_pidfd_open: u32 = 5434; -pub const __NR_clone3: u32 = 5435; -pub const __NR_close_range: u32 = 5436; -pub const __NR_openat2: u32 = 5437; -pub const __NR_pidfd_getfd: u32 = 5438; -pub const __NR_faccessat2: u32 = 5439; -pub const __NR_process_madvise: u32 = 5440; -pub const __NR_epoll_pwait2: u32 = 5441; -pub const __NR_mount_setattr: u32 = 5442; -pub const __NR_quotactl_fd: u32 = 5443; -pub const __NR_landlock_create_ruleset: u32 = 5444; -pub const __NR_landlock_add_rule: u32 = 5445; -pub const __NR_landlock_restrict_self: u32 = 5446; -pub const __NR_process_mrelease: u32 = 5448; -pub const __NR_futex_waitv: u32 = 5449; -pub const __NR_set_mempolicy_home_node: u32 = 5450; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 128; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 128; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416; -pub const TFD_CREATE_FLAGS: u32 = 524416; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const POLLWRNORM: u32 = 4; -pub const TCSANOW: u32 = 21518; -pub const TCSADRAIN: u32 = 21519; -pub const TCSAFLUSH: u32 = 21520; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips64/if_ether.rs b/third_party/rust/linux-raw-sys/src/mips64/if_ether.rs deleted file mode 100644 index 8a223bc5a6dd..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/if_ether.rs +++ /dev/null @@ -1,177 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/mips64/io_uring.rs b/third_party/rust/linux-raw-sys/src/mips64/io_uring.rs deleted file mode 100644 index 1c8744c20f95..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/io_uring.rs +++ /dev/null @@ -1,1093 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/mips64/ioctl.rs b/third_party/rust/linux-raw-sys/src/mips64/ioctl.rs deleted file mode 100644 index f24f7e0f7dc8..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/ioctl.rs +++ /dev/null @@ -1,1587 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 18047; -pub const FIONBIO: u32 = 26238; -pub const FIOCLEX: u32 = 26113; -pub const FIONCLEX: u32 = 26114; -pub const FIOASYNC: u32 = 26237; -pub const FIOQSIZE: u32 = 26239; -pub const TCXONC: u32 = 21510; -pub const TCFLSH: u32 = 21511; -pub const TIOCSCTTY: u32 = 21632; -pub const TIOCSPGRP: u32 = 2147775606; -pub const TIOCOUTQ: u32 = 29810; -pub const TIOCSTI: u32 = 21618; -pub const TIOCSWINSZ: u32 = 2148037735; -pub const TIOCMGET: u32 = 29725; -pub const TIOCMBIS: u32 = 29723; -pub const TIOCMBIC: u32 = 29724; -pub const TIOCMSET: u32 = 29722; -pub const TIOCSSOFTCAR: u32 = 21634; -pub const TIOCLINUX: u32 = 21635; -pub const TIOCCONS: u32 = 2147775608; -pub const TIOCSSERIAL: u32 = 21637; -pub const TIOCPKT: u32 = 21616; -pub const TIOCNOTTY: u32 = 21617; -pub const TIOCSETD: u32 = 29697; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSPTLCK: u32 = 2147767345; -pub const TIOCSIG: u32 = 2147767350; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21640; -pub const TIOCSERGWILD: u32 = 21641; -pub const TIOCSERSWILD: u32 = 21642; -pub const TIOCSLCKTRMIOS: u32 = 21644; -pub const TIOCSERGSTRUCT: u32 = 21645; -pub const TIOCSERGETLSR: u32 = 21646; -pub const TIOCSERGETMULTI: u32 = 21647; -pub const TIOCSERSETMULTI: u32 = 21648; -pub const TIOCMIWAIT: u32 = 21649; -pub const TCGETS: u32 = 21517; -pub const TCGETA: u32 = 21505; -pub const TCSBRK: u32 = 21509; -pub const TCSBRKP: u32 = 21638; -pub const TCSETA: u32 = 21506; -pub const TCSETAF: u32 = 21508; -pub const TCSETAW: u32 = 21507; -pub const TIOCEXCL: u32 = 29709; -pub const TIOCNXCL: u32 = 29710; -pub const TIOCGDEV: u32 = 1074025522; -pub const TIOCGEXCL: u32 = 1074025536; -pub const TIOCGICOUNT: u32 = 21650; -pub const TIOCGLCKTRMIOS: u32 = 21643; -pub const TIOCGPGRP: u32 = 1074033783; -pub const TIOCGPKT: u32 = 1074025528; -pub const TIOCGPTLCK: u32 = 1074025529; -pub const TIOCGPTN: u32 = 1074025520; -pub const TIOCGPTPEER: u32 = 536892481; -pub const TIOCGSERIAL: u32 = 21636; -pub const TIOCGSID: u32 = 29718; -pub const TIOCGSOFTCAR: u32 = 21633; -pub const TIOCGWINSZ: u32 = 1074295912; -pub const TCGETS2: u32 = 1076909098; -pub const TCSETS: u32 = 21518; -pub const TCSETS2: u32 = 2150650923; -pub const TCSETSF: u32 = 21520; -pub const TCSETSF2: u32 = 2150650925; -pub const TCSETSW: u32 = 21519; -pub const TCSETSW2: u32 = 2150650924; -pub const TIOCGETD: u32 = 29696; -pub const TIOCGETP: u32 = 29704; -pub const TIOCGLTC: u32 = 29812; -pub const MTIOCGET: u32 = 1077439746; -pub const BLKSSZGET: u32 = 536875624; -pub const BLKPBSZGET: u32 = 536875643; -pub const BLKROSET: u32 = 536875613; -pub const BLKROGET: u32 = 536875614; -pub const BLKRRPART: u32 = 536875615; -pub const BLKGETSIZE: u32 = 536875616; -pub const BLKFLSBUF: u32 = 536875617; -pub const BLKRASET: u32 = 536875618; -pub const BLKRAGET: u32 = 536875619; -pub const BLKFRASET: u32 = 536875620; -pub const BLKFRAGET: u32 = 536875621; -pub const BLKSECTSET: u32 = 536875622; -pub const BLKSECTGET: u32 = 536875623; -pub const BLKPG: u32 = 536875625; -pub const BLKBSZGET: u32 = 1074270832; -pub const BLKBSZSET: u32 = 2148012657; -pub const BLKGETSIZE64: u32 = 1074270834; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 536875636; -pub const BLKTRACESTOP: u32 = 536875637; -pub const BLKTRACETEARDOWN: u32 = 536875638; -pub const BLKDISCARD: u32 = 536875639; -pub const BLKIOMIN: u32 = 536875640; -pub const BLKIOOPT: u32 = 536875641; -pub const BLKALIGNOFF: u32 = 536875642; -pub const BLKDISCARDZEROES: u32 = 536875644; -pub const BLKSECDISCARD: u32 = 536875645; -pub const BLKROTATIONAL: u32 = 536875646; -pub const BLKZEROOUT: u32 = 536875647; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 1074833921; -pub const UFFDIO_WAKE: u32 = 1074833922; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 536917761; -pub const NS_GET_PARENT: u32 = 536917762; -pub const NS_GET_NSTYPE: u32 = 536917763; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 2147772028; -pub const FIOGETOWN: u32 = 1074030203; -pub const SIOCATMARK: u32 = 1074033415; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 18047; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 536870913; -pub const FIGETBSZ: u32 = 536870914; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 2147783689; -pub const FICLONERANGE: u32 = 2149618701; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 1074292225; -pub const FS_IOC_SETFLAGS: u32 = 2148034050; -pub const FS_IOC_GETVERSION: u32 = 1074296321; -pub const FS_IOC_SETVERSION: u32 = 2148038146; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 1074030081; -pub const FS_IOC32_SETFLAGS: u32 = 2147771906; -pub const FS_IOC32_GETVERSION: u32 = 1074034177; -pub const FS_IOC32_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FSGETXATTR: u32 = 1075599391; -pub const FS_IOC_FSSETXATTR: u32 = 2149341216; -pub const FS_IOC_GETFSLABEL: u32 = 1090556977; -pub const FS_IOC_SETFSLABEL: u32 = 2164298802; -pub const EXT4_IOC_GETVERSION: u32 = 1074292227; -pub const EXT4_IOC_SETVERSION: u32 = 2148034052; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074296321; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; -pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; -pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; -pub const EXT4_IOC_MIGRATE: u32 = 536897033; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; -pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; -pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; -pub const EXT4_IOC_GETSTATE: u32 = 2147771945; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; -pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; -pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 2148557194; -pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 2147767499; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1076915457; -pub const ENI_SETMULT: u32 = 2148557159; -pub const RIO_GET_EVENT_MASK: u32 = 1074031886; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; -pub const KVM_SET_BOOT_CPU_ID: u32 = 536915576; -pub const KVM_SET_MP_STATE: u32 = 2147790489; -pub const KVM_GET_MP_STATE: u32 = 1074048664; -pub const KVM_GET_API_VERSION: u32 = 536915456; -pub const KVM_S390_GET_SKEYS: u32 = 2151722674; -pub const KVM_SET_ONE_REG: u32 = 2148576940; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 2149625414; -pub const KVM_S390_INTERRUPT: u32 = 2148576916; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 1073786508; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 2148576884; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 1074835131; -pub const KVM_S390_UCAS_MAP: u32 = 2149101136; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 2151722660; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221794490; -pub const KVM_CREATE_PIT2: u32 = 2151722615; -pub const KVM_S390_VCPU_FAULT: u32 = 2148052562; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 2148576871; -pub const KVM_SET_VAPIC_ADDR: u32 = 2148052627; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 2148576918; -pub const KVM_X86_SETUP_MCE: u32 = 2148052636; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 2151722610; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 2152246985; -pub const KVM_GET_CLOCK: u32 = 1076932220; -pub const KVM_SET_FPU: u32 = 2147528333; -pub const KVM_KVMCLOCK_CTRL: u32 = 536915629; -pub const KVM_PPC_GET_PVINFO: u32 = 2155916961; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 1074310813; -pub const KVM_S390_GET_IRQ_STATE: u32 = 2149625526; -pub const KVM_GET_DEVICE_ATTR: u32 = 2149101282; -pub const KVM_S390_INITIAL_RESET: u32 = 536915607; -pub const KVM_SET_REGS: u32 = 2165878402; -pub const KVM_GET_TSC_KHZ: u32 = 536915619; -pub const KVM_CHECK_EXTENSION: u32 = 536915459; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 1074835118; -pub const KVM_GET_DIRTY_LOG: u32 = 2148576834; -pub const KVM_S390_SET_IRQ_STATE: u32 = 2149625525; -pub const KVM_S390_NORMAL_RESET: u32 = 536915651; -pub const KVM_SET_SIGNAL_MASK: u32 = 2147790475; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 2152246987; -pub const KVM_SET_GSI_ROUTING: u32 = 2148052586; -pub const KVM_CREATE_VCPU: u32 = 536915521; -pub const KVM_S390_UCAS_UNMAP: u32 = 2149101137; -pub const KVM_S390_STORE_STATUS: u32 = 2148052629; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 2148576872; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 2151722608; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 536915462; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 2148576939; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 2148576939; -pub const KVM_DIRTY_TLB: u32 = 2148576938; -pub const KVM_NMI: u32 = 536915610; -pub const KVM_HYPERV_EVENTFD: u32 = 2149101245; -pub const KVM_S390_MEM_OP: u32 = 2151722673; -pub const KVM_PPC_SVM_OFF: u32 = 536915635; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 1074835117; -pub const KVM_INTERRUPT: u32 = 2147790470; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 1073786499; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 2148052552; -pub const KVM_GET_REGS: u32 = 1092136577; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 536915552; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 1077980777; -pub const KVM_SET_NR_MMU_PAGES: u32 = 536915524; -pub const KVM_IOEVENTFD: u32 = 2151722617; -pub const KVM_RUN: u32 = 536915584; -pub const KVM_S390_SET_SKEYS: u32 = 2151722675; -pub const KVM_SET_DEVICE_ATTR: u32 = 2149101281; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 2151722613; -pub const KVM_SMI: u32 = 536915639; -pub const KVM_SET_TSS_ADDR: u32 = 536915527; -pub const KVM_GET_NR_MMU_PAGES: u32 = 536915525; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 536915569; -pub const KVM_HAS_DEVICE_ATTR: u32 = 2149101283; -pub const KVM_IRQFD: u32 = 2149625462; -pub const KVM_S390_SET_CMMA_BITS: u32 = 2149625529; -pub const KVM_SET_IRQCHIP: u32 = 1107865187; -pub const KVM_SIGNAL_MSI: u32 = 2149625509; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 536915460; -pub const KVM_CREATE_VM: u32 = 536915457; -pub const KVM_S390_CLEAR_RESET: u32 = 536915652; -pub const KVM_RESET_DIRTY_RINGS: u32 = 536915655; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 2148052595; -pub const KVM_CREATE_PIT: u32 = 536915556; -pub const KVM_SET_GUEST_DEBUG: u32 = 2148052635; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 2147790530; -pub const KVM_SET_CLOCK: u32 = 2150674043; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 1112583846; -pub const KVM_SET_TSC_KHZ: u32 = 536915618; -pub const KVM_S390_IRQ: u32 = 2152246964; -pub const KVM_ENABLE_CAP: u32 = 2154344099; -pub const KVM_IRQ_LINE: u32 = 2148052577; -pub const KVM_SET_SREGS: u32 = 2147528324; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 1074835132; -pub const KVM_GET_STATS_FD: u32 = 536915662; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; -pub const CHIOMOVE: u32 = 2148819713; -pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; -pub const BTRFS_IOC_SYNC: u32 = 536908808; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 2147772690; -pub const VIDIOC_DQEVENT: u32 = 1082676825; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; -pub const UI_SET_KEYBIT: u32 = 2147767653; -pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 2148052754; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 1074030850; -pub const PPGETTIME: u32 = 1074819221; -pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; -pub const ATM_SETBACKEND: u32 = 2147639794; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 536888968; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 536871513; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; -pub const NILFS_IOCTL_SYNC: u32 = 1074294410; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 2147767662; -pub const TUNSETFILTEREBPF: u32 = 1074025697; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 1074026244; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148557198; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 1075839492; -pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148557152; -pub const PTP_SYS_OFFSET2: u32 = 2202025230; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; -pub const RTC_EPOCH_READ: u32 = 1074294797; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148557200; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 2153534723; -pub const ISST_IF_IO_CMD: u32 = 2148072962; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 1074008709; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; -pub const PPPIOCGCHAN: u32 = 1074033719; -pub const EVIOCGVERSION: u32 = 1074021633; -pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; -pub const USBDEVFS_REAPURBNDELAY: u32 = 2148029709; -pub const RNDZAPENTCNT: u32 = 536891908; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 536892643; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; -pub const VHOST_SET_VRING_ERR: u32 = 2148052770; -pub const VDUSE_VQ_SETUP: u32 = 2149613844; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; -pub const STP_SET_OPTIONS: u32 = 2148017410; -pub const FBIO_RADEON_GET_MIRROR: u32 = 1074282499; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 2149078720; -pub const IPMICTL_SEND_COMMAND: u32 = 1076390157; -pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; -pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; -pub const CHIOSVOLTAG: u32 = 2150654738; -pub const ATM_SETESIF: u32 = 2148557197; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; -pub const PMU_IOC_GET_MODEL: u32 = 1074283011; -pub const JSIOCGBTNMAP: u32 = 1140877876; -pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 536871489; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 536892694; -pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; -pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 1082130961; -pub const TUNSETVNETLE: u32 = 2147767516; -pub const PHN_SETREG: u32 = 2148036614; -pub const PPPIOCDETACH: u32 = 2147775548; -pub const MMTIMER_GETRES: u32 = 1074294017; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 1074032794; -pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 1074310688; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; -pub const SONYPI_IOCGBLUE: u32 = 1073837576; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148557107; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 1074308100; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 536917568; -pub const PPPIOCGASYNCMAP: u32 = 1074033752; -pub const EVIOCGKEYCODE_V2: u32 = 1076380932; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 2149074956; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; -pub const PTP_EXTTS_REQUEST: u32 = 2148547842; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; -pub const JSIOCGAXES: u32 = 1073834513; -pub const HIDIOCSFLAG: u32 = 2147764239; -pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; -pub const PPWDATA: u32 = 2147577990; -pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; -pub const FDGETMAXERRS: u32 = 1075053070; -pub const TUNSETQUEUE: u32 = 2147767513; -pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 536914689; -pub const NBD_SET_TIMEOUT: u32 = 536914697; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; -pub const RIO_UNMAP_INBOUND: u32 = 2148035858; -pub const ATM_QUERYLOOP: u32 = 2148557140; -pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 536891910; -pub const VIDIOC_QUERYSTD: u32 = 1074288191; -pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 1076909578; -pub const PTP_ENABLE_PPS2: u32 = 2147761421; -pub const PCITEST_CLEAR_IRQ: u32 = 536891408; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; -pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; -pub const JSIOCGAXMAP: u32 = 1077963314; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; -pub const RTC_WIE_OFF: u32 = 536899600; -pub const PPGETMODE: u32 = 1074032792; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 2202025221; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 536908806; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; -pub const TUNDETACHFILTER: u32 = 2148553942; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 2148561101; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 1074033729; -pub const BLKGETZONESZ: u32 = 1074008708; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 1073837580; -pub const UI_SET_MSCBIT: u32 = 2147767656; -pub const APM_IOC_SUSPEND: u32 = 536887554; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 1075867665; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 1074812174; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; -pub const EVIOCSFF: u32 = 2150647168; -pub const TUNSETGROUP: u32 = 2147767502; -pub const EVIOCGKEYCODE: u32 = 1074283780; -pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 536871514; -pub const TUNSETOFFLOAD: u32 = 2147767504; -pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148557192; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; -pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; -pub const UI_ABS_SETUP: u32 = 2149340420; -pub const UI_DEV_DESTROY: u32 = 536892674; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 536899585; -pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; -pub const PPPIOCSDEBUG: u32 = 2147775552; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 2147775570; -pub const CCISS_DEREGDISK: u32 = 536887820; -pub const UI_DEV_CREATE: u32 = 536892673; -pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; -pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 1074283010; -pub const PPPIOCSASYNCMAP: u32 = 2147775575; -pub const I2OEVTGET: u32 = 1080584459; -pub const NVME_IOCTL_RESET: u32 = 536890948; -pub const PPYIELD: u32 = 536899725; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 2147767522; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 536899599; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2150657280; -pub const RTC_SET_TIME: u32 = 2149871626; -pub const VHOST_RESET_OWNER: u32 = 536915714; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 1074293825; -pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; -pub const HIDIOCGFLAG: u32 = 1074022414; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 2148577793; -pub const CCISS_GETFIRMVER: u32 = 1074020872; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 2147775547; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 2148561046; -pub const RTC_ALM_READ: u32 = 1076129800; -pub const VDUSE_SET_API_VERSION: u32 = 2148040961; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 536892695; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; -pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148557191; -pub const NBD_SET_SIZE: u32 = 536914690; -pub const UDF_GETVOLIDENT: u32 = 1074293826; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; -pub const UDF_GETEASIZE: u32 = 1074031680; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 536915713; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 2148557195; -pub const HPET_IE_ON: u32 = 536897537; -pub const PERF_EVENT_IOC_ID: u32 = 1074275335; -pub const TUNSETSNDBUF: u32 = 2147767508; -pub const PTP_PIN_SETFUNC: u32 = 2153790727; -pub const PPPIOCDISCONN: u32 = 536900665; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 536899727; -pub const PCITEST_MSI: u32 = 2147766275; -pub const FDWERRORCLR: u32 = 536871510; -pub const AUTOFS_IOC_FAIL: u32 = 536908641; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 2148029976; -pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; -pub const CCISS_GETDRIVVER: u32 = 1074020873; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; -pub const HPET_IRQFREQ: u32 = 2148034566; -pub const ATM_GETESI: u32 = 2148557189; -pub const CCISS_GETLUNINFO: u32 = 1074545169; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; -pub const UDMABUF_CREATE_LIST: u32 = 2148037955; -pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148557153; -pub const BR2684_SETFILT: u32 = 2149343632; -pub const RNDGETPOOL: u32 = 1074287106; -pub const PPS_GETPARAMS: u32 = 1074294945; -pub const IOC_PR_RESERVE: u32 = 2148561097; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074283009; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 536887822; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; -pub const VFIO_EEH_PE_OP: u32 = 536886137; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; -pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 2150913586; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 2147775549; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; -pub const PCITEST_LEGACY_IRQ: u32 = 536891394; -pub const USBDEVFS_SUBMITURB: u32 = 1077433610; -pub const AUTOFS_IOC_READY: u32 = 536908640; -pub const BTRFS_IOC_SEND: u32 = 2152240166; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 2214619699; -pub const PPPIOCSFLAGS: u32 = 2147775577; -pub const NVRAM_INIT: u32 = 536899648; -pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; -pub const BTRFS_IOC_BALANCE: u32 = 2415957004; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; -pub const STP_POLICY_ID_GET: u32 = 1074799873; -pub const PPSETFLAGS: u32 = 2147774619; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; -pub const PPPIOCGXASYNCMAP: u32 = 1075868752; -pub const VHOST_SET_VRING_CALL: u32 = 2148052769; -pub const LIRC_GET_FEATURES: u32 = 1074030848; -pub const GSMIOC_DISABLE_NET: u32 = 536889091; -pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; -pub const NBD_DO_IT: u32 = 536914691; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; -pub const EVIOCSCLOCKID: u32 = 2147763616; -pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; -pub const FSI_SCOM_RESET: u32 = 2147775235; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074283014; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 2149581379; -pub const TEE_IOC_INVOKE: u32 = 1074832387; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 2147579392; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 536899589; -pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; -pub const PPPIOCXFERUNIT: u32 = 536900686; -pub const WDIOC_GETTIMEOUT: u32 = 1074026247; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; -pub const FBIO_WAITFORVSYNC: u32 = 2147763744; -pub const RTC_PIE_OFF: u32 = 536899590; -pub const EVIOCGRAB: u32 = 2147763600; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 2148024834; -pub const EVIOCGREP: u32 = 1074283779; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2148017163; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 1074299136; -pub const RTC_RD_TIME: u32 = 1076129801; -pub const FDMSGOFF: u32 = 536871494; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; -pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; -pub const RIO_DEV_ADD: u32 = 2149608727; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 2148024324; -pub const PCITEST_GET_IRQTYPE: u32 = 536891401; -pub const JSIOCGVERSION: u32 = 1074031105; -pub const SONYPI_IOCSBLUE: u32 = 2147579401; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; -pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; -pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; -pub const VHOST_SET_VRING_NUM: u32 = 2148052752; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; -pub const PPPIOCGL2TPSTATS: u32 = 1078490166; -pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; -pub const PTP_PIN_SETFUNC2: u32 = 2153790736; -pub const CHIOEXCHANGE: u32 = 2149344002; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 2147767661; -pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; -pub const TUNSETIFF: u32 = 2147767498; -pub const CHIOPOSITION: u32 = 2148295427; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; -pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const EVIOCSMASK: u32 = 2148550035; -pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; -pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 2147774592; -pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 2149086530; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 2148036609; -pub const RNDADDTOENTCNT: u32 = 2147766785; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 536899586; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; -pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; -pub const PPPIOCSXASYNCMAP: u32 = 2149610575; -pub const CHIOGSTATUS: u32 = 2148557576; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; -pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; -pub const VHOST_GET_FEATURES: u32 = 1074310912; -pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; -pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; -pub const JSIOCGCORR: u32 = 1076128290; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 2148036622; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 2148557138; -pub const SCIF_LISTEN: u32 = 2147775234; -pub const NBD_CLEAR_QUE: u32 = 536914693; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 1074030863; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 2148794956; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; -pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; -pub const EVIOCRMFF: u32 = 2147763585; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 1073836165; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; -pub const TUNSETVNETHDRSZ: u32 = 2147767512; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 1078740736; -pub const LIRC_GET_SEND_MODE: u32 = 1074030849; -pub const PPPIOCSACTIVE: u32 = 2148561990; -pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; -pub const UI_END_FF_ERASE: u32 = 2148292043; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 536914698; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; -pub const REISERFS_IOC_UNPACK: u32 = 2148060417; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; -pub const RIO_SET_EVENT_MASK: u32 = 2147773709; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; -pub const I2OPASSTHRU: u32 = 1074817292; -pub const IOC_OPAL_SET_PW: u32 = 2183164128; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 2153010718; -pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 1074570240; -pub const VIDIOC_LOG_STATUS: u32 = 536892998; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; -pub const VHOST_SET_LOG_FD: u32 = 2147790599; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; -pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; -pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; -pub const JSIOCGBUTTONS: u32 = 1073834514; -pub const VFIO_IOMMU_ENABLE: u32 = 536886131; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 2147790711; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 2148816444; -pub const WDIOC_GETTEMP: u32 = 1074026243; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; -pub const UI_SET_LEDBIT: u32 = 2147767657; -pub const NBD_SET_SOCK: u32 = 536914688; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; -pub const FDFMTTRK: u32 = 2148270664; -pub const MMTIMER_GETBITS: u32 = 536898820; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; -pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; -pub const RTC_VL_READ: u32 = 1074032659; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 2149608728; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 2147579403; -pub const SPIOCSTYPE: u32 = 2148036865; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 1074025695; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 2154321353; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; -pub const PPPIOCSNPMODE: u32 = 2148037707; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 2147767505; -pub const TUNGETVNETLE: u32 = 1074025693; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; -pub const I2OVALIDATE: u32 = 1074030856; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1110471170; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; -pub const FDGETDRVSTAT: u32 = 1078985234; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 2147775541; -pub const LIRC_SET_SEND_MODE: u32 = 2147772689; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; -pub const ATM_GETTYPE: u32 = 2148557188; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 536871498; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; -pub const EVIOCGMASK: u32 = 1074808210; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 1074022148; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 2155872912; -pub const IOC_OPAL_SAVE: u32 = 2165862620; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 2147767514; -pub const CCISS_SETINTINFO: u32 = 2148024835; -pub const CM_IOSDBGLVL: u32 = 2148033530; -pub const RTC_VL_CLR: u32 = 536899604; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; -pub const CCISS_GETNODENAME: u32 = 1074807300; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; -pub const LPSETTIMEOUT_NEW: u32 = 2148533775; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 536871512; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 1074820159; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; -pub const PHN_SET_REGS: u32 = 2148036611; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148557155; -pub const MTIOCPOS: u32 = 1074294019; -pub const PMU_IOC_SLEEP: u32 = 536887808; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; -pub const VIDIOC_QUERYCAP: u32 = 1080579584; -pub const HPET_INFO: u32 = 1075341315; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2148030145; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 2147767500; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 2148028931; -pub const USBDEVFS_RESET: u32 = 536892692; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; -pub const FDGETDRVTYP: u32 = 1074790927; -pub const PPWCONTROL: u32 = 2147577988; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 536896357; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; -pub const PPPIOCSPASS: u32 = 2148561991; -pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; -pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; -pub const PPPIOCSMAXCID: u32 = 2147775569; -pub const PPSETPHASE: u32 = 2147774612; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; -pub const USBDEVFS_GET_SPEED: u32 = 536892703; -pub const SONET_GETFRAMING: u32 = 1074028822; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; -pub const PPS_GETCAP: u32 = 1074294947; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 536914696; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 536886132; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; -pub const SNAPSHOT_POWER_OFF: u32 = 536883984; -pub const APM_IOC_STANDBY: u32 = 536887553; -pub const PPPIOCGUNIT: u32 = 1074033750; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; -pub const PPPIOCGRASYNCMAP: u32 = 1074033749; -pub const MMTIMER_MMAPAVAIL: u32 = 536898822; -pub const I2OPASSTHRU32: u32 = 1074293004; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const UI_SET_SNDBIT: u32 = 2147767658; -pub const VIDIOC_G_AUDOUT: u32 = 1077171761; -pub const RTC_PLL_SET: u32 = 2149609490; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 2147790660; -pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; -pub const VDUSE_CREATE_DEV: u32 = 2169536770; -pub const FDFLUSH: u32 = 536871499; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148557300; -pub const FDSETPRM: u32 = 2149581378; -pub const ATM_GETSTATZ: u32 = 2148557137; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 2148028422; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; -pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; -pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; -pub const CHIOGVPARAMS: u32 = 1081107219; -pub const PTP_PEROUT_REQUEST: u32 = 2151169283; -pub const FSI_SCOM_CHECK: u32 = 1074033408; -pub const RTC_IRQP_READ: u32 = 1074294795; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; -pub const HIDIOCGRDESCSIZE: u32 = 1074022401; -pub const UI_GET_VERSION: u32 = 1074025773; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; -pub const CCISS_GETBUSTYPES: u32 = 1074020871; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 2147767654; -pub const VFIO_SET_IOMMU: u32 = 536886118; -pub const VIDIOC_S_MODULATOR: u32 = 2151962167; -pub const TUNGETFILTER: u32 = 1074812123; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 2148549125; -pub const FBIO_GETCONTROL2: u32 = 1074284169; -pub const TUNSETDEBUG: u32 = 2147767497; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 2417772564; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 1075856914; -pub const ATM_GETSTAT: u32 = 2148557136; -pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; -pub const TUNATTACHFILTER: u32 = 2148553941; -pub const UI_SET_ABSBIT: u32 = 2147767655; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; -pub const USBDEVFS_REAPURB32: u32 = 2147767564; -pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; -pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148557152; -pub const ATM_SETLOOP: u32 = 2148557139; -pub const ATMSIGD_CTRL: u32 = 536895984; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; -pub const SNAPSHOT_UNFREEZE: u32 = 536883970; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; -pub const PMU_IOC_HAS_ADB: u32 = 1074283012; -pub const I2OGETIOPS: u32 = 1075865856; -pub const VIDIOC_S_FBUF: u32 = 2150651403; -pub const PPRCONTROL: u32 = 1073836163; -pub const CHIOSPICKER: u32 = 2147771141; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; -pub const TUNGETSNDBUF: u32 = 1074025683; -pub const GSMIOC_SETCONF: u32 = 2152482561; -pub const IOC_PR_PREEMPT: u32 = 2149085387; -pub const KCOV_INIT_TRACE: u32 = 1074291457; -pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; -pub const MTIOCTOP: u32 = 2148035841; -pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 1074033747; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 1074033754; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148557199; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; -pub const PPPIOCGIDLE32: u32 = 1074295871; -pub const VFIO_DEVICE_RESET: u32 = 536886127; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 1074026241; -pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 2148028421; -pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074294523; -pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 1077171745; -pub const CCISS_RESCANDISK: u32 = 536887824; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; -pub const USBDEVFS_REAPURB: u32 = 2148029708; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; -pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; -pub const PCITEST_MSIX: u32 = 2147766279; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 1074820159; -pub const NVRAM_SETCKS: u32 = 536899649; -pub const WDIOC_GETSUPPORT: u32 = 1076385536; -pub const GSMIOC_ENABLE_NET: u32 = 2150909698; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 2150122756; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 2149084422; -pub const I2OEVTREG: u32 = 2148296970; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 1074283778; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 1074025696; -pub const ATM_GETNAMES: u32 = 2148557187; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148557154; -pub const BLKCLOSEZONE: u32 = 2148536967; -pub const SONET_GETFRSENSE: u32 = 1074159895; -pub const UI_SET_EVBIT: u32 = 2147767652; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 1090799620; -pub const PPPIOCATTCHAN: u32 = 2147775544; -pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; -pub const TUNGETFEATURES: u32 = 1074025679; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; -pub const CCISS_REGNEWDISK: u32 = 2147762701; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const PHN_SETREGS: u32 = 2150133768; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 1074025682; -pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; -pub const BTRFS_IOC_RESIZE: u32 = 2415956995; -pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; -pub const PPS_KC_BIND: u32 = 2148036773; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; -pub const UI_SET_FFBIT: u32 = 2147767659; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; -pub const CEC_G_MODE: u32 = 1074028808; -pub const USBDEVFS_RESETEP: u32 = 1074025731; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074331136; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; -pub const VFIO_CHECK_EXTENSION: u32 = 536886117; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; -pub const UI_SET_PHYS: u32 = 2148029804; -pub const FDWERRORGET: u32 = 1076363799; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 536898823; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; -pub const SIOCGSTAMP_NEW: u32 = 1074825478; -pub const RTC_WKALM_RD: u32 = 1076391952; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 536899588; -pub const PPGETMODES: u32 = 1074032791; -pub const CHIOGPARAMS: u32 = 1075077894; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; -pub const KCOV_ENABLE: u32 = 536896356; -pub const BTRFS_IOC_CLONE: u32 = 2147783689; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; -pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; -pub const RTC_UIE_OFF: u32 = 536899588; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; -pub const NVME_IOCTL_ID: u32 = 536890944; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 2147767826; -pub const FDPOLLDRVSTAT: u32 = 1078985235; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; -pub const WDIOC_GETTIMELEFT: u32 = 1074026250; -pub const ATM_GETLINKRATE: u32 = 2148557185; -pub const RTC_WKALM_SET: u32 = 2150133775; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; -pub const NS_GET_OWNER_UID: u32 = 536917764; -pub const VIDIOC_OVERLAY: u32 = 2147767822; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148557190; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 536883979; -pub const JSIOCSAXMAP: u32 = 2151705137; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 536886128; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 536898816; -pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; -pub const ATM_SETSC: u32 = 2147770865; -pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; -pub const NVME_IOCTL_RESCAN: u32 = 536890950; -pub const BLKOPENZONE: u32 = 2148536966; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; -pub const HIDIOCGVERSION: u32 = 1074022401; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; -pub const EVIOCGEFFECTS: u32 = 1074021764; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148557106; -pub const HIDIOCINITREPORT: u32 = 536889349; -pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 1074024960; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 536871508; -pub const IOC_PR_REGISTER: u32 = 2149085384; -pub const HIDIOCSREPORT: u32 = 2148288520; -pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; -pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 1074284547; -pub const PPPIOCSCOMPRESS: u32 = 2148561997; -pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; -pub const BLKRESETZONE: u32 = 2148536963; -pub const CHIOINITELEM: u32 = 536896273; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; -pub const PPGETPHASE: u32 = 1074032793; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; -pub const FDMSGON: u32 = 536871493; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; -pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; -pub const FDFMTBEG: u32 = 536871495; -pub const RNDRESEEDCRNG: u32 = 536891911; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 2147767496; -pub const SONET_GETSTAT: u32 = 1076125968; -pub const TFD_IOC_SET_TICKS: u32 = 2148029440; -pub const PPDATADIR: u32 = 2147774608; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 2148557577; -pub const PPWCTLONIRQ: u32 = 2147578002; -pub const SONYPI_IOCGBRT: u32 = 1073837568; -pub const IOC_PR_RELEASE: u32 = 2148561098; -pub const PPCLRIRQ: u32 = 1074032787; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; -pub const HPET_IE_OFF: u32 = 536897538; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; -pub const SONET_SETFRAMING: u32 = 2147770645; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 2148536968; -pub const EVIOCREVOKE: u32 = 2147763601; -pub const VFIO_DEVICE_FEATURE: u32 = 536886133; -pub const CCISS_GETPCIINFO: u32 = 1074283009; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 2147767827; -pub const VDUSE_DESTROY_DEV: u32 = 2164293891; -pub const FDGETFDCSTAT: u32 = 1076363797; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 2147767876; -pub const SNAPSHOT_FREEZE: u32 = 536883969; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148557154; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 1074288151; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; -pub const SONET_GETSTATZ: u32 = 1076125969; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 2147775572; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 536914692; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; -pub const WDIOC_KEEPALIVE: u32 = 1074026245; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; -pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; -pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; -pub const EVIOCSREP: u32 = 2148025603; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; -pub const HPET_DPI: u32 = 536897541; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 1075595267; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 1074026051; -pub const ATM_NEWBACKENDIF: u32 = 2147639795; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; -pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; -pub const CHIOGELEM: u32 = 2154586896; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; -pub const EVIOCSKEYCODE: u32 = 2148025604; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 2147767501; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; -pub const PPS_SETPARAMS: u32 = 2148036770; -pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; -pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; -pub const VIDIOC_S_AUDIO: u32 = 2150913570; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; -pub const SNAPSHOT_FREE: u32 = 536883973; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 2148288519; -pub const HPET_EPI: u32 = 536897540; -pub const JSIOCSCORR: u32 = 2149870113; -pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 2148557196; -pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148557193; -pub const PPFCONTROL: u32 = 2147643534; -pub const SONYPI_IOCGFAN: u32 = 1073837578; -pub const RTC_IRQP_SET: u32 = 2148036620; -pub const PCITEST_WRITE: u32 = 2148028420; -pub const PPCLAIM: u32 = 536899723; -pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; -pub const VHOST_SET_FEATURES: u32 = 2148052736; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; -pub const MMTIMER_GETFREQ: u32 = 1074294018; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2148053248; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; -pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 536871497; -pub const DMA_BUF_SET_NAME: u32 = 2148033025; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 536899587; -pub const PPRELEASE: u32 = 536899724; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1110471169; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 2148052768; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; -pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; -pub const PPNEGOT: u32 = 2147774609; -pub const NBD_PRINT_DEBUG: u32 = 536914694; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 1140888607; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 1074026022; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; -pub const MMTIMER_GETCOUNTER: u32 = 1074294025; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; -pub const RIO_CM_CHAN_BIND: u32 = 2148033285; -pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; -pub const BLKGETDISKSEQ: u32 = 1074270848; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; -pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; -pub const ACRN_IOCTL_START_VM: u32 = 536912402; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; -pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; diff --git a/third_party/rust/linux-raw-sys/src/mips64/net.rs b/third_party/rust/linux-raw-sys/src/mips64/net.rs deleted file mode 100644 index de332d8aa799..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/net.rs +++ /dev/null @@ -1,1875 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 65535; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 4; -pub const SO_KEEPALIVE: u32 = 8; -pub const SO_DONTROUTE: u32 = 16; -pub const SO_BROADCAST: u32 = 32; -pub const SO_LINGER: u32 = 128; -pub const SO_OOBINLINE: u32 = 256; -pub const SO_REUSEPORT: u32 = 512; -pub const SO_TYPE: u32 = 4104; -pub const SO_STYLE: u32 = 4104; -pub const SO_ERROR: u32 = 4103; -pub const SO_SNDBUF: u32 = 4097; -pub const SO_RCVBUF: u32 = 4098; -pub const SO_SNDLOWAT: u32 = 4099; -pub const SO_RCVLOWAT: u32 = 4100; -pub const SO_SNDTIMEO_OLD: u32 = 4101; -pub const SO_RCVTIMEO_OLD: u32 = 4102; -pub const SO_ACCEPTCONN: u32 = 4105; -pub const SO_PROTOCOL: u32 = 4136; -pub const SO_DOMAIN: u32 = 4137; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_PASSCRED: u32 = 17; -pub const SO_PEERCRED: u32 = 18; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_PEERSEC: u32 = 30; -pub const SO_SNDBUFFORCE: u32 = 31; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 4102; -pub const SO_SNDTIMEO: u32 = 4101; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 2; -pub const SOCK_DGRAM: u32 = 1; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips64/netlink.rs b/third_party/rust/linux-raw-sys/src/mips64/netlink.rs deleted file mode 100644 index 6fef6bb97503..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/netlink.rs +++ /dev/null @@ -1,2864 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/mips64/prctl.rs b/third_party/rust/linux-raw-sys/src/mips64/prctl.rs deleted file mode 100644 index ce008a34bf89..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/prctl.rs +++ /dev/null @@ -1,231 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/mips64/system.rs b/third_party/rust/linux-raw-sys/src/mips64/system.rs deleted file mode 100644 index 1360bd91ec8c..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64/system.rs +++ /dev/null @@ -1,139 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/errno.rs b/third_party/rust/linux-raw-sys/src/mips64r6/errno.rs deleted file mode 100644 index 337d8379f58d..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/errno.rs +++ /dev/null @@ -1,137 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/general.rs b/third_party/rust/linux-raw-sys/src/mips64r6/general.rs deleted file mode 100644 index 112de05eabd2..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/general.rs +++ /dev/null @@ -1,3017 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type fsid_t = __kernel_fsid_t; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_flags: crate::ctypes::c_uint, -pub sa_handler: __sighandler_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_size: __kernel_size_t, -pub ss_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 23usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sgttyb { -pub sg_ispeed: crate::ctypes::c_char, -pub sg_ospeed: crate::ctypes::c_char, -pub sg_erase: crate::ctypes::c_char, -pub sg_kill: crate::ctypes::c_char, -pub sg_flags: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tchars { -pub t_intrc: crate::ctypes::c_char, -pub t_quitc: crate::ctypes::c_char, -pub t_startc: crate::ctypes::c_char, -pub t_stopc: crate::ctypes::c_char, -pub t_eofc: crate::ctypes::c_char, -pub t_brkc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ltchars { -pub t_suspc: crate::ctypes::c_char, -pub t_dsuspc: crate::ctypes::c_char, -pub t_rprntc: crate::ctypes::c_char, -pub t_flushc: crate::ctypes::c_char, -pub t_werasc: crate::ctypes::c_char, -pub t_lnextc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_char, -pub c_cc: [crate::ctypes::c_uchar; 23usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_uint, -pub st_pad0: [crate::ctypes::c_uint; 3usize], -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: __kernel_mode_t, -pub st_nlink: __u32, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_uint, -pub st_pad1: [crate::ctypes::c_uint; 3usize], -pub st_size: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_uint, -pub st_atime_nsec: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_uint, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_uint, -pub st_ctime_nsec: crate::ctypes::c_uint, -pub st_blksize: crate::ctypes::c_uint, -pub st_pad2: crate::ctypes::c_uint, -pub st_blocks: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: crate::ctypes::c_long, -pub f_bsize: crate::ctypes::c_long, -pub f_frsize: crate::ctypes::c_long, -pub f_blocks: crate::ctypes::c_long, -pub f_bfree: crate::ctypes::c_long, -pub f_files: crate::ctypes::c_long, -pub f_ffree: crate::ctypes::c_long, -pub f_bavail: crate::ctypes::c_long, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_long, -pub f_flags: crate::ctypes::c_long, -pub f_spare: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: crate::ctypes::c_long, -pub f_bsize: crate::ctypes::c_long, -pub f_frsize: crate::ctypes::c_long, -pub f_blocks: crate::ctypes::c_long, -pub f_bfree: crate::ctypes::c_long, -pub f_files: crate::ctypes::c_long, -pub f_ffree: crate::ctypes::c_long, -pub f_bavail: crate::ctypes::c_long, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_long, -pub f_flags: crate::ctypes::c_long, -pub f_spare: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_frsize: __u32, -pub __pad: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_bavail: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 1; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_APPEND: u32 = 8; -pub const O_DSYNC: u32 = 16; -pub const O_NONBLOCK: u32 = 128; -pub const O_CREAT: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_EXCL: u32 = 1024; -pub const O_NOCTTY: u32 = 2048; -pub const FASYNC: u32 = 4096; -pub const O_LARGEFILE: u32 = 8192; -pub const __O_SYNC: u32 = 16384; -pub const O_SYNC: u32 = 16400; -pub const O_DIRECT: u32 = 32768; -pub const F_GETLK: u32 = 14; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 24; -pub const F_GETOWN: u32 = 23; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4260096; -pub const O_NDELAY: u32 = 128; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 128; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_NONE: u32 = 0; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 16; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_AUTOGROW: u32 = 64; -pub const MAP_LOCAL: u32 = 128; -pub const MAP_AUTORSRV: u32 = 256; -pub const MAP_NORESERVE: u32 = 1024; -pub const MAP_ANONYMOUS: u32 = 2048; -pub const MAP_GROWSDOWN: u32 = 4096; -pub const MAP_DENYWRITE: u32 = 8192; -pub const MAP_EXECUTABLE: u32 = 16384; -pub const MAP_LOCKED: u32 = 32768; -pub const MAP_POPULATE: u32 = 65536; -pub const MAP_NONBLOCK: u32 = 131072; -pub const MAP_STACK: u32 = 262144; -pub const MAP_HUGETLB: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLWRBAND: u32 = 256; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_NOFILE: u32 = 5; -pub const RLIMIT_AS: u32 = 6; -pub const RLIMIT_RSS: u32 = 7; -pub const RLIMIT_NPROC: u32 = 8; -pub const RLIMIT_MEMLOCK: u32 = 9; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 128; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGIOT: u32 = 6; -pub const SIGABRT: u32 = 6; -pub const SIGEMT: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGBUS: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGSYS: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGUSR1: u32 = 16; -pub const SIGUSR2: u32 = 17; -pub const SIGCHLD: u32 = 18; -pub const SIGCLD: u32 = 18; -pub const SIGPWR: u32 = 19; -pub const SIGWINCH: u32 = 20; -pub const SIGURG: u32 = 21; -pub const SIGIO: u32 = 22; -pub const SIGPOLL: u32 = 22; -pub const SIGSTOP: u32 = 23; -pub const SIGTSTP: u32 = 24; -pub const SIGCONT: u32 = 25; -pub const SIGTTIN: u32 = 26; -pub const SIGTTOU: u32 = 27; -pub const SIGVTALRM: u32 = 28; -pub const SIGPROF: u32 = 29; -pub const SIGXCPU: u32 = 30; -pub const SIGXFSZ: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 128; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_RESTART: u32 = 268435456; -pub const SA_SIGINFO: u32 = 8; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_NOCLDWAIT: u32 = 65536; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 3; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const ENOMSG: u32 = 35; -pub const EIDRM: u32 = 36; -pub const ECHRNG: u32 = 37; -pub const EL2NSYNC: u32 = 38; -pub const EL3HLT: u32 = 39; -pub const EL3RST: u32 = 40; -pub const ELNRNG: u32 = 41; -pub const EUNATCH: u32 = 42; -pub const ENOCSI: u32 = 43; -pub const EL2HLT: u32 = 44; -pub const EDEADLK: u32 = 45; -pub const ENOLCK: u32 = 46; -pub const EBADE: u32 = 50; -pub const EBADR: u32 = 51; -pub const EXFULL: u32 = 52; -pub const ENOANO: u32 = 53; -pub const EBADRQC: u32 = 54; -pub const EBADSLT: u32 = 55; -pub const EDEADLOCK: u32 = 56; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EDOTDOT: u32 = 73; -pub const EMULTIHOP: u32 = 74; -pub const EBADMSG: u32 = 77; -pub const ENAMETOOLONG: u32 = 78; -pub const EOVERFLOW: u32 = 79; -pub const ENOTUNIQ: u32 = 80; -pub const EBADFD: u32 = 81; -pub const EREMCHG: u32 = 82; -pub const ELIBACC: u32 = 83; -pub const ELIBBAD: u32 = 84; -pub const ELIBSCN: u32 = 85; -pub const ELIBMAX: u32 = 86; -pub const ELIBEXEC: u32 = 87; -pub const EILSEQ: u32 = 88; -pub const ENOSYS: u32 = 89; -pub const ELOOP: u32 = 90; -pub const ERESTART: u32 = 91; -pub const ESTRPIPE: u32 = 92; -pub const ENOTEMPTY: u32 = 93; -pub const EUSERS: u32 = 94; -pub const ENOTSOCK: u32 = 95; -pub const EDESTADDRREQ: u32 = 96; -pub const EMSGSIZE: u32 = 97; -pub const EPROTOTYPE: u32 = 98; -pub const ENOPROTOOPT: u32 = 99; -pub const EPROTONOSUPPORT: u32 = 120; -pub const ESOCKTNOSUPPORT: u32 = 121; -pub const EOPNOTSUPP: u32 = 122; -pub const EPFNOSUPPORT: u32 = 123; -pub const EAFNOSUPPORT: u32 = 124; -pub const EADDRINUSE: u32 = 125; -pub const EADDRNOTAVAIL: u32 = 126; -pub const ENETDOWN: u32 = 127; -pub const ENETUNREACH: u32 = 128; -pub const ENETRESET: u32 = 129; -pub const ECONNABORTED: u32 = 130; -pub const ECONNRESET: u32 = 131; -pub const ENOBUFS: u32 = 132; -pub const EISCONN: u32 = 133; -pub const ENOTCONN: u32 = 134; -pub const EUCLEAN: u32 = 135; -pub const ENOTNAM: u32 = 137; -pub const ENAVAIL: u32 = 138; -pub const EISNAM: u32 = 139; -pub const EREMOTEIO: u32 = 140; -pub const EINIT: u32 = 141; -pub const EREMDEV: u32 = 142; -pub const ESHUTDOWN: u32 = 143; -pub const ETOOMANYREFS: u32 = 144; -pub const ETIMEDOUT: u32 = 145; -pub const ECONNREFUSED: u32 = 146; -pub const EHOSTDOWN: u32 = 147; -pub const EHOSTUNREACH: u32 = 148; -pub const EWOULDBLOCK: u32 = 11; -pub const EALREADY: u32 = 149; -pub const EINPROGRESS: u32 = 150; -pub const ESTALE: u32 = 151; -pub const ECANCELED: u32 = 158; -pub const ENOMEDIUM: u32 = 159; -pub const EMEDIUMTYPE: u32 = 160; -pub const ENOKEY: u32 = 161; -pub const EKEYEXPIRED: u32 = 162; -pub const EKEYREVOKED: u32 = 163; -pub const EKEYREJECTED: u32 = 164; -pub const EOWNERDEAD: u32 = 165; -pub const ENOTRECOVERABLE: u32 = 166; -pub const ERFKILL: u32 = 167; -pub const EHWPOISON: u32 = 168; -pub const EDQUOT: u32 = 1133; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 23; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VMIN: u32 = 4; -pub const VTIME: u32 = 5; -pub const VEOL2: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSWTCH: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOF: u32 = 16; -pub const VEOL: u32 = 17; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const IEXTEN: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 8192; -pub const PENDIN: u32 = 16384; -pub const TOSTOP: u32 = 32768; -pub const ITOSTOP: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TIOCSER_TEMT: u32 = 1; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCGLTC: u32 = 29812; -pub const TIOCSLTC: u32 = 29813; -pub const TIOCGETP: u32 = 29704; -pub const TIOCSETP: u32 = 29705; -pub const TIOCSETN: u32 = 29706; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 16; -pub const TIOCM_SR: u32 = 32; -pub const TIOCM_CTS: u32 = 64; -pub const TIOCM_CAR: u32 = 256; -pub const TIOCM_CD: u32 = 256; -pub const TIOCM_RNG: u32 = 512; -pub const TIOCM_RI: u32 = 512; -pub const TIOCM_DSR: u32 = 1024; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_Linux: u32 = 5000; -pub const __NR_read: u32 = 5000; -pub const __NR_write: u32 = 5001; -pub const __NR_open: u32 = 5002; -pub const __NR_close: u32 = 5003; -pub const __NR_stat: u32 = 5004; -pub const __NR_fstat: u32 = 5005; -pub const __NR_lstat: u32 = 5006; -pub const __NR_poll: u32 = 5007; -pub const __NR_lseek: u32 = 5008; -pub const __NR_mmap: u32 = 5009; -pub const __NR_mprotect: u32 = 5010; -pub const __NR_munmap: u32 = 5011; -pub const __NR_brk: u32 = 5012; -pub const __NR_rt_sigaction: u32 = 5013; -pub const __NR_rt_sigprocmask: u32 = 5014; -pub const __NR_ioctl: u32 = 5015; -pub const __NR_pread64: u32 = 5016; -pub const __NR_pwrite64: u32 = 5017; -pub const __NR_readv: u32 = 5018; -pub const __NR_writev: u32 = 5019; -pub const __NR_access: u32 = 5020; -pub const __NR_pipe: u32 = 5021; -pub const __NR__newselect: u32 = 5022; -pub const __NR_sched_yield: u32 = 5023; -pub const __NR_mremap: u32 = 5024; -pub const __NR_msync: u32 = 5025; -pub const __NR_mincore: u32 = 5026; -pub const __NR_madvise: u32 = 5027; -pub const __NR_shmget: u32 = 5028; -pub const __NR_shmat: u32 = 5029; -pub const __NR_shmctl: u32 = 5030; -pub const __NR_dup: u32 = 5031; -pub const __NR_dup2: u32 = 5032; -pub const __NR_pause: u32 = 5033; -pub const __NR_nanosleep: u32 = 5034; -pub const __NR_getitimer: u32 = 5035; -pub const __NR_setitimer: u32 = 5036; -pub const __NR_alarm: u32 = 5037; -pub const __NR_getpid: u32 = 5038; -pub const __NR_sendfile: u32 = 5039; -pub const __NR_socket: u32 = 5040; -pub const __NR_connect: u32 = 5041; -pub const __NR_accept: u32 = 5042; -pub const __NR_sendto: u32 = 5043; -pub const __NR_recvfrom: u32 = 5044; -pub const __NR_sendmsg: u32 = 5045; -pub const __NR_recvmsg: u32 = 5046; -pub const __NR_shutdown: u32 = 5047; -pub const __NR_bind: u32 = 5048; -pub const __NR_listen: u32 = 5049; -pub const __NR_getsockname: u32 = 5050; -pub const __NR_getpeername: u32 = 5051; -pub const __NR_socketpair: u32 = 5052; -pub const __NR_setsockopt: u32 = 5053; -pub const __NR_getsockopt: u32 = 5054; -pub const __NR_clone: u32 = 5055; -pub const __NR_fork: u32 = 5056; -pub const __NR_execve: u32 = 5057; -pub const __NR_exit: u32 = 5058; -pub const __NR_wait4: u32 = 5059; -pub const __NR_kill: u32 = 5060; -pub const __NR_uname: u32 = 5061; -pub const __NR_semget: u32 = 5062; -pub const __NR_semop: u32 = 5063; -pub const __NR_semctl: u32 = 5064; -pub const __NR_shmdt: u32 = 5065; -pub const __NR_msgget: u32 = 5066; -pub const __NR_msgsnd: u32 = 5067; -pub const __NR_msgrcv: u32 = 5068; -pub const __NR_msgctl: u32 = 5069; -pub const __NR_fcntl: u32 = 5070; -pub const __NR_flock: u32 = 5071; -pub const __NR_fsync: u32 = 5072; -pub const __NR_fdatasync: u32 = 5073; -pub const __NR_truncate: u32 = 5074; -pub const __NR_ftruncate: u32 = 5075; -pub const __NR_getdents: u32 = 5076; -pub const __NR_getcwd: u32 = 5077; -pub const __NR_chdir: u32 = 5078; -pub const __NR_fchdir: u32 = 5079; -pub const __NR_rename: u32 = 5080; -pub const __NR_mkdir: u32 = 5081; -pub const __NR_rmdir: u32 = 5082; -pub const __NR_creat: u32 = 5083; -pub const __NR_link: u32 = 5084; -pub const __NR_unlink: u32 = 5085; -pub const __NR_symlink: u32 = 5086; -pub const __NR_readlink: u32 = 5087; -pub const __NR_chmod: u32 = 5088; -pub const __NR_fchmod: u32 = 5089; -pub const __NR_chown: u32 = 5090; -pub const __NR_fchown: u32 = 5091; -pub const __NR_lchown: u32 = 5092; -pub const __NR_umask: u32 = 5093; -pub const __NR_gettimeofday: u32 = 5094; -pub const __NR_getrlimit: u32 = 5095; -pub const __NR_getrusage: u32 = 5096; -pub const __NR_sysinfo: u32 = 5097; -pub const __NR_times: u32 = 5098; -pub const __NR_ptrace: u32 = 5099; -pub const __NR_getuid: u32 = 5100; -pub const __NR_syslog: u32 = 5101; -pub const __NR_getgid: u32 = 5102; -pub const __NR_setuid: u32 = 5103; -pub const __NR_setgid: u32 = 5104; -pub const __NR_geteuid: u32 = 5105; -pub const __NR_getegid: u32 = 5106; -pub const __NR_setpgid: u32 = 5107; -pub const __NR_getppid: u32 = 5108; -pub const __NR_getpgrp: u32 = 5109; -pub const __NR_setsid: u32 = 5110; -pub const __NR_setreuid: u32 = 5111; -pub const __NR_setregid: u32 = 5112; -pub const __NR_getgroups: u32 = 5113; -pub const __NR_setgroups: u32 = 5114; -pub const __NR_setresuid: u32 = 5115; -pub const __NR_getresuid: u32 = 5116; -pub const __NR_setresgid: u32 = 5117; -pub const __NR_getresgid: u32 = 5118; -pub const __NR_getpgid: u32 = 5119; -pub const __NR_setfsuid: u32 = 5120; -pub const __NR_setfsgid: u32 = 5121; -pub const __NR_getsid: u32 = 5122; -pub const __NR_capget: u32 = 5123; -pub const __NR_capset: u32 = 5124; -pub const __NR_rt_sigpending: u32 = 5125; -pub const __NR_rt_sigtimedwait: u32 = 5126; -pub const __NR_rt_sigqueueinfo: u32 = 5127; -pub const __NR_rt_sigsuspend: u32 = 5128; -pub const __NR_sigaltstack: u32 = 5129; -pub const __NR_utime: u32 = 5130; -pub const __NR_mknod: u32 = 5131; -pub const __NR_personality: u32 = 5132; -pub const __NR_ustat: u32 = 5133; -pub const __NR_statfs: u32 = 5134; -pub const __NR_fstatfs: u32 = 5135; -pub const __NR_sysfs: u32 = 5136; -pub const __NR_getpriority: u32 = 5137; -pub const __NR_setpriority: u32 = 5138; -pub const __NR_sched_setparam: u32 = 5139; -pub const __NR_sched_getparam: u32 = 5140; -pub const __NR_sched_setscheduler: u32 = 5141; -pub const __NR_sched_getscheduler: u32 = 5142; -pub const __NR_sched_get_priority_max: u32 = 5143; -pub const __NR_sched_get_priority_min: u32 = 5144; -pub const __NR_sched_rr_get_interval: u32 = 5145; -pub const __NR_mlock: u32 = 5146; -pub const __NR_munlock: u32 = 5147; -pub const __NR_mlockall: u32 = 5148; -pub const __NR_munlockall: u32 = 5149; -pub const __NR_vhangup: u32 = 5150; -pub const __NR_pivot_root: u32 = 5151; -pub const __NR__sysctl: u32 = 5152; -pub const __NR_prctl: u32 = 5153; -pub const __NR_adjtimex: u32 = 5154; -pub const __NR_setrlimit: u32 = 5155; -pub const __NR_chroot: u32 = 5156; -pub const __NR_sync: u32 = 5157; -pub const __NR_acct: u32 = 5158; -pub const __NR_settimeofday: u32 = 5159; -pub const __NR_mount: u32 = 5160; -pub const __NR_umount2: u32 = 5161; -pub const __NR_swapon: u32 = 5162; -pub const __NR_swapoff: u32 = 5163; -pub const __NR_reboot: u32 = 5164; -pub const __NR_sethostname: u32 = 5165; -pub const __NR_setdomainname: u32 = 5166; -pub const __NR_create_module: u32 = 5167; -pub const __NR_init_module: u32 = 5168; -pub const __NR_delete_module: u32 = 5169; -pub const __NR_get_kernel_syms: u32 = 5170; -pub const __NR_query_module: u32 = 5171; -pub const __NR_quotactl: u32 = 5172; -pub const __NR_nfsservctl: u32 = 5173; -pub const __NR_getpmsg: u32 = 5174; -pub const __NR_putpmsg: u32 = 5175; -pub const __NR_afs_syscall: u32 = 5176; -pub const __NR_reserved177: u32 = 5177; -pub const __NR_gettid: u32 = 5178; -pub const __NR_readahead: u32 = 5179; -pub const __NR_setxattr: u32 = 5180; -pub const __NR_lsetxattr: u32 = 5181; -pub const __NR_fsetxattr: u32 = 5182; -pub const __NR_getxattr: u32 = 5183; -pub const __NR_lgetxattr: u32 = 5184; -pub const __NR_fgetxattr: u32 = 5185; -pub const __NR_listxattr: u32 = 5186; -pub const __NR_llistxattr: u32 = 5187; -pub const __NR_flistxattr: u32 = 5188; -pub const __NR_removexattr: u32 = 5189; -pub const __NR_lremovexattr: u32 = 5190; -pub const __NR_fremovexattr: u32 = 5191; -pub const __NR_tkill: u32 = 5192; -pub const __NR_reserved193: u32 = 5193; -pub const __NR_futex: u32 = 5194; -pub const __NR_sched_setaffinity: u32 = 5195; -pub const __NR_sched_getaffinity: u32 = 5196; -pub const __NR_cacheflush: u32 = 5197; -pub const __NR_cachectl: u32 = 5198; -pub const __NR_sysmips: u32 = 5199; -pub const __NR_io_setup: u32 = 5200; -pub const __NR_io_destroy: u32 = 5201; -pub const __NR_io_getevents: u32 = 5202; -pub const __NR_io_submit: u32 = 5203; -pub const __NR_io_cancel: u32 = 5204; -pub const __NR_exit_group: u32 = 5205; -pub const __NR_lookup_dcookie: u32 = 5206; -pub const __NR_epoll_create: u32 = 5207; -pub const __NR_epoll_ctl: u32 = 5208; -pub const __NR_epoll_wait: u32 = 5209; -pub const __NR_remap_file_pages: u32 = 5210; -pub const __NR_rt_sigreturn: u32 = 5211; -pub const __NR_set_tid_address: u32 = 5212; -pub const __NR_restart_syscall: u32 = 5213; -pub const __NR_semtimedop: u32 = 5214; -pub const __NR_fadvise64: u32 = 5215; -pub const __NR_timer_create: u32 = 5216; -pub const __NR_timer_settime: u32 = 5217; -pub const __NR_timer_gettime: u32 = 5218; -pub const __NR_timer_getoverrun: u32 = 5219; -pub const __NR_timer_delete: u32 = 5220; -pub const __NR_clock_settime: u32 = 5221; -pub const __NR_clock_gettime: u32 = 5222; -pub const __NR_clock_getres: u32 = 5223; -pub const __NR_clock_nanosleep: u32 = 5224; -pub const __NR_tgkill: u32 = 5225; -pub const __NR_utimes: u32 = 5226; -pub const __NR_mbind: u32 = 5227; -pub const __NR_get_mempolicy: u32 = 5228; -pub const __NR_set_mempolicy: u32 = 5229; -pub const __NR_mq_open: u32 = 5230; -pub const __NR_mq_unlink: u32 = 5231; -pub const __NR_mq_timedsend: u32 = 5232; -pub const __NR_mq_timedreceive: u32 = 5233; -pub const __NR_mq_notify: u32 = 5234; -pub const __NR_mq_getsetattr: u32 = 5235; -pub const __NR_vserver: u32 = 5236; -pub const __NR_waitid: u32 = 5237; -pub const __NR_add_key: u32 = 5239; -pub const __NR_request_key: u32 = 5240; -pub const __NR_keyctl: u32 = 5241; -pub const __NR_set_thread_area: u32 = 5242; -pub const __NR_inotify_init: u32 = 5243; -pub const __NR_inotify_add_watch: u32 = 5244; -pub const __NR_inotify_rm_watch: u32 = 5245; -pub const __NR_migrate_pages: u32 = 5246; -pub const __NR_openat: u32 = 5247; -pub const __NR_mkdirat: u32 = 5248; -pub const __NR_mknodat: u32 = 5249; -pub const __NR_fchownat: u32 = 5250; -pub const __NR_futimesat: u32 = 5251; -pub const __NR_newfstatat: u32 = 5252; -pub const __NR_unlinkat: u32 = 5253; -pub const __NR_renameat: u32 = 5254; -pub const __NR_linkat: u32 = 5255; -pub const __NR_symlinkat: u32 = 5256; -pub const __NR_readlinkat: u32 = 5257; -pub const __NR_fchmodat: u32 = 5258; -pub const __NR_faccessat: u32 = 5259; -pub const __NR_pselect6: u32 = 5260; -pub const __NR_ppoll: u32 = 5261; -pub const __NR_unshare: u32 = 5262; -pub const __NR_splice: u32 = 5263; -pub const __NR_sync_file_range: u32 = 5264; -pub const __NR_tee: u32 = 5265; -pub const __NR_vmsplice: u32 = 5266; -pub const __NR_move_pages: u32 = 5267; -pub const __NR_set_robust_list: u32 = 5268; -pub const __NR_get_robust_list: u32 = 5269; -pub const __NR_kexec_load: u32 = 5270; -pub const __NR_getcpu: u32 = 5271; -pub const __NR_epoll_pwait: u32 = 5272; -pub const __NR_ioprio_set: u32 = 5273; -pub const __NR_ioprio_get: u32 = 5274; -pub const __NR_utimensat: u32 = 5275; -pub const __NR_signalfd: u32 = 5276; -pub const __NR_timerfd: u32 = 5277; -pub const __NR_eventfd: u32 = 5278; -pub const __NR_fallocate: u32 = 5279; -pub const __NR_timerfd_create: u32 = 5280; -pub const __NR_timerfd_gettime: u32 = 5281; -pub const __NR_timerfd_settime: u32 = 5282; -pub const __NR_signalfd4: u32 = 5283; -pub const __NR_eventfd2: u32 = 5284; -pub const __NR_epoll_create1: u32 = 5285; -pub const __NR_dup3: u32 = 5286; -pub const __NR_pipe2: u32 = 5287; -pub const __NR_inotify_init1: u32 = 5288; -pub const __NR_preadv: u32 = 5289; -pub const __NR_pwritev: u32 = 5290; -pub const __NR_rt_tgsigqueueinfo: u32 = 5291; -pub const __NR_perf_event_open: u32 = 5292; -pub const __NR_accept4: u32 = 5293; -pub const __NR_recvmmsg: u32 = 5294; -pub const __NR_fanotify_init: u32 = 5295; -pub const __NR_fanotify_mark: u32 = 5296; -pub const __NR_prlimit64: u32 = 5297; -pub const __NR_name_to_handle_at: u32 = 5298; -pub const __NR_open_by_handle_at: u32 = 5299; -pub const __NR_clock_adjtime: u32 = 5300; -pub const __NR_syncfs: u32 = 5301; -pub const __NR_sendmmsg: u32 = 5302; -pub const __NR_setns: u32 = 5303; -pub const __NR_process_vm_readv: u32 = 5304; -pub const __NR_process_vm_writev: u32 = 5305; -pub const __NR_kcmp: u32 = 5306; -pub const __NR_finit_module: u32 = 5307; -pub const __NR_getdents64: u32 = 5308; -pub const __NR_sched_setattr: u32 = 5309; -pub const __NR_sched_getattr: u32 = 5310; -pub const __NR_renameat2: u32 = 5311; -pub const __NR_seccomp: u32 = 5312; -pub const __NR_getrandom: u32 = 5313; -pub const __NR_memfd_create: u32 = 5314; -pub const __NR_bpf: u32 = 5315; -pub const __NR_execveat: u32 = 5316; -pub const __NR_userfaultfd: u32 = 5317; -pub const __NR_membarrier: u32 = 5318; -pub const __NR_mlock2: u32 = 5319; -pub const __NR_copy_file_range: u32 = 5320; -pub const __NR_preadv2: u32 = 5321; -pub const __NR_pwritev2: u32 = 5322; -pub const __NR_pkey_mprotect: u32 = 5323; -pub const __NR_pkey_alloc: u32 = 5324; -pub const __NR_pkey_free: u32 = 5325; -pub const __NR_statx: u32 = 5326; -pub const __NR_rseq: u32 = 5327; -pub const __NR_io_pgetevents: u32 = 5328; -pub const __NR_pidfd_send_signal: u32 = 5424; -pub const __NR_io_uring_setup: u32 = 5425; -pub const __NR_io_uring_enter: u32 = 5426; -pub const __NR_io_uring_register: u32 = 5427; -pub const __NR_open_tree: u32 = 5428; -pub const __NR_move_mount: u32 = 5429; -pub const __NR_fsopen: u32 = 5430; -pub const __NR_fsconfig: u32 = 5431; -pub const __NR_fsmount: u32 = 5432; -pub const __NR_fspick: u32 = 5433; -pub const __NR_pidfd_open: u32 = 5434; -pub const __NR_clone3: u32 = 5435; -pub const __NR_close_range: u32 = 5436; -pub const __NR_openat2: u32 = 5437; -pub const __NR_pidfd_getfd: u32 = 5438; -pub const __NR_faccessat2: u32 = 5439; -pub const __NR_process_madvise: u32 = 5440; -pub const __NR_epoll_pwait2: u32 = 5441; -pub const __NR_mount_setattr: u32 = 5442; -pub const __NR_quotactl_fd: u32 = 5443; -pub const __NR_landlock_create_ruleset: u32 = 5444; -pub const __NR_landlock_add_rule: u32 = 5445; -pub const __NR_landlock_restrict_self: u32 = 5446; -pub const __NR_process_mrelease: u32 = 5448; -pub const __NR_futex_waitv: u32 = 5449; -pub const __NR_set_mempolicy_home_node: u32 = 5450; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 128; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 128; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416; -pub const TFD_CREATE_FLAGS: u32 = 524416; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const POLLWRNORM: u32 = 4; -pub const TCSANOW: u32 = 21518; -pub const TCSADRAIN: u32 = 21519; -pub const TCSAFLUSH: u32 = 21520; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/if_ether.rs b/third_party/rust/linux-raw-sys/src/mips64r6/if_ether.rs deleted file mode 100644 index 8a223bc5a6dd..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/if_ether.rs +++ /dev/null @@ -1,177 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/io_uring.rs b/third_party/rust/linux-raw-sys/src/mips64r6/io_uring.rs deleted file mode 100644 index 1c8744c20f95..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/io_uring.rs +++ /dev/null @@ -1,1093 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/ioctl.rs b/third_party/rust/linux-raw-sys/src/mips64r6/ioctl.rs deleted file mode 100644 index f24f7e0f7dc8..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/ioctl.rs +++ /dev/null @@ -1,1587 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 18047; -pub const FIONBIO: u32 = 26238; -pub const FIOCLEX: u32 = 26113; -pub const FIONCLEX: u32 = 26114; -pub const FIOASYNC: u32 = 26237; -pub const FIOQSIZE: u32 = 26239; -pub const TCXONC: u32 = 21510; -pub const TCFLSH: u32 = 21511; -pub const TIOCSCTTY: u32 = 21632; -pub const TIOCSPGRP: u32 = 2147775606; -pub const TIOCOUTQ: u32 = 29810; -pub const TIOCSTI: u32 = 21618; -pub const TIOCSWINSZ: u32 = 2148037735; -pub const TIOCMGET: u32 = 29725; -pub const TIOCMBIS: u32 = 29723; -pub const TIOCMBIC: u32 = 29724; -pub const TIOCMSET: u32 = 29722; -pub const TIOCSSOFTCAR: u32 = 21634; -pub const TIOCLINUX: u32 = 21635; -pub const TIOCCONS: u32 = 2147775608; -pub const TIOCSSERIAL: u32 = 21637; -pub const TIOCPKT: u32 = 21616; -pub const TIOCNOTTY: u32 = 21617; -pub const TIOCSETD: u32 = 29697; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSPTLCK: u32 = 2147767345; -pub const TIOCSIG: u32 = 2147767350; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21640; -pub const TIOCSERGWILD: u32 = 21641; -pub const TIOCSERSWILD: u32 = 21642; -pub const TIOCSLCKTRMIOS: u32 = 21644; -pub const TIOCSERGSTRUCT: u32 = 21645; -pub const TIOCSERGETLSR: u32 = 21646; -pub const TIOCSERGETMULTI: u32 = 21647; -pub const TIOCSERSETMULTI: u32 = 21648; -pub const TIOCMIWAIT: u32 = 21649; -pub const TCGETS: u32 = 21517; -pub const TCGETA: u32 = 21505; -pub const TCSBRK: u32 = 21509; -pub const TCSBRKP: u32 = 21638; -pub const TCSETA: u32 = 21506; -pub const TCSETAF: u32 = 21508; -pub const TCSETAW: u32 = 21507; -pub const TIOCEXCL: u32 = 29709; -pub const TIOCNXCL: u32 = 29710; -pub const TIOCGDEV: u32 = 1074025522; -pub const TIOCGEXCL: u32 = 1074025536; -pub const TIOCGICOUNT: u32 = 21650; -pub const TIOCGLCKTRMIOS: u32 = 21643; -pub const TIOCGPGRP: u32 = 1074033783; -pub const TIOCGPKT: u32 = 1074025528; -pub const TIOCGPTLCK: u32 = 1074025529; -pub const TIOCGPTN: u32 = 1074025520; -pub const TIOCGPTPEER: u32 = 536892481; -pub const TIOCGSERIAL: u32 = 21636; -pub const TIOCGSID: u32 = 29718; -pub const TIOCGSOFTCAR: u32 = 21633; -pub const TIOCGWINSZ: u32 = 1074295912; -pub const TCGETS2: u32 = 1076909098; -pub const TCSETS: u32 = 21518; -pub const TCSETS2: u32 = 2150650923; -pub const TCSETSF: u32 = 21520; -pub const TCSETSF2: u32 = 2150650925; -pub const TCSETSW: u32 = 21519; -pub const TCSETSW2: u32 = 2150650924; -pub const TIOCGETD: u32 = 29696; -pub const TIOCGETP: u32 = 29704; -pub const TIOCGLTC: u32 = 29812; -pub const MTIOCGET: u32 = 1077439746; -pub const BLKSSZGET: u32 = 536875624; -pub const BLKPBSZGET: u32 = 536875643; -pub const BLKROSET: u32 = 536875613; -pub const BLKROGET: u32 = 536875614; -pub const BLKRRPART: u32 = 536875615; -pub const BLKGETSIZE: u32 = 536875616; -pub const BLKFLSBUF: u32 = 536875617; -pub const BLKRASET: u32 = 536875618; -pub const BLKRAGET: u32 = 536875619; -pub const BLKFRASET: u32 = 536875620; -pub const BLKFRAGET: u32 = 536875621; -pub const BLKSECTSET: u32 = 536875622; -pub const BLKSECTGET: u32 = 536875623; -pub const BLKPG: u32 = 536875625; -pub const BLKBSZGET: u32 = 1074270832; -pub const BLKBSZSET: u32 = 2148012657; -pub const BLKGETSIZE64: u32 = 1074270834; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 536875636; -pub const BLKTRACESTOP: u32 = 536875637; -pub const BLKTRACETEARDOWN: u32 = 536875638; -pub const BLKDISCARD: u32 = 536875639; -pub const BLKIOMIN: u32 = 536875640; -pub const BLKIOOPT: u32 = 536875641; -pub const BLKALIGNOFF: u32 = 536875642; -pub const BLKDISCARDZEROES: u32 = 536875644; -pub const BLKSECDISCARD: u32 = 536875645; -pub const BLKROTATIONAL: u32 = 536875646; -pub const BLKZEROOUT: u32 = 536875647; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 1074833921; -pub const UFFDIO_WAKE: u32 = 1074833922; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 536917761; -pub const NS_GET_PARENT: u32 = 536917762; -pub const NS_GET_NSTYPE: u32 = 536917763; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 2147772028; -pub const FIOGETOWN: u32 = 1074030203; -pub const SIOCATMARK: u32 = 1074033415; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 18047; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 536870913; -pub const FIGETBSZ: u32 = 536870914; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 2147783689; -pub const FICLONERANGE: u32 = 2149618701; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 1074292225; -pub const FS_IOC_SETFLAGS: u32 = 2148034050; -pub const FS_IOC_GETVERSION: u32 = 1074296321; -pub const FS_IOC_SETVERSION: u32 = 2148038146; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 1074030081; -pub const FS_IOC32_SETFLAGS: u32 = 2147771906; -pub const FS_IOC32_GETVERSION: u32 = 1074034177; -pub const FS_IOC32_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FSGETXATTR: u32 = 1075599391; -pub const FS_IOC_FSSETXATTR: u32 = 2149341216; -pub const FS_IOC_GETFSLABEL: u32 = 1090556977; -pub const FS_IOC_SETFSLABEL: u32 = 2164298802; -pub const EXT4_IOC_GETVERSION: u32 = 1074292227; -pub const EXT4_IOC_SETVERSION: u32 = 2148034052; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074296321; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; -pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; -pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; -pub const EXT4_IOC_MIGRATE: u32 = 536897033; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; -pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; -pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; -pub const EXT4_IOC_GETSTATE: u32 = 2147771945; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; -pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; -pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 2148557194; -pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 2147767499; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1076915457; -pub const ENI_SETMULT: u32 = 2148557159; -pub const RIO_GET_EVENT_MASK: u32 = 1074031886; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; -pub const KVM_SET_BOOT_CPU_ID: u32 = 536915576; -pub const KVM_SET_MP_STATE: u32 = 2147790489; -pub const KVM_GET_MP_STATE: u32 = 1074048664; -pub const KVM_GET_API_VERSION: u32 = 536915456; -pub const KVM_S390_GET_SKEYS: u32 = 2151722674; -pub const KVM_SET_ONE_REG: u32 = 2148576940; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 2149625414; -pub const KVM_S390_INTERRUPT: u32 = 2148576916; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 1073786508; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 2148576884; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 1074835131; -pub const KVM_S390_UCAS_MAP: u32 = 2149101136; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 2151722660; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221794490; -pub const KVM_CREATE_PIT2: u32 = 2151722615; -pub const KVM_S390_VCPU_FAULT: u32 = 2148052562; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 2148576871; -pub const KVM_SET_VAPIC_ADDR: u32 = 2148052627; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 2148576918; -pub const KVM_X86_SETUP_MCE: u32 = 2148052636; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 2151722610; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 2152246985; -pub const KVM_GET_CLOCK: u32 = 1076932220; -pub const KVM_SET_FPU: u32 = 2147528333; -pub const KVM_KVMCLOCK_CTRL: u32 = 536915629; -pub const KVM_PPC_GET_PVINFO: u32 = 2155916961; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 1074310813; -pub const KVM_S390_GET_IRQ_STATE: u32 = 2149625526; -pub const KVM_GET_DEVICE_ATTR: u32 = 2149101282; -pub const KVM_S390_INITIAL_RESET: u32 = 536915607; -pub const KVM_SET_REGS: u32 = 2165878402; -pub const KVM_GET_TSC_KHZ: u32 = 536915619; -pub const KVM_CHECK_EXTENSION: u32 = 536915459; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 1074835118; -pub const KVM_GET_DIRTY_LOG: u32 = 2148576834; -pub const KVM_S390_SET_IRQ_STATE: u32 = 2149625525; -pub const KVM_S390_NORMAL_RESET: u32 = 536915651; -pub const KVM_SET_SIGNAL_MASK: u32 = 2147790475; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 2152246987; -pub const KVM_SET_GSI_ROUTING: u32 = 2148052586; -pub const KVM_CREATE_VCPU: u32 = 536915521; -pub const KVM_S390_UCAS_UNMAP: u32 = 2149101137; -pub const KVM_S390_STORE_STATUS: u32 = 2148052629; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 2148576872; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 2151722608; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 536915462; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 2148576939; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 2148576939; -pub const KVM_DIRTY_TLB: u32 = 2148576938; -pub const KVM_NMI: u32 = 536915610; -pub const KVM_HYPERV_EVENTFD: u32 = 2149101245; -pub const KVM_S390_MEM_OP: u32 = 2151722673; -pub const KVM_PPC_SVM_OFF: u32 = 536915635; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 1074835117; -pub const KVM_INTERRUPT: u32 = 2147790470; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 1073786499; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 2148052552; -pub const KVM_GET_REGS: u32 = 1092136577; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 536915552; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 1077980777; -pub const KVM_SET_NR_MMU_PAGES: u32 = 536915524; -pub const KVM_IOEVENTFD: u32 = 2151722617; -pub const KVM_RUN: u32 = 536915584; -pub const KVM_S390_SET_SKEYS: u32 = 2151722675; -pub const KVM_SET_DEVICE_ATTR: u32 = 2149101281; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 2151722613; -pub const KVM_SMI: u32 = 536915639; -pub const KVM_SET_TSS_ADDR: u32 = 536915527; -pub const KVM_GET_NR_MMU_PAGES: u32 = 536915525; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 536915569; -pub const KVM_HAS_DEVICE_ATTR: u32 = 2149101283; -pub const KVM_IRQFD: u32 = 2149625462; -pub const KVM_S390_SET_CMMA_BITS: u32 = 2149625529; -pub const KVM_SET_IRQCHIP: u32 = 1107865187; -pub const KVM_SIGNAL_MSI: u32 = 2149625509; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 536915460; -pub const KVM_CREATE_VM: u32 = 536915457; -pub const KVM_S390_CLEAR_RESET: u32 = 536915652; -pub const KVM_RESET_DIRTY_RINGS: u32 = 536915655; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 2148052595; -pub const KVM_CREATE_PIT: u32 = 536915556; -pub const KVM_SET_GUEST_DEBUG: u32 = 2148052635; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 2147790530; -pub const KVM_SET_CLOCK: u32 = 2150674043; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 1112583846; -pub const KVM_SET_TSC_KHZ: u32 = 536915618; -pub const KVM_S390_IRQ: u32 = 2152246964; -pub const KVM_ENABLE_CAP: u32 = 2154344099; -pub const KVM_IRQ_LINE: u32 = 2148052577; -pub const KVM_SET_SREGS: u32 = 2147528324; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 1074835132; -pub const KVM_GET_STATS_FD: u32 = 536915662; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; -pub const CHIOMOVE: u32 = 2148819713; -pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; -pub const BTRFS_IOC_SYNC: u32 = 536908808; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 2147772690; -pub const VIDIOC_DQEVENT: u32 = 1082676825; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; -pub const UI_SET_KEYBIT: u32 = 2147767653; -pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 2148052754; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 1074030850; -pub const PPGETTIME: u32 = 1074819221; -pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; -pub const ATM_SETBACKEND: u32 = 2147639794; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 536888968; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 536871513; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; -pub const NILFS_IOCTL_SYNC: u32 = 1074294410; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 2147767662; -pub const TUNSETFILTEREBPF: u32 = 1074025697; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 1074026244; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148557198; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 1075839492; -pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148557152; -pub const PTP_SYS_OFFSET2: u32 = 2202025230; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; -pub const RTC_EPOCH_READ: u32 = 1074294797; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148557200; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 2153534723; -pub const ISST_IF_IO_CMD: u32 = 2148072962; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 1074008709; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; -pub const PPPIOCGCHAN: u32 = 1074033719; -pub const EVIOCGVERSION: u32 = 1074021633; -pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; -pub const USBDEVFS_REAPURBNDELAY: u32 = 2148029709; -pub const RNDZAPENTCNT: u32 = 536891908; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 536892643; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; -pub const VHOST_SET_VRING_ERR: u32 = 2148052770; -pub const VDUSE_VQ_SETUP: u32 = 2149613844; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; -pub const STP_SET_OPTIONS: u32 = 2148017410; -pub const FBIO_RADEON_GET_MIRROR: u32 = 1074282499; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 2149078720; -pub const IPMICTL_SEND_COMMAND: u32 = 1076390157; -pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; -pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; -pub const CHIOSVOLTAG: u32 = 2150654738; -pub const ATM_SETESIF: u32 = 2148557197; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; -pub const PMU_IOC_GET_MODEL: u32 = 1074283011; -pub const JSIOCGBTNMAP: u32 = 1140877876; -pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 536871489; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 536892694; -pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; -pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 1082130961; -pub const TUNSETVNETLE: u32 = 2147767516; -pub const PHN_SETREG: u32 = 2148036614; -pub const PPPIOCDETACH: u32 = 2147775548; -pub const MMTIMER_GETRES: u32 = 1074294017; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 1074032794; -pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 1074310688; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; -pub const SONYPI_IOCGBLUE: u32 = 1073837576; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148557107; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 1074308100; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 536917568; -pub const PPPIOCGASYNCMAP: u32 = 1074033752; -pub const EVIOCGKEYCODE_V2: u32 = 1076380932; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 2149074956; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; -pub const PTP_EXTTS_REQUEST: u32 = 2148547842; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; -pub const JSIOCGAXES: u32 = 1073834513; -pub const HIDIOCSFLAG: u32 = 2147764239; -pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; -pub const PPWDATA: u32 = 2147577990; -pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; -pub const FDGETMAXERRS: u32 = 1075053070; -pub const TUNSETQUEUE: u32 = 2147767513; -pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 536914689; -pub const NBD_SET_TIMEOUT: u32 = 536914697; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; -pub const RIO_UNMAP_INBOUND: u32 = 2148035858; -pub const ATM_QUERYLOOP: u32 = 2148557140; -pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 536891910; -pub const VIDIOC_QUERYSTD: u32 = 1074288191; -pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 1076909578; -pub const PTP_ENABLE_PPS2: u32 = 2147761421; -pub const PCITEST_CLEAR_IRQ: u32 = 536891408; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; -pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; -pub const JSIOCGAXMAP: u32 = 1077963314; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; -pub const RTC_WIE_OFF: u32 = 536899600; -pub const PPGETMODE: u32 = 1074032792; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 2202025221; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 536908806; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; -pub const TUNDETACHFILTER: u32 = 2148553942; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 2148561101; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 1074033729; -pub const BLKGETZONESZ: u32 = 1074008708; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 1073837580; -pub const UI_SET_MSCBIT: u32 = 2147767656; -pub const APM_IOC_SUSPEND: u32 = 536887554; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 1075867665; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 1074812174; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; -pub const EVIOCSFF: u32 = 2150647168; -pub const TUNSETGROUP: u32 = 2147767502; -pub const EVIOCGKEYCODE: u32 = 1074283780; -pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 536871514; -pub const TUNSETOFFLOAD: u32 = 2147767504; -pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148557192; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; -pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; -pub const UI_ABS_SETUP: u32 = 2149340420; -pub const UI_DEV_DESTROY: u32 = 536892674; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 536899585; -pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; -pub const PPPIOCSDEBUG: u32 = 2147775552; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 2147775570; -pub const CCISS_DEREGDISK: u32 = 536887820; -pub const UI_DEV_CREATE: u32 = 536892673; -pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; -pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 1074283010; -pub const PPPIOCSASYNCMAP: u32 = 2147775575; -pub const I2OEVTGET: u32 = 1080584459; -pub const NVME_IOCTL_RESET: u32 = 536890948; -pub const PPYIELD: u32 = 536899725; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 2147767522; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 536899599; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2150657280; -pub const RTC_SET_TIME: u32 = 2149871626; -pub const VHOST_RESET_OWNER: u32 = 536915714; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 1074293825; -pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; -pub const HIDIOCGFLAG: u32 = 1074022414; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 2148577793; -pub const CCISS_GETFIRMVER: u32 = 1074020872; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 2147775547; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 2148561046; -pub const RTC_ALM_READ: u32 = 1076129800; -pub const VDUSE_SET_API_VERSION: u32 = 2148040961; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 536892695; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; -pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148557191; -pub const NBD_SET_SIZE: u32 = 536914690; -pub const UDF_GETVOLIDENT: u32 = 1074293826; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; -pub const UDF_GETEASIZE: u32 = 1074031680; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 536915713; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 2148557195; -pub const HPET_IE_ON: u32 = 536897537; -pub const PERF_EVENT_IOC_ID: u32 = 1074275335; -pub const TUNSETSNDBUF: u32 = 2147767508; -pub const PTP_PIN_SETFUNC: u32 = 2153790727; -pub const PPPIOCDISCONN: u32 = 536900665; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 536899727; -pub const PCITEST_MSI: u32 = 2147766275; -pub const FDWERRORCLR: u32 = 536871510; -pub const AUTOFS_IOC_FAIL: u32 = 536908641; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 2148029976; -pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; -pub const CCISS_GETDRIVVER: u32 = 1074020873; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; -pub const HPET_IRQFREQ: u32 = 2148034566; -pub const ATM_GETESI: u32 = 2148557189; -pub const CCISS_GETLUNINFO: u32 = 1074545169; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; -pub const UDMABUF_CREATE_LIST: u32 = 2148037955; -pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148557153; -pub const BR2684_SETFILT: u32 = 2149343632; -pub const RNDGETPOOL: u32 = 1074287106; -pub const PPS_GETPARAMS: u32 = 1074294945; -pub const IOC_PR_RESERVE: u32 = 2148561097; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074283009; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 536887822; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; -pub const VFIO_EEH_PE_OP: u32 = 536886137; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; -pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 2150913586; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 2147775549; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; -pub const PCITEST_LEGACY_IRQ: u32 = 536891394; -pub const USBDEVFS_SUBMITURB: u32 = 1077433610; -pub const AUTOFS_IOC_READY: u32 = 536908640; -pub const BTRFS_IOC_SEND: u32 = 2152240166; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 2214619699; -pub const PPPIOCSFLAGS: u32 = 2147775577; -pub const NVRAM_INIT: u32 = 536899648; -pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; -pub const BTRFS_IOC_BALANCE: u32 = 2415957004; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; -pub const STP_POLICY_ID_GET: u32 = 1074799873; -pub const PPSETFLAGS: u32 = 2147774619; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; -pub const PPPIOCGXASYNCMAP: u32 = 1075868752; -pub const VHOST_SET_VRING_CALL: u32 = 2148052769; -pub const LIRC_GET_FEATURES: u32 = 1074030848; -pub const GSMIOC_DISABLE_NET: u32 = 536889091; -pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; -pub const NBD_DO_IT: u32 = 536914691; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; -pub const EVIOCSCLOCKID: u32 = 2147763616; -pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; -pub const FSI_SCOM_RESET: u32 = 2147775235; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074283014; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 2149581379; -pub const TEE_IOC_INVOKE: u32 = 1074832387; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 2147579392; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 536899589; -pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; -pub const PPPIOCXFERUNIT: u32 = 536900686; -pub const WDIOC_GETTIMEOUT: u32 = 1074026247; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; -pub const FBIO_WAITFORVSYNC: u32 = 2147763744; -pub const RTC_PIE_OFF: u32 = 536899590; -pub const EVIOCGRAB: u32 = 2147763600; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 2148024834; -pub const EVIOCGREP: u32 = 1074283779; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2148017163; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 1074299136; -pub const RTC_RD_TIME: u32 = 1076129801; -pub const FDMSGOFF: u32 = 536871494; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; -pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; -pub const RIO_DEV_ADD: u32 = 2149608727; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 2148024324; -pub const PCITEST_GET_IRQTYPE: u32 = 536891401; -pub const JSIOCGVERSION: u32 = 1074031105; -pub const SONYPI_IOCSBLUE: u32 = 2147579401; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; -pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; -pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; -pub const VHOST_SET_VRING_NUM: u32 = 2148052752; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; -pub const PPPIOCGL2TPSTATS: u32 = 1078490166; -pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; -pub const PTP_PIN_SETFUNC2: u32 = 2153790736; -pub const CHIOEXCHANGE: u32 = 2149344002; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 2147767661; -pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; -pub const TUNSETIFF: u32 = 2147767498; -pub const CHIOPOSITION: u32 = 2148295427; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; -pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const EVIOCSMASK: u32 = 2148550035; -pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; -pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 2147774592; -pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 2149086530; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 2148036609; -pub const RNDADDTOENTCNT: u32 = 2147766785; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 536899586; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; -pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; -pub const PPPIOCSXASYNCMAP: u32 = 2149610575; -pub const CHIOGSTATUS: u32 = 2148557576; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; -pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; -pub const VHOST_GET_FEATURES: u32 = 1074310912; -pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; -pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; -pub const JSIOCGCORR: u32 = 1076128290; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 2148036622; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 2148557138; -pub const SCIF_LISTEN: u32 = 2147775234; -pub const NBD_CLEAR_QUE: u32 = 536914693; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 1074030863; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 2148794956; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; -pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; -pub const EVIOCRMFF: u32 = 2147763585; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 1073836165; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; -pub const TUNSETVNETHDRSZ: u32 = 2147767512; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 1078740736; -pub const LIRC_GET_SEND_MODE: u32 = 1074030849; -pub const PPPIOCSACTIVE: u32 = 2148561990; -pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; -pub const UI_END_FF_ERASE: u32 = 2148292043; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 536914698; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; -pub const REISERFS_IOC_UNPACK: u32 = 2148060417; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; -pub const RIO_SET_EVENT_MASK: u32 = 2147773709; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; -pub const I2OPASSTHRU: u32 = 1074817292; -pub const IOC_OPAL_SET_PW: u32 = 2183164128; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 2153010718; -pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 1074570240; -pub const VIDIOC_LOG_STATUS: u32 = 536892998; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; -pub const VHOST_SET_LOG_FD: u32 = 2147790599; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; -pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; -pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; -pub const JSIOCGBUTTONS: u32 = 1073834514; -pub const VFIO_IOMMU_ENABLE: u32 = 536886131; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 2147790711; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 2148816444; -pub const WDIOC_GETTEMP: u32 = 1074026243; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; -pub const UI_SET_LEDBIT: u32 = 2147767657; -pub const NBD_SET_SOCK: u32 = 536914688; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; -pub const FDFMTTRK: u32 = 2148270664; -pub const MMTIMER_GETBITS: u32 = 536898820; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; -pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; -pub const RTC_VL_READ: u32 = 1074032659; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 2149608728; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 2147579403; -pub const SPIOCSTYPE: u32 = 2148036865; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 1074025695; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 2154321353; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; -pub const PPPIOCSNPMODE: u32 = 2148037707; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 2147767505; -pub const TUNGETVNETLE: u32 = 1074025693; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; -pub const I2OVALIDATE: u32 = 1074030856; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1110471170; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; -pub const FDGETDRVSTAT: u32 = 1078985234; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 2147775541; -pub const LIRC_SET_SEND_MODE: u32 = 2147772689; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; -pub const ATM_GETTYPE: u32 = 2148557188; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 536871498; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; -pub const EVIOCGMASK: u32 = 1074808210; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 1074022148; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 2155872912; -pub const IOC_OPAL_SAVE: u32 = 2165862620; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 2147767514; -pub const CCISS_SETINTINFO: u32 = 2148024835; -pub const CM_IOSDBGLVL: u32 = 2148033530; -pub const RTC_VL_CLR: u32 = 536899604; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; -pub const CCISS_GETNODENAME: u32 = 1074807300; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; -pub const LPSETTIMEOUT_NEW: u32 = 2148533775; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 536871512; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 1074820159; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; -pub const PHN_SET_REGS: u32 = 2148036611; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148557155; -pub const MTIOCPOS: u32 = 1074294019; -pub const PMU_IOC_SLEEP: u32 = 536887808; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; -pub const VIDIOC_QUERYCAP: u32 = 1080579584; -pub const HPET_INFO: u32 = 1075341315; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2148030145; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 2147767500; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 2148028931; -pub const USBDEVFS_RESET: u32 = 536892692; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; -pub const FDGETDRVTYP: u32 = 1074790927; -pub const PPWCONTROL: u32 = 2147577988; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 536896357; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; -pub const PPPIOCSPASS: u32 = 2148561991; -pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; -pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; -pub const PPPIOCSMAXCID: u32 = 2147775569; -pub const PPSETPHASE: u32 = 2147774612; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; -pub const USBDEVFS_GET_SPEED: u32 = 536892703; -pub const SONET_GETFRAMING: u32 = 1074028822; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; -pub const PPS_GETCAP: u32 = 1074294947; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 536914696; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 536886132; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; -pub const SNAPSHOT_POWER_OFF: u32 = 536883984; -pub const APM_IOC_STANDBY: u32 = 536887553; -pub const PPPIOCGUNIT: u32 = 1074033750; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; -pub const PPPIOCGRASYNCMAP: u32 = 1074033749; -pub const MMTIMER_MMAPAVAIL: u32 = 536898822; -pub const I2OPASSTHRU32: u32 = 1074293004; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const UI_SET_SNDBIT: u32 = 2147767658; -pub const VIDIOC_G_AUDOUT: u32 = 1077171761; -pub const RTC_PLL_SET: u32 = 2149609490; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 2147790660; -pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; -pub const VDUSE_CREATE_DEV: u32 = 2169536770; -pub const FDFLUSH: u32 = 536871499; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148557300; -pub const FDSETPRM: u32 = 2149581378; -pub const ATM_GETSTATZ: u32 = 2148557137; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 2148028422; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; -pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; -pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; -pub const CHIOGVPARAMS: u32 = 1081107219; -pub const PTP_PEROUT_REQUEST: u32 = 2151169283; -pub const FSI_SCOM_CHECK: u32 = 1074033408; -pub const RTC_IRQP_READ: u32 = 1074294795; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; -pub const HIDIOCGRDESCSIZE: u32 = 1074022401; -pub const UI_GET_VERSION: u32 = 1074025773; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; -pub const CCISS_GETBUSTYPES: u32 = 1074020871; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 2147767654; -pub const VFIO_SET_IOMMU: u32 = 536886118; -pub const VIDIOC_S_MODULATOR: u32 = 2151962167; -pub const TUNGETFILTER: u32 = 1074812123; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 2148549125; -pub const FBIO_GETCONTROL2: u32 = 1074284169; -pub const TUNSETDEBUG: u32 = 2147767497; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 2417772564; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 1075856914; -pub const ATM_GETSTAT: u32 = 2148557136; -pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; -pub const TUNATTACHFILTER: u32 = 2148553941; -pub const UI_SET_ABSBIT: u32 = 2147767655; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; -pub const USBDEVFS_REAPURB32: u32 = 2147767564; -pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; -pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148557152; -pub const ATM_SETLOOP: u32 = 2148557139; -pub const ATMSIGD_CTRL: u32 = 536895984; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; -pub const SNAPSHOT_UNFREEZE: u32 = 536883970; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; -pub const PMU_IOC_HAS_ADB: u32 = 1074283012; -pub const I2OGETIOPS: u32 = 1075865856; -pub const VIDIOC_S_FBUF: u32 = 2150651403; -pub const PPRCONTROL: u32 = 1073836163; -pub const CHIOSPICKER: u32 = 2147771141; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; -pub const TUNGETSNDBUF: u32 = 1074025683; -pub const GSMIOC_SETCONF: u32 = 2152482561; -pub const IOC_PR_PREEMPT: u32 = 2149085387; -pub const KCOV_INIT_TRACE: u32 = 1074291457; -pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; -pub const MTIOCTOP: u32 = 2148035841; -pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 1074033747; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 1074033754; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148557199; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; -pub const PPPIOCGIDLE32: u32 = 1074295871; -pub const VFIO_DEVICE_RESET: u32 = 536886127; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 1074026241; -pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 2148028421; -pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074294523; -pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 1077171745; -pub const CCISS_RESCANDISK: u32 = 536887824; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; -pub const USBDEVFS_REAPURB: u32 = 2148029708; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; -pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; -pub const PCITEST_MSIX: u32 = 2147766279; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 1074820159; -pub const NVRAM_SETCKS: u32 = 536899649; -pub const WDIOC_GETSUPPORT: u32 = 1076385536; -pub const GSMIOC_ENABLE_NET: u32 = 2150909698; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 2150122756; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 2149084422; -pub const I2OEVTREG: u32 = 2148296970; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 1074283778; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 1074025696; -pub const ATM_GETNAMES: u32 = 2148557187; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148557154; -pub const BLKCLOSEZONE: u32 = 2148536967; -pub const SONET_GETFRSENSE: u32 = 1074159895; -pub const UI_SET_EVBIT: u32 = 2147767652; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 1090799620; -pub const PPPIOCATTCHAN: u32 = 2147775544; -pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; -pub const TUNGETFEATURES: u32 = 1074025679; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; -pub const CCISS_REGNEWDISK: u32 = 2147762701; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const PHN_SETREGS: u32 = 2150133768; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 1074025682; -pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; -pub const BTRFS_IOC_RESIZE: u32 = 2415956995; -pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; -pub const PPS_KC_BIND: u32 = 2148036773; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; -pub const UI_SET_FFBIT: u32 = 2147767659; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; -pub const CEC_G_MODE: u32 = 1074028808; -pub const USBDEVFS_RESETEP: u32 = 1074025731; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074331136; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; -pub const VFIO_CHECK_EXTENSION: u32 = 536886117; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; -pub const UI_SET_PHYS: u32 = 2148029804; -pub const FDWERRORGET: u32 = 1076363799; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 536898823; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; -pub const SIOCGSTAMP_NEW: u32 = 1074825478; -pub const RTC_WKALM_RD: u32 = 1076391952; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 536899588; -pub const PPGETMODES: u32 = 1074032791; -pub const CHIOGPARAMS: u32 = 1075077894; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; -pub const KCOV_ENABLE: u32 = 536896356; -pub const BTRFS_IOC_CLONE: u32 = 2147783689; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; -pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; -pub const RTC_UIE_OFF: u32 = 536899588; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; -pub const NVME_IOCTL_ID: u32 = 536890944; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 2147767826; -pub const FDPOLLDRVSTAT: u32 = 1078985235; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; -pub const WDIOC_GETTIMELEFT: u32 = 1074026250; -pub const ATM_GETLINKRATE: u32 = 2148557185; -pub const RTC_WKALM_SET: u32 = 2150133775; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; -pub const NS_GET_OWNER_UID: u32 = 536917764; -pub const VIDIOC_OVERLAY: u32 = 2147767822; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148557190; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 536883979; -pub const JSIOCSAXMAP: u32 = 2151705137; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 536886128; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 536898816; -pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; -pub const ATM_SETSC: u32 = 2147770865; -pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; -pub const NVME_IOCTL_RESCAN: u32 = 536890950; -pub const BLKOPENZONE: u32 = 2148536966; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; -pub const HIDIOCGVERSION: u32 = 1074022401; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; -pub const EVIOCGEFFECTS: u32 = 1074021764; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148557106; -pub const HIDIOCINITREPORT: u32 = 536889349; -pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 1074024960; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 536871508; -pub const IOC_PR_REGISTER: u32 = 2149085384; -pub const HIDIOCSREPORT: u32 = 2148288520; -pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; -pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 1074284547; -pub const PPPIOCSCOMPRESS: u32 = 2148561997; -pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; -pub const BLKRESETZONE: u32 = 2148536963; -pub const CHIOINITELEM: u32 = 536896273; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; -pub const PPGETPHASE: u32 = 1074032793; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; -pub const FDMSGON: u32 = 536871493; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; -pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; -pub const FDFMTBEG: u32 = 536871495; -pub const RNDRESEEDCRNG: u32 = 536891911; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 2147767496; -pub const SONET_GETSTAT: u32 = 1076125968; -pub const TFD_IOC_SET_TICKS: u32 = 2148029440; -pub const PPDATADIR: u32 = 2147774608; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 2148557577; -pub const PPWCTLONIRQ: u32 = 2147578002; -pub const SONYPI_IOCGBRT: u32 = 1073837568; -pub const IOC_PR_RELEASE: u32 = 2148561098; -pub const PPCLRIRQ: u32 = 1074032787; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; -pub const HPET_IE_OFF: u32 = 536897538; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; -pub const SONET_SETFRAMING: u32 = 2147770645; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 2148536968; -pub const EVIOCREVOKE: u32 = 2147763601; -pub const VFIO_DEVICE_FEATURE: u32 = 536886133; -pub const CCISS_GETPCIINFO: u32 = 1074283009; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 2147767827; -pub const VDUSE_DESTROY_DEV: u32 = 2164293891; -pub const FDGETFDCSTAT: u32 = 1076363797; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 2147767876; -pub const SNAPSHOT_FREEZE: u32 = 536883969; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148557154; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 1074288151; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; -pub const SONET_GETSTATZ: u32 = 1076125969; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 2147775572; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 536914692; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; -pub const WDIOC_KEEPALIVE: u32 = 1074026245; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; -pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; -pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; -pub const EVIOCSREP: u32 = 2148025603; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; -pub const HPET_DPI: u32 = 536897541; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 1075595267; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 1074026051; -pub const ATM_NEWBACKENDIF: u32 = 2147639795; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; -pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; -pub const CHIOGELEM: u32 = 2154586896; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; -pub const EVIOCSKEYCODE: u32 = 2148025604; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 2147767501; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; -pub const PPS_SETPARAMS: u32 = 2148036770; -pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; -pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; -pub const VIDIOC_S_AUDIO: u32 = 2150913570; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; -pub const SNAPSHOT_FREE: u32 = 536883973; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 2148288519; -pub const HPET_EPI: u32 = 536897540; -pub const JSIOCSCORR: u32 = 2149870113; -pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 2148557196; -pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148557193; -pub const PPFCONTROL: u32 = 2147643534; -pub const SONYPI_IOCGFAN: u32 = 1073837578; -pub const RTC_IRQP_SET: u32 = 2148036620; -pub const PCITEST_WRITE: u32 = 2148028420; -pub const PPCLAIM: u32 = 536899723; -pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; -pub const VHOST_SET_FEATURES: u32 = 2148052736; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; -pub const MMTIMER_GETFREQ: u32 = 1074294018; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2148053248; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; -pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 536871497; -pub const DMA_BUF_SET_NAME: u32 = 2148033025; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 536899587; -pub const PPRELEASE: u32 = 536899724; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1110471169; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 2148052768; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; -pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; -pub const PPNEGOT: u32 = 2147774609; -pub const NBD_PRINT_DEBUG: u32 = 536914694; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 1140888607; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 1074026022; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; -pub const MMTIMER_GETCOUNTER: u32 = 1074294025; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; -pub const RIO_CM_CHAN_BIND: u32 = 2148033285; -pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; -pub const BLKGETDISKSEQ: u32 = 1074270848; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; -pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; -pub const ACRN_IOCTL_START_VM: u32 = 536912402; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; -pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/net.rs b/third_party/rust/linux-raw-sys/src/mips64r6/net.rs deleted file mode 100644 index de332d8aa799..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/net.rs +++ /dev/null @@ -1,1875 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 65535; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 4; -pub const SO_KEEPALIVE: u32 = 8; -pub const SO_DONTROUTE: u32 = 16; -pub const SO_BROADCAST: u32 = 32; -pub const SO_LINGER: u32 = 128; -pub const SO_OOBINLINE: u32 = 256; -pub const SO_REUSEPORT: u32 = 512; -pub const SO_TYPE: u32 = 4104; -pub const SO_STYLE: u32 = 4104; -pub const SO_ERROR: u32 = 4103; -pub const SO_SNDBUF: u32 = 4097; -pub const SO_RCVBUF: u32 = 4098; -pub const SO_SNDLOWAT: u32 = 4099; -pub const SO_RCVLOWAT: u32 = 4100; -pub const SO_SNDTIMEO_OLD: u32 = 4101; -pub const SO_RCVTIMEO_OLD: u32 = 4102; -pub const SO_ACCEPTCONN: u32 = 4105; -pub const SO_PROTOCOL: u32 = 4136; -pub const SO_DOMAIN: u32 = 4137; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_PASSCRED: u32 = 17; -pub const SO_PEERCRED: u32 = 18; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_PEERSEC: u32 = 30; -pub const SO_SNDBUFFORCE: u32 = 31; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 4102; -pub const SO_SNDTIMEO: u32 = 4101; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 2; -pub const SOCK_DGRAM: u32 = 1; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/netlink.rs b/third_party/rust/linux-raw-sys/src/mips64r6/netlink.rs deleted file mode 100644 index 6fef6bb97503..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/netlink.rs +++ /dev/null @@ -1,2864 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/prctl.rs b/third_party/rust/linux-raw-sys/src/mips64r6/prctl.rs deleted file mode 100644 index ce008a34bf89..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/prctl.rs +++ /dev/null @@ -1,231 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/mips64r6/system.rs b/third_party/rust/linux-raw-sys/src/mips64r6/system.rs deleted file mode 100644 index 1360bd91ec8c..000000000000 --- a/third_party/rust/linux-raw-sys/src/mips64r6/system.rs +++ /dev/null @@ -1,139 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const _MIPS_ISA_MIPS1: u32 = 1; -pub const _MIPS_ISA_MIPS2: u32 = 2; -pub const _MIPS_ISA_MIPS3: u32 = 3; -pub const _MIPS_ISA_MIPS4: u32 = 4; -pub const _MIPS_ISA_MIPS5: u32 = 5; -pub const _MIPS_ISA_MIPS32: u32 = 6; -pub const _MIPS_ISA_MIPS64: u32 = 7; -pub const _MIPS_SIM_ABI32: u32 = 1; -pub const _MIPS_SIM_NABI32: u32 = 2; -pub const _MIPS_SIM_ABI64: u32 = 3; -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/powerpc/errno.rs b/third_party/rust/linux-raw-sys/src/powerpc/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/powerpc/general.rs b/third_party/rust/linux-raw-sys/src/powerpc/general.rs deleted file mode 100644 index 2d6db3c3fa90..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/general.rs +++ /dev/null @@ -1,3023 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_short; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __u32; -pub type termios2 = termios; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_sigaction { -pub sa_handler: __sighandler_t, -pub sa_mask: old_sigset_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sig_dbg_op { -pub dbg_type: crate::ctypes::c_int, -pub dbg_value: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_cc: [cc_t; 19usize], -pub c_line: cc_t, -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_cc: [cc_t; 19usize], -pub c_line: cc_t, -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sgttyb { -pub sg_ispeed: crate::ctypes::c_char, -pub sg_ospeed: crate::ctypes::c_char, -pub sg_erase: crate::ctypes::c_char, -pub sg_kill: crate::ctypes::c_char, -pub sg_flags: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tchars { -pub t_intrc: crate::ctypes::c_char, -pub t_quitc: crate::ctypes::c_char, -pub t_startc: crate::ctypes::c_char, -pub t_stopc: crate::ctypes::c_char, -pub t_eofc: crate::ctypes::c_char, -pub t_brkc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ltchars { -pub t_suspc: crate::ctypes::c_char, -pub t_dsuspc: crate::ctypes::c_char, -pub t_rprntc: crate::ctypes::c_char, -pub t_flushc: crate::ctypes::c_char, -pub t_werasc: crate::ctypes::c_char, -pub t_lnextc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 10usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __old_kernel_stat { -pub st_dev: crate::ctypes::c_ushort, -pub st_ino: crate::ctypes::c_ushort, -pub st_mode: crate::ctypes::c_ushort, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: __kernel_ino_t, -pub st_mode: __kernel_mode_t, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_ulong, -pub __unused5: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulonglong, -pub st_ino: crate::ctypes::c_ulonglong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulonglong, -pub __pad2: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_longlong, -pub st_blksize: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_longlong, -pub st_atime: crate::ctypes::c_int, -pub st_atime_nsec: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_int, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_int, -pub st_ctime_nsec: crate::ctypes::c_uint, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u32, -pub f_bfree: __u32, -pub f_bavail: __u32, -pub f_files: __u32, -pub f_ffree: __u32, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -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_EXECFN: u32 = 31; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_DIRECTORY: u32 = 16384; -pub const O_NOFOLLOW: u32 = 32768; -pub const O_LARGEFILE: u32 = 65536; -pub const O_DIRECT: u32 = 131072; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4210688; -pub const O_TMPFILE_MASK: u32 = 4210752; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const PROT_SAO: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_NORESERVE: u32 = 64; -pub const MAP_LOCKED: u32 = 128; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MCL_CURRENT: u32 = 8192; -pub const MCL_FUTURE: u32 = 16384; -pub const MCL_ONFAULT: u32 = 32768; -pub const PKEY_DISABLE_EXECUTE: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 64; -pub const _NSIG_BPW: u32 = 32; -pub const _NSIG_WORDS: u32 = 2; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SIG_DBG_SINGLE_STEPPING: u32 = 1; -pub const SIG_DBG_BRANCH_TRACING: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VMIN: u32 = 5; -pub const VEOL: u32 = 6; -pub const VTIME: u32 = 7; -pub const VEOL2: u32 = 8; -pub const VSWTC: u32 = 9; -pub const VWERASE: u32 = 10; -pub const VREPRINT: u32 = 11; -pub const VSUSP: u32 = 12; -pub const VSTART: u32 = 13; -pub const VSTOP: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VDISCARD: u32 = 16; -pub const IXON: u32 = 512; -pub const IXOFF: u32 = 1024; -pub const IUCLC: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const ONLCR: u32 = 2; -pub const OLCUC: u32 = 4; -pub const NLDLY: u32 = 768; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const NL2: u32 = 512; -pub const NL3: u32 = 768; -pub const TABDLY: u32 = 3072; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 1024; -pub const TAB2: u32 = 2048; -pub const TAB3: u32 = 3072; -pub const XTABS: u32 = 3072; -pub const CRDLY: u32 = 12288; -pub const CR0: u32 = 0; -pub const CR1: u32 = 4096; -pub const CR2: u32 = 8192; -pub const CR3: u32 = 12288; -pub const FFDLY: u32 = 16384; -pub const FF0: u32 = 0; -pub const FF1: u32 = 16384; -pub const BSDLY: u32 = 32768; -pub const BS0: u32 = 0; -pub const BS1: u32 = 32768; -pub const VTDLY: u32 = 65536; -pub const VT0: u32 = 0; -pub const VT1: u32 = 65536; -pub const CBAUD: u32 = 255; -pub const CBAUDEX: u32 = 0; -pub const BOTHER: u32 = 31; -pub const B57600: u32 = 16; -pub const B115200: u32 = 17; -pub const B230400: u32 = 18; -pub const B460800: u32 = 19; -pub const B500000: u32 = 20; -pub const B576000: u32 = 21; -pub const B921600: u32 = 22; -pub const B1000000: u32 = 23; -pub const B1152000: u32 = 24; -pub const B1500000: u32 = 25; -pub const B2000000: u32 = 26; -pub const B2500000: u32 = 27; -pub const B3000000: u32 = 28; -pub const B3500000: u32 = 29; -pub const B4000000: u32 = 30; -pub const CSIZE: u32 = 768; -pub const CS5: u32 = 0; -pub const CS6: u32 = 256; -pub const CS7: u32 = 512; -pub const CS8: u32 = 768; -pub const CSTOPB: u32 = 1024; -pub const CREAD: u32 = 2048; -pub const PARENB: u32 = 4096; -pub const PARODD: u32 = 8192; -pub const HUPCL: u32 = 16384; -pub const CLOCAL: u32 = 32768; -pub const CIBAUD: u32 = 16711680; -pub const ISIG: u32 = 128; -pub const ICANON: u32 = 256; -pub const XCASE: u32 = 16384; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 2; -pub const ECHOK: u32 = 4; -pub const ECHONL: u32 = 16; -pub const NOFLSH: u32 = 2147483648; -pub const TOSTOP: u32 = 4194304; -pub const ECHOCTL: u32 = 64; -pub const ECHOPRT: u32 = 32; -pub const ECHOKE: u32 = 1; -pub const FLUSHO: u32 = 8388608; -pub const PENDIN: u32 = 536870912; -pub const IEXTEN: u32 = 1024; -pub const EXTPROC: u32 = 268435456; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const NCC: u32 = 10; -pub const _VINTR: u32 = 0; -pub const _VQUIT: u32 = 1; -pub const _VERASE: u32 = 2; -pub const _VKILL: u32 = 3; -pub const _VEOF: u32 = 4; -pub const _VMIN: u32 = 5; -pub const _VEOL: u32 = 6; -pub const _VTIME: u32 = 7; -pub const _VEOL2: u32 = 8; -pub const _VSWTC: u32 = 9; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_restart_syscall: u32 = 0; -pub const __NR_exit: u32 = 1; -pub const __NR_fork: u32 = 2; -pub const __NR_read: u32 = 3; -pub const __NR_write: u32 = 4; -pub const __NR_open: u32 = 5; -pub const __NR_close: u32 = 6; -pub const __NR_waitpid: u32 = 7; -pub const __NR_creat: u32 = 8; -pub const __NR_link: u32 = 9; -pub const __NR_unlink: u32 = 10; -pub const __NR_execve: u32 = 11; -pub const __NR_chdir: u32 = 12; -pub const __NR_time: u32 = 13; -pub const __NR_mknod: u32 = 14; -pub const __NR_chmod: u32 = 15; -pub const __NR_lchown: u32 = 16; -pub const __NR_break: u32 = 17; -pub const __NR_oldstat: u32 = 18; -pub const __NR_lseek: u32 = 19; -pub const __NR_getpid: u32 = 20; -pub const __NR_mount: u32 = 21; -pub const __NR_umount: u32 = 22; -pub const __NR_setuid: u32 = 23; -pub const __NR_getuid: u32 = 24; -pub const __NR_stime: u32 = 25; -pub const __NR_ptrace: u32 = 26; -pub const __NR_alarm: u32 = 27; -pub const __NR_oldfstat: u32 = 28; -pub const __NR_pause: u32 = 29; -pub const __NR_utime: u32 = 30; -pub const __NR_stty: u32 = 31; -pub const __NR_gtty: u32 = 32; -pub const __NR_access: u32 = 33; -pub const __NR_nice: u32 = 34; -pub const __NR_ftime: u32 = 35; -pub const __NR_sync: u32 = 36; -pub const __NR_kill: u32 = 37; -pub const __NR_rename: u32 = 38; -pub const __NR_mkdir: u32 = 39; -pub const __NR_rmdir: u32 = 40; -pub const __NR_dup: u32 = 41; -pub const __NR_pipe: u32 = 42; -pub const __NR_times: u32 = 43; -pub const __NR_prof: u32 = 44; -pub const __NR_brk: u32 = 45; -pub const __NR_setgid: u32 = 46; -pub const __NR_getgid: u32 = 47; -pub const __NR_signal: u32 = 48; -pub const __NR_geteuid: u32 = 49; -pub const __NR_getegid: u32 = 50; -pub const __NR_acct: u32 = 51; -pub const __NR_umount2: u32 = 52; -pub const __NR_lock: u32 = 53; -pub const __NR_ioctl: u32 = 54; -pub const __NR_fcntl: u32 = 55; -pub const __NR_mpx: u32 = 56; -pub const __NR_setpgid: u32 = 57; -pub const __NR_ulimit: u32 = 58; -pub const __NR_oldolduname: u32 = 59; -pub const __NR_umask: u32 = 60; -pub const __NR_chroot: u32 = 61; -pub const __NR_ustat: u32 = 62; -pub const __NR_dup2: u32 = 63; -pub const __NR_getppid: u32 = 64; -pub const __NR_getpgrp: u32 = 65; -pub const __NR_setsid: u32 = 66; -pub const __NR_sigaction: u32 = 67; -pub const __NR_sgetmask: u32 = 68; -pub const __NR_ssetmask: u32 = 69; -pub const __NR_setreuid: u32 = 70; -pub const __NR_setregid: u32 = 71; -pub const __NR_sigsuspend: u32 = 72; -pub const __NR_sigpending: u32 = 73; -pub const __NR_sethostname: u32 = 74; -pub const __NR_setrlimit: u32 = 75; -pub const __NR_getrlimit: u32 = 76; -pub const __NR_getrusage: u32 = 77; -pub const __NR_gettimeofday: u32 = 78; -pub const __NR_settimeofday: u32 = 79; -pub const __NR_getgroups: u32 = 80; -pub const __NR_setgroups: u32 = 81; -pub const __NR_select: u32 = 82; -pub const __NR_symlink: u32 = 83; -pub const __NR_oldlstat: u32 = 84; -pub const __NR_readlink: u32 = 85; -pub const __NR_uselib: u32 = 86; -pub const __NR_swapon: u32 = 87; -pub const __NR_reboot: u32 = 88; -pub const __NR_readdir: u32 = 89; -pub const __NR_mmap: u32 = 90; -pub const __NR_munmap: u32 = 91; -pub const __NR_truncate: u32 = 92; -pub const __NR_ftruncate: u32 = 93; -pub const __NR_fchmod: u32 = 94; -pub const __NR_fchown: u32 = 95; -pub const __NR_getpriority: u32 = 96; -pub const __NR_setpriority: u32 = 97; -pub const __NR_profil: u32 = 98; -pub const __NR_statfs: u32 = 99; -pub const __NR_fstatfs: u32 = 100; -pub const __NR_ioperm: u32 = 101; -pub const __NR_socketcall: u32 = 102; -pub const __NR_syslog: u32 = 103; -pub const __NR_setitimer: u32 = 104; -pub const __NR_getitimer: u32 = 105; -pub const __NR_stat: u32 = 106; -pub const __NR_lstat: u32 = 107; -pub const __NR_fstat: u32 = 108; -pub const __NR_olduname: u32 = 109; -pub const __NR_iopl: u32 = 110; -pub const __NR_vhangup: u32 = 111; -pub const __NR_idle: u32 = 112; -pub const __NR_vm86: u32 = 113; -pub const __NR_wait4: u32 = 114; -pub const __NR_swapoff: u32 = 115; -pub const __NR_sysinfo: u32 = 116; -pub const __NR_ipc: u32 = 117; -pub const __NR_fsync: u32 = 118; -pub const __NR_sigreturn: u32 = 119; -pub const __NR_clone: u32 = 120; -pub const __NR_setdomainname: u32 = 121; -pub const __NR_uname: u32 = 122; -pub const __NR_modify_ldt: u32 = 123; -pub const __NR_adjtimex: u32 = 124; -pub const __NR_mprotect: u32 = 125; -pub const __NR_sigprocmask: u32 = 126; -pub const __NR_create_module: u32 = 127; -pub const __NR_init_module: u32 = 128; -pub const __NR_delete_module: u32 = 129; -pub const __NR_get_kernel_syms: u32 = 130; -pub const __NR_quotactl: u32 = 131; -pub const __NR_getpgid: u32 = 132; -pub const __NR_fchdir: u32 = 133; -pub const __NR_bdflush: u32 = 134; -pub const __NR_sysfs: u32 = 135; -pub const __NR_personality: u32 = 136; -pub const __NR_afs_syscall: u32 = 137; -pub const __NR_setfsuid: u32 = 138; -pub const __NR_setfsgid: u32 = 139; -pub const __NR__llseek: u32 = 140; -pub const __NR_getdents: u32 = 141; -pub const __NR__newselect: u32 = 142; -pub const __NR_flock: u32 = 143; -pub const __NR_msync: u32 = 144; -pub const __NR_readv: u32 = 145; -pub const __NR_writev: u32 = 146; -pub const __NR_getsid: u32 = 147; -pub const __NR_fdatasync: u32 = 148; -pub const __NR__sysctl: u32 = 149; -pub const __NR_mlock: u32 = 150; -pub const __NR_munlock: u32 = 151; -pub const __NR_mlockall: u32 = 152; -pub const __NR_munlockall: u32 = 153; -pub const __NR_sched_setparam: u32 = 154; -pub const __NR_sched_getparam: u32 = 155; -pub const __NR_sched_setscheduler: u32 = 156; -pub const __NR_sched_getscheduler: u32 = 157; -pub const __NR_sched_yield: u32 = 158; -pub const __NR_sched_get_priority_max: u32 = 159; -pub const __NR_sched_get_priority_min: u32 = 160; -pub const __NR_sched_rr_get_interval: u32 = 161; -pub const __NR_nanosleep: u32 = 162; -pub const __NR_mremap: u32 = 163; -pub const __NR_setresuid: u32 = 164; -pub const __NR_getresuid: u32 = 165; -pub const __NR_query_module: u32 = 166; -pub const __NR_poll: u32 = 167; -pub const __NR_nfsservctl: u32 = 168; -pub const __NR_setresgid: u32 = 169; -pub const __NR_getresgid: u32 = 170; -pub const __NR_prctl: u32 = 171; -pub const __NR_rt_sigreturn: u32 = 172; -pub const __NR_rt_sigaction: u32 = 173; -pub const __NR_rt_sigprocmask: u32 = 174; -pub const __NR_rt_sigpending: u32 = 175; -pub const __NR_rt_sigtimedwait: u32 = 176; -pub const __NR_rt_sigqueueinfo: u32 = 177; -pub const __NR_rt_sigsuspend: u32 = 178; -pub const __NR_pread64: u32 = 179; -pub const __NR_pwrite64: u32 = 180; -pub const __NR_chown: u32 = 181; -pub const __NR_getcwd: u32 = 182; -pub const __NR_capget: u32 = 183; -pub const __NR_capset: u32 = 184; -pub const __NR_sigaltstack: u32 = 185; -pub const __NR_sendfile: u32 = 186; -pub const __NR_getpmsg: u32 = 187; -pub const __NR_putpmsg: u32 = 188; -pub const __NR_vfork: u32 = 189; -pub const __NR_ugetrlimit: u32 = 190; -pub const __NR_readahead: u32 = 191; -pub const __NR_mmap2: u32 = 192; -pub const __NR_truncate64: u32 = 193; -pub const __NR_ftruncate64: u32 = 194; -pub const __NR_stat64: u32 = 195; -pub const __NR_lstat64: u32 = 196; -pub const __NR_fstat64: u32 = 197; -pub const __NR_pciconfig_read: u32 = 198; -pub const __NR_pciconfig_write: u32 = 199; -pub const __NR_pciconfig_iobase: u32 = 200; -pub const __NR_multiplexer: u32 = 201; -pub const __NR_getdents64: u32 = 202; -pub const __NR_pivot_root: u32 = 203; -pub const __NR_fcntl64: u32 = 204; -pub const __NR_madvise: u32 = 205; -pub const __NR_mincore: u32 = 206; -pub const __NR_gettid: u32 = 207; -pub const __NR_tkill: u32 = 208; -pub const __NR_setxattr: u32 = 209; -pub const __NR_lsetxattr: u32 = 210; -pub const __NR_fsetxattr: u32 = 211; -pub const __NR_getxattr: u32 = 212; -pub const __NR_lgetxattr: u32 = 213; -pub const __NR_fgetxattr: u32 = 214; -pub const __NR_listxattr: u32 = 215; -pub const __NR_llistxattr: u32 = 216; -pub const __NR_flistxattr: u32 = 217; -pub const __NR_removexattr: u32 = 218; -pub const __NR_lremovexattr: u32 = 219; -pub const __NR_fremovexattr: u32 = 220; -pub const __NR_futex: u32 = 221; -pub const __NR_sched_setaffinity: u32 = 222; -pub const __NR_sched_getaffinity: u32 = 223; -pub const __NR_tuxcall: u32 = 225; -pub const __NR_sendfile64: u32 = 226; -pub const __NR_io_setup: u32 = 227; -pub const __NR_io_destroy: u32 = 228; -pub const __NR_io_getevents: u32 = 229; -pub const __NR_io_submit: u32 = 230; -pub const __NR_io_cancel: u32 = 231; -pub const __NR_set_tid_address: u32 = 232; -pub const __NR_fadvise64: u32 = 233; -pub const __NR_exit_group: u32 = 234; -pub const __NR_lookup_dcookie: u32 = 235; -pub const __NR_epoll_create: u32 = 236; -pub const __NR_epoll_ctl: u32 = 237; -pub const __NR_epoll_wait: u32 = 238; -pub const __NR_remap_file_pages: u32 = 239; -pub const __NR_timer_create: u32 = 240; -pub const __NR_timer_settime: u32 = 241; -pub const __NR_timer_gettime: u32 = 242; -pub const __NR_timer_getoverrun: u32 = 243; -pub const __NR_timer_delete: u32 = 244; -pub const __NR_clock_settime: u32 = 245; -pub const __NR_clock_gettime: u32 = 246; -pub const __NR_clock_getres: u32 = 247; -pub const __NR_clock_nanosleep: u32 = 248; -pub const __NR_swapcontext: u32 = 249; -pub const __NR_tgkill: u32 = 250; -pub const __NR_utimes: u32 = 251; -pub const __NR_statfs64: u32 = 252; -pub const __NR_fstatfs64: u32 = 253; -pub const __NR_fadvise64_64: u32 = 254; -pub const __NR_rtas: u32 = 255; -pub const __NR_sys_debug_setcontext: u32 = 256; -pub const __NR_migrate_pages: u32 = 258; -pub const __NR_mbind: u32 = 259; -pub const __NR_get_mempolicy: u32 = 260; -pub const __NR_set_mempolicy: u32 = 261; -pub const __NR_mq_open: u32 = 262; -pub const __NR_mq_unlink: u32 = 263; -pub const __NR_mq_timedsend: u32 = 264; -pub const __NR_mq_timedreceive: u32 = 265; -pub const __NR_mq_notify: u32 = 266; -pub const __NR_mq_getsetattr: u32 = 267; -pub const __NR_kexec_load: u32 = 268; -pub const __NR_add_key: u32 = 269; -pub const __NR_request_key: u32 = 270; -pub const __NR_keyctl: u32 = 271; -pub const __NR_waitid: u32 = 272; -pub const __NR_ioprio_set: u32 = 273; -pub const __NR_ioprio_get: u32 = 274; -pub const __NR_inotify_init: u32 = 275; -pub const __NR_inotify_add_watch: u32 = 276; -pub const __NR_inotify_rm_watch: u32 = 277; -pub const __NR_spu_run: u32 = 278; -pub const __NR_spu_create: u32 = 279; -pub const __NR_pselect6: u32 = 280; -pub const __NR_ppoll: u32 = 281; -pub const __NR_unshare: u32 = 282; -pub const __NR_splice: u32 = 283; -pub const __NR_tee: u32 = 284; -pub const __NR_vmsplice: u32 = 285; -pub const __NR_openat: u32 = 286; -pub const __NR_mkdirat: u32 = 287; -pub const __NR_mknodat: u32 = 288; -pub const __NR_fchownat: u32 = 289; -pub const __NR_futimesat: u32 = 290; -pub const __NR_fstatat64: u32 = 291; -pub const __NR_unlinkat: u32 = 292; -pub const __NR_renameat: u32 = 293; -pub const __NR_linkat: u32 = 294; -pub const __NR_symlinkat: u32 = 295; -pub const __NR_readlinkat: u32 = 296; -pub const __NR_fchmodat: u32 = 297; -pub const __NR_faccessat: u32 = 298; -pub const __NR_get_robust_list: u32 = 299; -pub const __NR_set_robust_list: u32 = 300; -pub const __NR_move_pages: u32 = 301; -pub const __NR_getcpu: u32 = 302; -pub const __NR_epoll_pwait: u32 = 303; -pub const __NR_utimensat: u32 = 304; -pub const __NR_signalfd: u32 = 305; -pub const __NR_timerfd_create: u32 = 306; -pub const __NR_eventfd: u32 = 307; -pub const __NR_sync_file_range2: u32 = 308; -pub const __NR_fallocate: u32 = 309; -pub const __NR_subpage_prot: u32 = 310; -pub const __NR_timerfd_settime: u32 = 311; -pub const __NR_timerfd_gettime: u32 = 312; -pub const __NR_signalfd4: u32 = 313; -pub const __NR_eventfd2: u32 = 314; -pub const __NR_epoll_create1: u32 = 315; -pub const __NR_dup3: u32 = 316; -pub const __NR_pipe2: u32 = 317; -pub const __NR_inotify_init1: u32 = 318; -pub const __NR_perf_event_open: u32 = 319; -pub const __NR_preadv: u32 = 320; -pub const __NR_pwritev: u32 = 321; -pub const __NR_rt_tgsigqueueinfo: u32 = 322; -pub const __NR_fanotify_init: u32 = 323; -pub const __NR_fanotify_mark: u32 = 324; -pub const __NR_prlimit64: u32 = 325; -pub const __NR_socket: u32 = 326; -pub const __NR_bind: u32 = 327; -pub const __NR_connect: u32 = 328; -pub const __NR_listen: u32 = 329; -pub const __NR_accept: u32 = 330; -pub const __NR_getsockname: u32 = 331; -pub const __NR_getpeername: u32 = 332; -pub const __NR_socketpair: u32 = 333; -pub const __NR_send: u32 = 334; -pub const __NR_sendto: u32 = 335; -pub const __NR_recv: u32 = 336; -pub const __NR_recvfrom: u32 = 337; -pub const __NR_shutdown: u32 = 338; -pub const __NR_setsockopt: u32 = 339; -pub const __NR_getsockopt: u32 = 340; -pub const __NR_sendmsg: u32 = 341; -pub const __NR_recvmsg: u32 = 342; -pub const __NR_recvmmsg: u32 = 343; -pub const __NR_accept4: u32 = 344; -pub const __NR_name_to_handle_at: u32 = 345; -pub const __NR_open_by_handle_at: u32 = 346; -pub const __NR_clock_adjtime: u32 = 347; -pub const __NR_syncfs: u32 = 348; -pub const __NR_sendmmsg: u32 = 349; -pub const __NR_setns: u32 = 350; -pub const __NR_process_vm_readv: u32 = 351; -pub const __NR_process_vm_writev: u32 = 352; -pub const __NR_finit_module: u32 = 353; -pub const __NR_kcmp: u32 = 354; -pub const __NR_sched_setattr: u32 = 355; -pub const __NR_sched_getattr: u32 = 356; -pub const __NR_renameat2: u32 = 357; -pub const __NR_seccomp: u32 = 358; -pub const __NR_getrandom: u32 = 359; -pub const __NR_memfd_create: u32 = 360; -pub const __NR_bpf: u32 = 361; -pub const __NR_execveat: u32 = 362; -pub const __NR_switch_endian: u32 = 363; -pub const __NR_userfaultfd: u32 = 364; -pub const __NR_membarrier: u32 = 365; -pub const __NR_mlock2: u32 = 378; -pub const __NR_copy_file_range: u32 = 379; -pub const __NR_preadv2: u32 = 380; -pub const __NR_pwritev2: u32 = 381; -pub const __NR_kexec_file_load: u32 = 382; -pub const __NR_statx: u32 = 383; -pub const __NR_pkey_alloc: u32 = 384; -pub const __NR_pkey_free: u32 = 385; -pub const __NR_pkey_mprotect: u32 = 386; -pub const __NR_rseq: u32 = 387; -pub const __NR_io_pgetevents: u32 = 388; -pub const __NR_semget: u32 = 393; -pub const __NR_semctl: u32 = 394; -pub const __NR_shmget: u32 = 395; -pub const __NR_shmctl: u32 = 396; -pub const __NR_shmat: u32 = 397; -pub const __NR_shmdt: u32 = 398; -pub const __NR_msgget: u32 = 399; -pub const __NR_msgsnd: u32 = 400; -pub const __NR_msgrcv: u32 = 401; -pub const __NR_msgctl: u32 = 402; -pub const __NR_clock_gettime64: u32 = 403; -pub const __NR_clock_settime64: u32 = 404; -pub const __NR_clock_adjtime64: u32 = 405; -pub const __NR_clock_getres_time64: u32 = 406; -pub const __NR_clock_nanosleep_time64: u32 = 407; -pub const __NR_timer_gettime64: u32 = 408; -pub const __NR_timer_settime64: u32 = 409; -pub const __NR_timerfd_gettime64: u32 = 410; -pub const __NR_timerfd_settime64: u32 = 411; -pub const __NR_utimensat_time64: u32 = 412; -pub const __NR_pselect6_time64: u32 = 413; -pub const __NR_ppoll_time64: u32 = 414; -pub const __NR_io_pgetevents_time64: u32 = 416; -pub const __NR_recvmmsg_time64: u32 = 417; -pub const __NR_mq_timedsend_time64: u32 = 418; -pub const __NR_mq_timedreceive_time64: u32 = 419; -pub const __NR_semtimedop_time64: u32 = 420; -pub const __NR_rt_sigtimedwait_time64: u32 = 421; -pub const __NR_futex_time64: u32 = 422; -pub const __NR_sched_rr_get_interval_time64: u32 = 423; -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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/powerpc/if_ether.rs b/third_party/rust/linux-raw-sys/src/powerpc/if_ether.rs deleted file mode 100644 index d5219ec5a3b5..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/if_ether.rs +++ /dev/null @@ -1,173 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_short; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/powerpc/io_uring.rs b/third_party/rust/linux-raw-sys/src/powerpc/io_uring.rs deleted file mode 100644 index e396f76459a6..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/io_uring.rs +++ /dev/null @@ -1,1089 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_short; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/powerpc/ioctl.rs b/third_party/rust/linux-raw-sys/src/powerpc/ioctl.rs deleted file mode 100644 index 2d77ac470c8e..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/ioctl.rs +++ /dev/null @@ -1,1488 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 1074030207; -pub const FIONBIO: u32 = 2147772030; -pub const FIOCLEX: u32 = 536897025; -pub const FIONCLEX: u32 = 536897026; -pub const FIOASYNC: u32 = 2147772029; -pub const FIOQSIZE: u32 = 1074292352; -pub const TCXONC: u32 = 536900638; -pub const TCFLSH: u32 = 536900639; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 2147775606; -pub const TIOCOUTQ: u32 = 1074033779; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 2148037735; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 2147767345; -pub const TIOCSIG: u32 = 2147767350; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 1076655123; -pub const TCGETA: u32 = 1075082263; -pub const TCSBRK: u32 = 536900637; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 2148824088; -pub const TCSETAF: u32 = 2148824092; -pub const TCSETAW: u32 = 2148824089; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 1074025522; -pub const TIOCGEXCL: u32 = 1074025536; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 1074033783; -pub const TIOCGPKT: u32 = 1074025528; -pub const TIOCGPTLCK: u32 = 1074025529; -pub const TIOCGPTN: u32 = 1074025520; -pub const TIOCGPTPEER: u32 = 536892481; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 1074295912; -pub const TCSETS: u32 = 2150396948; -pub const TCSETSF: u32 = 2150396950; -pub const TCSETSW: u32 = 2150396949; -pub const TIOCGETC: u32 = 1074164754; -pub const TIOCGETD: u32 = 21540; -pub const TIOCGETP: u32 = 1074164744; -pub const TIOCGLTC: u32 = 1074164852; -pub const MTIOCGET: u32 = 1076915458; -pub const BLKSSZGET: u32 = 536875624; -pub const BLKPBSZGET: u32 = 536875643; -pub const BLKROSET: u32 = 536875613; -pub const BLKROGET: u32 = 536875614; -pub const BLKRRPART: u32 = 536875615; -pub const BLKGETSIZE: u32 = 536875616; -pub const BLKFLSBUF: u32 = 536875617; -pub const BLKRASET: u32 = 536875618; -pub const BLKRAGET: u32 = 536875619; -pub const BLKFRASET: u32 = 536875620; -pub const BLKFRAGET: u32 = 536875621; -pub const BLKSECTSET: u32 = 536875622; -pub const BLKSECTGET: u32 = 536875623; -pub const BLKPG: u32 = 536875625; -pub const BLKBSZGET: u32 = 1074270832; -pub const BLKBSZSET: u32 = 2148012657; -pub const BLKGETSIZE64: u32 = 1074270834; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 536875636; -pub const BLKTRACESTOP: u32 = 536875637; -pub const BLKTRACETEARDOWN: u32 = 536875638; -pub const BLKDISCARD: u32 = 536875639; -pub const BLKIOMIN: u32 = 536875640; -pub const BLKIOOPT: u32 = 536875641; -pub const BLKALIGNOFF: u32 = 536875642; -pub const BLKDISCARDZEROES: u32 = 536875644; -pub const BLKSECDISCARD: u32 = 536875645; -pub const BLKROTATIONAL: u32 = 536875646; -pub const BLKZEROOUT: u32 = 536875647; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 1074833921; -pub const UFFDIO_WAKE: u32 = 1074833922; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 536917761; -pub const NS_GET_PARENT: u32 = 536917762; -pub const NS_GET_NSTYPE: u32 = 536917763; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 1074030207; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 536870913; -pub const FIGETBSZ: u32 = 536870914; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 2147783689; -pub const FICLONERANGE: u32 = 2149618701; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 1074292225; -pub const FS_IOC_SETFLAGS: u32 = 2148034050; -pub const FS_IOC_GETVERSION: u32 = 1074296321; -pub const FS_IOC_SETVERSION: u32 = 2148038146; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 1074030081; -pub const FS_IOC32_SETFLAGS: u32 = 2147771906; -pub const FS_IOC32_GETVERSION: u32 = 1074034177; -pub const FS_IOC32_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FSGETXATTR: u32 = 1075599391; -pub const FS_IOC_FSSETXATTR: u32 = 2149341216; -pub const FS_IOC_GETFSLABEL: u32 = 1090556977; -pub const FS_IOC_SETFSLABEL: u32 = 2164298802; -pub const EXT4_IOC_GETVERSION: u32 = 1074292227; -pub const EXT4_IOC_SETVERSION: u32 = 2148034052; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074296321; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; -pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; -pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; -pub const EXT4_IOC_MIGRATE: u32 = 536897033; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; -pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; -pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; -pub const EXT4_IOC_GETSTATE: u32 = 2147771945; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; -pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; -pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 2148557194; -pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 2147767499; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1076915457; -pub const ENI_SETMULT: u32 = 2148557159; -pub const RIO_GET_EVENT_MASK: u32 = 1074031886; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; -pub const CHIOMOVE: u32 = 2148819713; -pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; -pub const BTRFS_IOC_SYNC: u32 = 536908808; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 2147772690; -pub const VIDIOC_DQEVENT: u32 = 1082676825; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; -pub const UI_SET_KEYBIT: u32 = 2147767653; -pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 2148052754; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 1074030850; -pub const PPGETTIME: u32 = 1074819221; -pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; -pub const ATM_SETBACKEND: u32 = 2147639794; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 536888968; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 536871513; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; -pub const NILFS_IOCTL_SYNC: u32 = 1074294410; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 2147767662; -pub const TUNSETFILTEREBPF: u32 = 1074025697; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 1074026244; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148557198; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 1075839492; -pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148557152; -pub const PTP_SYS_OFFSET2: u32 = 2202025230; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; -pub const RTC_EPOCH_READ: u32 = 1074294797; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148557200; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 2153534723; -pub const ISST_IF_IO_CMD: u32 = 2148072962; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 1074008709; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; -pub const PPPIOCGCHAN: u32 = 1074033719; -pub const EVIOCGVERSION: u32 = 1074021633; -pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; -pub const USBDEVFS_REAPURBNDELAY: u32 = 2148029709; -pub const RNDZAPENTCNT: u32 = 536891908; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 536892643; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; -pub const VHOST_SET_VRING_ERR: u32 = 2148052770; -pub const VDUSE_VQ_SETUP: u32 = 2149613844; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; -pub const STP_SET_OPTIONS: u32 = 2148017410; -pub const FBIO_RADEON_GET_MIRROR: u32 = 1074282499; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 2149078720; -pub const IPMICTL_SEND_COMMAND: u32 = 1076390157; -pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; -pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; -pub const CHIOSVOLTAG: u32 = 2150654738; -pub const ATM_SETESIF: u32 = 2148557197; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; -pub const PMU_IOC_GET_MODEL: u32 = 1074283011; -pub const JSIOCGBTNMAP: u32 = 1140877876; -pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 536871489; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 536892694; -pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; -pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 1082130961; -pub const TUNSETVNETLE: u32 = 2147767516; -pub const PHN_SETREG: u32 = 2148036614; -pub const PPPIOCDETACH: u32 = 2147775548; -pub const MMTIMER_GETRES: u32 = 1074294017; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 1074032794; -pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 1074310688; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; -pub const SONYPI_IOCGBLUE: u32 = 1073837576; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148557107; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 1074308100; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 536917568; -pub const PPPIOCGASYNCMAP: u32 = 1074033752; -pub const EVIOCGKEYCODE_V2: u32 = 1076380932; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 2149074956; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; -pub const PTP_EXTTS_REQUEST: u32 = 2148547842; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; -pub const JSIOCGAXES: u32 = 1073834513; -pub const HIDIOCSFLAG: u32 = 2147764239; -pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; -pub const PPWDATA: u32 = 2147577990; -pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; -pub const FDGETMAXERRS: u32 = 1075053070; -pub const TUNSETQUEUE: u32 = 2147767513; -pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 536914689; -pub const NBD_SET_TIMEOUT: u32 = 536914697; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; -pub const RIO_UNMAP_INBOUND: u32 = 2148035858; -pub const ATM_QUERYLOOP: u32 = 2148557140; -pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 536891910; -pub const VIDIOC_QUERYSTD: u32 = 1074288191; -pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 1076909578; -pub const PTP_ENABLE_PPS2: u32 = 2147761421; -pub const PCITEST_CLEAR_IRQ: u32 = 536891408; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; -pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; -pub const JSIOCGAXMAP: u32 = 1077963314; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; -pub const RTC_WIE_OFF: u32 = 536899600; -pub const PPGETMODE: u32 = 1074032792; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 2202025221; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 536908806; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; -pub const TUNDETACHFILTER: u32 = 2148553942; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 2148561101; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 1074033729; -pub const BLKGETZONESZ: u32 = 1074008708; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 1073837580; -pub const UI_SET_MSCBIT: u32 = 2147767656; -pub const APM_IOC_SUSPEND: u32 = 536887554; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 1075867665; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 1074812174; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; -pub const EVIOCSFF: u32 = 2150647168; -pub const TUNSETGROUP: u32 = 2147767502; -pub const EVIOCGKEYCODE: u32 = 1074283780; -pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 536871514; -pub const TUNSETOFFLOAD: u32 = 2147767504; -pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148557192; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; -pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; -pub const UI_ABS_SETUP: u32 = 2149340420; -pub const UI_DEV_DESTROY: u32 = 536892674; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 536899585; -pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; -pub const PPPIOCSDEBUG: u32 = 2147775552; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 2147775570; -pub const CCISS_DEREGDISK: u32 = 536887820; -pub const UI_DEV_CREATE: u32 = 536892673; -pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; -pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 1074283010; -pub const PPPIOCSASYNCMAP: u32 = 2147775575; -pub const I2OEVTGET: u32 = 1080584459; -pub const NVME_IOCTL_RESET: u32 = 536890948; -pub const PPYIELD: u32 = 536899725; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 2147767522; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 536899599; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2150657280; -pub const RTC_SET_TIME: u32 = 2149871626; -pub const VHOST_RESET_OWNER: u32 = 536915714; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 1074293825; -pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; -pub const HIDIOCGFLAG: u32 = 1074022414; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 2148577793; -pub const CCISS_GETFIRMVER: u32 = 1074020872; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 2147775547; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 2148561046; -pub const RTC_ALM_READ: u32 = 1076129800; -pub const VDUSE_SET_API_VERSION: u32 = 2148040961; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 536892695; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; -pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148557191; -pub const NBD_SET_SIZE: u32 = 536914690; -pub const UDF_GETVOLIDENT: u32 = 1074293826; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; -pub const UDF_GETEASIZE: u32 = 1074031680; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 536915713; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 2148557195; -pub const HPET_IE_ON: u32 = 536897537; -pub const PERF_EVENT_IOC_ID: u32 = 1074275335; -pub const TUNSETSNDBUF: u32 = 2147767508; -pub const PTP_PIN_SETFUNC: u32 = 2153790727; -pub const PPPIOCDISCONN: u32 = 536900665; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 536899727; -pub const PCITEST_MSI: u32 = 2147766275; -pub const FDWERRORCLR: u32 = 536871510; -pub const AUTOFS_IOC_FAIL: u32 = 536908641; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 2148029976; -pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; -pub const CCISS_GETDRIVVER: u32 = 1074020873; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; -pub const HPET_IRQFREQ: u32 = 2148034566; -pub const ATM_GETESI: u32 = 2148557189; -pub const CCISS_GETLUNINFO: u32 = 1074545169; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; -pub const UDMABUF_CREATE_LIST: u32 = 2148037955; -pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148557153; -pub const BR2684_SETFILT: u32 = 2149343632; -pub const RNDGETPOOL: u32 = 1074287106; -pub const PPS_GETPARAMS: u32 = 1074294945; -pub const IOC_PR_RESERVE: u32 = 2148561097; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074283009; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 536887822; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; -pub const VFIO_EEH_PE_OP: u32 = 536886137; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; -pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 2150913586; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 2147775549; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; -pub const PCITEST_LEGACY_IRQ: u32 = 536891394; -pub const USBDEVFS_SUBMITURB: u32 = 1077433610; -pub const AUTOFS_IOC_READY: u32 = 536908640; -pub const BTRFS_IOC_SEND: u32 = 2152240166; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 2214619699; -pub const PPPIOCSFLAGS: u32 = 2147775577; -pub const NVRAM_INIT: u32 = 536899648; -pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; -pub const BTRFS_IOC_BALANCE: u32 = 2415957004; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; -pub const STP_POLICY_ID_GET: u32 = 1074799873; -pub const PPSETFLAGS: u32 = 2147774619; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; -pub const PPPIOCGXASYNCMAP: u32 = 1075868752; -pub const VHOST_SET_VRING_CALL: u32 = 2148052769; -pub const LIRC_GET_FEATURES: u32 = 1074030848; -pub const GSMIOC_DISABLE_NET: u32 = 536889091; -pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; -pub const NBD_DO_IT: u32 = 536914691; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; -pub const EVIOCSCLOCKID: u32 = 2147763616; -pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; -pub const FSI_SCOM_RESET: u32 = 2147775235; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074283014; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 2149581379; -pub const TEE_IOC_INVOKE: u32 = 1074832387; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 2147579392; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 536899589; -pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; -pub const PPPIOCXFERUNIT: u32 = 536900686; -pub const WDIOC_GETTIMEOUT: u32 = 1074026247; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; -pub const FBIO_WAITFORVSYNC: u32 = 2147763744; -pub const RTC_PIE_OFF: u32 = 536899590; -pub const EVIOCGRAB: u32 = 2147763600; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 2148024834; -pub const EVIOCGREP: u32 = 1074283779; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2148017163; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 1074299136; -pub const RTC_RD_TIME: u32 = 1076129801; -pub const FDMSGOFF: u32 = 536871494; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; -pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; -pub const RIO_DEV_ADD: u32 = 2149608727; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 2148024324; -pub const PCITEST_GET_IRQTYPE: u32 = 536891401; -pub const JSIOCGVERSION: u32 = 1074031105; -pub const SONYPI_IOCSBLUE: u32 = 2147579401; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; -pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; -pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; -pub const VHOST_SET_VRING_NUM: u32 = 2148052752; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; -pub const PPPIOCGL2TPSTATS: u32 = 1078490166; -pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; -pub const PTP_PIN_SETFUNC2: u32 = 2153790736; -pub const CHIOEXCHANGE: u32 = 2149344002; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 2147767661; -pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; -pub const TUNSETIFF: u32 = 2147767498; -pub const CHIOPOSITION: u32 = 2148295427; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; -pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const EVIOCSMASK: u32 = 2148550035; -pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; -pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 2147774592; -pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 2149086530; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 2148036609; -pub const RNDADDTOENTCNT: u32 = 2147766785; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 536899586; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; -pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; -pub const PPPIOCSXASYNCMAP: u32 = 2149610575; -pub const CHIOGSTATUS: u32 = 2148557576; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; -pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; -pub const VHOST_GET_FEATURES: u32 = 1074310912; -pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; -pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; -pub const JSIOCGCORR: u32 = 1076128290; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 2148036622; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 2148557138; -pub const SCIF_LISTEN: u32 = 2147775234; -pub const NBD_CLEAR_QUE: u32 = 536914693; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 1074030863; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 2148794956; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; -pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; -pub const EVIOCRMFF: u32 = 2147763585; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 1073836165; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; -pub const TUNSETVNETHDRSZ: u32 = 2147767512; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 1078740736; -pub const LIRC_GET_SEND_MODE: u32 = 1074030849; -pub const PPPIOCSACTIVE: u32 = 2148561990; -pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; -pub const UI_END_FF_ERASE: u32 = 2148292043; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 536914698; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; -pub const REISERFS_IOC_UNPACK: u32 = 2148060417; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; -pub const RIO_SET_EVENT_MASK: u32 = 2147773709; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; -pub const I2OPASSTHRU: u32 = 1074817292; -pub const IOC_OPAL_SET_PW: u32 = 2183164128; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 2153010718; -pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 1074570240; -pub const VIDIOC_LOG_STATUS: u32 = 536892998; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; -pub const VHOST_SET_LOG_FD: u32 = 2147790599; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; -pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; -pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; -pub const JSIOCGBUTTONS: u32 = 1073834514; -pub const VFIO_IOMMU_ENABLE: u32 = 536886131; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 2147790711; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 2148816444; -pub const WDIOC_GETTEMP: u32 = 1074026243; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; -pub const UI_SET_LEDBIT: u32 = 2147767657; -pub const NBD_SET_SOCK: u32 = 536914688; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; -pub const FDFMTTRK: u32 = 2148270664; -pub const MMTIMER_GETBITS: u32 = 536898820; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; -pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; -pub const RTC_VL_READ: u32 = 1074032659; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 2149608728; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 2147579403; -pub const SPIOCSTYPE: u32 = 2148036865; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 1074025695; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 2154321353; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; -pub const PPPIOCSNPMODE: u32 = 2148037707; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 2147767505; -pub const TUNGETVNETLE: u32 = 1074025693; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; -pub const I2OVALIDATE: u32 = 1074030856; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1110471170; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; -pub const FDGETDRVSTAT: u32 = 1078985234; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 2147775541; -pub const LIRC_SET_SEND_MODE: u32 = 2147772689; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; -pub const ATM_GETTYPE: u32 = 2148557188; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 536871498; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; -pub const EVIOCGMASK: u32 = 1074808210; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 1074022148; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 2155872912; -pub const IOC_OPAL_SAVE: u32 = 2165862620; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 2147767514; -pub const CCISS_SETINTINFO: u32 = 2148024835; -pub const CM_IOSDBGLVL: u32 = 2148033530; -pub const RTC_VL_CLR: u32 = 536899604; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; -pub const CCISS_GETNODENAME: u32 = 1074807300; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; -pub const LPSETTIMEOUT_NEW: u32 = 2148533775; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 536871512; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 1074820159; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; -pub const PHN_SET_REGS: u32 = 2148036611; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148557155; -pub const MTIOCPOS: u32 = 1074294019; -pub const PMU_IOC_SLEEP: u32 = 536887808; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; -pub const VIDIOC_QUERYCAP: u32 = 1080579584; -pub const HPET_INFO: u32 = 1075341315; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2148030145; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 2147767500; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 2148028931; -pub const USBDEVFS_RESET: u32 = 536892692; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; -pub const FDGETDRVTYP: u32 = 1074790927; -pub const PPWCONTROL: u32 = 2147577988; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 536896357; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; -pub const PPPIOCSPASS: u32 = 2148561991; -pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; -pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; -pub const PPPIOCSMAXCID: u32 = 2147775569; -pub const PPSETPHASE: u32 = 2147774612; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; -pub const USBDEVFS_GET_SPEED: u32 = 536892703; -pub const SONET_GETFRAMING: u32 = 1074028822; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; -pub const PPS_GETCAP: u32 = 1074294947; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 536914696; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 536886132; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; -pub const SNAPSHOT_POWER_OFF: u32 = 536883984; -pub const APM_IOC_STANDBY: u32 = 536887553; -pub const PPPIOCGUNIT: u32 = 1074033750; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; -pub const PPPIOCGRASYNCMAP: u32 = 1074033749; -pub const MMTIMER_MMAPAVAIL: u32 = 536898822; -pub const I2OPASSTHRU32: u32 = 1074293004; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const UI_SET_SNDBIT: u32 = 2147767658; -pub const VIDIOC_G_AUDOUT: u32 = 1077171761; -pub const RTC_PLL_SET: u32 = 2149609490; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 2147790660; -pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; -pub const VDUSE_CREATE_DEV: u32 = 2169536770; -pub const FDFLUSH: u32 = 536871499; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148557300; -pub const FDSETPRM: u32 = 2149581378; -pub const ATM_GETSTATZ: u32 = 2148557137; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 2148028422; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; -pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; -pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; -pub const CHIOGVPARAMS: u32 = 1081107219; -pub const PTP_PEROUT_REQUEST: u32 = 2151169283; -pub const FSI_SCOM_CHECK: u32 = 1074033408; -pub const RTC_IRQP_READ: u32 = 1074294795; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; -pub const HIDIOCGRDESCSIZE: u32 = 1074022401; -pub const UI_GET_VERSION: u32 = 1074025773; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; -pub const CCISS_GETBUSTYPES: u32 = 1074020871; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 2147767654; -pub const VFIO_SET_IOMMU: u32 = 536886118; -pub const VIDIOC_S_MODULATOR: u32 = 2151962167; -pub const TUNGETFILTER: u32 = 1074812123; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 2148549125; -pub const FBIO_GETCONTROL2: u32 = 1074284169; -pub const TUNSETDEBUG: u32 = 2147767497; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 2417772564; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 1075856914; -pub const ATM_GETSTAT: u32 = 2148557136; -pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; -pub const TUNATTACHFILTER: u32 = 2148553941; -pub const UI_SET_ABSBIT: u32 = 2147767655; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; -pub const USBDEVFS_REAPURB32: u32 = 2147767564; -pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; -pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148557152; -pub const ATM_SETLOOP: u32 = 2148557139; -pub const ATMSIGD_CTRL: u32 = 536895984; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; -pub const SNAPSHOT_UNFREEZE: u32 = 536883970; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; -pub const PMU_IOC_HAS_ADB: u32 = 1074283012; -pub const I2OGETIOPS: u32 = 1075865856; -pub const VIDIOC_S_FBUF: u32 = 2150651403; -pub const PPRCONTROL: u32 = 1073836163; -pub const CHIOSPICKER: u32 = 2147771141; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; -pub const TUNGETSNDBUF: u32 = 1074025683; -pub const GSMIOC_SETCONF: u32 = 2152482561; -pub const IOC_PR_PREEMPT: u32 = 2149085387; -pub const KCOV_INIT_TRACE: u32 = 1074291457; -pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; -pub const MTIOCTOP: u32 = 2148035841; -pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 1074033747; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 1074033754; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148557199; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; -pub const PPPIOCGIDLE32: u32 = 1074295871; -pub const VFIO_DEVICE_RESET: u32 = 536886127; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 1074026241; -pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 2148028421; -pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074294523; -pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 1077171745; -pub const CCISS_RESCANDISK: u32 = 536887824; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; -pub const USBDEVFS_REAPURB: u32 = 2148029708; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; -pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; -pub const PCITEST_MSIX: u32 = 2147766279; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 1074820159; -pub const NVRAM_SETCKS: u32 = 536899649; -pub const WDIOC_GETSUPPORT: u32 = 1076385536; -pub const GSMIOC_ENABLE_NET: u32 = 2150909698; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 2150122756; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 2149084422; -pub const I2OEVTREG: u32 = 2148296970; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 1074283778; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 1074025696; -pub const ATM_GETNAMES: u32 = 2148557187; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148557154; -pub const BLKCLOSEZONE: u32 = 2148536967; -pub const SONET_GETFRSENSE: u32 = 1074159895; -pub const UI_SET_EVBIT: u32 = 2147767652; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 1090799620; -pub const PPPIOCATTCHAN: u32 = 2147775544; -pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; -pub const TUNGETFEATURES: u32 = 1074025679; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; -pub const CCISS_REGNEWDISK: u32 = 2147762701; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const PHN_SETREGS: u32 = 2150133768; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 1074025682; -pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; -pub const BTRFS_IOC_RESIZE: u32 = 2415956995; -pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; -pub const PPS_KC_BIND: u32 = 2148036773; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; -pub const UI_SET_FFBIT: u32 = 2147767659; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; -pub const CEC_G_MODE: u32 = 1074028808; -pub const USBDEVFS_RESETEP: u32 = 1074025731; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074331136; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; -pub const VFIO_CHECK_EXTENSION: u32 = 536886117; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; -pub const UI_SET_PHYS: u32 = 2148029804; -pub const FDWERRORGET: u32 = 1076363799; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 536898823; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; -pub const SIOCGSTAMP_NEW: u32 = 1074825478; -pub const RTC_WKALM_RD: u32 = 1076391952; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 536899588; -pub const PPGETMODES: u32 = 1074032791; -pub const CHIOGPARAMS: u32 = 1075077894; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; -pub const KCOV_ENABLE: u32 = 536896356; -pub const BTRFS_IOC_CLONE: u32 = 2147783689; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; -pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; -pub const RTC_UIE_OFF: u32 = 536899588; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; -pub const NVME_IOCTL_ID: u32 = 536890944; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 2147767826; -pub const FDPOLLDRVSTAT: u32 = 1078985235; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; -pub const WDIOC_GETTIMELEFT: u32 = 1074026250; -pub const ATM_GETLINKRATE: u32 = 2148557185; -pub const RTC_WKALM_SET: u32 = 2150133775; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; -pub const NS_GET_OWNER_UID: u32 = 536917764; -pub const VIDIOC_OVERLAY: u32 = 2147767822; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148557190; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 536883979; -pub const JSIOCSAXMAP: u32 = 2151705137; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 536886128; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 536898816; -pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; -pub const ATM_SETSC: u32 = 2147770865; -pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; -pub const NVME_IOCTL_RESCAN: u32 = 536890950; -pub const BLKOPENZONE: u32 = 2148536966; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; -pub const HIDIOCGVERSION: u32 = 1074022401; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; -pub const EVIOCGEFFECTS: u32 = 1074021764; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148557106; -pub const HIDIOCINITREPORT: u32 = 536889349; -pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 1074024960; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 536871508; -pub const IOC_PR_REGISTER: u32 = 2149085384; -pub const HIDIOCSREPORT: u32 = 2148288520; -pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; -pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 1074284547; -pub const PPPIOCSCOMPRESS: u32 = 2148561997; -pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; -pub const BLKRESETZONE: u32 = 2148536963; -pub const CHIOINITELEM: u32 = 536896273; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; -pub const PPGETPHASE: u32 = 1074032793; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; -pub const FDMSGON: u32 = 536871493; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; -pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; -pub const FDFMTBEG: u32 = 536871495; -pub const RNDRESEEDCRNG: u32 = 536891911; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 2147767496; -pub const SONET_GETSTAT: u32 = 1076125968; -pub const TFD_IOC_SET_TICKS: u32 = 2148029440; -pub const PPDATADIR: u32 = 2147774608; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 2148557577; -pub const PPWCTLONIRQ: u32 = 2147578002; -pub const SONYPI_IOCGBRT: u32 = 1073837568; -pub const IOC_PR_RELEASE: u32 = 2148561098; -pub const PPCLRIRQ: u32 = 1074032787; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; -pub const HPET_IE_OFF: u32 = 536897538; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; -pub const SONET_SETFRAMING: u32 = 2147770645; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 2148536968; -pub const EVIOCREVOKE: u32 = 2147763601; -pub const VFIO_DEVICE_FEATURE: u32 = 536886133; -pub const CCISS_GETPCIINFO: u32 = 1074283009; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 2147767827; -pub const VDUSE_DESTROY_DEV: u32 = 2164293891; -pub const FDGETFDCSTAT: u32 = 1076363797; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 2147767876; -pub const SNAPSHOT_FREEZE: u32 = 536883969; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148557154; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 1074288151; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; -pub const SONET_GETSTATZ: u32 = 1076125969; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 2147775572; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 536914692; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; -pub const WDIOC_KEEPALIVE: u32 = 1074026245; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; -pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; -pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; -pub const EVIOCSREP: u32 = 2148025603; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; -pub const HPET_DPI: u32 = 536897541; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 1075595267; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 1074026051; -pub const ATM_NEWBACKENDIF: u32 = 2147639795; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; -pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; -pub const CHIOGELEM: u32 = 2154586896; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; -pub const EVIOCSKEYCODE: u32 = 2148025604; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 2147767501; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; -pub const PPS_SETPARAMS: u32 = 2148036770; -pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; -pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; -pub const VIDIOC_S_AUDIO: u32 = 2150913570; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; -pub const SNAPSHOT_FREE: u32 = 536883973; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 2148288519; -pub const HPET_EPI: u32 = 536897540; -pub const JSIOCSCORR: u32 = 2149870113; -pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 2148557196; -pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148557193; -pub const PPFCONTROL: u32 = 2147643534; -pub const SONYPI_IOCGFAN: u32 = 1073837578; -pub const RTC_IRQP_SET: u32 = 2148036620; -pub const PCITEST_WRITE: u32 = 2148028420; -pub const PPCLAIM: u32 = 536899723; -pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; -pub const VHOST_SET_FEATURES: u32 = 2148052736; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; -pub const MMTIMER_GETFREQ: u32 = 1074294018; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2148053248; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; -pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 536871497; -pub const DMA_BUF_SET_NAME: u32 = 2148033025; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 536899587; -pub const PPRELEASE: u32 = 536899724; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1110471169; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 2148052768; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; -pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; -pub const PPNEGOT: u32 = 2147774609; -pub const NBD_PRINT_DEBUG: u32 = 536914694; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 1140888607; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 1074026022; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; -pub const MMTIMER_GETCOUNTER: u32 = 1074294025; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; -pub const RIO_CM_CHAN_BIND: u32 = 2148033285; -pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; -pub const BLKGETDISKSEQ: u32 = 1074270848; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; -pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; -pub const ACRN_IOCTL_START_VM: u32 = 536912402; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; -pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; -pub const TCGETS2: u32 = 1076655123; -pub const TCSETS2: u32 = 2150396948; -pub const TCSETSF2: u32 = 2150396950; -pub const TCSETSW2: u32 = 2150396949; diff --git a/third_party/rust/linux-raw-sys/src/powerpc/net.rs b/third_party/rust/linux-raw-sys/src/powerpc/net.rs deleted file mode 100644 index 1040cd951b42..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/net.rs +++ /dev/null @@ -1,1842 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_short; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SO_RCVLOWAT: u32 = 16; -pub const SO_SNDLOWAT: u32 = 17; -pub const SO_RCVTIMEO_OLD: u32 = 18; -pub const SO_SNDTIMEO_OLD: u32 = 19; -pub const SO_PASSCRED: u32 = 20; -pub const SO_PEERCRED: u32 = 21; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/powerpc/netlink.rs b/third_party/rust/linux-raw-sys/src/powerpc/netlink.rs deleted file mode 100644 index 17e0a6ddec6f..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/netlink.rs +++ /dev/null @@ -1,2860 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_short; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/powerpc/prctl.rs b/third_party/rust/linux-raw-sys/src/powerpc/prctl.rs deleted file mode 100644 index e9c88b67bc0c..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/prctl.rs +++ /dev/null @@ -1,227 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_short; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/powerpc/system.rs b/third_party/rust/linux-raw-sys/src/powerpc/system.rs deleted file mode 100644 index 9584b9a1116a..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc/system.rs +++ /dev/null @@ -1,105 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_short; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/errno.rs b/third_party/rust/linux-raw-sys/src/powerpc64/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/general.rs b/third_party/rust/linux-raw-sys/src/powerpc64/general.rs deleted file mode 100644 index 6a08a19987b2..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/general.rs +++ /dev/null @@ -1,2970 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __kernel_long_t; -pub type termios2 = termios; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_sigaction { -pub sa_handler: __sighandler_t, -pub sa_mask: old_sigset_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_cc: [cc_t; 19usize], -pub c_line: cc_t, -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_cc: [cc_t; 19usize], -pub c_line: cc_t, -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sgttyb { -pub sg_ispeed: crate::ctypes::c_char, -pub sg_ospeed: crate::ctypes::c_char, -pub sg_erase: crate::ctypes::c_char, -pub sg_kill: crate::ctypes::c_char, -pub sg_flags: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tchars { -pub t_intrc: crate::ctypes::c_char, -pub t_quitc: crate::ctypes::c_char, -pub t_startc: crate::ctypes::c_char, -pub t_stopc: crate::ctypes::c_char, -pub t_eofc: crate::ctypes::c_char, -pub t_brkc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ltchars { -pub t_suspc: crate::ctypes::c_char, -pub t_dsuspc: crate::ctypes::c_char, -pub t_rprntc: crate::ctypes::c_char, -pub t_flushc: crate::ctypes::c_char, -pub t_werasc: crate::ctypes::c_char, -pub t_lnextc: crate::ctypes::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 10usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: __kernel_ino_t, -pub st_nlink: crate::ctypes::c_ulong, -pub st_mode: __kernel_mode_t, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_ulong, -pub __unused5: crate::ctypes::c_ulong, -pub __unused6: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulonglong, -pub st_ino: crate::ctypes::c_ulonglong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulonglong, -pub __pad2: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_longlong, -pub st_blksize: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_longlong, -pub st_atime: crate::ctypes::c_int, -pub st_atime_nsec: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_int, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_int, -pub st_ctime_nsec: crate::ctypes::c_uint, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __kernel_long_t, -pub f_bfree: __kernel_long_t, -pub f_bavail: __kernel_long_t, -pub f_files: __kernel_long_t, -pub f_ffree: __kernel_long_t, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -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_EXECFN: u32 = 31; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_DIRECTORY: u32 = 16384; -pub const O_NOFOLLOW: u32 = 32768; -pub const O_LARGEFILE: u32 = 65536; -pub const O_DIRECT: u32 = 131072; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4210688; -pub const O_TMPFILE_MASK: u32 = 4210752; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const PROT_SAO: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_NORESERVE: u32 = 64; -pub const MAP_LOCKED: u32 = 128; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MCL_CURRENT: u32 = 8192; -pub const MCL_FUTURE: u32 = 16384; -pub const MCL_ONFAULT: u32 = 32768; -pub const PKEY_DISABLE_EXECUTE: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 64; -pub const _NSIG_BPW: u32 = 64; -pub const _NSIG_WORDS: u32 = 1; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 8192; -pub const SIGSTKSZ: u32 = 32768; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VMIN: u32 = 5; -pub const VEOL: u32 = 6; -pub const VTIME: u32 = 7; -pub const VEOL2: u32 = 8; -pub const VSWTC: u32 = 9; -pub const VWERASE: u32 = 10; -pub const VREPRINT: u32 = 11; -pub const VSUSP: u32 = 12; -pub const VSTART: u32 = 13; -pub const VSTOP: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VDISCARD: u32 = 16; -pub const IXON: u32 = 512; -pub const IXOFF: u32 = 1024; -pub const IUCLC: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const ONLCR: u32 = 2; -pub const OLCUC: u32 = 4; -pub const NLDLY: u32 = 768; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const NL2: u32 = 512; -pub const NL3: u32 = 768; -pub const TABDLY: u32 = 3072; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 1024; -pub const TAB2: u32 = 2048; -pub const TAB3: u32 = 3072; -pub const XTABS: u32 = 3072; -pub const CRDLY: u32 = 12288; -pub const CR0: u32 = 0; -pub const CR1: u32 = 4096; -pub const CR2: u32 = 8192; -pub const CR3: u32 = 12288; -pub const FFDLY: u32 = 16384; -pub const FF0: u32 = 0; -pub const FF1: u32 = 16384; -pub const BSDLY: u32 = 32768; -pub const BS0: u32 = 0; -pub const BS1: u32 = 32768; -pub const VTDLY: u32 = 65536; -pub const VT0: u32 = 0; -pub const VT1: u32 = 65536; -pub const CBAUD: u32 = 255; -pub const CBAUDEX: u32 = 0; -pub const BOTHER: u32 = 31; -pub const B57600: u32 = 16; -pub const B115200: u32 = 17; -pub const B230400: u32 = 18; -pub const B460800: u32 = 19; -pub const B500000: u32 = 20; -pub const B576000: u32 = 21; -pub const B921600: u32 = 22; -pub const B1000000: u32 = 23; -pub const B1152000: u32 = 24; -pub const B1500000: u32 = 25; -pub const B2000000: u32 = 26; -pub const B2500000: u32 = 27; -pub const B3000000: u32 = 28; -pub const B3500000: u32 = 29; -pub const B4000000: u32 = 30; -pub const CSIZE: u32 = 768; -pub const CS5: u32 = 0; -pub const CS6: u32 = 256; -pub const CS7: u32 = 512; -pub const CS8: u32 = 768; -pub const CSTOPB: u32 = 1024; -pub const CREAD: u32 = 2048; -pub const PARENB: u32 = 4096; -pub const PARODD: u32 = 8192; -pub const HUPCL: u32 = 16384; -pub const CLOCAL: u32 = 32768; -pub const CIBAUD: u32 = 16711680; -pub const ISIG: u32 = 128; -pub const ICANON: u32 = 256; -pub const XCASE: u32 = 16384; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 2; -pub const ECHOK: u32 = 4; -pub const ECHONL: u32 = 16; -pub const NOFLSH: u32 = 2147483648; -pub const TOSTOP: u32 = 4194304; -pub const ECHOCTL: u32 = 64; -pub const ECHOPRT: u32 = 32; -pub const ECHOKE: u32 = 1; -pub const FLUSHO: u32 = 8388608; -pub const PENDIN: u32 = 536870912; -pub const IEXTEN: u32 = 1024; -pub const EXTPROC: u32 = 268435456; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const NCC: u32 = 10; -pub const _VINTR: u32 = 0; -pub const _VQUIT: u32 = 1; -pub const _VERASE: u32 = 2; -pub const _VKILL: u32 = 3; -pub const _VEOF: u32 = 4; -pub const _VMIN: u32 = 5; -pub const _VEOL: u32 = 6; -pub const _VTIME: u32 = 7; -pub const _VEOL2: u32 = 8; -pub const _VSWTC: u32 = 9; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_restart_syscall: u32 = 0; -pub const __NR_exit: u32 = 1; -pub const __NR_fork: u32 = 2; -pub const __NR_read: u32 = 3; -pub const __NR_write: u32 = 4; -pub const __NR_open: u32 = 5; -pub const __NR_close: u32 = 6; -pub const __NR_waitpid: u32 = 7; -pub const __NR_creat: u32 = 8; -pub const __NR_link: u32 = 9; -pub const __NR_unlink: u32 = 10; -pub const __NR_execve: u32 = 11; -pub const __NR_chdir: u32 = 12; -pub const __NR_time: u32 = 13; -pub const __NR_mknod: u32 = 14; -pub const __NR_chmod: u32 = 15; -pub const __NR_lchown: u32 = 16; -pub const __NR_break: u32 = 17; -pub const __NR_oldstat: u32 = 18; -pub const __NR_lseek: u32 = 19; -pub const __NR_getpid: u32 = 20; -pub const __NR_mount: u32 = 21; -pub const __NR_umount: u32 = 22; -pub const __NR_setuid: u32 = 23; -pub const __NR_getuid: u32 = 24; -pub const __NR_stime: u32 = 25; -pub const __NR_ptrace: u32 = 26; -pub const __NR_alarm: u32 = 27; -pub const __NR_oldfstat: u32 = 28; -pub const __NR_pause: u32 = 29; -pub const __NR_utime: u32 = 30; -pub const __NR_stty: u32 = 31; -pub const __NR_gtty: u32 = 32; -pub const __NR_access: u32 = 33; -pub const __NR_nice: u32 = 34; -pub const __NR_ftime: u32 = 35; -pub const __NR_sync: u32 = 36; -pub const __NR_kill: u32 = 37; -pub const __NR_rename: u32 = 38; -pub const __NR_mkdir: u32 = 39; -pub const __NR_rmdir: u32 = 40; -pub const __NR_dup: u32 = 41; -pub const __NR_pipe: u32 = 42; -pub const __NR_times: u32 = 43; -pub const __NR_prof: u32 = 44; -pub const __NR_brk: u32 = 45; -pub const __NR_setgid: u32 = 46; -pub const __NR_getgid: u32 = 47; -pub const __NR_signal: u32 = 48; -pub const __NR_geteuid: u32 = 49; -pub const __NR_getegid: u32 = 50; -pub const __NR_acct: u32 = 51; -pub const __NR_umount2: u32 = 52; -pub const __NR_lock: u32 = 53; -pub const __NR_ioctl: u32 = 54; -pub const __NR_fcntl: u32 = 55; -pub const __NR_mpx: u32 = 56; -pub const __NR_setpgid: u32 = 57; -pub const __NR_ulimit: u32 = 58; -pub const __NR_oldolduname: u32 = 59; -pub const __NR_umask: u32 = 60; -pub const __NR_chroot: u32 = 61; -pub const __NR_ustat: u32 = 62; -pub const __NR_dup2: u32 = 63; -pub const __NR_getppid: u32 = 64; -pub const __NR_getpgrp: u32 = 65; -pub const __NR_setsid: u32 = 66; -pub const __NR_sigaction: u32 = 67; -pub const __NR_sgetmask: u32 = 68; -pub const __NR_ssetmask: u32 = 69; -pub const __NR_setreuid: u32 = 70; -pub const __NR_setregid: u32 = 71; -pub const __NR_sigsuspend: u32 = 72; -pub const __NR_sigpending: u32 = 73; -pub const __NR_sethostname: u32 = 74; -pub const __NR_setrlimit: u32 = 75; -pub const __NR_getrlimit: u32 = 76; -pub const __NR_getrusage: u32 = 77; -pub const __NR_gettimeofday: u32 = 78; -pub const __NR_settimeofday: u32 = 79; -pub const __NR_getgroups: u32 = 80; -pub const __NR_setgroups: u32 = 81; -pub const __NR_select: u32 = 82; -pub const __NR_symlink: u32 = 83; -pub const __NR_oldlstat: u32 = 84; -pub const __NR_readlink: u32 = 85; -pub const __NR_uselib: u32 = 86; -pub const __NR_swapon: u32 = 87; -pub const __NR_reboot: u32 = 88; -pub const __NR_readdir: u32 = 89; -pub const __NR_mmap: u32 = 90; -pub const __NR_munmap: u32 = 91; -pub const __NR_truncate: u32 = 92; -pub const __NR_ftruncate: u32 = 93; -pub const __NR_fchmod: u32 = 94; -pub const __NR_fchown: u32 = 95; -pub const __NR_getpriority: u32 = 96; -pub const __NR_setpriority: u32 = 97; -pub const __NR_profil: u32 = 98; -pub const __NR_statfs: u32 = 99; -pub const __NR_fstatfs: u32 = 100; -pub const __NR_ioperm: u32 = 101; -pub const __NR_socketcall: u32 = 102; -pub const __NR_syslog: u32 = 103; -pub const __NR_setitimer: u32 = 104; -pub const __NR_getitimer: u32 = 105; -pub const __NR_stat: u32 = 106; -pub const __NR_lstat: u32 = 107; -pub const __NR_fstat: u32 = 108; -pub const __NR_olduname: u32 = 109; -pub const __NR_iopl: u32 = 110; -pub const __NR_vhangup: u32 = 111; -pub const __NR_idle: u32 = 112; -pub const __NR_vm86: u32 = 113; -pub const __NR_wait4: u32 = 114; -pub const __NR_swapoff: u32 = 115; -pub const __NR_sysinfo: u32 = 116; -pub const __NR_ipc: u32 = 117; -pub const __NR_fsync: u32 = 118; -pub const __NR_sigreturn: u32 = 119; -pub const __NR_clone: u32 = 120; -pub const __NR_setdomainname: u32 = 121; -pub const __NR_uname: u32 = 122; -pub const __NR_modify_ldt: u32 = 123; -pub const __NR_adjtimex: u32 = 124; -pub const __NR_mprotect: u32 = 125; -pub const __NR_sigprocmask: u32 = 126; -pub const __NR_create_module: u32 = 127; -pub const __NR_init_module: u32 = 128; -pub const __NR_delete_module: u32 = 129; -pub const __NR_get_kernel_syms: u32 = 130; -pub const __NR_quotactl: u32 = 131; -pub const __NR_getpgid: u32 = 132; -pub const __NR_fchdir: u32 = 133; -pub const __NR_bdflush: u32 = 134; -pub const __NR_sysfs: u32 = 135; -pub const __NR_personality: u32 = 136; -pub const __NR_afs_syscall: u32 = 137; -pub const __NR_setfsuid: u32 = 138; -pub const __NR_setfsgid: u32 = 139; -pub const __NR__llseek: u32 = 140; -pub const __NR_getdents: u32 = 141; -pub const __NR__newselect: u32 = 142; -pub const __NR_flock: u32 = 143; -pub const __NR_msync: u32 = 144; -pub const __NR_readv: u32 = 145; -pub const __NR_writev: u32 = 146; -pub const __NR_getsid: u32 = 147; -pub const __NR_fdatasync: u32 = 148; -pub const __NR__sysctl: u32 = 149; -pub const __NR_mlock: u32 = 150; -pub const __NR_munlock: u32 = 151; -pub const __NR_mlockall: u32 = 152; -pub const __NR_munlockall: u32 = 153; -pub const __NR_sched_setparam: u32 = 154; -pub const __NR_sched_getparam: u32 = 155; -pub const __NR_sched_setscheduler: u32 = 156; -pub const __NR_sched_getscheduler: u32 = 157; -pub const __NR_sched_yield: u32 = 158; -pub const __NR_sched_get_priority_max: u32 = 159; -pub const __NR_sched_get_priority_min: u32 = 160; -pub const __NR_sched_rr_get_interval: u32 = 161; -pub const __NR_nanosleep: u32 = 162; -pub const __NR_mremap: u32 = 163; -pub const __NR_setresuid: u32 = 164; -pub const __NR_getresuid: u32 = 165; -pub const __NR_query_module: u32 = 166; -pub const __NR_poll: u32 = 167; -pub const __NR_nfsservctl: u32 = 168; -pub const __NR_setresgid: u32 = 169; -pub const __NR_getresgid: u32 = 170; -pub const __NR_prctl: u32 = 171; -pub const __NR_rt_sigreturn: u32 = 172; -pub const __NR_rt_sigaction: u32 = 173; -pub const __NR_rt_sigprocmask: u32 = 174; -pub const __NR_rt_sigpending: u32 = 175; -pub const __NR_rt_sigtimedwait: u32 = 176; -pub const __NR_rt_sigqueueinfo: u32 = 177; -pub const __NR_rt_sigsuspend: u32 = 178; -pub const __NR_pread64: u32 = 179; -pub const __NR_pwrite64: u32 = 180; -pub const __NR_chown: u32 = 181; -pub const __NR_getcwd: u32 = 182; -pub const __NR_capget: u32 = 183; -pub const __NR_capset: u32 = 184; -pub const __NR_sigaltstack: u32 = 185; -pub const __NR_sendfile: u32 = 186; -pub const __NR_getpmsg: u32 = 187; -pub const __NR_putpmsg: u32 = 188; -pub const __NR_vfork: u32 = 189; -pub const __NR_ugetrlimit: u32 = 190; -pub const __NR_readahead: u32 = 191; -pub const __NR_pciconfig_read: u32 = 198; -pub const __NR_pciconfig_write: u32 = 199; -pub const __NR_pciconfig_iobase: u32 = 200; -pub const __NR_multiplexer: u32 = 201; -pub const __NR_getdents64: u32 = 202; -pub const __NR_pivot_root: u32 = 203; -pub const __NR_madvise: u32 = 205; -pub const __NR_mincore: u32 = 206; -pub const __NR_gettid: u32 = 207; -pub const __NR_tkill: u32 = 208; -pub const __NR_setxattr: u32 = 209; -pub const __NR_lsetxattr: u32 = 210; -pub const __NR_fsetxattr: u32 = 211; -pub const __NR_getxattr: u32 = 212; -pub const __NR_lgetxattr: u32 = 213; -pub const __NR_fgetxattr: u32 = 214; -pub const __NR_listxattr: u32 = 215; -pub const __NR_llistxattr: u32 = 216; -pub const __NR_flistxattr: u32 = 217; -pub const __NR_removexattr: u32 = 218; -pub const __NR_lremovexattr: u32 = 219; -pub const __NR_fremovexattr: u32 = 220; -pub const __NR_futex: u32 = 221; -pub const __NR_sched_setaffinity: u32 = 222; -pub const __NR_sched_getaffinity: u32 = 223; -pub const __NR_tuxcall: u32 = 225; -pub const __NR_io_setup: u32 = 227; -pub const __NR_io_destroy: u32 = 228; -pub const __NR_io_getevents: u32 = 229; -pub const __NR_io_submit: u32 = 230; -pub const __NR_io_cancel: u32 = 231; -pub const __NR_set_tid_address: u32 = 232; -pub const __NR_fadvise64: u32 = 233; -pub const __NR_exit_group: u32 = 234; -pub const __NR_lookup_dcookie: u32 = 235; -pub const __NR_epoll_create: u32 = 236; -pub const __NR_epoll_ctl: u32 = 237; -pub const __NR_epoll_wait: u32 = 238; -pub const __NR_remap_file_pages: u32 = 239; -pub const __NR_timer_create: u32 = 240; -pub const __NR_timer_settime: u32 = 241; -pub const __NR_timer_gettime: u32 = 242; -pub const __NR_timer_getoverrun: u32 = 243; -pub const __NR_timer_delete: u32 = 244; -pub const __NR_clock_settime: u32 = 245; -pub const __NR_clock_gettime: u32 = 246; -pub const __NR_clock_getres: u32 = 247; -pub const __NR_clock_nanosleep: u32 = 248; -pub const __NR_swapcontext: u32 = 249; -pub const __NR_tgkill: u32 = 250; -pub const __NR_utimes: u32 = 251; -pub const __NR_statfs64: u32 = 252; -pub const __NR_fstatfs64: u32 = 253; -pub const __NR_rtas: u32 = 255; -pub const __NR_sys_debug_setcontext: u32 = 256; -pub const __NR_migrate_pages: u32 = 258; -pub const __NR_mbind: u32 = 259; -pub const __NR_get_mempolicy: u32 = 260; -pub const __NR_set_mempolicy: u32 = 261; -pub const __NR_mq_open: u32 = 262; -pub const __NR_mq_unlink: u32 = 263; -pub const __NR_mq_timedsend: u32 = 264; -pub const __NR_mq_timedreceive: u32 = 265; -pub const __NR_mq_notify: u32 = 266; -pub const __NR_mq_getsetattr: u32 = 267; -pub const __NR_kexec_load: u32 = 268; -pub const __NR_add_key: u32 = 269; -pub const __NR_request_key: u32 = 270; -pub const __NR_keyctl: u32 = 271; -pub const __NR_waitid: u32 = 272; -pub const __NR_ioprio_set: u32 = 273; -pub const __NR_ioprio_get: u32 = 274; -pub const __NR_inotify_init: u32 = 275; -pub const __NR_inotify_add_watch: u32 = 276; -pub const __NR_inotify_rm_watch: u32 = 277; -pub const __NR_spu_run: u32 = 278; -pub const __NR_spu_create: u32 = 279; -pub const __NR_pselect6: u32 = 280; -pub const __NR_ppoll: u32 = 281; -pub const __NR_unshare: u32 = 282; -pub const __NR_splice: u32 = 283; -pub const __NR_tee: u32 = 284; -pub const __NR_vmsplice: u32 = 285; -pub const __NR_openat: u32 = 286; -pub const __NR_mkdirat: u32 = 287; -pub const __NR_mknodat: u32 = 288; -pub const __NR_fchownat: u32 = 289; -pub const __NR_futimesat: u32 = 290; -pub const __NR_newfstatat: u32 = 291; -pub const __NR_unlinkat: u32 = 292; -pub const __NR_renameat: u32 = 293; -pub const __NR_linkat: u32 = 294; -pub const __NR_symlinkat: u32 = 295; -pub const __NR_readlinkat: u32 = 296; -pub const __NR_fchmodat: u32 = 297; -pub const __NR_faccessat: u32 = 298; -pub const __NR_get_robust_list: u32 = 299; -pub const __NR_set_robust_list: u32 = 300; -pub const __NR_move_pages: u32 = 301; -pub const __NR_getcpu: u32 = 302; -pub const __NR_epoll_pwait: u32 = 303; -pub const __NR_utimensat: u32 = 304; -pub const __NR_signalfd: u32 = 305; -pub const __NR_timerfd_create: u32 = 306; -pub const __NR_eventfd: u32 = 307; -pub const __NR_sync_file_range2: u32 = 308; -pub const __NR_fallocate: u32 = 309; -pub const __NR_subpage_prot: u32 = 310; -pub const __NR_timerfd_settime: u32 = 311; -pub const __NR_timerfd_gettime: u32 = 312; -pub const __NR_signalfd4: u32 = 313; -pub const __NR_eventfd2: u32 = 314; -pub const __NR_epoll_create1: u32 = 315; -pub const __NR_dup3: u32 = 316; -pub const __NR_pipe2: u32 = 317; -pub const __NR_inotify_init1: u32 = 318; -pub const __NR_perf_event_open: u32 = 319; -pub const __NR_preadv: u32 = 320; -pub const __NR_pwritev: u32 = 321; -pub const __NR_rt_tgsigqueueinfo: u32 = 322; -pub const __NR_fanotify_init: u32 = 323; -pub const __NR_fanotify_mark: u32 = 324; -pub const __NR_prlimit64: u32 = 325; -pub const __NR_socket: u32 = 326; -pub const __NR_bind: u32 = 327; -pub const __NR_connect: u32 = 328; -pub const __NR_listen: u32 = 329; -pub const __NR_accept: u32 = 330; -pub const __NR_getsockname: u32 = 331; -pub const __NR_getpeername: u32 = 332; -pub const __NR_socketpair: u32 = 333; -pub const __NR_send: u32 = 334; -pub const __NR_sendto: u32 = 335; -pub const __NR_recv: u32 = 336; -pub const __NR_recvfrom: u32 = 337; -pub const __NR_shutdown: u32 = 338; -pub const __NR_setsockopt: u32 = 339; -pub const __NR_getsockopt: u32 = 340; -pub const __NR_sendmsg: u32 = 341; -pub const __NR_recvmsg: u32 = 342; -pub const __NR_recvmmsg: u32 = 343; -pub const __NR_accept4: u32 = 344; -pub const __NR_name_to_handle_at: u32 = 345; -pub const __NR_open_by_handle_at: u32 = 346; -pub const __NR_clock_adjtime: u32 = 347; -pub const __NR_syncfs: u32 = 348; -pub const __NR_sendmmsg: u32 = 349; -pub const __NR_setns: u32 = 350; -pub const __NR_process_vm_readv: u32 = 351; -pub const __NR_process_vm_writev: u32 = 352; -pub const __NR_finit_module: u32 = 353; -pub const __NR_kcmp: u32 = 354; -pub const __NR_sched_setattr: u32 = 355; -pub const __NR_sched_getattr: u32 = 356; -pub const __NR_renameat2: u32 = 357; -pub const __NR_seccomp: u32 = 358; -pub const __NR_getrandom: u32 = 359; -pub const __NR_memfd_create: u32 = 360; -pub const __NR_bpf: u32 = 361; -pub const __NR_execveat: u32 = 362; -pub const __NR_switch_endian: u32 = 363; -pub const __NR_userfaultfd: u32 = 364; -pub const __NR_membarrier: u32 = 365; -pub const __NR_mlock2: u32 = 378; -pub const __NR_copy_file_range: u32 = 379; -pub const __NR_preadv2: u32 = 380; -pub const __NR_pwritev2: u32 = 381; -pub const __NR_kexec_file_load: u32 = 382; -pub const __NR_statx: u32 = 383; -pub const __NR_pkey_alloc: u32 = 384; -pub const __NR_pkey_free: u32 = 385; -pub const __NR_pkey_mprotect: u32 = 386; -pub const __NR_rseq: u32 = 387; -pub const __NR_io_pgetevents: u32 = 388; -pub const __NR_semtimedop: u32 = 392; -pub const __NR_semget: u32 = 393; -pub const __NR_semctl: u32 = 394; -pub const __NR_shmget: u32 = 395; -pub const __NR_shmctl: u32 = 396; -pub const __NR_shmat: u32 = 397; -pub const __NR_shmdt: u32 = 398; -pub const __NR_msgget: u32 = 399; -pub const __NR_msgsnd: u32 = 400; -pub const __NR_msgrcv: u32 = 401; -pub const __NR_msgctl: u32 = 402; -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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/if_ether.rs b/third_party/rust/linux-raw-sys/src/powerpc64/if_ether.rs deleted file mode 100644 index a3294a9ba5f3..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/if_ether.rs +++ /dev/null @@ -1,173 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/io_uring.rs b/third_party/rust/linux-raw-sys/src/powerpc64/io_uring.rs deleted file mode 100644 index 2a216f065b9d..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/io_uring.rs +++ /dev/null @@ -1,1089 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 536805376; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/ioctl.rs b/third_party/rust/linux-raw-sys/src/powerpc64/ioctl.rs deleted file mode 100644 index 2d77ac470c8e..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/ioctl.rs +++ /dev/null @@ -1,1488 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 1074030207; -pub const FIONBIO: u32 = 2147772030; -pub const FIOCLEX: u32 = 536897025; -pub const FIONCLEX: u32 = 536897026; -pub const FIOASYNC: u32 = 2147772029; -pub const FIOQSIZE: u32 = 1074292352; -pub const TCXONC: u32 = 536900638; -pub const TCFLSH: u32 = 536900639; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 2147775606; -pub const TIOCOUTQ: u32 = 1074033779; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 2148037735; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 2147767345; -pub const TIOCSIG: u32 = 2147767350; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 1076655123; -pub const TCGETA: u32 = 1075082263; -pub const TCSBRK: u32 = 536900637; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 2148824088; -pub const TCSETAF: u32 = 2148824092; -pub const TCSETAW: u32 = 2148824089; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 1074025522; -pub const TIOCGEXCL: u32 = 1074025536; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 1074033783; -pub const TIOCGPKT: u32 = 1074025528; -pub const TIOCGPTLCK: u32 = 1074025529; -pub const TIOCGPTN: u32 = 1074025520; -pub const TIOCGPTPEER: u32 = 536892481; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 1074295912; -pub const TCSETS: u32 = 2150396948; -pub const TCSETSF: u32 = 2150396950; -pub const TCSETSW: u32 = 2150396949; -pub const TIOCGETC: u32 = 1074164754; -pub const TIOCGETD: u32 = 21540; -pub const TIOCGETP: u32 = 1074164744; -pub const TIOCGLTC: u32 = 1074164852; -pub const MTIOCGET: u32 = 1076915458; -pub const BLKSSZGET: u32 = 536875624; -pub const BLKPBSZGET: u32 = 536875643; -pub const BLKROSET: u32 = 536875613; -pub const BLKROGET: u32 = 536875614; -pub const BLKRRPART: u32 = 536875615; -pub const BLKGETSIZE: u32 = 536875616; -pub const BLKFLSBUF: u32 = 536875617; -pub const BLKRASET: u32 = 536875618; -pub const BLKRAGET: u32 = 536875619; -pub const BLKFRASET: u32 = 536875620; -pub const BLKFRAGET: u32 = 536875621; -pub const BLKSECTSET: u32 = 536875622; -pub const BLKSECTGET: u32 = 536875623; -pub const BLKPG: u32 = 536875625; -pub const BLKBSZGET: u32 = 1074270832; -pub const BLKBSZSET: u32 = 2148012657; -pub const BLKGETSIZE64: u32 = 1074270834; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 536875636; -pub const BLKTRACESTOP: u32 = 536875637; -pub const BLKTRACETEARDOWN: u32 = 536875638; -pub const BLKDISCARD: u32 = 536875639; -pub const BLKIOMIN: u32 = 536875640; -pub const BLKIOOPT: u32 = 536875641; -pub const BLKALIGNOFF: u32 = 536875642; -pub const BLKDISCARDZEROES: u32 = 536875644; -pub const BLKSECDISCARD: u32 = 536875645; -pub const BLKROTATIONAL: u32 = 536875646; -pub const BLKZEROOUT: u32 = 536875647; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 1074833921; -pub const UFFDIO_WAKE: u32 = 1074833922; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 536917761; -pub const NS_GET_PARENT: u32 = 536917762; -pub const NS_GET_NSTYPE: u32 = 536917763; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 1074030207; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 536870913; -pub const FIGETBSZ: u32 = 536870914; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 2147783689; -pub const FICLONERANGE: u32 = 2149618701; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 1074292225; -pub const FS_IOC_SETFLAGS: u32 = 2148034050; -pub const FS_IOC_GETVERSION: u32 = 1074296321; -pub const FS_IOC_SETVERSION: u32 = 2148038146; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 1074030081; -pub const FS_IOC32_SETFLAGS: u32 = 2147771906; -pub const FS_IOC32_GETVERSION: u32 = 1074034177; -pub const FS_IOC32_SETVERSION: u32 = 2147776002; -pub const FS_IOC_FSGETXATTR: u32 = 1075599391; -pub const FS_IOC_FSSETXATTR: u32 = 2149341216; -pub const FS_IOC_GETFSLABEL: u32 = 1090556977; -pub const FS_IOC_SETFSLABEL: u32 = 2164298802; -pub const EXT4_IOC_GETVERSION: u32 = 1074292227; -pub const EXT4_IOC_SETVERSION: u32 = 2148034052; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 1074296321; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; -pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; -pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; -pub const EXT4_IOC_MIGRATE: u32 = 536897033; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; -pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; -pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; -pub const EXT4_IOC_GETSTATE: u32 = 2147771945; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; -pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; -pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; -pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; -pub const EXT4_IOC32_GETRSVSZ: u32 = 1074030085; -pub const EXT4_IOC32_SETRSVSZ: u32 = 2147771910; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 2147771911; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 1074034177; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 2147776002; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 1074288191; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 2147772691; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 1074041703; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 2148557194; -pub const DMA_BUF_SET_NAME_B: u32 = 2148033025; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 2147767499; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1076915457; -pub const ENI_SETMULT: u32 = 2148557159; -pub const RIO_GET_EVENT_MASK: u32 = 1074031886; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; -pub const CHIOMOVE: u32 = 2148819713; -pub const SONYPI_IOCGBATFLAGS: u32 = 1073837575; -pub const BTRFS_IOC_SYNC: u32 = 536908808; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 2147772690; -pub const VIDIOC_DQEVENT: u32 = 1082676825; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 536917250; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 2148052773; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 2148052832; -pub const UI_SET_KEYBIT: u32 = 2147767653; -pub const LIRC_SET_REC_TIMEOUT: u32 = 2147772696; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 2148052754; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 2148035849; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 1074030850; -pub const PPGETTIME: u32 = 1074819221; -pub const BTRFS_IOC_RM_DEV: u32 = 2415957003; -pub const ATM_SETBACKEND: u32 = 2147639794; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 536888968; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 536871513; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 2150649410; -pub const NILFS_IOCTL_SYNC: u32 = 1074294410; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 2147767662; -pub const TUNSETFILTEREBPF: u32 = 1074025697; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 1074026244; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148557198; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 1075839492; -pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148557152; -pub const PTP_SYS_OFFSET2: u32 = 2202025230; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; -pub const RTC_EPOCH_READ: u32 = 1074294797; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148557200; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 2153534723; -pub const ISST_IF_IO_CMD: u32 = 2148072962; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 1075342599; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 1074008709; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 1074287876; -pub const PPPIOCGCHAN: u32 = 1074033719; -pub const EVIOCGVERSION: u32 = 1074021633; -pub const VHOST_NET_SET_BACKEND: u32 = 2148052784; -pub const USBDEVFS_REAPURBNDELAY: u32 = 2148029709; -pub const RNDZAPENTCNT: u32 = 536891908; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 536892643; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 2147772701; -pub const VHOST_SET_VRING_ERR: u32 = 2148052770; -pub const VDUSE_VQ_SETUP: u32 = 2149613844; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 2150389305; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 2149119252; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 1074026249; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 2147767582; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 2415957015; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 2147790689; -pub const STP_SET_OPTIONS: u32 = 2148017410; -pub const FBIO_RADEON_GET_MIRROR: u32 = 1074282499; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 2149078720; -pub const IPMICTL_SEND_COMMAND: u32 = 1076390157; -pub const VIDIOC_G_ENC_INDEX: u32 = 1209554508; -pub const DFL_FPGA_FME_PORT_PR: u32 = 536917632; -pub const CHIOSVOLTAG: u32 = 2150654738; -pub const ATM_SETESIF: u32 = 2148557197; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 2149065476; -pub const PMU_IOC_GET_MODEL: u32 = 1074283011; -pub const JSIOCGBTNMAP: u32 = 1140877876; -pub const USBDEVFS_HUB_PORTINFO: u32 = 1082152211; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 536871489; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 536892694; -pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; -pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 1082130961; -pub const TUNSETVNETLE: u32 = 2147767516; -pub const PHN_SETREG: u32 = 2148036614; -pub const PPPIOCDETACH: u32 = 2147775548; -pub const MMTIMER_GETRES: u32 = 1074294017; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 1074032794; -pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 1074310688; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; -pub const SONYPI_IOCGBLUE: u32 = 1073837576; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148557107; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 1074308100; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 536917568; -pub const PPPIOCGASYNCMAP: u32 = 1074033752; -pub const EVIOCGKEYCODE_V2: u32 = 1076380932; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 2149074956; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065488; -pub const PTP_EXTTS_REQUEST: u32 = 2148547842; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 2162732865; -pub const JSIOCGAXES: u32 = 1073834513; -pub const HIDIOCSFLAG: u32 = 2147764239; -pub const PTP_PEROUT_REQUEST2: u32 = 2151169292; -pub const PPWDATA: u32 = 2147577990; -pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; -pub const FDGETMAXERRS: u32 = 1075053070; -pub const TUNSETQUEUE: u32 = 2147767513; -pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 536914689; -pub const NBD_SET_TIMEOUT: u32 = 536914697; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 2147790658; -pub const RIO_UNMAP_INBOUND: u32 = 2148035858; -pub const ATM_QUERYLOOP: u32 = 2148557140; -pub const DFL_FPGA_GET_API_VERSION: u32 = 536917504; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 536892707; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 536891910; -pub const VIDIOC_QUERYSTD: u32 = 1074288191; -pub const DMA_BUF_IOCTL_SYNC: u32 = 2148033024; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 1076909578; -pub const PTP_ENABLE_PPS2: u32 = 2147761421; -pub const PCITEST_CLEAR_IRQ: u32 = 536891408; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 1074030864; -pub const BTRFS_IOC_DEVICES_READY: u32 = 1342215207; -pub const JSIOCGAXMAP: u32 = 1077963314; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 1074799372; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 2148541207; -pub const RTC_WIE_OFF: u32 = 536899600; -pub const PPGETMODE: u32 = 1074032792; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 2202025221; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 536908806; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 2147764480; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 1074279182; -pub const TUNDETACHFILTER: u32 = 2148553942; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 2148561101; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 1074033729; -pub const BLKGETZONESZ: u32 = 1074008708; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 1073837580; -pub const UI_SET_MSCBIT: u32 = 2147767656; -pub const APM_IOC_SUSPEND: u32 = 536887554; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 1075867665; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 1074812174; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 1074030856; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 1100502850; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 1073903107; -pub const EVIOCSFF: u32 = 2150647168; -pub const TUNSETGROUP: u32 = 2147767502; -pub const EVIOCGKEYCODE: u32 = 1074283780; -pub const KCOV_REMOTE_ENABLE: u32 = 2149081958; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 536871514; -pub const TUNSETOFFLOAD: u32 = 2147767504; -pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148557192; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; -pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; -pub const UI_ABS_SETUP: u32 = 2149340420; -pub const UI_DEV_DESTROY: u32 = 536892674; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 536899585; -pub const AUTOFS_IOC_EXPIRE: u32 = 1091343205; -pub const PPPIOCSDEBUG: u32 = 2147775552; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 2147775570; -pub const CCISS_DEREGDISK: u32 = 536887820; -pub const UI_DEV_CREATE: u32 = 536892673; -pub const FUSE_DEV_IOC_CLONE: u32 = 1074062592; -pub const BTRFS_IOC_START_SYNC: u32 = 1074304024; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 2148036225; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 1074279187; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 1074283010; -pub const PPPIOCSASYNCMAP: u32 = 2147775575; -pub const I2OEVTGET: u32 = 1080584459; -pub const NVME_IOCTL_RESET: u32 = 536890948; -pub const PPYIELD: u32 = 536899725; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 2147767522; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 536899599; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2150657280; -pub const RTC_SET_TIME: u32 = 2149871626; -pub const VHOST_RESET_OWNER: u32 = 536915714; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 1074293825; -pub const VFIO_IOMMU_MAP_DMA: u32 = 536886129; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 2149602906; -pub const HIDIOCGFLAG: u32 = 1074022414; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 2148577793; -pub const CCISS_GETFIRMVER: u32 = 1074020872; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 2147775547; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 1074050818; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 2148561046; -pub const RTC_ALM_READ: u32 = 1076129800; -pub const VDUSE_SET_API_VERSION: u32 = 2148040961; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 536892695; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; -pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148557191; -pub const NBD_SET_SIZE: u32 = 536914690; -pub const UDF_GETVOLIDENT: u32 = 1074293826; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; -pub const UDF_GETEASIZE: u32 = 1074031680; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 536915713; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 2148557195; -pub const HPET_IE_ON: u32 = 536897537; -pub const PERF_EVENT_IOC_ID: u32 = 1074275335; -pub const TUNSETSNDBUF: u32 = 2147767508; -pub const PTP_PIN_SETFUNC: u32 = 2153790727; -pub const PPPIOCDISCONN: u32 = 536900665; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 536899727; -pub const PCITEST_MSI: u32 = 2147766275; -pub const FDWERRORCLR: u32 = 536871510; -pub const AUTOFS_IOC_FAIL: u32 = 536908641; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 2148029976; -pub const F2FS_IOC_RESIZE_FS: u32 = 2148070672; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 2415956994; -pub const CCISS_GETDRIVVER: u32 = 1074020873; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 1074293015; -pub const HPET_IRQFREQ: u32 = 2148034566; -pub const ATM_GETESI: u32 = 2148557189; -pub const CCISS_GETLUNINFO: u32 = 1074545169; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; -pub const UDMABUF_CREATE_LIST: u32 = 2148037955; -pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148557153; -pub const BR2684_SETFILT: u32 = 2149343632; -pub const RNDGETPOOL: u32 = 1074287106; -pub const PPS_GETPARAMS: u32 = 1074294945; -pub const IOC_PR_RESERVE: u32 = 2148561097; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 2147640068; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 1074283009; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 1074025754; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 536887822; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; -pub const VFIO_EEH_PE_OP: u32 = 536886137; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 1074328850; -pub const NBD_SET_SIZE_BLOCKS: u32 = 536914695; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 536916224; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 2150913586; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 2147775549; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052772; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 1074030867; -pub const PCITEST_LEGACY_IRQ: u32 = 536891394; -pub const USBDEVFS_SUBMITURB: u32 = 1077433610; -pub const AUTOFS_IOC_READY: u32 = 536908640; -pub const BTRFS_IOC_SEND: u32 = 2152240166; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 2214619699; -pub const PPPIOCSFLAGS: u32 = 2147775577; -pub const NVRAM_INIT: u32 = 536899648; -pub const RFKILL_IOCTL_NOINPUT: u32 = 536891905; -pub const BTRFS_IOC_BALANCE: u32 = 2415957004; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; -pub const STP_POLICY_ID_GET: u32 = 1074799873; -pub const PPSETFLAGS: u32 = 2147774619; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; -pub const PPPIOCGXASYNCMAP: u32 = 1075868752; -pub const VHOST_SET_VRING_CALL: u32 = 2148052769; -pub const LIRC_GET_FEATURES: u32 = 1074030848; -pub const GSMIOC_DISABLE_NET: u32 = 536889091; -pub const AUTOFS_IOC_CATATONIC: u32 = 536908642; -pub const NBD_DO_IT: u32 = 536914691; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 2147772703; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030873; -pub const EVIOCSCLOCKID: u32 = 2147763616; -pub const USBDEVFS_FREE_STREAMS: u32 = 1074287901; -pub const FSI_SCOM_RESET: u32 = 2147775235; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 1074283014; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 2149581379; -pub const TEE_IOC_INVOKE: u32 = 1074832387; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 2147579392; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 536899589; -pub const BTRFS_IOC_SCAN_DEV: u32 = 2415956996; -pub const PPPIOCXFERUNIT: u32 = 536900686; -pub const WDIOC_GETTIMEOUT: u32 = 1074026247; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 2148054598; -pub const FBIO_WAITFORVSYNC: u32 = 2147763744; -pub const RTC_PIE_OFF: u32 = 536899590; -pub const EVIOCGRAB: u32 = 2147763600; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 2148024834; -pub const EVIOCGREP: u32 = 1074283779; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 2148017163; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 1074299136; -pub const RTC_RD_TIME: u32 = 1076129801; -pub const FDMSGOFF: u32 = 536871494; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; -pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; -pub const RIO_DEV_ADD: u32 = 2149608727; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 2148024324; -pub const PCITEST_GET_IRQTYPE: u32 = 536891401; -pub const JSIOCGVERSION: u32 = 1074031105; -pub const SONYPI_IOCSBLUE: u32 = 2147579401; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 536883986; -pub const F2FS_IOC_GET_FEATURES: u32 = 1074066700; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 2155376264; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 2147754757; -pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; -pub const VHOST_SET_VRING_NUM: u32 = 2148052752; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; -pub const PPPIOCGL2TPSTATS: u32 = 1078490166; -pub const PERF_EVENT_IOC_PERIOD: u32 = 2148017156; -pub const PTP_PIN_SETFUNC2: u32 = 2153790736; -pub const CHIOEXCHANGE: u32 = 2149344002; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 1075342980; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 2147767661; -pub const VHOST_VDPA_SET_CONFIG: u32 = 2148052852; -pub const TUNSETIFF: u32 = 2147767498; -pub const CHIOPOSITION: u32 = 2148295427; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; -pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const EVIOCSMASK: u32 = 2148550035; -pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; -pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 2147774592; -pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 1078223114; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 2166386922; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 2149086530; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 2148036609; -pub const RNDADDTOENTCNT: u32 = 2147766785; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 536899586; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 536886120; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 2148016918; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 536886136; -pub const VFIO_IOMMU_GET_INFO: u32 = 536886128; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; -pub const PPPIOCSXASYNCMAP: u32 = 2149610575; -pub const CHIOGSTATUS: u32 = 2148557576; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; -pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 536917570; -pub const VHOST_GET_FEATURES: u32 = 1074310912; -pub const LIRC_GET_REC_RESOLUTION: u32 = 1074030855; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 2147772695; -pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; -pub const JSIOCGCORR: u32 = 1076128290; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 2148036622; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 2148557138; -pub const SCIF_LISTEN: u32 = 2147775234; -pub const NBD_CLEAR_QUE: u32 = 536914693; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 1074030863; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 2148794956; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 1077958144; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 2148283149; -pub const LIRC_GET_REC_TIMEOUT: u32 = 1074030884; -pub const EVIOCRMFF: u32 = 2147763585; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 1073836165; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 1076915460; -pub const TUNSETVNETHDRSZ: u32 = 2147767512; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 1078740736; -pub const LIRC_GET_SEND_MODE: u32 = 1074030849; -pub const PPPIOCSACTIVE: u32 = 2148561990; -pub const SIOCGSTAMPNS_NEW: u32 = 1074825479; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 2147772693; -pub const UI_END_FF_ERASE: u32 = 2148292043; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 536914698; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 536886124; -pub const REISERFS_IOC_UNPACK: u32 = 2148060417; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 2147754759; -pub const RIO_SET_EVENT_MASK: u32 = 2147773709; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 1074279188; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 2147778839; -pub const I2OPASSTHRU: u32 = 1074817292; -pub const IOC_OPAL_SET_PW: u32 = 2183164128; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 2153010718; -pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 1074570240; -pub const VIDIOC_LOG_STATUS: u32 = 536892998; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; -pub const VHOST_SET_LOG_FD: u32 = 2147790599; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; -pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; -pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 536892931; -pub const JSIOCGBUTTONS: u32 = 1073834514; -pub const VFIO_IOMMU_ENABLE: u32 = 536886131; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 2147790711; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 2148816444; -pub const WDIOC_GETTEMP: u32 = 1074026243; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 2165862628; -pub const UI_SET_LEDBIT: u32 = 2147767657; -pub const NBD_SET_SOCK: u32 = 536914688; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 2415957055; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 1074022403; -pub const FDFMTTRK: u32 = 2148270664; -pub const MMTIMER_GETBITS: u32 = 536898820; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; -pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; -pub const RTC_VL_READ: u32 = 1074032659; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 2149608728; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 2147579403; -pub const SPIOCSTYPE: u32 = 2148036865; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 1073899790; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 1074025695; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 2154321353; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 1073903109; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 1074328849; -pub const PPPIOCSNPMODE: u32 = 2148037707; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 2147767505; -pub const TUNGETVNETLE: u32 = 1074025693; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; -pub const I2OVALIDATE: u32 = 1074030856; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 1075342978; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 1110471170; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 1074328851; -pub const FDGETDRVSTAT: u32 = 1078985234; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 2147775541; -pub const LIRC_SET_SEND_MODE: u32 = 2147772689; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 2148560139; -pub const ATM_GETTYPE: u32 = 2148557188; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 536871498; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; -pub const EVIOCGMASK: u32 = 1074808210; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 1074022148; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 2155872912; -pub const IOC_OPAL_SAVE: u32 = 2165862620; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 2147767514; -pub const CCISS_SETINTINFO: u32 = 2148024835; -pub const CM_IOSDBGLVL: u32 = 2148033530; -pub const RTC_VL_CLR: u32 = 536899604; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 2147767565; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 1074025733; -pub const CCISS_GETNODENAME: u32 = 1074807300; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 536886129; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 2150114066; -pub const LPSETTIMEOUT_NEW: u32 = 2148533775; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 536871512; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 1074820159; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; -pub const PHN_SET_REGS: u32 = 2148036611; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148557155; -pub const MTIOCPOS: u32 = 1074294019; -pub const PMU_IOC_SLEEP: u32 = 536887808; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 1076915845; -pub const VIDIOC_QUERYCAP: u32 = 1080579584; -pub const HPET_INFO: u32 = 1075341315; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 2148030145; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 2147767500; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 2148028931; -pub const USBDEVFS_RESET: u32 = 536892692; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 2415957006; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 536892705; -pub const FDGETDRVTYP: u32 = 1074790927; -pub const PPWCONTROL: u32 = 2147577988; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 536896357; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 2165862623; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 1074835320; -pub const PPPIOCSPASS: u32 = 2148561991; -pub const RIO_CM_CHAN_CONNECT: u32 = 2148033288; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 1074554387; -pub const IOC_OPAL_MBR_DONE: u32 = 2165338345; -pub const PPPIOCSMAXCID: u32 = 2147775569; -pub const PPSETPHASE: u32 = 2147774612; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 2148052853; -pub const USBDEVFS_GET_SPEED: u32 = 536892703; -pub const SONET_GETFRAMING: u32 = 1074028822; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 2149094441; -pub const PPS_GETCAP: u32 = 1074294947; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 536883983; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 2147772697; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 536914696; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 536886132; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 2147758865; -pub const SNAPSHOT_POWER_OFF: u32 = 536883984; -pub const APM_IOC_STANDBY: u32 = 536887553; -pub const PPPIOCGUNIT: u32 = 1074033750; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 2147783526; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 536893280; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 2148560512; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 2165862621; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 2147808525; -pub const PPPIOCGRASYNCMAP: u32 = 1074033749; -pub const MMTIMER_MMAPAVAIL: u32 = 536898822; -pub const I2OPASSTHRU32: u32 = 1074293004; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 2147792513; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const UI_SET_SNDBIT: u32 = 2147767658; -pub const VIDIOC_G_AUDOUT: u32 = 1077171761; -pub const RTC_PLL_SET: u32 = 2149609490; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 2147790660; -pub const VHOST_SET_VRING_ADDR: u32 = 2150149905; -pub const VDUSE_CREATE_DEV: u32 = 2169536770; -pub const FDFLUSH: u32 = 536871499; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 2148054660; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148557300; -pub const FDSETPRM: u32 = 2149581378; -pub const ATM_GETSTATZ: u32 = 2148557137; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 1106809916; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 2149602907; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 2148028422; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; -pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; -pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; -pub const CHIOGVPARAMS: u32 = 1081107219; -pub const PTP_PEROUT_REQUEST: u32 = 2151169283; -pub const FSI_SCOM_CHECK: u32 = 1074033408; -pub const RTC_IRQP_READ: u32 = 1074294795; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 1075342597; -pub const HIDIOCGRDESCSIZE: u32 = 1074022401; -pub const UI_GET_VERSION: u32 = 1074025773; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 1075342979; -pub const CCISS_GETBUSTYPES: u32 = 1074020871; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 536886135; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 2147767654; -pub const VFIO_SET_IOMMU: u32 = 536886118; -pub const VIDIOC_S_MODULATOR: u32 = 2151962167; -pub const TUNGETFILTER: u32 = 1074812123; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 2148549125; -pub const FBIO_GETCONTROL2: u32 = 1074284169; -pub const TUNSETDEBUG: u32 = 2147767497; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 2417772564; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 1075856914; -pub const ATM_GETSTAT: u32 = 2148557136; -pub const VIDIOC_G_JPEGCOMP: u32 = 1082938941; -pub const TUNATTACHFILTER: u32 = 2148553941; -pub const UI_SET_ABSBIT: u32 = 2147767655; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; -pub const USBDEVFS_REAPURB32: u32 = 2147767564; -pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; -pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148557152; -pub const ATM_SETLOOP: u32 = 2148557139; -pub const ATMSIGD_CTRL: u32 = 536895984; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; -pub const SNAPSHOT_UNFREEZE: u32 = 536883970; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 536933635; -pub const PMU_IOC_HAS_ADB: u32 = 1074283012; -pub const I2OGETIOPS: u32 = 1075865856; -pub const VIDIOC_S_FBUF: u32 = 2150651403; -pub const PPRCONTROL: u32 = 1073836163; -pub const CHIOSPICKER: u32 = 2147771141; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 536886133; -pub const TUNGETSNDBUF: u32 = 1074025683; -pub const GSMIOC_SETCONF: u32 = 2152482561; -pub const IOC_PR_PREEMPT: u32 = 2149085387; -pub const KCOV_INIT_TRACE: u32 = 1074291457; -pub const SONYPI_IOCGBAT1CAP: u32 = 1073903106; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 1074812736; -pub const MTIOCTOP: u32 = 2148035841; -pub const VHOST_VDPA_SET_STATUS: u32 = 2147594098; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 2147790659; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 536886133; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 1074033747; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 1074033754; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148557199; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; -pub const PPPIOCGIDLE32: u32 = 1074295871; -pub const VFIO_DEVICE_RESET: u32 = 536886127; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 1074026241; -pub const BTRFS_IOC_SET_FEATURES: u32 = 2150667321; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 2148028421; -pub const VFIO_GROUP_GET_STATUS: u32 = 536886119; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 1074294523; -pub const USBDEVFS_CLEAR_HALT: u32 = 1074025749; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 1077171745; -pub const CCISS_RESCANDISK: u32 = 536887824; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 2148560140; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 2165338343; -pub const USBDEVFS_REAPURB: u32 = 2148029708; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 536917505; -pub const AUTOFS_IOC_PROTOVER: u32 = 1074041699; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 1075352633; -pub const PCITEST_MSIX: u32 = 2147766279; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 2150667280; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 1074820159; -pub const NVRAM_SETCKS: u32 = 536899649; -pub const WDIOC_GETSUPPORT: u32 = 1076385536; -pub const GSMIOC_ENABLE_NET: u32 = 2150909698; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 1078244353; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 2150122756; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 2149084422; -pub const I2OEVTREG: u32 = 2148296970; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 1074283778; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 2148570154; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 1074025696; -pub const ATM_GETNAMES: u32 = 2148557187; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148557154; -pub const BLKCLOSEZONE: u32 = 2148536967; -pub const SONET_GETFRSENSE: u32 = 1074159895; -pub const UI_SET_EVBIT: u32 = 2147767652; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 1090799620; -pub const PPPIOCATTCHAN: u32 = 2147775544; -pub const VDUSE_DEV_SET_CONFIG: u32 = 2148040978; -pub const TUNGETFEATURES: u32 = 1074025679; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 536886121; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 1074030865; -pub const CCISS_REGNEWDISK: u32 = 2147762701; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 1082414691; -pub const PHN_SETREGS: u32 = 2150133768; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 1074033168; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 1074025682; -pub const PTP_CLOCK_GETCAPS2: u32 = 1079000330; -pub const BTRFS_IOC_RESIZE: u32 = 2415956995; -pub const VHOST_SET_VRING_ENDIAN: u32 = 2148052755; -pub const PPS_KC_BIND: u32 = 2148036773; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 536933639; -pub const UI_SET_FFBIT: u32 = 2147767659; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 1074030868; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 1073897729; -pub const CEC_G_MODE: u32 = 1074028808; -pub const USBDEVFS_RESETEP: u32 = 1074025731; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 1074331136; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 1074025753; -pub const VFIO_CHECK_EXTENSION: u32 = 536886117; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 1076925483; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; -pub const UI_SET_PHYS: u32 = 2148029804; -pub const FDWERRORGET: u32 = 1076363799; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 536898823; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; -pub const SIOCGSTAMP_NEW: u32 = 1074825478; -pub const RTC_WKALM_RD: u32 = 1076391952; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 536899588; -pub const PPGETMODES: u32 = 1074032791; -pub const CHIOGPARAMS: u32 = 1075077894; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; -pub const KCOV_ENABLE: u32 = 536896356; -pub const BTRFS_IOC_CLONE: u32 = 2147783689; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; -pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; -pub const RTC_UIE_OFF: u32 = 536899588; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 536916224; -pub const NVME_IOCTL_ID: u32 = 536890944; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 2147767826; -pub const FDPOLLDRVSTAT: u32 = 1078985235; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 2148029976; -pub const WDIOC_GETTIMELEFT: u32 = 1074026250; -pub const ATM_GETLINKRATE: u32 = 2148557185; -pub const RTC_WKALM_SET: u32 = 2150133775; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; -pub const NS_GET_OWNER_UID: u32 = 536917764; -pub const VIDIOC_OVERLAY: u32 = 2147767822; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148557190; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 536883979; -pub const JSIOCSAXMAP: u32 = 2151705137; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 2147677462; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 536886128; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 536898816; -pub const RIO_CM_CHAN_LISTEN: u32 = 2147640070; -pub const ATM_SETSC: u32 = 2147770865; -pub const F2FS_IOC_SHUTDOWN: u32 = 1074026621; -pub const NVME_IOCTL_RESCAN: u32 = 536890950; -pub const BLKOPENZONE: u32 = 2148536966; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; -pub const HIDIOCGVERSION: u32 = 1074022401; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 2147772707; -pub const EVIOCGEFFECTS: u32 = 1074021764; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148557106; -pub const HIDIOCINITREPORT: u32 = 536889349; -pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 1074024960; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 536871508; -pub const IOC_PR_REGISTER: u32 = 2149085384; -pub const HIDIOCSREPORT: u32 = 2148288520; -pub const TEE_IOC_OPEN_SESSION: u32 = 1074832386; -pub const TEE_IOC_SUPPL_RECV: u32 = 1074832390; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 2147783713; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 1074284547; -pub const PPPIOCSCOMPRESS: u32 = 2148561997; -pub const USBDEVFS_CONNECTINFO: u32 = 2148029713; -pub const BLKRESETZONE: u32 = 2148536963; -pub const CHIOINITELEM: u32 = 536896273; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 2148560524; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 2147642625; -pub const PPGETPHASE: u32 = 1074032793; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 1091065115; -pub const FDMSGON: u32 = 536871493; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 536902785; -pub const IOC_OPAL_ERASE_LR: u32 = 2165338342; -pub const FDFMTBEG: u32 = 536871495; -pub const RNDRESEEDCRNG: u32 = 536891911; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 2147767496; -pub const SONET_GETSTAT: u32 = 1076125968; -pub const TFD_IOC_SET_TICKS: u32 = 2148029440; -pub const PPDATADIR: u32 = 2147774608; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 2165338341; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 2148557577; -pub const PPWCTLONIRQ: u32 = 2147578002; -pub const SONYPI_IOCGBRT: u32 = 1073837568; -pub const IOC_PR_RELEASE: u32 = 2148561098; -pub const PPCLRIRQ: u32 = 1074032787; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; -pub const HPET_IE_OFF: u32 = 536897538; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; -pub const SONET_SETFRAMING: u32 = 2147770645; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 2147755017; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 2148536968; -pub const EVIOCREVOKE: u32 = 2147763601; -pub const VFIO_DEVICE_FEATURE: u32 = 536886133; -pub const CCISS_GETPCIINFO: u32 = 1074283009; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 2147767827; -pub const VDUSE_DESTROY_DEV: u32 = 2164293891; -pub const FDGETFDCSTAT: u32 = 1076363797; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 2147767876; -pub const SNAPSHOT_FREEZE: u32 = 536883969; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148557154; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 1074288151; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 536892706; -pub const SONET_GETSTATZ: u32 = 1076125969; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 2147775572; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 536914692; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 536886130; -pub const WDIOC_KEEPALIVE: u32 = 1074026245; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; -pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; -pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; -pub const EVIOCSREP: u32 = 2148025603; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; -pub const HPET_DPI: u32 = 536897541; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 2148040982; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 1075595267; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 1074026051; -pub const ATM_NEWBACKENDIF: u32 = 2147639795; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; -pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; -pub const CHIOGELEM: u32 = 2154586896; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; -pub const EVIOCSKEYCODE: u32 = 2148025604; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 2147767501; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 536908828; -pub const PPS_SETPARAMS: u32 = 2148036770; -pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 2149119243; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 2164814046; -pub const USBDEVFS_CLAIM_PORT: u32 = 1074025752; -pub const VIDIOC_S_AUDIO: u32 = 2150913570; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 1074816539; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 2150114067; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 2415957007; -pub const SNAPSHOT_FREE: u32 = 536883973; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 2148288519; -pub const HPET_EPI: u32 = 536897540; -pub const JSIOCSCORR: u32 = 2149870113; -pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 2148557196; -pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148557193; -pub const PPFCONTROL: u32 = 2147643534; -pub const SONYPI_IOCGFAN: u32 = 1073837578; -pub const RTC_IRQP_SET: u32 = 2148036620; -pub const PCITEST_WRITE: u32 = 2148028420; -pub const PPCLAIM: u32 = 536899723; -pub const VIDIOC_S_JPEGCOMP: u32 = 2156680766; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 1073899791; -pub const VHOST_SET_FEATURES: u32 = 2148052736; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; -pub const MMTIMER_GETFREQ: u32 = 1074294018; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2148053248; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; -pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 536871497; -pub const DMA_BUF_SET_NAME: u32 = 2148033025; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 536899587; -pub const PPRELEASE: u32 = 536899724; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 536886130; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 1110471169; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 2148052768; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 2415957016; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 2415956993; -pub const SONYPI_IOCGBAT2CAP: u32 = 1073903108; -pub const PPNEGOT: u32 = 2147774609; -pub const NBD_PRINT_DEBUG: u32 = 536914694; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 1140888607; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 1074026022; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 1074050691; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 2151715884; -pub const MMTIMER_GETCOUNTER: u32 = 1074294025; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; -pub const RIO_CM_CHAN_BIND: u32 = 2148033285; -pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 2149884501; -pub const BLKGETDISKSEQ: u32 = 1074270848; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 536912401; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 2148835923; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 536912434; -pub const ACRN_IOCTL_IRQFD: u32 = 2149098097; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 2148573731; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 536912435; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 2148835924; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 2148049457; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 2148049445; -pub const ACRN_IOCTL_START_VM: u32 = 536912402; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 2166923798; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 2149622337; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 536912403; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 536912437; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 2149622338; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 2149622384; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; -pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; -pub const TCGETS2: u32 = 1076655123; -pub const TCSETS2: u32 = 2150396948; -pub const TCSETSF2: u32 = 2150396950; -pub const TCSETSW2: u32 = 2150396949; diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/net.rs b/third_party/rust/linux-raw-sys/src/powerpc64/net.rs deleted file mode 100644 index 996837473bbd..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/net.rs +++ /dev/null @@ -1,1850 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SO_RCVLOWAT: u32 = 16; -pub const SO_SNDLOWAT: u32 = 17; -pub const SO_RCVTIMEO_OLD: u32 = 18; -pub const SO_SNDTIMEO_OLD: u32 = 19; -pub const SO_PASSCRED: u32 = 20; -pub const SO_PEERCRED: u32 = 21; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 18; -pub const SO_SNDTIMEO: u32 = 19; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/netlink.rs b/third_party/rust/linux-raw-sys/src/powerpc64/netlink.rs deleted file mode 100644 index f46383baff9a..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/netlink.rs +++ /dev/null @@ -1,2860 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/prctl.rs b/third_party/rust/linux-raw-sys/src/powerpc64/prctl.rs deleted file mode 100644 index 29240787f1a1..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/prctl.rs +++ /dev/null @@ -1,227 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/powerpc64/system.rs b/third_party/rust/linux-raw-sys/src/powerpc64/system.rs deleted file mode 100644 index cbd3adef4c8b..000000000000 --- a/third_party/rust/linux-raw-sys/src/powerpc64/system.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_long; -pub type __u64 = crate::ctypes::c_ulong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct __vector128 { -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/riscv32/errno.rs b/third_party/rust/linux-raw-sys/src/riscv32/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/riscv32/general.rs b/third_party/rust/linux-raw-sys/src/riscv32/general.rs deleted file mode 100644 index 3fad459d269c..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/general.rs +++ /dev/null @@ -1,2821 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulong, -pub __pad1: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_int, -pub __pad2: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulonglong, -pub st_ino: crate::ctypes::c_ulonglong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulonglong, -pub __pad1: crate::ctypes::c_ulonglong, -pub st_size: crate::ctypes::c_longlong, -pub st_blksize: crate::ctypes::c_int, -pub __pad2: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_longlong, -pub st_atime: crate::ctypes::c_int, -pub st_atime_nsec: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_int, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_int, -pub st_ctime_nsec: crate::ctypes::c_uint, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u32, -pub f_bfree: __u32, -pub f_bavail: __u32, -pub f_files: __u32, -pub f_ffree: __u32, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -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 = 9; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 64; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_io_setup: u32 = 0; -pub const __NR_io_destroy: u32 = 1; -pub const __NR_io_submit: u32 = 2; -pub const __NR_io_cancel: u32 = 3; -pub const __NR_setxattr: u32 = 5; -pub const __NR_lsetxattr: u32 = 6; -pub const __NR_fsetxattr: u32 = 7; -pub const __NR_getxattr: u32 = 8; -pub const __NR_lgetxattr: u32 = 9; -pub const __NR_fgetxattr: u32 = 10; -pub const __NR_listxattr: u32 = 11; -pub const __NR_llistxattr: u32 = 12; -pub const __NR_flistxattr: u32 = 13; -pub const __NR_removexattr: u32 = 14; -pub const __NR_lremovexattr: u32 = 15; -pub const __NR_fremovexattr: u32 = 16; -pub const __NR_getcwd: u32 = 17; -pub const __NR_lookup_dcookie: u32 = 18; -pub const __NR_eventfd2: u32 = 19; -pub const __NR_epoll_create1: u32 = 20; -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 __NR3264_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; -pub const __NR_ioctl: u32 = 29; -pub const __NR_ioprio_set: u32 = 30; -pub const __NR_ioprio_get: u32 = 31; -pub const __NR_flock: u32 = 32; -pub const __NR_mknodat: u32 = 33; -pub const __NR_mkdirat: u32 = 34; -pub const __NR_unlinkat: u32 = 35; -pub const __NR_symlinkat: u32 = 36; -pub const __NR_linkat: u32 = 37; -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 __NR3264_statfs: u32 = 43; -pub const __NR3264_fstatfs: u32 = 44; -pub const __NR3264_truncate: u32 = 45; -pub const __NR3264_ftruncate: u32 = 46; -pub const __NR_fallocate: u32 = 47; -pub const __NR_faccessat: u32 = 48; -pub const __NR_chdir: u32 = 49; -pub const __NR_fchdir: u32 = 50; -pub const __NR_chroot: u32 = 51; -pub const __NR_fchmod: u32 = 52; -pub const __NR_fchmodat: u32 = 53; -pub const __NR_fchownat: u32 = 54; -pub const __NR_fchown: u32 = 55; -pub const __NR_openat: u32 = 56; -pub const __NR_close: u32 = 57; -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 __NR3264_lseek: u32 = 62; -pub const __NR_read: u32 = 63; -pub const __NR_write: u32 = 64; -pub const __NR_readv: u32 = 65; -pub const __NR_writev: u32 = 66; -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 __NR3264_sendfile: u32 = 71; -pub const __NR_signalfd4: u32 = 74; -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_sync: u32 = 81; -pub const __NR_fsync: u32 = 82; -pub const __NR_fdatasync: u32 = 83; -pub const __NR_sync_file_range: u32 = 84; -pub const __NR_timerfd_create: u32 = 85; -pub const __NR_acct: u32 = 89; -pub const __NR_capget: u32 = 90; -pub const __NR_capset: u32 = 91; -pub const __NR_personality: u32 = 92; -pub const __NR_exit: u32 = 93; -pub const __NR_exit_group: u32 = 94; -pub const __NR_waitid: u32 = 95; -pub const __NR_set_tid_address: u32 = 96; -pub const __NR_unshare: u32 = 97; -pub const __NR_set_robust_list: u32 = 99; -pub const __NR_get_robust_list: u32 = 100; -pub const __NR_getitimer: u32 = 102; -pub const __NR_setitimer: u32 = 103; -pub const __NR_kexec_load: u32 = 104; -pub const __NR_init_module: u32 = 105; -pub const __NR_delete_module: u32 = 106; -pub const __NR_timer_create: u32 = 107; -pub const __NR_timer_getoverrun: u32 = 109; -pub const __NR_timer_delete: u32 = 111; -pub const __NR_syslog: u32 = 116; -pub const __NR_ptrace: u32 = 117; -pub const __NR_sched_setparam: u32 = 118; -pub const __NR_sched_setscheduler: u32 = 119; -pub const __NR_sched_getscheduler: u32 = 120; -pub const __NR_sched_getparam: u32 = 121; -pub const __NR_sched_setaffinity: u32 = 122; -pub const __NR_sched_getaffinity: u32 = 123; -pub const __NR_sched_yield: u32 = 124; -pub const __NR_sched_get_priority_max: u32 = 125; -pub const __NR_sched_get_priority_min: u32 = 126; -pub const __NR_restart_syscall: u32 = 128; -pub const __NR_kill: u32 = 129; -pub const __NR_tkill: u32 = 130; -pub const __NR_tgkill: u32 = 131; -pub const __NR_sigaltstack: u32 = 132; -pub const __NR_rt_sigsuspend: u32 = 133; -pub const __NR_rt_sigaction: u32 = 134; -pub const __NR_rt_sigprocmask: u32 = 135; -pub const __NR_rt_sigpending: u32 = 136; -pub const __NR_rt_sigqueueinfo: u32 = 138; -pub const __NR_rt_sigreturn: u32 = 139; -pub const __NR_setpriority: u32 = 140; -pub const __NR_getpriority: u32 = 141; -pub const __NR_reboot: u32 = 142; -pub const __NR_setregid: u32 = 143; -pub const __NR_setgid: u32 = 144; -pub const __NR_setreuid: u32 = 145; -pub const __NR_setuid: u32 = 146; -pub const __NR_setresuid: u32 = 147; -pub const __NR_getresuid: u32 = 148; -pub const __NR_setresgid: u32 = 149; -pub const __NR_getresgid: u32 = 150; -pub const __NR_setfsuid: u32 = 151; -pub const __NR_setfsgid: u32 = 152; -pub const __NR_times: u32 = 153; -pub const __NR_setpgid: u32 = 154; -pub const __NR_getpgid: u32 = 155; -pub const __NR_getsid: u32 = 156; -pub const __NR_setsid: u32 = 157; -pub const __NR_getgroups: u32 = 158; -pub const __NR_setgroups: u32 = 159; -pub const __NR_uname: u32 = 160; -pub const __NR_sethostname: u32 = 161; -pub const __NR_setdomainname: u32 = 162; -pub const __NR_getrusage: u32 = 165; -pub const __NR_umask: u32 = 166; -pub const __NR_prctl: u32 = 167; -pub const __NR_getcpu: u32 = 168; -pub const __NR_getpid: u32 = 172; -pub const __NR_getppid: u32 = 173; -pub const __NR_getuid: u32 = 174; -pub const __NR_geteuid: u32 = 175; -pub const __NR_getgid: u32 = 176; -pub const __NR_getegid: u32 = 177; -pub const __NR_gettid: u32 = 178; -pub const __NR_sysinfo: u32 = 179; -pub const __NR_mq_open: u32 = 180; -pub const __NR_mq_unlink: u32 = 181; -pub const __NR_mq_notify: u32 = 184; -pub const __NR_mq_getsetattr: u32 = 185; -pub const __NR_msgget: u32 = 186; -pub const __NR_msgctl: u32 = 187; -pub const __NR_msgrcv: u32 = 188; -pub const __NR_msgsnd: u32 = 189; -pub const __NR_semget: u32 = 190; -pub const __NR_semctl: u32 = 191; -pub const __NR_semop: u32 = 193; -pub const __NR_shmget: u32 = 194; -pub const __NR_shmctl: u32 = 195; -pub const __NR_shmat: u32 = 196; -pub const __NR_shmdt: u32 = 197; -pub const __NR_socket: u32 = 198; -pub const __NR_socketpair: u32 = 199; -pub const __NR_bind: u32 = 200; -pub const __NR_listen: u32 = 201; -pub const __NR_accept: u32 = 202; -pub const __NR_connect: u32 = 203; -pub const __NR_getsockname: u32 = 204; -pub const __NR_getpeername: u32 = 205; -pub const __NR_sendto: u32 = 206; -pub const __NR_recvfrom: u32 = 207; -pub const __NR_setsockopt: u32 = 208; -pub const __NR_getsockopt: u32 = 209; -pub const __NR_shutdown: u32 = 210; -pub const __NR_sendmsg: u32 = 211; -pub const __NR_recvmsg: u32 = 212; -pub const __NR_readahead: u32 = 213; -pub const __NR_brk: u32 = 214; -pub const __NR_munmap: u32 = 215; -pub const __NR_mremap: u32 = 216; -pub const __NR_add_key: u32 = 217; -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 __NR3264_mmap: u32 = 222; -pub const __NR3264_fadvise64: u32 = 223; -pub const __NR_swapon: u32 = 224; -pub const __NR_swapoff: u32 = 225; -pub const __NR_mprotect: u32 = 226; -pub const __NR_msync: u32 = 227; -pub const __NR_mlock: u32 = 228; -pub const __NR_munlock: u32 = 229; -pub const __NR_mlockall: u32 = 230; -pub const __NR_munlockall: u32 = 231; -pub const __NR_mincore: u32 = 232; -pub const __NR_madvise: u32 = 233; -pub const __NR_remap_file_pages: u32 = 234; -pub const __NR_mbind: u32 = 235; -pub const __NR_get_mempolicy: u32 = 236; -pub const __NR_set_mempolicy: u32 = 237; -pub const __NR_migrate_pages: u32 = 238; -pub const __NR_move_pages: u32 = 239; -pub const __NR_rt_tgsigqueueinfo: u32 = 240; -pub const __NR_perf_event_open: u32 = 241; -pub const __NR_accept4: u32 = 242; -pub const __NR_arch_specific_syscall: u32 = 244; -pub const __NR_prlimit64: u32 = 261; -pub const __NR_fanotify_init: u32 = 262; -pub const __NR_fanotify_mark: u32 = 263; -pub const __NR_name_to_handle_at: u32 = 264; -pub const __NR_open_by_handle_at: u32 = 265; -pub const __NR_syncfs: u32 = 267; -pub const __NR_setns: u32 = 268; -pub const __NR_sendmmsg: u32 = 269; -pub const __NR_process_vm_readv: u32 = 270; -pub const __NR_process_vm_writev: u32 = 271; -pub const __NR_kcmp: u32 = 272; -pub const __NR_finit_module: u32 = 273; -pub const __NR_sched_setattr: u32 = 274; -pub const __NR_sched_getattr: u32 = 275; -pub const __NR_renameat2: u32 = 276; -pub const __NR_seccomp: u32 = 277; -pub const __NR_getrandom: u32 = 278; -pub const __NR_memfd_create: u32 = 279; -pub const __NR_bpf: u32 = 280; -pub const __NR_execveat: u32 = 281; -pub const __NR_userfaultfd: u32 = 282; -pub const __NR_membarrier: u32 = 283; -pub const __NR_mlock2: u32 = 284; -pub const __NR_copy_file_range: u32 = 285; -pub const __NR_preadv2: u32 = 286; -pub const __NR_pwritev2: u32 = 287; -pub const __NR_pkey_mprotect: u32 = 288; -pub const __NR_pkey_alloc: u32 = 289; -pub const __NR_pkey_free: u32 = 290; -pub const __NR_statx: u32 = 291; -pub const __NR_rseq: u32 = 293; -pub const __NR_kexec_file_load: u32 = 294; -pub const __NR_clock_gettime64: u32 = 403; -pub const __NR_clock_settime64: u32 = 404; -pub const __NR_clock_adjtime64: u32 = 405; -pub const __NR_clock_getres_time64: u32 = 406; -pub const __NR_clock_nanosleep_time64: u32 = 407; -pub const __NR_timer_gettime64: u32 = 408; -pub const __NR_timer_settime64: u32 = 409; -pub const __NR_timerfd_gettime64: u32 = 410; -pub const __NR_timerfd_settime64: u32 = 411; -pub const __NR_utimensat_time64: u32 = 412; -pub const __NR_pselect6_time64: u32 = 413; -pub const __NR_ppoll_time64: u32 = 414; -pub const __NR_io_pgetevents_time64: u32 = 416; -pub const __NR_recvmmsg_time64: u32 = 417; -pub const __NR_mq_timedsend_time64: u32 = 418; -pub const __NR_mq_timedreceive_time64: u32 = 419; -pub const __NR_semtimedop_time64: u32 = 420; -pub const __NR_rt_sigtimedwait_time64: u32 = 421; -pub const __NR_futex_time64: u32 = 422; -pub const __NR_sched_rr_get_interval_time64: u32 = 423; -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_syscalls: u32 = 451; -pub const __NR_fcntl64: u32 = 25; -pub const __NR_statfs64: u32 = 43; -pub const __NR_fstatfs64: u32 = 44; -pub const __NR_truncate64: u32 = 45; -pub const __NR_ftruncate64: u32 = 46; -pub const __NR_llseek: u32 = 62; -pub const __NR_sendfile64: u32 = 71; -pub const __NR_mmap2: u32 = 222; -pub const __NR_fadvise64_64: u32 = 223; -pub const __NR_riscv_flush_icache: u32 = 259; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/riscv32/if_ether.rs b/third_party/rust/linux-raw-sys/src/riscv32/if_ether.rs deleted file mode 100644 index 55627c774d03..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/riscv32/io_uring.rs b/third_party/rust/linux-raw-sys/src/riscv32/io_uring.rs deleted file mode 100644 index cd051308fd86..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/io_uring.rs +++ /dev/null @@ -1,1083 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/riscv32/ioctl.rs b/third_party/rust/linux-raw-sys/src/riscv32/ioctl.rs deleted file mode 100644 index 286ed79ea540..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/ioctl.rs +++ /dev/null @@ -1,3 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - - diff --git a/third_party/rust/linux-raw-sys/src/riscv32/net.rs b/third_party/rust/linux-raw-sys/src/riscv32/net.rs deleted file mode 100644 index cfadfa5a2467..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/net.rs +++ /dev/null @@ -1,1836 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/riscv32/netlink.rs b/third_party/rust/linux-raw-sys/src/riscv32/netlink.rs deleted file mode 100644 index ecd8524c33b3..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/riscv32/prctl.rs b/third_party/rust/linux-raw-sys/src/riscv32/prctl.rs deleted file mode 100644 index a18ddb573e46..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/riscv32/system.rs b/third_party/rust/linux-raw-sys/src/riscv32/system.rs deleted file mode 100644 index ad14d197dd7b..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv32/system.rs +++ /dev/null @@ -1,99 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/riscv64/errno.rs b/third_party/rust/linux-raw-sys/src/riscv64/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/riscv64/general.rs b/third_party/rust/linux-raw-sys/src/riscv64/general.rs deleted file mode 100644 index 7875967204ef..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/general.rs +++ /dev/null @@ -1,2806 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type old_sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __kernel_long_t; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulong, -pub __pad1: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_int, -pub __pad2: crate::ctypes::c_int, -pub st_blocks: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __kernel_long_t, -pub f_bfree: __kernel_long_t, -pub f_bavail: __kernel_long_t, -pub f_files: __kernel_long_t, -pub f_ffree: __kernel_long_t, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -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 = 9; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const _NSIG: u32 = 64; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_io_setup: u32 = 0; -pub const __NR_io_destroy: u32 = 1; -pub const __NR_io_submit: u32 = 2; -pub const __NR_io_cancel: u32 = 3; -pub const __NR_io_getevents: u32 = 4; -pub const __NR_setxattr: u32 = 5; -pub const __NR_lsetxattr: u32 = 6; -pub const __NR_fsetxattr: u32 = 7; -pub const __NR_getxattr: u32 = 8; -pub const __NR_lgetxattr: u32 = 9; -pub const __NR_fgetxattr: u32 = 10; -pub const __NR_listxattr: u32 = 11; -pub const __NR_llistxattr: u32 = 12; -pub const __NR_flistxattr: u32 = 13; -pub const __NR_removexattr: u32 = 14; -pub const __NR_lremovexattr: u32 = 15; -pub const __NR_fremovexattr: u32 = 16; -pub const __NR_getcwd: u32 = 17; -pub const __NR_lookup_dcookie: u32 = 18; -pub const __NR_eventfd2: u32 = 19; -pub const __NR_epoll_create1: u32 = 20; -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 __NR3264_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; -pub const __NR_ioctl: u32 = 29; -pub const __NR_ioprio_set: u32 = 30; -pub const __NR_ioprio_get: u32 = 31; -pub const __NR_flock: u32 = 32; -pub const __NR_mknodat: u32 = 33; -pub const __NR_mkdirat: u32 = 34; -pub const __NR_unlinkat: u32 = 35; -pub const __NR_symlinkat: u32 = 36; -pub const __NR_linkat: u32 = 37; -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 __NR3264_statfs: u32 = 43; -pub const __NR3264_fstatfs: u32 = 44; -pub const __NR3264_truncate: u32 = 45; -pub const __NR3264_ftruncate: u32 = 46; -pub const __NR_fallocate: u32 = 47; -pub const __NR_faccessat: u32 = 48; -pub const __NR_chdir: u32 = 49; -pub const __NR_fchdir: u32 = 50; -pub const __NR_chroot: u32 = 51; -pub const __NR_fchmod: u32 = 52; -pub const __NR_fchmodat: u32 = 53; -pub const __NR_fchownat: u32 = 54; -pub const __NR_fchown: u32 = 55; -pub const __NR_openat: u32 = 56; -pub const __NR_close: u32 = 57; -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 __NR3264_lseek: u32 = 62; -pub const __NR_read: u32 = 63; -pub const __NR_write: u32 = 64; -pub const __NR_readv: u32 = 65; -pub const __NR_writev: u32 = 66; -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 __NR3264_sendfile: u32 = 71; -pub const __NR_pselect6: u32 = 72; -pub const __NR_ppoll: u32 = 73; -pub const __NR_signalfd4: u32 = 74; -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 __NR3264_fstatat: u32 = 79; -pub const __NR3264_fstat: u32 = 80; -pub const __NR_sync: u32 = 81; -pub const __NR_fsync: u32 = 82; -pub const __NR_fdatasync: u32 = 83; -pub const __NR_sync_file_range: u32 = 84; -pub const __NR_timerfd_create: u32 = 85; -pub const __NR_timerfd_settime: u32 = 86; -pub const __NR_timerfd_gettime: u32 = 87; -pub const __NR_utimensat: u32 = 88; -pub const __NR_acct: u32 = 89; -pub const __NR_capget: u32 = 90; -pub const __NR_capset: u32 = 91; -pub const __NR_personality: u32 = 92; -pub const __NR_exit: u32 = 93; -pub const __NR_exit_group: u32 = 94; -pub const __NR_waitid: u32 = 95; -pub const __NR_set_tid_address: u32 = 96; -pub const __NR_unshare: u32 = 97; -pub const __NR_futex: u32 = 98; -pub const __NR_set_robust_list: u32 = 99; -pub const __NR_get_robust_list: u32 = 100; -pub const __NR_nanosleep: u32 = 101; -pub const __NR_getitimer: u32 = 102; -pub const __NR_setitimer: u32 = 103; -pub const __NR_kexec_load: u32 = 104; -pub const __NR_init_module: u32 = 105; -pub const __NR_delete_module: u32 = 106; -pub const __NR_timer_create: u32 = 107; -pub const __NR_timer_gettime: u32 = 108; -pub const __NR_timer_getoverrun: u32 = 109; -pub const __NR_timer_settime: u32 = 110; -pub const __NR_timer_delete: u32 = 111; -pub const __NR_clock_settime: u32 = 112; -pub const __NR_clock_gettime: u32 = 113; -pub const __NR_clock_getres: u32 = 114; -pub const __NR_clock_nanosleep: u32 = 115; -pub const __NR_syslog: u32 = 116; -pub const __NR_ptrace: u32 = 117; -pub const __NR_sched_setparam: u32 = 118; -pub const __NR_sched_setscheduler: u32 = 119; -pub const __NR_sched_getscheduler: u32 = 120; -pub const __NR_sched_getparam: u32 = 121; -pub const __NR_sched_setaffinity: u32 = 122; -pub const __NR_sched_getaffinity: u32 = 123; -pub const __NR_sched_yield: u32 = 124; -pub const __NR_sched_get_priority_max: u32 = 125; -pub const __NR_sched_get_priority_min: u32 = 126; -pub const __NR_sched_rr_get_interval: u32 = 127; -pub const __NR_restart_syscall: u32 = 128; -pub const __NR_kill: u32 = 129; -pub const __NR_tkill: u32 = 130; -pub const __NR_tgkill: u32 = 131; -pub const __NR_sigaltstack: u32 = 132; -pub const __NR_rt_sigsuspend: u32 = 133; -pub const __NR_rt_sigaction: u32 = 134; -pub const __NR_rt_sigprocmask: u32 = 135; -pub const __NR_rt_sigpending: u32 = 136; -pub const __NR_rt_sigtimedwait: u32 = 137; -pub const __NR_rt_sigqueueinfo: u32 = 138; -pub const __NR_rt_sigreturn: u32 = 139; -pub const __NR_setpriority: u32 = 140; -pub const __NR_getpriority: u32 = 141; -pub const __NR_reboot: u32 = 142; -pub const __NR_setregid: u32 = 143; -pub const __NR_setgid: u32 = 144; -pub const __NR_setreuid: u32 = 145; -pub const __NR_setuid: u32 = 146; -pub const __NR_setresuid: u32 = 147; -pub const __NR_getresuid: u32 = 148; -pub const __NR_setresgid: u32 = 149; -pub const __NR_getresgid: u32 = 150; -pub const __NR_setfsuid: u32 = 151; -pub const __NR_setfsgid: u32 = 152; -pub const __NR_times: u32 = 153; -pub const __NR_setpgid: u32 = 154; -pub const __NR_getpgid: u32 = 155; -pub const __NR_getsid: u32 = 156; -pub const __NR_setsid: u32 = 157; -pub const __NR_getgroups: u32 = 158; -pub const __NR_setgroups: u32 = 159; -pub const __NR_uname: u32 = 160; -pub const __NR_sethostname: u32 = 161; -pub const __NR_setdomainname: u32 = 162; -pub const __NR_getrlimit: u32 = 163; -pub const __NR_setrlimit: u32 = 164; -pub const __NR_getrusage: u32 = 165; -pub const __NR_umask: u32 = 166; -pub const __NR_prctl: u32 = 167; -pub const __NR_getcpu: u32 = 168; -pub const __NR_gettimeofday: u32 = 169; -pub const __NR_settimeofday: u32 = 170; -pub const __NR_adjtimex: u32 = 171; -pub const __NR_getpid: u32 = 172; -pub const __NR_getppid: u32 = 173; -pub const __NR_getuid: u32 = 174; -pub const __NR_geteuid: u32 = 175; -pub const __NR_getgid: u32 = 176; -pub const __NR_getegid: u32 = 177; -pub const __NR_gettid: u32 = 178; -pub const __NR_sysinfo: u32 = 179; -pub const __NR_mq_open: u32 = 180; -pub const __NR_mq_unlink: u32 = 181; -pub const __NR_mq_timedsend: u32 = 182; -pub const __NR_mq_timedreceive: u32 = 183; -pub const __NR_mq_notify: u32 = 184; -pub const __NR_mq_getsetattr: u32 = 185; -pub const __NR_msgget: u32 = 186; -pub const __NR_msgctl: u32 = 187; -pub const __NR_msgrcv: u32 = 188; -pub const __NR_msgsnd: u32 = 189; -pub const __NR_semget: u32 = 190; -pub const __NR_semctl: u32 = 191; -pub const __NR_semtimedop: u32 = 192; -pub const __NR_semop: u32 = 193; -pub const __NR_shmget: u32 = 194; -pub const __NR_shmctl: u32 = 195; -pub const __NR_shmat: u32 = 196; -pub const __NR_shmdt: u32 = 197; -pub const __NR_socket: u32 = 198; -pub const __NR_socketpair: u32 = 199; -pub const __NR_bind: u32 = 200; -pub const __NR_listen: u32 = 201; -pub const __NR_accept: u32 = 202; -pub const __NR_connect: u32 = 203; -pub const __NR_getsockname: u32 = 204; -pub const __NR_getpeername: u32 = 205; -pub const __NR_sendto: u32 = 206; -pub const __NR_recvfrom: u32 = 207; -pub const __NR_setsockopt: u32 = 208; -pub const __NR_getsockopt: u32 = 209; -pub const __NR_shutdown: u32 = 210; -pub const __NR_sendmsg: u32 = 211; -pub const __NR_recvmsg: u32 = 212; -pub const __NR_readahead: u32 = 213; -pub const __NR_brk: u32 = 214; -pub const __NR_munmap: u32 = 215; -pub const __NR_mremap: u32 = 216; -pub const __NR_add_key: u32 = 217; -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 __NR3264_mmap: u32 = 222; -pub const __NR3264_fadvise64: u32 = 223; -pub const __NR_swapon: u32 = 224; -pub const __NR_swapoff: u32 = 225; -pub const __NR_mprotect: u32 = 226; -pub const __NR_msync: u32 = 227; -pub const __NR_mlock: u32 = 228; -pub const __NR_munlock: u32 = 229; -pub const __NR_mlockall: u32 = 230; -pub const __NR_munlockall: u32 = 231; -pub const __NR_mincore: u32 = 232; -pub const __NR_madvise: u32 = 233; -pub const __NR_remap_file_pages: u32 = 234; -pub const __NR_mbind: u32 = 235; -pub const __NR_get_mempolicy: u32 = 236; -pub const __NR_set_mempolicy: u32 = 237; -pub const __NR_migrate_pages: u32 = 238; -pub const __NR_move_pages: u32 = 239; -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; -pub const __NR_fanotify_mark: u32 = 263; -pub const __NR_name_to_handle_at: u32 = 264; -pub const __NR_open_by_handle_at: u32 = 265; -pub const __NR_clock_adjtime: u32 = 266; -pub const __NR_syncfs: u32 = 267; -pub const __NR_setns: u32 = 268; -pub const __NR_sendmmsg: u32 = 269; -pub const __NR_process_vm_readv: u32 = 270; -pub const __NR_process_vm_writev: u32 = 271; -pub const __NR_kcmp: u32 = 272; -pub const __NR_finit_module: u32 = 273; -pub const __NR_sched_setattr: u32 = 274; -pub const __NR_sched_getattr: u32 = 275; -pub const __NR_renameat2: u32 = 276; -pub const __NR_seccomp: u32 = 277; -pub const __NR_getrandom: u32 = 278; -pub const __NR_memfd_create: u32 = 279; -pub const __NR_bpf: u32 = 280; -pub const __NR_execveat: u32 = 281; -pub const __NR_userfaultfd: u32 = 282; -pub const __NR_membarrier: u32 = 283; -pub const __NR_mlock2: u32 = 284; -pub const __NR_copy_file_range: u32 = 285; -pub const __NR_preadv2: u32 = 286; -pub const __NR_pwritev2: u32 = 287; -pub const __NR_pkey_mprotect: u32 = 288; -pub const __NR_pkey_alloc: u32 = 289; -pub const __NR_pkey_free: u32 = 290; -pub const __NR_statx: u32 = 291; -pub const __NR_io_pgetevents: u32 = 292; -pub const __NR_rseq: u32 = 293; -pub const __NR_kexec_file_load: u32 = 294; -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_syscalls: u32 = 451; -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; -pub const __NR_riscv_flush_icache: u32 = 259; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/riscv64/if_ether.rs b/third_party/rust/linux-raw-sys/src/riscv64/if_ether.rs deleted file mode 100644 index d4beeb4369af..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/riscv64/io_uring.rs b/third_party/rust/linux-raw-sys/src/riscv64/io_uring.rs deleted file mode 100644 index 36ddd1d6a1de..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/io_uring.rs +++ /dev/null @@ -1,1083 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/riscv64/ioctl.rs b/third_party/rust/linux-raw-sys/src/riscv64/ioctl.rs deleted file mode 100644 index 1d973962f4a2..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/ioctl.rs +++ /dev/null @@ -1,1489 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21600; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2150657282; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2148012656; -pub const BLKBSZSET: u32 = 1074270833; -pub const BLKGETSIZE64: u32 = 2148012658; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2148034049; -pub const FS_IOC_SETFLAGS: u32 = 1074292226; -pub const FS_IOC_GETVERSION: u32 = 2148038145; -pub const FS_IOC_SETVERSION: u32 = 1074296322; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2148034051; -pub const EXT4_IOC_SETVERSION: u32 = 1074292228; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; -pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074815370; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2156418649; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148561045; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149581316; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2148036621; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074331138; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; -pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074815373; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; -pub const PMU_IOC_GET_MODEL: u32 = 2148024835; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2155872785; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2148035841; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074815316; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150651402; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074812118; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149609489; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076905344; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2148035649; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074819222; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2148035650; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 1074815371; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2148017159; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074292742; -pub const ATM_GETESI: u32 = 1074815365; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2148036769; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2151175434; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078498342; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075839555; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074294785; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074815752; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074815314; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074820166; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074318593; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148559116; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074295041; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080579529; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2152727058; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074815364; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1082131088; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074291706; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; -pub const MTIOCPOS: u32 = 2148035843; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2149083139; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074820167; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2148036771; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075867666; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; -pub const FDSETPRM: u32 = 1075839554; -pub const ATM_GETSTATZ: u32 = 1074815313; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074286598; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2148036619; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148553947; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2148025993; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074815312; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074812117; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; -pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2148024836; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076909579; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2148033281; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074286597; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074287884; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148561983; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074815363; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074294949; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074287980; -pub const FDWERRORGET: u32 = 2150105623; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2152727059; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074815361; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074820173; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2150105621; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074294946; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074815372; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074294796; -pub const PCITEST_WRITE: u32 = 1074286596; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2148035842; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074291201; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2148035849; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/third_party/rust/linux-raw-sys/src/riscv64/net.rs b/third_party/rust/linux-raw-sys/src/riscv64/net.rs deleted file mode 100644 index 77630ebf25c6..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/net.rs +++ /dev/null @@ -1,1844 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/riscv64/netlink.rs b/third_party/rust/linux-raw-sys/src/riscv64/netlink.rs deleted file mode 100644 index 9a439a3bf04e..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/riscv64/prctl.rs b/third_party/rust/linux-raw-sys/src/riscv64/prctl.rs deleted file mode 100644 index 0469933ce542..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/riscv64/system.rs b/third_party/rust/linux-raw-sys/src/riscv64/system.rs deleted file mode 100644 index 8c55d581e624..000000000000 --- a/third_party/rust/linux-raw-sys/src/riscv64/system.rs +++ /dev/null @@ -1,129 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/s390x/errno.rs b/third_party/rust/linux-raw-sys/src/s390x/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/s390x/general.rs b/third_party/rust/linux-raw-sys/src/s390x/general.rs deleted file mode 100644 index c36ca8fd2dda..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/general.rs +++ /dev/null @@ -1,2859 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type addr_t = crate::ctypes::c_ulong; -pub type saddr_t = crate::ctypes::c_long; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_ulong; -pub type __kernel_ssize_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_ino_t = crate::ctypes::c_uint; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_sigset_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type fsid_t = __kernel_fsid_t; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct __vector128 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { -pub high: __u64, -pub low: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pt_regs { -_unused: [u8; 0], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { -pub _u: sigaction__bindgen_ty_1, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: ::core::option::Option, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_nlink: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub __pad1: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub st_blksize: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_long, -pub __unused: [crate::ctypes::c_ulong; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: crate::ctypes::c_uint, -pub f_bsize: crate::ctypes::c_uint, -pub f_blocks: crate::ctypes::c_ulong, -pub f_bfree: crate::ctypes::c_ulong, -pub f_bavail: crate::ctypes::c_ulong, -pub f_files: crate::ctypes::c_ulong, -pub f_ffree: crate::ctypes::c_ulong, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_uint, -pub f_frsize: crate::ctypes::c_uint, -pub f_flags: crate::ctypes::c_uint, -pub f_spare: [crate::ctypes::c_uint; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: crate::ctypes::c_uint, -pub f_bsize: crate::ctypes::c_uint, -pub f_blocks: crate::ctypes::c_ulonglong, -pub f_bfree: crate::ctypes::c_ulonglong, -pub f_bavail: crate::ctypes::c_ulonglong, -pub f_files: crate::ctypes::c_ulonglong, -pub f_ffree: crate::ctypes::c_ulonglong, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: crate::ctypes::c_uint, -pub f_frsize: crate::ctypes::c_uint, -pub f_flags: crate::ctypes::c_uint, -pub f_spare: [crate::ctypes::c_uint; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 1; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 6; -pub const POSIX_FADV_NOREUSE: u32 = 7; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_exit: u32 = 1; -pub const __NR_fork: u32 = 2; -pub const __NR_read: u32 = 3; -pub const __NR_write: u32 = 4; -pub const __NR_open: u32 = 5; -pub const __NR_close: u32 = 6; -pub const __NR_restart_syscall: u32 = 7; -pub const __NR_creat: u32 = 8; -pub const __NR_link: u32 = 9; -pub const __NR_unlink: u32 = 10; -pub const __NR_execve: u32 = 11; -pub const __NR_chdir: u32 = 12; -pub const __NR_mknod: u32 = 14; -pub const __NR_chmod: u32 = 15; -pub const __NR_lseek: u32 = 19; -pub const __NR_getpid: u32 = 20; -pub const __NR_mount: u32 = 21; -pub const __NR_umount: u32 = 22; -pub const __NR_ptrace: u32 = 26; -pub const __NR_alarm: u32 = 27; -pub const __NR_pause: u32 = 29; -pub const __NR_utime: u32 = 30; -pub const __NR_access: u32 = 33; -pub const __NR_nice: u32 = 34; -pub const __NR_sync: u32 = 36; -pub const __NR_kill: u32 = 37; -pub const __NR_rename: u32 = 38; -pub const __NR_mkdir: u32 = 39; -pub const __NR_rmdir: u32 = 40; -pub const __NR_dup: u32 = 41; -pub const __NR_pipe: u32 = 42; -pub const __NR_times: u32 = 43; -pub const __NR_brk: u32 = 45; -pub const __NR_signal: u32 = 48; -pub const __NR_acct: u32 = 51; -pub const __NR_umount2: u32 = 52; -pub const __NR_ioctl: u32 = 54; -pub const __NR_fcntl: u32 = 55; -pub const __NR_setpgid: u32 = 57; -pub const __NR_umask: u32 = 60; -pub const __NR_chroot: u32 = 61; -pub const __NR_ustat: u32 = 62; -pub const __NR_dup2: u32 = 63; -pub const __NR_getppid: u32 = 64; -pub const __NR_getpgrp: u32 = 65; -pub const __NR_setsid: u32 = 66; -pub const __NR_sigaction: u32 = 67; -pub const __NR_sigsuspend: u32 = 72; -pub const __NR_sigpending: u32 = 73; -pub const __NR_sethostname: u32 = 74; -pub const __NR_setrlimit: u32 = 75; -pub const __NR_getrusage: u32 = 77; -pub const __NR_gettimeofday: u32 = 78; -pub const __NR_settimeofday: u32 = 79; -pub const __NR_symlink: u32 = 83; -pub const __NR_readlink: u32 = 85; -pub const __NR_uselib: u32 = 86; -pub const __NR_swapon: u32 = 87; -pub const __NR_reboot: u32 = 88; -pub const __NR_readdir: u32 = 89; -pub const __NR_mmap: u32 = 90; -pub const __NR_munmap: u32 = 91; -pub const __NR_truncate: u32 = 92; -pub const __NR_ftruncate: u32 = 93; -pub const __NR_fchmod: u32 = 94; -pub const __NR_getpriority: u32 = 96; -pub const __NR_setpriority: u32 = 97; -pub const __NR_statfs: u32 = 99; -pub const __NR_fstatfs: u32 = 100; -pub const __NR_socketcall: u32 = 102; -pub const __NR_syslog: u32 = 103; -pub const __NR_setitimer: u32 = 104; -pub const __NR_getitimer: u32 = 105; -pub const __NR_stat: u32 = 106; -pub const __NR_lstat: u32 = 107; -pub const __NR_fstat: u32 = 108; -pub const __NR_lookup_dcookie: u32 = 110; -pub const __NR_vhangup: u32 = 111; -pub const __NR_idle: u32 = 112; -pub const __NR_wait4: u32 = 114; -pub const __NR_swapoff: u32 = 115; -pub const __NR_sysinfo: u32 = 116; -pub const __NR_ipc: u32 = 117; -pub const __NR_fsync: u32 = 118; -pub const __NR_sigreturn: u32 = 119; -pub const __NR_clone: u32 = 120; -pub const __NR_setdomainname: u32 = 121; -pub const __NR_uname: u32 = 122; -pub const __NR_adjtimex: u32 = 124; -pub const __NR_mprotect: u32 = 125; -pub const __NR_sigprocmask: u32 = 126; -pub const __NR_create_module: u32 = 127; -pub const __NR_init_module: u32 = 128; -pub const __NR_delete_module: u32 = 129; -pub const __NR_get_kernel_syms: u32 = 130; -pub const __NR_quotactl: u32 = 131; -pub const __NR_getpgid: u32 = 132; -pub const __NR_fchdir: u32 = 133; -pub const __NR_bdflush: u32 = 134; -pub const __NR_sysfs: u32 = 135; -pub const __NR_personality: u32 = 136; -pub const __NR_afs_syscall: u32 = 137; -pub const __NR_getdents: u32 = 141; -pub const __NR_select: u32 = 142; -pub const __NR_flock: u32 = 143; -pub const __NR_msync: u32 = 144; -pub const __NR_readv: u32 = 145; -pub const __NR_writev: u32 = 146; -pub const __NR_getsid: u32 = 147; -pub const __NR_fdatasync: u32 = 148; -pub const __NR__sysctl: u32 = 149; -pub const __NR_mlock: u32 = 150; -pub const __NR_munlock: u32 = 151; -pub const __NR_mlockall: u32 = 152; -pub const __NR_munlockall: u32 = 153; -pub const __NR_sched_setparam: u32 = 154; -pub const __NR_sched_getparam: u32 = 155; -pub const __NR_sched_setscheduler: u32 = 156; -pub const __NR_sched_getscheduler: u32 = 157; -pub const __NR_sched_yield: u32 = 158; -pub const __NR_sched_get_priority_max: u32 = 159; -pub const __NR_sched_get_priority_min: u32 = 160; -pub const __NR_sched_rr_get_interval: u32 = 161; -pub const __NR_nanosleep: u32 = 162; -pub const __NR_mremap: u32 = 163; -pub const __NR_query_module: u32 = 167; -pub const __NR_poll: u32 = 168; -pub const __NR_nfsservctl: u32 = 169; -pub const __NR_prctl: u32 = 172; -pub const __NR_rt_sigreturn: u32 = 173; -pub const __NR_rt_sigaction: u32 = 174; -pub const __NR_rt_sigprocmask: u32 = 175; -pub const __NR_rt_sigpending: u32 = 176; -pub const __NR_rt_sigtimedwait: u32 = 177; -pub const __NR_rt_sigqueueinfo: u32 = 178; -pub const __NR_rt_sigsuspend: u32 = 179; -pub const __NR_pread64: u32 = 180; -pub const __NR_pwrite64: u32 = 181; -pub const __NR_getcwd: u32 = 183; -pub const __NR_capget: u32 = 184; -pub const __NR_capset: u32 = 185; -pub const __NR_sigaltstack: u32 = 186; -pub const __NR_sendfile: u32 = 187; -pub const __NR_getpmsg: u32 = 188; -pub const __NR_putpmsg: u32 = 189; -pub const __NR_vfork: u32 = 190; -pub const __NR_getrlimit: u32 = 191; -pub const __NR_lchown: u32 = 198; -pub const __NR_getuid: u32 = 199; -pub const __NR_getgid: u32 = 200; -pub const __NR_geteuid: u32 = 201; -pub const __NR_getegid: u32 = 202; -pub const __NR_setreuid: u32 = 203; -pub const __NR_setregid: u32 = 204; -pub const __NR_getgroups: u32 = 205; -pub const __NR_setgroups: u32 = 206; -pub const __NR_fchown: u32 = 207; -pub const __NR_setresuid: u32 = 208; -pub const __NR_getresuid: u32 = 209; -pub const __NR_setresgid: u32 = 210; -pub const __NR_getresgid: u32 = 211; -pub const __NR_chown: u32 = 212; -pub const __NR_setuid: u32 = 213; -pub const __NR_setgid: u32 = 214; -pub const __NR_setfsuid: u32 = 215; -pub const __NR_setfsgid: u32 = 216; -pub const __NR_pivot_root: u32 = 217; -pub const __NR_mincore: u32 = 218; -pub const __NR_madvise: u32 = 219; -pub const __NR_getdents64: u32 = 220; -pub const __NR_readahead: u32 = 222; -pub const __NR_setxattr: u32 = 224; -pub const __NR_lsetxattr: u32 = 225; -pub const __NR_fsetxattr: u32 = 226; -pub const __NR_getxattr: u32 = 227; -pub const __NR_lgetxattr: u32 = 228; -pub const __NR_fgetxattr: u32 = 229; -pub const __NR_listxattr: u32 = 230; -pub const __NR_llistxattr: u32 = 231; -pub const __NR_flistxattr: u32 = 232; -pub const __NR_removexattr: u32 = 233; -pub const __NR_lremovexattr: u32 = 234; -pub const __NR_fremovexattr: u32 = 235; -pub const __NR_gettid: u32 = 236; -pub const __NR_tkill: u32 = 237; -pub const __NR_futex: u32 = 238; -pub const __NR_sched_setaffinity: u32 = 239; -pub const __NR_sched_getaffinity: u32 = 240; -pub const __NR_tgkill: u32 = 241; -pub const __NR_io_setup: u32 = 243; -pub const __NR_io_destroy: u32 = 244; -pub const __NR_io_getevents: u32 = 245; -pub const __NR_io_submit: u32 = 246; -pub const __NR_io_cancel: u32 = 247; -pub const __NR_exit_group: u32 = 248; -pub const __NR_epoll_create: u32 = 249; -pub const __NR_epoll_ctl: u32 = 250; -pub const __NR_epoll_wait: u32 = 251; -pub const __NR_set_tid_address: u32 = 252; -pub const __NR_fadvise64: u32 = 253; -pub const __NR_timer_create: u32 = 254; -pub const __NR_timer_settime: u32 = 255; -pub const __NR_timer_gettime: u32 = 256; -pub const __NR_timer_getoverrun: u32 = 257; -pub const __NR_timer_delete: u32 = 258; -pub const __NR_clock_settime: u32 = 259; -pub const __NR_clock_gettime: u32 = 260; -pub const __NR_clock_getres: u32 = 261; -pub const __NR_clock_nanosleep: u32 = 262; -pub const __NR_statfs64: u32 = 265; -pub const __NR_fstatfs64: u32 = 266; -pub const __NR_remap_file_pages: u32 = 267; -pub const __NR_mbind: u32 = 268; -pub const __NR_get_mempolicy: u32 = 269; -pub const __NR_set_mempolicy: u32 = 270; -pub const __NR_mq_open: u32 = 271; -pub const __NR_mq_unlink: u32 = 272; -pub const __NR_mq_timedsend: u32 = 273; -pub const __NR_mq_timedreceive: u32 = 274; -pub const __NR_mq_notify: u32 = 275; -pub const __NR_mq_getsetattr: u32 = 276; -pub const __NR_kexec_load: u32 = 277; -pub const __NR_add_key: u32 = 278; -pub const __NR_request_key: u32 = 279; -pub const __NR_keyctl: u32 = 280; -pub const __NR_waitid: u32 = 281; -pub const __NR_ioprio_set: u32 = 282; -pub const __NR_ioprio_get: u32 = 283; -pub const __NR_inotify_init: u32 = 284; -pub const __NR_inotify_add_watch: u32 = 285; -pub const __NR_inotify_rm_watch: u32 = 286; -pub const __NR_migrate_pages: u32 = 287; -pub const __NR_openat: u32 = 288; -pub const __NR_mkdirat: u32 = 289; -pub const __NR_mknodat: u32 = 290; -pub const __NR_fchownat: u32 = 291; -pub const __NR_futimesat: u32 = 292; -pub const __NR_newfstatat: u32 = 293; -pub const __NR_unlinkat: u32 = 294; -pub const __NR_renameat: u32 = 295; -pub const __NR_linkat: u32 = 296; -pub const __NR_symlinkat: u32 = 297; -pub const __NR_readlinkat: u32 = 298; -pub const __NR_fchmodat: u32 = 299; -pub const __NR_faccessat: u32 = 300; -pub const __NR_pselect6: u32 = 301; -pub const __NR_ppoll: u32 = 302; -pub const __NR_unshare: u32 = 303; -pub const __NR_set_robust_list: u32 = 304; -pub const __NR_get_robust_list: u32 = 305; -pub const __NR_splice: u32 = 306; -pub const __NR_sync_file_range: u32 = 307; -pub const __NR_tee: u32 = 308; -pub const __NR_vmsplice: u32 = 309; -pub const __NR_move_pages: u32 = 310; -pub const __NR_getcpu: u32 = 311; -pub const __NR_epoll_pwait: u32 = 312; -pub const __NR_utimes: u32 = 313; -pub const __NR_fallocate: u32 = 314; -pub const __NR_utimensat: u32 = 315; -pub const __NR_signalfd: u32 = 316; -pub const __NR_timerfd: u32 = 317; -pub const __NR_eventfd: u32 = 318; -pub const __NR_timerfd_create: u32 = 319; -pub const __NR_timerfd_settime: u32 = 320; -pub const __NR_timerfd_gettime: u32 = 321; -pub const __NR_signalfd4: u32 = 322; -pub const __NR_eventfd2: u32 = 323; -pub const __NR_inotify_init1: u32 = 324; -pub const __NR_pipe2: u32 = 325; -pub const __NR_dup3: u32 = 326; -pub const __NR_epoll_create1: u32 = 327; -pub const __NR_preadv: u32 = 328; -pub const __NR_pwritev: u32 = 329; -pub const __NR_rt_tgsigqueueinfo: u32 = 330; -pub const __NR_perf_event_open: u32 = 331; -pub const __NR_fanotify_init: u32 = 332; -pub const __NR_fanotify_mark: u32 = 333; -pub const __NR_prlimit64: u32 = 334; -pub const __NR_name_to_handle_at: u32 = 335; -pub const __NR_open_by_handle_at: u32 = 336; -pub const __NR_clock_adjtime: u32 = 337; -pub const __NR_syncfs: u32 = 338; -pub const __NR_setns: u32 = 339; -pub const __NR_process_vm_readv: u32 = 340; -pub const __NR_process_vm_writev: u32 = 341; -pub const __NR_s390_runtime_instr: u32 = 342; -pub const __NR_kcmp: u32 = 343; -pub const __NR_finit_module: u32 = 344; -pub const __NR_sched_setattr: u32 = 345; -pub const __NR_sched_getattr: u32 = 346; -pub const __NR_renameat2: u32 = 347; -pub const __NR_seccomp: u32 = 348; -pub const __NR_getrandom: u32 = 349; -pub const __NR_memfd_create: u32 = 350; -pub const __NR_bpf: u32 = 351; -pub const __NR_s390_pci_mmio_write: u32 = 352; -pub const __NR_s390_pci_mmio_read: u32 = 353; -pub const __NR_execveat: u32 = 354; -pub const __NR_userfaultfd: u32 = 355; -pub const __NR_membarrier: u32 = 356; -pub const __NR_recvmmsg: u32 = 357; -pub const __NR_sendmmsg: u32 = 358; -pub const __NR_socket: u32 = 359; -pub const __NR_socketpair: u32 = 360; -pub const __NR_bind: u32 = 361; -pub const __NR_connect: u32 = 362; -pub const __NR_listen: u32 = 363; -pub const __NR_accept4: u32 = 364; -pub const __NR_getsockopt: u32 = 365; -pub const __NR_setsockopt: u32 = 366; -pub const __NR_getsockname: u32 = 367; -pub const __NR_getpeername: u32 = 368; -pub const __NR_sendto: u32 = 369; -pub const __NR_sendmsg: u32 = 370; -pub const __NR_recvfrom: u32 = 371; -pub const __NR_recvmsg: u32 = 372; -pub const __NR_shutdown: u32 = 373; -pub const __NR_mlock2: u32 = 374; -pub const __NR_copy_file_range: u32 = 375; -pub const __NR_preadv2: u32 = 376; -pub const __NR_pwritev2: u32 = 377; -pub const __NR_s390_guarded_storage: u32 = 378; -pub const __NR_statx: u32 = 379; -pub const __NR_s390_sthyi: u32 = 380; -pub const __NR_kexec_file_load: u32 = 381; -pub const __NR_io_pgetevents: u32 = 382; -pub const __NR_rseq: u32 = 383; -pub const __NR_pkey_mprotect: u32 = 384; -pub const __NR_pkey_alloc: u32 = 385; -pub const __NR_pkey_free: u32 = 386; -pub const __NR_semtimedop: u32 = 392; -pub const __NR_semget: u32 = 393; -pub const __NR_semctl: u32 = 394; -pub const __NR_shmget: u32 = 395; -pub const __NR_shmctl: u32 = 396; -pub const __NR_shmat: u32 = 397; -pub const __NR_shmdt: u32 = 398; -pub const __NR_msgget: u32 = 399; -pub const __NR_msgsnd: u32 = 400; -pub const __NR_msgrcv: u32 = 401; -pub const __NR_msgctl: u32 = 402; -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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -pub const _NSIG: u32 = 64; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __vector128__bindgen_ty_1 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { -pub _sa_handler: __sighandler_t, -pub _sa_sigaction: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/s390x/if_ether.rs b/third_party/rust/linux-raw-sys/src/s390x/if_ether.rs deleted file mode 100644 index 7963b33d3ebd..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/if_ether.rs +++ /dev/null @@ -1,187 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type addr_t = crate::ctypes::c_ulong; -pub type saddr_t = crate::ctypes::c_long; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_ulong; -pub type __kernel_ssize_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_ino_t = crate::ctypes::c_uint; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_sigset_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct __vector128 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { -pub high: __u64, -pub low: __u64, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __vector128__bindgen_ty_1 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, -pub u: [__u32; 4usize], -} diff --git a/third_party/rust/linux-raw-sys/src/s390x/io_uring.rs b/third_party/rust/linux-raw-sys/src/s390x/io_uring.rs deleted file mode 100644 index c5f62969fa12..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/io_uring.rs +++ /dev/null @@ -1,1103 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type addr_t = crate::ctypes::c_ulong; -pub type saddr_t = crate::ctypes::c_long; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_ulong; -pub type __kernel_ssize_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_ino_t = crate::ctypes::c_uint; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_sigset_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct __vector128 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { -pub high: __u64, -pub low: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __vector128__bindgen_ty_1 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/s390x/ioctl.rs b/third_party/rust/linux-raw-sys/src/s390x/ioctl.rs deleted file mode 100644 index 03c528eb31b6..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/ioctl.rs +++ /dev/null @@ -1,1593 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21598; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2150657282; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2148012656; -pub const BLKBSZSET: u32 = 1074270833; -pub const BLKGETSIZE64: u32 = 2148012658; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2148034049; -pub const FS_IOC_SETFLAGS: u32 = 1074292226; -pub const FS_IOC_GETVERSION: u32 = 2148038145; -pub const FS_IOC_SETVERSION: u32 = 1074296322; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2148034051; -pub const EXT4_IOC_SETVERSION: u32 = 1074292228; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; -pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074815370; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const KVM_SET_BOOT_CPU_ID: u32 = 44664; -pub const KVM_SET_MP_STATE: u32 = 1074048665; -pub const KVM_GET_MP_STATE: u32 = 2147790488; -pub const KVM_GET_API_VERSION: u32 = 44544; -pub const KVM_S390_GET_SKEYS: u32 = 1077980850; -pub const KVM_SET_ONE_REG: u32 = 1074835116; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 1075883590; -pub const KVM_S390_INTERRUPT: u32 = 1074835092; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 2156441228; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 1074835060; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 2148576955; -pub const KVM_S390_UCAS_MAP: u32 = 1075359312; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 1077980836; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221794490; -pub const KVM_CREATE_PIT2: u32 = 1077980791; -pub const KVM_S390_VCPU_FAULT: u32 = 1074310738; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 1074835047; -pub const KVM_SET_VAPIC_ADDR: u32 = 1074310803; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 1074835094; -pub const KVM_X86_SETUP_MCE: u32 = 1074310812; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 1077980786; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 1078505161; -pub const KVM_GET_CLOCK: u32 = 2150674044; -pub const KVM_SET_FPU: u32 = 1082699405; -pub const KVM_KVMCLOCK_CTRL: u32 = 44717; -pub const KVM_PPC_GET_PVINFO: u32 = 1082175137; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 2148052637; -pub const KVM_S390_GET_IRQ_STATE: u32 = 1075883702; -pub const KVM_GET_DEVICE_ATTR: u32 = 1075359458; -pub const KVM_S390_INITIAL_RESET: u32 = 44695; -pub const KVM_SET_REGS: u32 = 1082175106; -pub const KVM_GET_TSC_KHZ: u32 = 44707; -pub const KVM_CHECK_EXTENSION: u32 = 44547; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 2148576942; -pub const KVM_GET_DIRTY_LOG: u32 = 1074835010; -pub const KVM_S390_SET_IRQ_STATE: u32 = 1075883701; -pub const KVM_S390_NORMAL_RESET: u32 = 44739; -pub const KVM_SET_SIGNAL_MASK: u32 = 1074048651; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 1078505163; -pub const KVM_SET_GSI_ROUTING: u32 = 1074310762; -pub const KVM_CREATE_VCPU: u32 = 44609; -pub const KVM_S390_UCAS_UNMAP: u32 = 1075359313; -pub const KVM_S390_STORE_STATUS: u32 = 1074310805; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 1074835048; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 1077980784; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 44550; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 1074835115; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 1074835115; -pub const KVM_DIRTY_TLB: u32 = 1074835114; -pub const KVM_NMI: u32 = 44698; -pub const KVM_HYPERV_EVENTFD: u32 = 1075359421; -pub const KVM_S390_MEM_OP: u32 = 1077980849; -pub const KVM_PPC_SVM_OFF: u32 = 44723; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 2148576941; -pub const KVM_INTERRUPT: u32 = 1074048646; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 2160111235; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 1074310728; -pub const KVM_GET_REGS: u32 = 2155916929; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 44640; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 2151722601; -pub const KVM_SET_NR_MMU_PAGES: u32 = 44612; -pub const KVM_IOEVENTFD: u32 = 1077980793; -pub const KVM_RUN: u32 = 44672; -pub const KVM_S390_SET_SKEYS: u32 = 1077980851; -pub const KVM_SET_DEVICE_ATTR: u32 = 1075359457; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 1077980789; -pub const KVM_SMI: u32 = 44727; -pub const KVM_SET_TSS_ADDR: u32 = 44615; -pub const KVM_GET_NR_MMU_PAGES: u32 = 44613; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 44657; -pub const KVM_HAS_DEVICE_ATTR: u32 = 1075359459; -pub const KVM_IRQFD: u32 = 1075883638; -pub const KVM_S390_SET_CMMA_BITS: u32 = 1075883705; -pub const KVM_SET_IRQCHIP: u32 = 2181607011; -pub const KVM_SIGNAL_MSI: u32 = 1075883685; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 44548; -pub const KVM_CREATE_VM: u32 = 44545; -pub const KVM_S390_CLEAR_RESET: u32 = 44740; -pub const KVM_RESET_DIRTY_RINGS: u32 = 44743; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 1074310771; -pub const KVM_CREATE_PIT: u32 = 44644; -pub const KVM_SET_GUEST_DEBUG: u32 = 1075359387; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 1074048706; -pub const KVM_SET_CLOCK: u32 = 1076932219; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 2186325670; -pub const KVM_SET_TSC_KHZ: u32 = 44706; -pub const KVM_S390_IRQ: u32 = 1078505140; -pub const KVM_ENABLE_CAP: u32 = 1080602275; -pub const KVM_IRQ_LINE: u32 = 1074310753; -pub const KVM_SET_SREGS: u32 = 1086369412; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 2148576956; -pub const KVM_GET_STATS_FD: u32 = 44750; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2156418649; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148561045; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149581316; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2148036621; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074331138; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; -pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074815373; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; -pub const PMU_IOC_GET_MODEL: u32 = 2148024835; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2155872785; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2148035841; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074815316; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150651402; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074812118; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149609489; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076905344; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2148035649; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074819222; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2148035650; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 1074815371; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2148017159; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074292742; -pub const ATM_GETESI: u32 = 1074815365; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2148036769; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2151175434; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078498342; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075839555; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074294785; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074815752; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074815314; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074820166; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074318593; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148559116; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074295041; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080579529; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2152727058; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074815364; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1082131088; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074291706; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; -pub const MTIOCPOS: u32 = 2148035843; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2149083139; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074820167; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2148036771; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075867666; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; -pub const FDSETPRM: u32 = 1075839554; -pub const ATM_GETSTATZ: u32 = 1074815313; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074286598; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2148036619; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148553947; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2148025993; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074815312; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074812117; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; -pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2148024836; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076909579; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2148033281; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074286597; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074287884; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148561983; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074815363; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074294949; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074287980; -pub const FDWERRORGET: u32 = 2150105623; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2152727059; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074815361; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074820173; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2150105621; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074294946; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074815372; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074294796; -pub const PCITEST_WRITE: u32 = 1074286596; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2148035842; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074291201; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2148035849; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/third_party/rust/linux-raw-sys/src/s390x/net.rs b/third_party/rust/linux-raw-sys/src/s390x/net.rs deleted file mode 100644 index 035c9d0c347a..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/net.rs +++ /dev/null @@ -1,1864 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type addr_t = crate::ctypes::c_ulong; -pub type saddr_t = crate::ctypes::c_long; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_ulong; -pub type __kernel_ssize_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_ino_t = crate::ctypes::c_uint; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_sigset_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct __vector128 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { -pub high: __u64, -pub low: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __vector128__bindgen_ty_1 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/s390x/netlink.rs b/third_party/rust/linux-raw-sys/src/s390x/netlink.rs deleted file mode 100644 index 2b08e4b1c6cd..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/netlink.rs +++ /dev/null @@ -1,2874 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type addr_t = crate::ctypes::c_ulong; -pub type saddr_t = crate::ctypes::c_long; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_ulong; -pub type __kernel_ssize_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_ino_t = crate::ctypes::c_uint; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_sigset_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct __vector128 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { -pub high: __u64, -pub low: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __vector128__bindgen_ty_1 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, -pub u: [__u32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/s390x/prctl.rs b/third_party/rust/linux-raw-sys/src/s390x/prctl.rs deleted file mode 100644 index 39a6e8235915..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/prctl.rs +++ /dev/null @@ -1,241 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type addr_t = crate::ctypes::c_ulong; -pub type saddr_t = crate::ctypes::c_long; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_ulong; -pub type __kernel_ssize_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_ino_t = crate::ctypes::c_uint; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_sigset_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct __vector128 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { -pub high: __u64, -pub low: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __vector128__bindgen_ty_1 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, -pub u: [__u32; 4usize], -} diff --git a/third_party/rust/linux-raw-sys/src/s390x/system.rs b/third_party/rust/linux-raw-sys/src/s390x/system.rs deleted file mode 100644 index 3a19d38ab6f8..000000000000 --- a/third_party/rust/linux-raw-sys/src/s390x/system.rs +++ /dev/null @@ -1,149 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type addr_t = crate::ctypes::c_ulong; -pub type saddr_t = crate::ctypes::c_long; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_ulong; -pub type __kernel_ssize_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_ino_t = crate::ctypes::c_uint; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_sigset_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct __vector128 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { -pub high: __u64, -pub low: __u64, -} -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __vector128__bindgen_ty_1 { -pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, -pub u: [__u32; 4usize], -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/sparc/errno.rs b/third_party/rust/linux-raw-sys/src/sparc/errno.rs deleted file mode 100644 index 8a8f3774b92a..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/errno.rs +++ /dev/null @@ -1,137 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EWOULDBLOCK: u32 = 11; -pub const EINPROGRESS: u32 = 36; -pub const EALREADY: u32 = 37; -pub const ENOTSOCK: u32 = 38; -pub const EDESTADDRREQ: u32 = 39; -pub const EMSGSIZE: u32 = 40; -pub const EPROTOTYPE: u32 = 41; -pub const ENOPROTOOPT: u32 = 42; -pub const EPROTONOSUPPORT: u32 = 43; -pub const ESOCKTNOSUPPORT: u32 = 44; -pub const EOPNOTSUPP: u32 = 45; -pub const EPFNOSUPPORT: u32 = 46; -pub const EAFNOSUPPORT: u32 = 47; -pub const EADDRINUSE: u32 = 48; -pub const EADDRNOTAVAIL: u32 = 49; -pub const ENETDOWN: u32 = 50; -pub const ENETUNREACH: u32 = 51; -pub const ENETRESET: u32 = 52; -pub const ECONNABORTED: u32 = 53; -pub const ECONNRESET: u32 = 54; -pub const ENOBUFS: u32 = 55; -pub const EISCONN: u32 = 56; -pub const ENOTCONN: u32 = 57; -pub const ESHUTDOWN: u32 = 58; -pub const ETOOMANYREFS: u32 = 59; -pub const ETIMEDOUT: u32 = 60; -pub const ECONNREFUSED: u32 = 61; -pub const ELOOP: u32 = 62; -pub const ENAMETOOLONG: u32 = 63; -pub const EHOSTDOWN: u32 = 64; -pub const EHOSTUNREACH: u32 = 65; -pub const ENOTEMPTY: u32 = 66; -pub const EPROCLIM: u32 = 67; -pub const EUSERS: u32 = 68; -pub const EDQUOT: u32 = 69; -pub const ESTALE: u32 = 70; -pub const EREMOTE: u32 = 71; -pub const ENOSTR: u32 = 72; -pub const ETIME: u32 = 73; -pub const ENOSR: u32 = 74; -pub const ENOMSG: u32 = 75; -pub const EBADMSG: u32 = 76; -pub const EIDRM: u32 = 77; -pub const EDEADLK: u32 = 78; -pub const ENOLCK: u32 = 79; -pub const ENONET: u32 = 80; -pub const ERREMOTE: u32 = 81; -pub const ENOLINK: u32 = 82; -pub const EADV: u32 = 83; -pub const ESRMNT: u32 = 84; -pub const ECOMM: u32 = 85; -pub const EPROTO: u32 = 86; -pub const EMULTIHOP: u32 = 87; -pub const EDOTDOT: u32 = 88; -pub const EREMCHG: u32 = 89; -pub const ENOSYS: u32 = 90; -pub const ESTRPIPE: u32 = 91; -pub const EOVERFLOW: u32 = 92; -pub const EBADFD: u32 = 93; -pub const ECHRNG: u32 = 94; -pub const EL2NSYNC: u32 = 95; -pub const EL3HLT: u32 = 96; -pub const EL3RST: u32 = 97; -pub const ELNRNG: u32 = 98; -pub const EUNATCH: u32 = 99; -pub const ENOCSI: u32 = 100; -pub const EL2HLT: u32 = 101; -pub const EBADE: u32 = 102; -pub const EBADR: u32 = 103; -pub const EXFULL: u32 = 104; -pub const ENOANO: u32 = 105; -pub const EBADRQC: u32 = 106; -pub const EBADSLT: u32 = 107; -pub const EDEADLOCK: u32 = 108; -pub const EBFONT: u32 = 109; -pub const ELIBEXEC: u32 = 110; -pub const ENODATA: u32 = 111; -pub const ELIBBAD: u32 = 112; -pub const ENOPKG: u32 = 113; -pub const ELIBACC: u32 = 114; -pub const ENOTUNIQ: u32 = 115; -pub const ERESTART: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EILSEQ: u32 = 122; -pub const ELIBMAX: u32 = 123; -pub const ELIBSCN: u32 = 124; -pub const ENOMEDIUM: u32 = 125; -pub const EMEDIUMTYPE: u32 = 126; -pub const ECANCELED: u32 = 127; -pub const ENOKEY: u32 = 128; -pub const EKEYEXPIRED: u32 = 129; -pub const EKEYREVOKED: u32 = 130; -pub const EKEYREJECTED: u32 = 131; -pub const EOWNERDEAD: u32 = 132; -pub const ENOTRECOVERABLE: u32 = 133; -pub const ERFKILL: u32 = 134; -pub const EHWPOISON: u32 = 135; diff --git a/third_party/rust/linux-raw-sys/src/sparc/general.rs b/third_party/rust/linux-raw-sys/src/sparc/general.rs deleted file mode 100644 index 6989c081e67f..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/general.rs +++ /dev/null @@ -1,2982 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_ulong; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -pub __unused: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -pub __unused: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __new_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { -pub the_stack: *mut crate::ctypes::c_char, -pub cur_status: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __new_sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: __new_sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_mask: sigset_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 17usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ushort, -pub st_ino: __kernel_ino_t, -pub st_mode: __kernel_mode_t, -pub st_nlink: crate::ctypes::c_short, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_long, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_long, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub st_blksize: crate::ctypes::c_long, -pub st_blocks: crate::ctypes::c_long, -pub __unused4: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulonglong, -pub st_ino: crate::ctypes::c_ulonglong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulonglong, -pub __pad3: [crate::ctypes::c_uchar; 8usize], -pub st_size: crate::ctypes::c_longlong, -pub st_blksize: crate::ctypes::c_uint, -pub __pad4: [crate::ctypes::c_uchar; 8usize], -pub st_blocks: crate::ctypes::c_uint, -pub st_atime: crate::ctypes::c_uint, -pub st_atime_nsec: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_uint, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_uint, -pub st_ctime_nsec: crate::ctypes::c_uint, -pub __unused4: crate::ctypes::c_uint, -pub __unused5: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u32, -pub f_bfree: __u32, -pub f_bavail: __u32, -pub f_files: __u32, -pub f_ffree: __u32, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_ADI_BLKSZ: u32 = 48; -pub const AT_ADI_NBITS: u32 = 49; -pub const AT_ADI_UEONADI: u32 = 50; -pub const AT_VECTOR_SIZE_ARCH: u32 = 4; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_APPEND: u32 = 8; -pub const FASYNC: u32 = 64; -pub const O_CREAT: u32 = 512; -pub const O_TRUNC: u32 = 1024; -pub const O_EXCL: u32 = 2048; -pub const O_DSYNC: u32 = 8192; -pub const O_NONBLOCK: u32 = 16384; -pub const O_NDELAY: u32 = 16388; -pub const O_NOCTTY: u32 = 32768; -pub const O_LARGEFILE: u32 = 262144; -pub const O_DIRECT: u32 = 1048576; -pub const O_NOATIME: u32 = 2097152; -pub const O_CLOEXEC: u32 = 4194304; -pub const __O_SYNC: u32 = 8388608; -pub const O_SYNC: u32 = 8396800; -pub const O_PATH: u32 = 16777216; -pub const __O_TMPFILE: u32 = 33554432; -pub const F_GETOWN: u32 = 5; -pub const F_SETOWN: u32 = 6; -pub const F_GETLK: u32 = 7; -pub const F_SETLK: u32 = 8; -pub const F_SETLKW: u32 = 9; -pub const F_RDLCK: u32 = 1; -pub const F_WRLCK: u32 = 2; -pub const F_UNLCK: u32 = 3; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_TMPFILE: u32 = 33619968; -pub const O_TMPFILE_MASK: u32 = 33620480; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 4194304; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_XSIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 4194304; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 4194304; -pub const IN_NONBLOCK: u32 = 16384; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const PROT_ADI: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_NORESERVE: u32 = 64; -pub const MAP_INHERIT: u32 = 128; -pub const MAP_LOCKED: u32 = 256; -pub const _MAP_NEW: u32 = 2147483648; -pub const MAP_GROWSDOWN: u32 = 512; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MCL_CURRENT: u32 = 8192; -pub const MCL_FUTURE: u32 = 16384; -pub const MCL_ONFAULT: u32 = 32768; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLWRBAND: u32 = 256; -pub const POLLMSG: u32 = 512; -pub const POLLREMOVE: u32 = 1024; -pub const POLLRDHUP: u32 = 2048; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_NOFILE: u32 = 6; -pub const RLIMIT_NPROC: u32 = 7; -pub const RLIM_INFINITY: u32 = 2147483647; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SUBSIG_STACK: u32 = 0; -pub const SUBSIG_ILLINST: u32 = 2; -pub const SUBSIG_PRIVINST: u32 = 3; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGEMT: u32 = 7; -pub const SUBSIG_TAG: u32 = 10; -pub const SIGFPE: u32 = 8; -pub const SUBSIG_FPDISABLED: u32 = 1024; -pub const SUBSIG_FPERROR: u32 = 1028; -pub const SUBSIG_FPINTOVFL: u32 = 1; -pub const SUBSIG_FPSTSIG: u32 = 2; -pub const SUBSIG_IDIVZERO: u32 = 20; -pub const SUBSIG_FPINEXACT: u32 = 196; -pub const SUBSIG_FPDIVZERO: u32 = 200; -pub const SUBSIG_FPUNFLOW: u32 = 204; -pub const SUBSIG_FPOPERROR: u32 = 208; -pub const SUBSIG_FPOVFLOW: u32 = 212; -pub const SIGKILL: u32 = 9; -pub const SIGBUS: u32 = 10; -pub const SUBSIG_BUSTIMEOUT: u32 = 1; -pub const SUBSIG_ALIGNMENT: u32 = 2; -pub const SUBSIG_MISCERROR: u32 = 5; -pub const SIGSEGV: u32 = 11; -pub const SUBSIG_NOMAPPING: u32 = 3; -pub const SUBSIG_PROTECTION: u32 = 4; -pub const SUBSIG_SEGERROR: u32 = 5; -pub const SIGSYS: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGURG: u32 = 16; -pub const SIGSTOP: u32 = 17; -pub const SIGTSTP: u32 = 18; -pub const SIGCONT: u32 = 19; -pub const SIGCHLD: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGIO: u32 = 23; -pub const SIGPOLL: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGLOST: u32 = 29; -pub const SIGPWR: u32 = 29; -pub const SIGUSR1: u32 = 30; -pub const SIGUSR2: u32 = 31; -pub const __OLD_NSIG: u32 = 32; -pub const __NEW_NSIG: u32 = 64; -pub const _NSIG_BPW: u32 = 32; -pub const _NSIG_WORDS: u32 = 2; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 32; -pub const NSIG: u32 = 32; -pub const _SV_SSTACK: u32 = 1; -pub const _SV_INTR: u32 = 2; -pub const _SV_RESET: u32 = 4; -pub const _SV_IGNCHILD: u32 = 8; -pub const SA_NOCLDSTOP: u32 = 8; -pub const SA_STACK: u32 = 1; -pub const SA_ONSTACK: u32 = 1; -pub const SA_RESTART: u32 = 2; -pub const SA_RESETHAND: u32 = 4; -pub const SA_NODEFER: u32 = 32; -pub const SA_NOCLDWAIT: u32 = 256; -pub const SA_SIGINFO: u32 = 512; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 4; -pub const MINSIGSTKSZ: u32 = 4096; -pub const SIGSTKSZ: u32 = 16384; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_NOMASK: u32 = 32; -pub const SA_ONESHOT: u32 = 4; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SI_NOINFO: u32 = 32767; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCC: u32 = 8; -pub const NCCS: u32 = 17; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VEOL: u32 = 5; -pub const VEOL2: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VDSUSP: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VMIN: u32 = 4; -pub const VTIME: u32 = 5; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const PAGEOUT: u32 = 65536; -pub const WRAP: u32 = 131072; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B76800: u32 = 4101; -pub const B153600: u32 = 4102; -pub const B307200: u32 = 4103; -pub const B614400: u32 = 4104; -pub const B921600: u32 = 4105; -pub const B500000: u32 = 4106; -pub const B576000: u32 = 4107; -pub const B1000000: u32 = 4108; -pub const B1152000: u32 = 4109; -pub const B1500000: u32 = 4110; -pub const B2000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const DEFECHO: u32 = 4096; -pub const FLUSHO: u32 = 8192; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const TIOCSER_TEMT: u32 = 1; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_restart_syscall: u32 = 0; -pub const __NR_exit: u32 = 1; -pub const __NR_fork: u32 = 2; -pub const __NR_read: u32 = 3; -pub const __NR_write: u32 = 4; -pub const __NR_open: u32 = 5; -pub const __NR_close: u32 = 6; -pub const __NR_wait4: u32 = 7; -pub const __NR_creat: u32 = 8; -pub const __NR_link: u32 = 9; -pub const __NR_unlink: u32 = 10; -pub const __NR_execv: u32 = 11; -pub const __NR_chdir: u32 = 12; -pub const __NR_chown: u32 = 13; -pub const __NR_mknod: u32 = 14; -pub const __NR_chmod: u32 = 15; -pub const __NR_lchown: u32 = 16; -pub const __NR_brk: u32 = 17; -pub const __NR_perfctr: u32 = 18; -pub const __NR_lseek: u32 = 19; -pub const __NR_getpid: u32 = 20; -pub const __NR_capget: u32 = 21; -pub const __NR_capset: u32 = 22; -pub const __NR_setuid: u32 = 23; -pub const __NR_getuid: u32 = 24; -pub const __NR_vmsplice: u32 = 25; -pub const __NR_ptrace: u32 = 26; -pub const __NR_alarm: u32 = 27; -pub const __NR_sigaltstack: u32 = 28; -pub const __NR_pause: u32 = 29; -pub const __NR_utime: u32 = 30; -pub const __NR_lchown32: u32 = 31; -pub const __NR_fchown32: u32 = 32; -pub const __NR_access: u32 = 33; -pub const __NR_nice: u32 = 34; -pub const __NR_chown32: u32 = 35; -pub const __NR_sync: u32 = 36; -pub const __NR_kill: u32 = 37; -pub const __NR_stat: u32 = 38; -pub const __NR_sendfile: u32 = 39; -pub const __NR_lstat: u32 = 40; -pub const __NR_dup: u32 = 41; -pub const __NR_pipe: u32 = 42; -pub const __NR_times: u32 = 43; -pub const __NR_getuid32: u32 = 44; -pub const __NR_umount2: u32 = 45; -pub const __NR_setgid: u32 = 46; -pub const __NR_getgid: u32 = 47; -pub const __NR_signal: u32 = 48; -pub const __NR_geteuid: u32 = 49; -pub const __NR_getegid: u32 = 50; -pub const __NR_acct: u32 = 51; -pub const __NR_getgid32: u32 = 53; -pub const __NR_ioctl: u32 = 54; -pub const __NR_reboot: u32 = 55; -pub const __NR_mmap2: u32 = 56; -pub const __NR_symlink: u32 = 57; -pub const __NR_readlink: u32 = 58; -pub const __NR_execve: u32 = 59; -pub const __NR_umask: u32 = 60; -pub const __NR_chroot: u32 = 61; -pub const __NR_fstat: u32 = 62; -pub const __NR_fstat64: u32 = 63; -pub const __NR_getpagesize: u32 = 64; -pub const __NR_msync: u32 = 65; -pub const __NR_vfork: u32 = 66; -pub const __NR_pread64: u32 = 67; -pub const __NR_pwrite64: u32 = 68; -pub const __NR_geteuid32: u32 = 69; -pub const __NR_getegid32: u32 = 70; -pub const __NR_mmap: u32 = 71; -pub const __NR_setreuid32: u32 = 72; -pub const __NR_munmap: u32 = 73; -pub const __NR_mprotect: u32 = 74; -pub const __NR_madvise: u32 = 75; -pub const __NR_vhangup: u32 = 76; -pub const __NR_truncate64: u32 = 77; -pub const __NR_mincore: u32 = 78; -pub const __NR_getgroups: u32 = 79; -pub const __NR_setgroups: u32 = 80; -pub const __NR_getpgrp: u32 = 81; -pub const __NR_setgroups32: u32 = 82; -pub const __NR_setitimer: u32 = 83; -pub const __NR_ftruncate64: u32 = 84; -pub const __NR_swapon: u32 = 85; -pub const __NR_getitimer: u32 = 86; -pub const __NR_setuid32: u32 = 87; -pub const __NR_sethostname: u32 = 88; -pub const __NR_setgid32: u32 = 89; -pub const __NR_dup2: u32 = 90; -pub const __NR_setfsuid32: u32 = 91; -pub const __NR_fcntl: u32 = 92; -pub const __NR_select: u32 = 93; -pub const __NR_setfsgid32: u32 = 94; -pub const __NR_fsync: u32 = 95; -pub const __NR_setpriority: u32 = 96; -pub const __NR_socket: u32 = 97; -pub const __NR_connect: u32 = 98; -pub const __NR_accept: u32 = 99; -pub const __NR_getpriority: u32 = 100; -pub const __NR_rt_sigreturn: u32 = 101; -pub const __NR_rt_sigaction: u32 = 102; -pub const __NR_rt_sigprocmask: u32 = 103; -pub const __NR_rt_sigpending: u32 = 104; -pub const __NR_rt_sigtimedwait: u32 = 105; -pub const __NR_rt_sigqueueinfo: u32 = 106; -pub const __NR_rt_sigsuspend: u32 = 107; -pub const __NR_setresuid32: u32 = 108; -pub const __NR_getresuid32: u32 = 109; -pub const __NR_setresgid32: u32 = 110; -pub const __NR_getresgid32: u32 = 111; -pub const __NR_setregid32: u32 = 112; -pub const __NR_recvmsg: u32 = 113; -pub const __NR_sendmsg: u32 = 114; -pub const __NR_getgroups32: u32 = 115; -pub const __NR_gettimeofday: u32 = 116; -pub const __NR_getrusage: u32 = 117; -pub const __NR_getsockopt: u32 = 118; -pub const __NR_getcwd: u32 = 119; -pub const __NR_readv: u32 = 120; -pub const __NR_writev: u32 = 121; -pub const __NR_settimeofday: u32 = 122; -pub const __NR_fchown: u32 = 123; -pub const __NR_fchmod: u32 = 124; -pub const __NR_recvfrom: u32 = 125; -pub const __NR_setreuid: u32 = 126; -pub const __NR_setregid: u32 = 127; -pub const __NR_rename: u32 = 128; -pub const __NR_truncate: u32 = 129; -pub const __NR_ftruncate: u32 = 130; -pub const __NR_flock: u32 = 131; -pub const __NR_lstat64: u32 = 132; -pub const __NR_sendto: u32 = 133; -pub const __NR_shutdown: u32 = 134; -pub const __NR_socketpair: u32 = 135; -pub const __NR_mkdir: u32 = 136; -pub const __NR_rmdir: u32 = 137; -pub const __NR_utimes: u32 = 138; -pub const __NR_stat64: u32 = 139; -pub const __NR_sendfile64: u32 = 140; -pub const __NR_getpeername: u32 = 141; -pub const __NR_futex: u32 = 142; -pub const __NR_gettid: u32 = 143; -pub const __NR_getrlimit: u32 = 144; -pub const __NR_setrlimit: u32 = 145; -pub const __NR_pivot_root: u32 = 146; -pub const __NR_prctl: u32 = 147; -pub const __NR_pciconfig_read: u32 = 148; -pub const __NR_pciconfig_write: u32 = 149; -pub const __NR_getsockname: u32 = 150; -pub const __NR_inotify_init: u32 = 151; -pub const __NR_inotify_add_watch: u32 = 152; -pub const __NR_poll: u32 = 153; -pub const __NR_getdents64: u32 = 154; -pub const __NR_fcntl64: u32 = 155; -pub const __NR_inotify_rm_watch: u32 = 156; -pub const __NR_statfs: u32 = 157; -pub const __NR_fstatfs: u32 = 158; -pub const __NR_umount: u32 = 159; -pub const __NR_sched_set_affinity: u32 = 160; -pub const __NR_sched_get_affinity: u32 = 161; -pub const __NR_getdomainname: u32 = 162; -pub const __NR_setdomainname: u32 = 163; -pub const __NR_quotactl: u32 = 165; -pub const __NR_set_tid_address: u32 = 166; -pub const __NR_mount: u32 = 167; -pub const __NR_ustat: u32 = 168; -pub const __NR_setxattr: u32 = 169; -pub const __NR_lsetxattr: u32 = 170; -pub const __NR_fsetxattr: u32 = 171; -pub const __NR_getxattr: u32 = 172; -pub const __NR_lgetxattr: u32 = 173; -pub const __NR_getdents: u32 = 174; -pub const __NR_setsid: u32 = 175; -pub const __NR_fchdir: u32 = 176; -pub const __NR_fgetxattr: u32 = 177; -pub const __NR_listxattr: u32 = 178; -pub const __NR_llistxattr: u32 = 179; -pub const __NR_flistxattr: u32 = 180; -pub const __NR_removexattr: u32 = 181; -pub const __NR_lremovexattr: u32 = 182; -pub const __NR_sigpending: u32 = 183; -pub const __NR_query_module: u32 = 184; -pub const __NR_setpgid: u32 = 185; -pub const __NR_fremovexattr: u32 = 186; -pub const __NR_tkill: u32 = 187; -pub const __NR_exit_group: u32 = 188; -pub const __NR_uname: u32 = 189; -pub const __NR_init_module: u32 = 190; -pub const __NR_personality: u32 = 191; -pub const __NR_remap_file_pages: u32 = 192; -pub const __NR_epoll_create: u32 = 193; -pub const __NR_epoll_ctl: u32 = 194; -pub const __NR_epoll_wait: u32 = 195; -pub const __NR_ioprio_set: u32 = 196; -pub const __NR_getppid: u32 = 197; -pub const __NR_sigaction: u32 = 198; -pub const __NR_sgetmask: u32 = 199; -pub const __NR_ssetmask: u32 = 200; -pub const __NR_sigsuspend: u32 = 201; -pub const __NR_oldlstat: u32 = 202; -pub const __NR_uselib: u32 = 203; -pub const __NR_readdir: u32 = 204; -pub const __NR_readahead: u32 = 205; -pub const __NR_socketcall: u32 = 206; -pub const __NR_syslog: u32 = 207; -pub const __NR_lookup_dcookie: u32 = 208; -pub const __NR_fadvise64: u32 = 209; -pub const __NR_fadvise64_64: u32 = 210; -pub const __NR_tgkill: u32 = 211; -pub const __NR_waitpid: u32 = 212; -pub const __NR_swapoff: u32 = 213; -pub const __NR_sysinfo: u32 = 214; -pub const __NR_ipc: u32 = 215; -pub const __NR_sigreturn: u32 = 216; -pub const __NR_clone: u32 = 217; -pub const __NR_ioprio_get: u32 = 218; -pub const __NR_adjtimex: u32 = 219; -pub const __NR_sigprocmask: u32 = 220; -pub const __NR_create_module: u32 = 221; -pub const __NR_delete_module: u32 = 222; -pub const __NR_get_kernel_syms: u32 = 223; -pub const __NR_getpgid: u32 = 224; -pub const __NR_bdflush: u32 = 225; -pub const __NR_sysfs: u32 = 226; -pub const __NR_afs_syscall: u32 = 227; -pub const __NR_setfsuid: u32 = 228; -pub const __NR_setfsgid: u32 = 229; -pub const __NR__newselect: u32 = 230; -pub const __NR_time: u32 = 231; -pub const __NR_splice: u32 = 232; -pub const __NR_stime: u32 = 233; -pub const __NR_statfs64: u32 = 234; -pub const __NR_fstatfs64: u32 = 235; -pub const __NR__llseek: u32 = 236; -pub const __NR_mlock: u32 = 237; -pub const __NR_munlock: u32 = 238; -pub const __NR_mlockall: u32 = 239; -pub const __NR_munlockall: u32 = 240; -pub const __NR_sched_setparam: u32 = 241; -pub const __NR_sched_getparam: u32 = 242; -pub const __NR_sched_setscheduler: u32 = 243; -pub const __NR_sched_getscheduler: u32 = 244; -pub const __NR_sched_yield: u32 = 245; -pub const __NR_sched_get_priority_max: u32 = 246; -pub const __NR_sched_get_priority_min: u32 = 247; -pub const __NR_sched_rr_get_interval: u32 = 248; -pub const __NR_nanosleep: u32 = 249; -pub const __NR_mremap: u32 = 250; -pub const __NR__sysctl: u32 = 251; -pub const __NR_getsid: u32 = 252; -pub const __NR_fdatasync: u32 = 253; -pub const __NR_nfsservctl: u32 = 254; -pub const __NR_sync_file_range: u32 = 255; -pub const __NR_clock_settime: u32 = 256; -pub const __NR_clock_gettime: u32 = 257; -pub const __NR_clock_getres: u32 = 258; -pub const __NR_clock_nanosleep: u32 = 259; -pub const __NR_sched_getaffinity: u32 = 260; -pub const __NR_sched_setaffinity: u32 = 261; -pub const __NR_timer_settime: u32 = 262; -pub const __NR_timer_gettime: u32 = 263; -pub const __NR_timer_getoverrun: u32 = 264; -pub const __NR_timer_delete: u32 = 265; -pub const __NR_timer_create: u32 = 266; -pub const __NR_vserver: u32 = 267; -pub const __NR_io_setup: u32 = 268; -pub const __NR_io_destroy: u32 = 269; -pub const __NR_io_submit: u32 = 270; -pub const __NR_io_cancel: u32 = 271; -pub const __NR_io_getevents: u32 = 272; -pub const __NR_mq_open: u32 = 273; -pub const __NR_mq_unlink: u32 = 274; -pub const __NR_mq_timedsend: u32 = 275; -pub const __NR_mq_timedreceive: u32 = 276; -pub const __NR_mq_notify: u32 = 277; -pub const __NR_mq_getsetattr: u32 = 278; -pub const __NR_waitid: u32 = 279; -pub const __NR_tee: u32 = 280; -pub const __NR_add_key: u32 = 281; -pub const __NR_request_key: u32 = 282; -pub const __NR_keyctl: u32 = 283; -pub const __NR_openat: u32 = 284; -pub const __NR_mkdirat: u32 = 285; -pub const __NR_mknodat: u32 = 286; -pub const __NR_fchownat: u32 = 287; -pub const __NR_futimesat: u32 = 288; -pub const __NR_fstatat64: u32 = 289; -pub const __NR_unlinkat: u32 = 290; -pub const __NR_renameat: u32 = 291; -pub const __NR_linkat: u32 = 292; -pub const __NR_symlinkat: u32 = 293; -pub const __NR_readlinkat: u32 = 294; -pub const __NR_fchmodat: u32 = 295; -pub const __NR_faccessat: u32 = 296; -pub const __NR_pselect6: u32 = 297; -pub const __NR_ppoll: u32 = 298; -pub const __NR_unshare: u32 = 299; -pub const __NR_set_robust_list: u32 = 300; -pub const __NR_get_robust_list: u32 = 301; -pub const __NR_migrate_pages: u32 = 302; -pub const __NR_mbind: u32 = 303; -pub const __NR_get_mempolicy: u32 = 304; -pub const __NR_set_mempolicy: u32 = 305; -pub const __NR_kexec_load: u32 = 306; -pub const __NR_move_pages: u32 = 307; -pub const __NR_getcpu: u32 = 308; -pub const __NR_epoll_pwait: u32 = 309; -pub const __NR_utimensat: u32 = 310; -pub const __NR_signalfd: u32 = 311; -pub const __NR_timerfd_create: u32 = 312; -pub const __NR_eventfd: u32 = 313; -pub const __NR_fallocate: u32 = 314; -pub const __NR_timerfd_settime: u32 = 315; -pub const __NR_timerfd_gettime: u32 = 316; -pub const __NR_signalfd4: u32 = 317; -pub const __NR_eventfd2: u32 = 318; -pub const __NR_epoll_create1: u32 = 319; -pub const __NR_dup3: u32 = 320; -pub const __NR_pipe2: u32 = 321; -pub const __NR_inotify_init1: u32 = 322; -pub const __NR_accept4: u32 = 323; -pub const __NR_preadv: u32 = 324; -pub const __NR_pwritev: u32 = 325; -pub const __NR_rt_tgsigqueueinfo: u32 = 326; -pub const __NR_perf_event_open: u32 = 327; -pub const __NR_recvmmsg: u32 = 328; -pub const __NR_fanotify_init: u32 = 329; -pub const __NR_fanotify_mark: u32 = 330; -pub const __NR_prlimit64: u32 = 331; -pub const __NR_name_to_handle_at: u32 = 332; -pub const __NR_open_by_handle_at: u32 = 333; -pub const __NR_clock_adjtime: u32 = 334; -pub const __NR_syncfs: u32 = 335; -pub const __NR_sendmmsg: u32 = 336; -pub const __NR_setns: u32 = 337; -pub const __NR_process_vm_readv: u32 = 338; -pub const __NR_process_vm_writev: u32 = 339; -pub const __NR_kern_features: u32 = 340; -pub const __NR_kcmp: u32 = 341; -pub const __NR_finit_module: u32 = 342; -pub const __NR_sched_setattr: u32 = 343; -pub const __NR_sched_getattr: u32 = 344; -pub const __NR_renameat2: u32 = 345; -pub const __NR_seccomp: u32 = 346; -pub const __NR_getrandom: u32 = 347; -pub const __NR_memfd_create: u32 = 348; -pub const __NR_bpf: u32 = 349; -pub const __NR_execveat: u32 = 350; -pub const __NR_membarrier: u32 = 351; -pub const __NR_userfaultfd: u32 = 352; -pub const __NR_bind: u32 = 353; -pub const __NR_listen: u32 = 354; -pub const __NR_setsockopt: u32 = 355; -pub const __NR_mlock2: u32 = 356; -pub const __NR_copy_file_range: u32 = 357; -pub const __NR_preadv2: u32 = 358; -pub const __NR_pwritev2: u32 = 359; -pub const __NR_statx: u32 = 360; -pub const __NR_io_pgetevents: u32 = 361; -pub const __NR_pkey_mprotect: u32 = 362; -pub const __NR_pkey_alloc: u32 = 363; -pub const __NR_pkey_free: u32 = 364; -pub const __NR_rseq: u32 = 365; -pub const __NR_semget: u32 = 393; -pub const __NR_semctl: u32 = 394; -pub const __NR_shmget: u32 = 395; -pub const __NR_shmctl: u32 = 396; -pub const __NR_shmat: u32 = 397; -pub const __NR_shmdt: u32 = 398; -pub const __NR_msgget: u32 = 399; -pub const __NR_msgsnd: u32 = 400; -pub const __NR_msgrcv: u32 = 401; -pub const __NR_msgctl: u32 = 402; -pub const __NR_clock_gettime64: u32 = 403; -pub const __NR_clock_settime64: u32 = 404; -pub const __NR_clock_adjtime64: u32 = 405; -pub const __NR_clock_getres_time64: u32 = 406; -pub const __NR_clock_nanosleep_time64: u32 = 407; -pub const __NR_timer_gettime64: u32 = 408; -pub const __NR_timer_settime64: u32 = 409; -pub const __NR_timerfd_gettime64: u32 = 410; -pub const __NR_timerfd_settime64: u32 = 411; -pub const __NR_utimensat_time64: u32 = 412; -pub const __NR_pselect6_time64: u32 = 413; -pub const __NR_ppoll_time64: u32 = 414; -pub const __NR_io_pgetevents_time64: u32 = 416; -pub const __NR_recvmmsg_time64: u32 = 417; -pub const __NR_mq_timedsend_time64: u32 = 418; -pub const __NR_mq_timedreceive_time64: u32 = 419; -pub const __NR_semtimedop_time64: u32 = 420; -pub const __NR_rt_sigtimedwait_time64: u32 = 421; -pub const __NR_futex_time64: u32 = 422; -pub const __NR_sched_rr_get_interval_time64: u32 = 423; -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_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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 4194304; -pub const TFD_NONBLOCK: u32 = 16384; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 4194304; -pub const EFD_NONBLOCK: u32 = 16384; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 4210688; -pub const TFD_CREATE_FLAGS: u32 = 4210688; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/sparc/if_ether.rs b/third_party/rust/linux-raw-sys/src/sparc/if_ether.rs deleted file mode 100644 index 7bf8f99a79fd..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/sparc/io_uring.rs b/third_party/rust/linux-raw-sys/src/sparc/io_uring.rs deleted file mode 100644 index a300cbbb7a8b..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/io_uring.rs +++ /dev/null @@ -1,1084 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_XSIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/sparc/ioctl.rs b/third_party/rust/linux-raw-sys/src/sparc/ioctl.rs deleted file mode 100644 index 286ed79ea540..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/ioctl.rs +++ /dev/null @@ -1,3 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - - diff --git a/third_party/rust/linux-raw-sys/src/sparc/net.rs b/third_party/rust/linux-raw-sys/src/sparc/net.rs deleted file mode 100644 index ca7d1aaa1332..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/net.rs +++ /dev/null @@ -1,2052 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const ASI_NULL1: u32 = 0; -pub const ASI_NULL2: u32 = 1; -pub const ASI_CONTROL: u32 = 2; -pub const ASI_SEGMAP: u32 = 3; -pub const ASI_PTE: u32 = 4; -pub const ASI_HWFLUSHSEG: u32 = 5; -pub const ASI_HWFLUSHPAGE: u32 = 6; -pub const ASI_REGMAP: u32 = 6; -pub const ASI_HWFLUSHCONTEXT: u32 = 7; -pub const ASI_USERTXT: u32 = 8; -pub const ASI_KERNELTXT: u32 = 9; -pub const ASI_USERDATA: u32 = 10; -pub const ASI_KERNELDATA: u32 = 11; -pub const ASI_FLUSHSEG: u32 = 12; -pub const ASI_FLUSHPG: u32 = 13; -pub const ASI_FLUSHCTX: u32 = 14; -pub const ASI_M_RES00: u32 = 0; -pub const ASI_M_UNA01: u32 = 1; -pub const ASI_M_MXCC: u32 = 2; -pub const ASI_M_FLUSH_PROBE: u32 = 3; -pub const ASI_M_MMUREGS: u32 = 4; -pub const ASI_M_TLBDIAG: u32 = 5; -pub const ASI_M_DIAGS: u32 = 6; -pub const ASI_M_IODIAG: u32 = 7; -pub const ASI_M_USERTXT: u32 = 8; -pub const ASI_M_KERNELTXT: u32 = 9; -pub const ASI_M_USERDATA: u32 = 10; -pub const ASI_M_KERNELDATA: u32 = 11; -pub const ASI_M_TXTC_TAG: u32 = 12; -pub const ASI_M_TXTC_DATA: u32 = 13; -pub const ASI_M_DATAC_TAG: u32 = 14; -pub const ASI_M_DATAC_DATA: u32 = 15; -pub const ASI_M_FLUSH_PAGE: u32 = 16; -pub const ASI_M_FLUSH_SEG: u32 = 17; -pub const ASI_M_FLUSH_REGION: u32 = 18; -pub const ASI_M_FLUSH_CTX: u32 = 19; -pub const ASI_M_FLUSH_USER: u32 = 20; -pub const ASI_M_BCOPY: u32 = 23; -pub const ASI_M_IFLUSH_PAGE: u32 = 24; -pub const ASI_M_IFLUSH_SEG: u32 = 25; -pub const ASI_M_IFLUSH_REGION: u32 = 26; -pub const ASI_M_IFLUSH_CTX: u32 = 27; -pub const ASI_M_IFLUSH_USER: u32 = 28; -pub const ASI_M_BFILL: u32 = 31; -pub const ASI_M_BYPASS: u32 = 32; -pub const ASI_M_FBMEM: u32 = 41; -pub const ASI_M_VMEUS: u32 = 42; -pub const ASI_M_VMEPS: u32 = 43; -pub const ASI_M_VMEUT: u32 = 44; -pub const ASI_M_VMEPT: u32 = 45; -pub const ASI_M_SBUS: u32 = 46; -pub const ASI_M_CTL: u32 = 47; -pub const ASI_M_FLUSH_IWHOLE: u32 = 49; -pub const ASI_M_IC_FLCLEAR: u32 = 54; -pub const ASI_M_DC_FLCLEAR: u32 = 55; -pub const ASI_M_DCDR: u32 = 57; -pub const ASI_M_VIKING_TMP1: u32 = 64; -pub const ASI_M_ACTION: u32 = 76; -pub const ASI_LEON_NOCACHE: u32 = 1; -pub const ASI_LEON_DCACHE_MISS: u32 = 1; -pub const ASI_LEON_CACHEREGS: u32 = 2; -pub const ASI_LEON_IFLUSH: u32 = 16; -pub const ASI_LEON_DFLUSH: u32 = 17; -pub const ASI_LEON_MMUFLUSH: u32 = 24; -pub const ASI_LEON_MMUREGS: u32 = 25; -pub const ASI_LEON_BYPASS: u32 = 28; -pub const ASI_LEON_FLUSH_PAGE: u32 = 16; -pub const ASI_N: u32 = 4; -pub const ASI_NL: u32 = 12; -pub const ASI_AIUP: u32 = 16; -pub const ASI_AIUS: u32 = 17; -pub const ASI_AIUPL: u32 = 24; -pub const ASI_AIUSL: u32 = 25; -pub const ASI_P: u32 = 128; -pub const ASI_S: u32 = 129; -pub const ASI_PNF: u32 = 130; -pub const ASI_SNF: u32 = 131; -pub const ASI_PL: u32 = 136; -pub const ASI_SL: u32 = 137; -pub const ASI_PNFL: u32 = 138; -pub const ASI_SNFL: u32 = 139; -pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; -pub const ASI_MCD_REAL: u32 = 5; -pub const ASI_PHYS_USE_EC: u32 = 20; -pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; -pub const ASI_BLK_AIUP_4V: u32 = 22; -pub const ASI_BLK_AIUS_4V: u32 = 23; -pub const ASI_PHYS_USE_EC_L: u32 = 28; -pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; -pub const ASI_BLK_AIUP_L_4V: u32 = 30; -pub const ASI_BLK_AIUS_L_4V: u32 = 31; -pub const ASI_SCRATCHPAD: u32 = 32; -pub const ASI_MMU: u32 = 33; -pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; -pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; -pub const ASI_QUEUE: u32 = 37; -pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; -pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; -pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; -pub const ASI_PCACHE_DATA_STATUS: u32 = 48; -pub const ASI_PCACHE_DATA: u32 = 49; -pub const ASI_PCACHE_TAG: u32 = 50; -pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; -pub const ASI_QUAD_LDD_PHYS: u32 = 52; -pub const ASI_WCACHE_VALID_BITS: u32 = 56; -pub const ASI_WCACHE_DATA: u32 = 57; -pub const ASI_WCACHE_TAG: u32 = 58; -pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; -pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; -pub const ASI_SRAM_FAST_INIT: u32 = 64; -pub const ASI_CORE_AVAILABLE: u32 = 65; -pub const ASI_CORE_ENABLE_STAT: u32 = 65; -pub const ASI_CORE_ENABLE: u32 = 65; -pub const ASI_XIR_STEERING: u32 = 65; -pub const ASI_CORE_RUNNING_RW: u32 = 65; -pub const ASI_CORE_RUNNING_W1S: u32 = 65; -pub const ASI_CORE_RUNNING_W1C: u32 = 65; -pub const ASI_CORE_RUNNING_STAT: u32 = 65; -pub const ASI_CMT_ERROR_STEERING: u32 = 65; -pub const ASI_DCACHE_INVALIDATE: u32 = 66; -pub const ASI_DCACHE_UTAG: u32 = 67; -pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; -pub const ASI_LSU_CONTROL: u32 = 69; -pub const ASI_DCU_CONTROL_REG: u32 = 69; -pub const ASI_DCACHE_DATA: u32 = 70; -pub const ASI_DCACHE_TAG: u32 = 71; -pub const ASI_INTR_DISPATCH_STAT: u32 = 72; -pub const ASI_INTR_RECEIVE: u32 = 73; -pub const ASI_UPA_CONFIG: u32 = 74; -pub const ASI_JBUS_CONFIG: u32 = 74; -pub const ASI_SAFARI_CONFIG: u32 = 74; -pub const ASI_SAFARI_ADDRESS: u32 = 74; -pub const ASI_ESTATE_ERROR_EN: u32 = 75; -pub const ASI_AFSR: u32 = 76; -pub const ASI_AFAR: u32 = 77; -pub const ASI_EC_TAG_DATA: u32 = 78; -pub const ASI_IMMU: u32 = 80; -pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; -pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; -pub const ASI_ITLB_DATA_IN: u32 = 84; -pub const ASI_ITLB_DATA_ACCESS: u32 = 85; -pub const ASI_ITLB_TAG_READ: u32 = 86; -pub const ASI_IMMU_DEMAP: u32 = 87; -pub const ASI_DMMU: u32 = 88; -pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; -pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; -pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; -pub const ASI_DTLB_DATA_IN: u32 = 92; -pub const ASI_DTLB_DATA_ACCESS: u32 = 93; -pub const ASI_DTLB_TAG_READ: u32 = 94; -pub const ASI_DMMU_DEMAP: u32 = 95; -pub const ASI_IIU_INST_TRAP: u32 = 96; -pub const ASI_INTR_ID: u32 = 99; -pub const ASI_CORE_ID: u32 = 99; -pub const ASI_CESR_ID: u32 = 99; -pub const ASI_IC_INSTR: u32 = 102; -pub const ASI_IC_TAG: u32 = 103; -pub const ASI_IC_STAG: u32 = 104; -pub const ASI_IC_PRE_DECODE: u32 = 110; -pub const ASI_IC_NEXT_FIELD: u32 = 111; -pub const ASI_BRPRED_ARRAY: u32 = 111; -pub const ASI_BLK_AIUP: u32 = 112; -pub const ASI_BLK_AIUS: u32 = 113; -pub const ASI_MCU_CTRL_REG: u32 = 114; -pub const ASI_EC_DATA: u32 = 116; -pub const ASI_EC_CTRL: u32 = 117; -pub const ASI_EC_W: u32 = 118; -pub const ASI_UDB_ERROR_W: u32 = 119; -pub const ASI_UDB_CONTROL_W: u32 = 119; -pub const ASI_INTR_W: u32 = 119; -pub const ASI_INTR_DATAN_W: u32 = 119; -pub const ASI_INTR_DISPATCH_W: u32 = 119; -pub const ASI_BLK_AIUPL: u32 = 120; -pub const ASI_BLK_AIUSL: u32 = 121; -pub const ASI_EC_R: u32 = 126; -pub const ASI_UDBH_ERROR_R: u32 = 127; -pub const ASI_UDBL_ERROR_R: u32 = 127; -pub const ASI_UDBH_CONTROL_R: u32 = 127; -pub const ASI_UDBL_CONTROL_R: u32 = 127; -pub const ASI_INTR_R: u32 = 127; -pub const ASI_INTR_DATAN_R: u32 = 127; -pub const ASI_MCD_PRIMARY: u32 = 144; -pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; -pub const ASI_PIC: u32 = 176; -pub const ASI_PST8_P: u32 = 192; -pub const ASI_PST8_S: u32 = 193; -pub const ASI_PST16_P: u32 = 194; -pub const ASI_PST16_S: u32 = 195; -pub const ASI_PST32_P: u32 = 196; -pub const ASI_PST32_S: u32 = 197; -pub const ASI_PST8_PL: u32 = 200; -pub const ASI_PST8_SL: u32 = 201; -pub const ASI_PST16_PL: u32 = 202; -pub const ASI_PST16_SL: u32 = 203; -pub const ASI_PST32_PL: u32 = 204; -pub const ASI_PST32_SL: u32 = 205; -pub const ASI_FL8_P: u32 = 208; -pub const ASI_FL8_S: u32 = 209; -pub const ASI_FL16_P: u32 = 210; -pub const ASI_FL16_S: u32 = 211; -pub const ASI_FL8_PL: u32 = 216; -pub const ASI_FL8_SL: u32 = 217; -pub const ASI_FL16_PL: u32 = 218; -pub const ASI_FL16_SL: u32 = 219; -pub const ASI_BLK_COMMIT_P: u32 = 224; -pub const ASI_BLK_COMMIT_S: u32 = 225; -pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; -pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; -pub const ASI_BLK_P: u32 = 240; -pub const ASI_BLK_S: u32 = 241; -pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; -pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; -pub const ASI_BLK_PL: u32 = 248; -pub const ASI_BLK_SL: u32 = 249; -pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; -pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 65535; -pub const SO_DEBUG: u32 = 1; -pub const SO_PASSCRED: u32 = 2; -pub const SO_REUSEADDR: u32 = 4; -pub const SO_KEEPALIVE: u32 = 8; -pub const SO_DONTROUTE: u32 = 16; -pub const SO_BROADCAST: u32 = 32; -pub const SO_PEERCRED: u32 = 64; -pub const SO_LINGER: u32 = 128; -pub const SO_OOBINLINE: u32 = 256; -pub const SO_REUSEPORT: u32 = 512; -pub const SO_BSDCOMPAT: u32 = 1024; -pub const SO_RCVLOWAT: u32 = 2048; -pub const SO_SNDLOWAT: u32 = 4096; -pub const SO_RCVTIMEO_OLD: u32 = 8192; -pub const SO_SNDTIMEO_OLD: u32 = 16384; -pub const SO_ACCEPTCONN: u32 = 32768; -pub const SO_SNDBUF: u32 = 4097; -pub const SO_RCVBUF: u32 = 4098; -pub const SO_SNDBUFFORCE: u32 = 4106; -pub const SO_RCVBUFFORCE: u32 = 4107; -pub const SO_ERROR: u32 = 4103; -pub const SO_TYPE: u32 = 4104; -pub const SO_PROTOCOL: u32 = 4136; -pub const SO_DOMAIN: u32 = 4137; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_BINDTODEVICE: u32 = 13; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_PEERSEC: u32 = 30; -pub const SO_PASSSEC: u32 = 31; -pub const SO_MARK: u32 = 34; -pub const SO_RXQ_OVFL: u32 = 36; -pub const SO_WIFI_STATUS: u32 = 37; -pub const SCM_WIFI_STATUS: u32 = 37; -pub const SO_PEEK_OFF: u32 = 38; -pub const SO_NOFCS: u32 = 39; -pub const SO_LOCK_FILTER: u32 = 40; -pub const SO_SELECT_ERR_QUEUE: u32 = 41; -pub const SO_BUSY_POLL: u32 = 48; -pub const SO_MAX_PACING_RATE: u32 = 49; -pub const SO_BPF_EXTENSIONS: u32 = 50; -pub const SO_INCOMING_CPU: u32 = 51; -pub const SO_ATTACH_BPF: u32 = 52; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 53; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 54; -pub const SO_CNX_ADVICE: u32 = 55; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 56; -pub const SO_MEMINFO: u32 = 57; -pub const SO_INCOMING_NAPI_ID: u32 = 58; -pub const SO_COOKIE: u32 = 59; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 60; -pub const SO_PEERGROUPS: u32 = 61; -pub const SO_ZEROCOPY: u32 = 62; -pub const SO_TXTIME: u32 = 63; -pub const SCM_TXTIME: u32 = 63; -pub const SO_BINDTOIFINDEX: u32 = 65; -pub const SO_SECURITY_AUTHENTICATION: u32 = 20481; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 20482; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 20484; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 33; -pub const SO_TIMESTAMPING_OLD: u32 = 35; -pub const SO_TIMESTAMP_NEW: u32 = 70; -pub const SO_TIMESTAMPNS_NEW: u32 = 66; -pub const SO_TIMESTAMPING_NEW: u32 = 67; -pub const SO_RCVTIMEO_NEW: u32 = 68; -pub const SO_SNDTIMEO_NEW: u32 = 69; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 71; -pub const SO_PREFER_BUSY_POLL: u32 = 72; -pub const SO_BUSY_POLL_BUDGET: u32 = 73; -pub const SO_NETNS_COOKIE: u32 = 80; -pub const SO_BUF_LOCK: u32 = 81; -pub const SO_RESERVE_MEM: u32 = 82; -pub const SO_TXREHASH: u32 = 83; -pub const SO_RCVMARK: u32 = 84; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/sparc/netlink.rs b/third_party/rust/linux-raw-sys/src/sparc/netlink.rs deleted file mode 100644 index 9870026bd493..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/sparc/prctl.rs b/third_party/rust/linux-raw-sys/src/sparc/prctl.rs deleted file mode 100644 index 326866cece35..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/sparc/system.rs b/third_party/rust/linux-raw-sys/src/sparc/system.rs deleted file mode 100644 index 569cd9e2d62d..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc/system.rs +++ /dev/null @@ -1,99 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_long; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_daddr_t = crate::ctypes::c_long; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/sparc64/errno.rs b/third_party/rust/linux-raw-sys/src/sparc64/errno.rs deleted file mode 100644 index 8a8f3774b92a..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/errno.rs +++ /dev/null @@ -1,137 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EWOULDBLOCK: u32 = 11; -pub const EINPROGRESS: u32 = 36; -pub const EALREADY: u32 = 37; -pub const ENOTSOCK: u32 = 38; -pub const EDESTADDRREQ: u32 = 39; -pub const EMSGSIZE: u32 = 40; -pub const EPROTOTYPE: u32 = 41; -pub const ENOPROTOOPT: u32 = 42; -pub const EPROTONOSUPPORT: u32 = 43; -pub const ESOCKTNOSUPPORT: u32 = 44; -pub const EOPNOTSUPP: u32 = 45; -pub const EPFNOSUPPORT: u32 = 46; -pub const EAFNOSUPPORT: u32 = 47; -pub const EADDRINUSE: u32 = 48; -pub const EADDRNOTAVAIL: u32 = 49; -pub const ENETDOWN: u32 = 50; -pub const ENETUNREACH: u32 = 51; -pub const ENETRESET: u32 = 52; -pub const ECONNABORTED: u32 = 53; -pub const ECONNRESET: u32 = 54; -pub const ENOBUFS: u32 = 55; -pub const EISCONN: u32 = 56; -pub const ENOTCONN: u32 = 57; -pub const ESHUTDOWN: u32 = 58; -pub const ETOOMANYREFS: u32 = 59; -pub const ETIMEDOUT: u32 = 60; -pub const ECONNREFUSED: u32 = 61; -pub const ELOOP: u32 = 62; -pub const ENAMETOOLONG: u32 = 63; -pub const EHOSTDOWN: u32 = 64; -pub const EHOSTUNREACH: u32 = 65; -pub const ENOTEMPTY: u32 = 66; -pub const EPROCLIM: u32 = 67; -pub const EUSERS: u32 = 68; -pub const EDQUOT: u32 = 69; -pub const ESTALE: u32 = 70; -pub const EREMOTE: u32 = 71; -pub const ENOSTR: u32 = 72; -pub const ETIME: u32 = 73; -pub const ENOSR: u32 = 74; -pub const ENOMSG: u32 = 75; -pub const EBADMSG: u32 = 76; -pub const EIDRM: u32 = 77; -pub const EDEADLK: u32 = 78; -pub const ENOLCK: u32 = 79; -pub const ENONET: u32 = 80; -pub const ERREMOTE: u32 = 81; -pub const ENOLINK: u32 = 82; -pub const EADV: u32 = 83; -pub const ESRMNT: u32 = 84; -pub const ECOMM: u32 = 85; -pub const EPROTO: u32 = 86; -pub const EMULTIHOP: u32 = 87; -pub const EDOTDOT: u32 = 88; -pub const EREMCHG: u32 = 89; -pub const ENOSYS: u32 = 90; -pub const ESTRPIPE: u32 = 91; -pub const EOVERFLOW: u32 = 92; -pub const EBADFD: u32 = 93; -pub const ECHRNG: u32 = 94; -pub const EL2NSYNC: u32 = 95; -pub const EL3HLT: u32 = 96; -pub const EL3RST: u32 = 97; -pub const ELNRNG: u32 = 98; -pub const EUNATCH: u32 = 99; -pub const ENOCSI: u32 = 100; -pub const EL2HLT: u32 = 101; -pub const EBADE: u32 = 102; -pub const EBADR: u32 = 103; -pub const EXFULL: u32 = 104; -pub const ENOANO: u32 = 105; -pub const EBADRQC: u32 = 106; -pub const EBADSLT: u32 = 107; -pub const EDEADLOCK: u32 = 108; -pub const EBFONT: u32 = 109; -pub const ELIBEXEC: u32 = 110; -pub const ENODATA: u32 = 111; -pub const ELIBBAD: u32 = 112; -pub const ENOPKG: u32 = 113; -pub const ELIBACC: u32 = 114; -pub const ENOTUNIQ: u32 = 115; -pub const ERESTART: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EILSEQ: u32 = 122; -pub const ELIBMAX: u32 = 123; -pub const ELIBSCN: u32 = 124; -pub const ENOMEDIUM: u32 = 125; -pub const EMEDIUMTYPE: u32 = 126; -pub const ECANCELED: u32 = 127; -pub const ENOKEY: u32 = 128; -pub const EKEYEXPIRED: u32 = 129; -pub const EKEYREVOKED: u32 = 130; -pub const EKEYREJECTED: u32 = 131; -pub const EOWNERDEAD: u32 = 132; -pub const ENOTRECOVERABLE: u32 = 133; -pub const ERFKILL: u32 = 134; -pub const EHWPOISON: u32 = 135; diff --git a/third_party/rust/linux-raw-sys/src/sparc64/general.rs b/third_party/rust/linux-raw-sys/src/sparc64/general.rs deleted file mode 100644 index 770232eb701b..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/general.rs +++ /dev/null @@ -1,2936 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_suseconds_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __kernel_long_t; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -pub __unused: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -pub __unused: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __new_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { -pub the_stack: *mut crate::ctypes::c_char, -pub cur_status: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __new_sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: __new_sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_mask: sigset_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_int, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 17usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_uint, -pub st_ino: __kernel_ino_t, -pub st_mode: __kernel_mode_t, -pub st_nlink: crate::ctypes::c_short, -pub st_uid: __kernel_uid32_t, -pub st_gid: __kernel_gid32_t, -pub st_rdev: crate::ctypes::c_uint, -pub st_size: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_long, -pub st_mtime: crate::ctypes::c_long, -pub st_ctime: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_long, -pub st_blocks: crate::ctypes::c_long, -pub __unused4: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_nlink: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub __pad0: crate::ctypes::c_uint, -pub st_rdev: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_long, -pub st_blksize: crate::ctypes::c_long, -pub st_blocks: crate::ctypes::c_long, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused: [crate::ctypes::c_long; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __kernel_long_t, -pub f_bfree: __kernel_long_t, -pub f_bavail: __kernel_long_t, -pub f_files: __kernel_long_t, -pub f_ffree: __kernel_long_t, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct kernel_sigset_t { -pub sig: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_ADI_BLKSZ: u32 = 48; -pub const AT_ADI_NBITS: u32 = 49; -pub const AT_ADI_UEONADI: u32 = 50; -pub const AT_VECTOR_SIZE_ARCH: u32 = 4; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_APPEND: u32 = 8; -pub const FASYNC: u32 = 64; -pub const O_CREAT: u32 = 512; -pub const O_TRUNC: u32 = 1024; -pub const O_EXCL: u32 = 2048; -pub const O_DSYNC: u32 = 8192; -pub const O_NONBLOCK: u32 = 16384; -pub const O_NDELAY: u32 = 4; -pub const O_NOCTTY: u32 = 32768; -pub const O_LARGEFILE: u32 = 262144; -pub const O_DIRECT: u32 = 1048576; -pub const O_NOATIME: u32 = 2097152; -pub const O_CLOEXEC: u32 = 4194304; -pub const __O_SYNC: u32 = 8388608; -pub const O_SYNC: u32 = 8396800; -pub const O_PATH: u32 = 16777216; -pub const __O_TMPFILE: u32 = 33554432; -pub const F_GETOWN: u32 = 5; -pub const F_SETOWN: u32 = 6; -pub const F_GETLK: u32 = 7; -pub const F_SETLK: u32 = 8; -pub const F_SETLKW: u32 = 9; -pub const F_RDLCK: u32 = 1; -pub const F_WRLCK: u32 = 2; -pub const F_UNLCK: u32 = 3; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_TMPFILE: u32 = 33619968; -pub const O_TMPFILE_MASK: u32 = 33620480; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 4194304; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_XSIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 4194304; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 4194304; -pub const IN_NONBLOCK: u32 = 16384; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const PROT_ADI: u32 = 16; -pub const MAP_RENAME: u32 = 32; -pub const MAP_NORESERVE: u32 = 64; -pub const MAP_INHERIT: u32 = 128; -pub const MAP_LOCKED: u32 = 256; -pub const _MAP_NEW: u32 = 2147483648; -pub const MAP_GROWSDOWN: u32 = 512; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MCL_CURRENT: u32 = 8192; -pub const MCL_FUTURE: u32 = 16384; -pub const MCL_ONFAULT: u32 = 32768; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLWRBAND: u32 = 256; -pub const POLLMSG: u32 = 512; -pub const POLLREMOVE: u32 = 1024; -pub const POLLRDHUP: u32 = 2048; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_NOFILE: u32 = 6; -pub const RLIMIT_NPROC: u32 = 7; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SUBSIG_STACK: u32 = 0; -pub const SUBSIG_ILLINST: u32 = 2; -pub const SUBSIG_PRIVINST: u32 = 3; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGEMT: u32 = 7; -pub const SUBSIG_TAG: u32 = 10; -pub const SIGFPE: u32 = 8; -pub const SUBSIG_FPDISABLED: u32 = 1024; -pub const SUBSIG_FPERROR: u32 = 1028; -pub const SUBSIG_FPINTOVFL: u32 = 1; -pub const SUBSIG_FPSTSIG: u32 = 2; -pub const SUBSIG_IDIVZERO: u32 = 20; -pub const SUBSIG_FPINEXACT: u32 = 196; -pub const SUBSIG_FPDIVZERO: u32 = 200; -pub const SUBSIG_FPUNFLOW: u32 = 204; -pub const SUBSIG_FPOPERROR: u32 = 208; -pub const SUBSIG_FPOVFLOW: u32 = 212; -pub const SIGKILL: u32 = 9; -pub const SIGBUS: u32 = 10; -pub const SUBSIG_BUSTIMEOUT: u32 = 1; -pub const SUBSIG_ALIGNMENT: u32 = 2; -pub const SUBSIG_MISCERROR: u32 = 5; -pub const SIGSEGV: u32 = 11; -pub const SUBSIG_NOMAPPING: u32 = 3; -pub const SUBSIG_PROTECTION: u32 = 4; -pub const SUBSIG_SEGERROR: u32 = 5; -pub const SIGSYS: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGURG: u32 = 16; -pub const SIGSTOP: u32 = 17; -pub const SIGTSTP: u32 = 18; -pub const SIGCONT: u32 = 19; -pub const SIGCHLD: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGIO: u32 = 23; -pub const SIGPOLL: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGLOST: u32 = 29; -pub const SIGPWR: u32 = 29; -pub const SIGUSR1: u32 = 30; -pub const SIGUSR2: u32 = 31; -pub const __OLD_NSIG: u32 = 32; -pub const __NEW_NSIG: u32 = 64; -pub const _NSIG_BPW: u32 = 64; -pub const _NSIG_WORDS: u32 = 1; -pub const SIGRTMIN: u32 = 32; -pub const SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 32; -pub const NSIG: u32 = 32; -pub const _SV_SSTACK: u32 = 1; -pub const _SV_INTR: u32 = 2; -pub const _SV_RESET: u32 = 4; -pub const _SV_IGNCHILD: u32 = 8; -pub const SA_NOCLDSTOP: u32 = 8; -pub const SA_STACK: u32 = 1; -pub const SA_ONSTACK: u32 = 1; -pub const SA_RESTART: u32 = 2; -pub const SA_RESETHAND: u32 = 4; -pub const SA_NODEFER: u32 = 32; -pub const SA_NOCLDWAIT: u32 = 256; -pub const SA_SIGINFO: u32 = 512; -pub const SIG_BLOCK: u32 = 1; -pub const SIG_UNBLOCK: u32 = 2; -pub const SIG_SETMASK: u32 = 4; -pub const MINSIGSTKSZ: u32 = 4096; -pub const SIGSTKSZ: u32 = 16384; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_NOMASK: u32 = 32; -pub const SA_ONESHOT: u32 = 4; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SI_NOINFO: u32 = 32767; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCC: u32 = 8; -pub const NCCS: u32 = 17; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VEOL: u32 = 5; -pub const VEOL2: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VDSUSP: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VMIN: u32 = 4; -pub const VTIME: u32 = 5; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const PAGEOUT: u32 = 65536; -pub const WRAP: u32 = 131072; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B76800: u32 = 4101; -pub const B153600: u32 = 4102; -pub const B307200: u32 = 4103; -pub const B614400: u32 = 4104; -pub const B921600: u32 = 4105; -pub const B500000: u32 = 4106; -pub const B576000: u32 = 4107; -pub const B1000000: u32 = 4108; -pub const B1152000: u32 = 4109; -pub const B1500000: u32 = 4110; -pub const B2000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const DEFECHO: u32 = 4096; -pub const FLUSHO: u32 = 8192; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const TIOCSER_TEMT: u32 = 1; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __NR_restart_syscall: u32 = 0; -pub const __NR_exit: u32 = 1; -pub const __NR_fork: u32 = 2; -pub const __NR_read: u32 = 3; -pub const __NR_write: u32 = 4; -pub const __NR_open: u32 = 5; -pub const __NR_close: u32 = 6; -pub const __NR_wait4: u32 = 7; -pub const __NR_creat: u32 = 8; -pub const __NR_link: u32 = 9; -pub const __NR_unlink: u32 = 10; -pub const __NR_execv: u32 = 11; -pub const __NR_chdir: u32 = 12; -pub const __NR_chown: u32 = 13; -pub const __NR_mknod: u32 = 14; -pub const __NR_chmod: u32 = 15; -pub const __NR_lchown: u32 = 16; -pub const __NR_brk: u32 = 17; -pub const __NR_perfctr: u32 = 18; -pub const __NR_lseek: u32 = 19; -pub const __NR_getpid: u32 = 20; -pub const __NR_capget: u32 = 21; -pub const __NR_capset: u32 = 22; -pub const __NR_setuid: u32 = 23; -pub const __NR_getuid: u32 = 24; -pub const __NR_vmsplice: u32 = 25; -pub const __NR_ptrace: u32 = 26; -pub const __NR_alarm: u32 = 27; -pub const __NR_sigaltstack: u32 = 28; -pub const __NR_pause: u32 = 29; -pub const __NR_utime: u32 = 30; -pub const __NR_access: u32 = 33; -pub const __NR_nice: u32 = 34; -pub const __NR_sync: u32 = 36; -pub const __NR_kill: u32 = 37; -pub const __NR_stat: u32 = 38; -pub const __NR_sendfile: u32 = 39; -pub const __NR_lstat: u32 = 40; -pub const __NR_dup: u32 = 41; -pub const __NR_pipe: u32 = 42; -pub const __NR_times: u32 = 43; -pub const __NR_umount2: u32 = 45; -pub const __NR_setgid: u32 = 46; -pub const __NR_getgid: u32 = 47; -pub const __NR_signal: u32 = 48; -pub const __NR_geteuid: u32 = 49; -pub const __NR_getegid: u32 = 50; -pub const __NR_acct: u32 = 51; -pub const __NR_memory_ordering: u32 = 52; -pub const __NR_ioctl: u32 = 54; -pub const __NR_reboot: u32 = 55; -pub const __NR_symlink: u32 = 57; -pub const __NR_readlink: u32 = 58; -pub const __NR_execve: u32 = 59; -pub const __NR_umask: u32 = 60; -pub const __NR_chroot: u32 = 61; -pub const __NR_fstat: u32 = 62; -pub const __NR_fstat64: u32 = 63; -pub const __NR_getpagesize: u32 = 64; -pub const __NR_msync: u32 = 65; -pub const __NR_vfork: u32 = 66; -pub const __NR_pread64: u32 = 67; -pub const __NR_pwrite64: u32 = 68; -pub const __NR_mmap: u32 = 71; -pub const __NR_munmap: u32 = 73; -pub const __NR_mprotect: u32 = 74; -pub const __NR_madvise: u32 = 75; -pub const __NR_vhangup: u32 = 76; -pub const __NR_mincore: u32 = 78; -pub const __NR_getgroups: u32 = 79; -pub const __NR_setgroups: u32 = 80; -pub const __NR_getpgrp: u32 = 81; -pub const __NR_setitimer: u32 = 83; -pub const __NR_swapon: u32 = 85; -pub const __NR_getitimer: u32 = 86; -pub const __NR_sethostname: u32 = 88; -pub const __NR_dup2: u32 = 90; -pub const __NR_fcntl: u32 = 92; -pub const __NR_select: u32 = 93; -pub const __NR_fsync: u32 = 95; -pub const __NR_setpriority: u32 = 96; -pub const __NR_socket: u32 = 97; -pub const __NR_connect: u32 = 98; -pub const __NR_accept: u32 = 99; -pub const __NR_getpriority: u32 = 100; -pub const __NR_rt_sigreturn: u32 = 101; -pub const __NR_rt_sigaction: u32 = 102; -pub const __NR_rt_sigprocmask: u32 = 103; -pub const __NR_rt_sigpending: u32 = 104; -pub const __NR_rt_sigtimedwait: u32 = 105; -pub const __NR_rt_sigqueueinfo: u32 = 106; -pub const __NR_rt_sigsuspend: u32 = 107; -pub const __NR_setresuid: u32 = 108; -pub const __NR_getresuid: u32 = 109; -pub const __NR_setresgid: u32 = 110; -pub const __NR_getresgid: u32 = 111; -pub const __NR_recvmsg: u32 = 113; -pub const __NR_sendmsg: u32 = 114; -pub const __NR_gettimeofday: u32 = 116; -pub const __NR_getrusage: u32 = 117; -pub const __NR_getsockopt: u32 = 118; -pub const __NR_getcwd: u32 = 119; -pub const __NR_readv: u32 = 120; -pub const __NR_writev: u32 = 121; -pub const __NR_settimeofday: u32 = 122; -pub const __NR_fchown: u32 = 123; -pub const __NR_fchmod: u32 = 124; -pub const __NR_recvfrom: u32 = 125; -pub const __NR_setreuid: u32 = 126; -pub const __NR_setregid: u32 = 127; -pub const __NR_rename: u32 = 128; -pub const __NR_truncate: u32 = 129; -pub const __NR_ftruncate: u32 = 130; -pub const __NR_flock: u32 = 131; -pub const __NR_lstat64: u32 = 132; -pub const __NR_sendto: u32 = 133; -pub const __NR_shutdown: u32 = 134; -pub const __NR_socketpair: u32 = 135; -pub const __NR_mkdir: u32 = 136; -pub const __NR_rmdir: u32 = 137; -pub const __NR_utimes: u32 = 138; -pub const __NR_stat64: u32 = 139; -pub const __NR_sendfile64: u32 = 140; -pub const __NR_getpeername: u32 = 141; -pub const __NR_futex: u32 = 142; -pub const __NR_gettid: u32 = 143; -pub const __NR_getrlimit: u32 = 144; -pub const __NR_setrlimit: u32 = 145; -pub const __NR_pivot_root: u32 = 146; -pub const __NR_prctl: u32 = 147; -pub const __NR_pciconfig_read: u32 = 148; -pub const __NR_pciconfig_write: u32 = 149; -pub const __NR_getsockname: u32 = 150; -pub const __NR_inotify_init: u32 = 151; -pub const __NR_inotify_add_watch: u32 = 152; -pub const __NR_poll: u32 = 153; -pub const __NR_getdents64: u32 = 154; -pub const __NR_inotify_rm_watch: u32 = 156; -pub const __NR_statfs: u32 = 157; -pub const __NR_fstatfs: u32 = 158; -pub const __NR_umount: u32 = 159; -pub const __NR_sched_set_affinity: u32 = 160; -pub const __NR_sched_get_affinity: u32 = 161; -pub const __NR_getdomainname: u32 = 162; -pub const __NR_setdomainname: u32 = 163; -pub const __NR_utrap_install: u32 = 164; -pub const __NR_quotactl: u32 = 165; -pub const __NR_set_tid_address: u32 = 166; -pub const __NR_mount: u32 = 167; -pub const __NR_ustat: u32 = 168; -pub const __NR_setxattr: u32 = 169; -pub const __NR_lsetxattr: u32 = 170; -pub const __NR_fsetxattr: u32 = 171; -pub const __NR_getxattr: u32 = 172; -pub const __NR_lgetxattr: u32 = 173; -pub const __NR_getdents: u32 = 174; -pub const __NR_setsid: u32 = 175; -pub const __NR_fchdir: u32 = 176; -pub const __NR_fgetxattr: u32 = 177; -pub const __NR_listxattr: u32 = 178; -pub const __NR_llistxattr: u32 = 179; -pub const __NR_flistxattr: u32 = 180; -pub const __NR_removexattr: u32 = 181; -pub const __NR_lremovexattr: u32 = 182; -pub const __NR_sigpending: u32 = 183; -pub const __NR_query_module: u32 = 184; -pub const __NR_setpgid: u32 = 185; -pub const __NR_fremovexattr: u32 = 186; -pub const __NR_tkill: u32 = 187; -pub const __NR_exit_group: u32 = 188; -pub const __NR_uname: u32 = 189; -pub const __NR_init_module: u32 = 190; -pub const __NR_personality: u32 = 191; -pub const __NR_remap_file_pages: u32 = 192; -pub const __NR_epoll_create: u32 = 193; -pub const __NR_epoll_ctl: u32 = 194; -pub const __NR_epoll_wait: u32 = 195; -pub const __NR_ioprio_set: u32 = 196; -pub const __NR_getppid: u32 = 197; -pub const __NR_sigaction: u32 = 198; -pub const __NR_sgetmask: u32 = 199; -pub const __NR_ssetmask: u32 = 200; -pub const __NR_sigsuspend: u32 = 201; -pub const __NR_oldlstat: u32 = 202; -pub const __NR_uselib: u32 = 203; -pub const __NR_readdir: u32 = 204; -pub const __NR_readahead: u32 = 205; -pub const __NR_socketcall: u32 = 206; -pub const __NR_syslog: u32 = 207; -pub const __NR_lookup_dcookie: u32 = 208; -pub const __NR_fadvise64: u32 = 209; -pub const __NR_fadvise64_64: u32 = 210; -pub const __NR_tgkill: u32 = 211; -pub const __NR_waitpid: u32 = 212; -pub const __NR_swapoff: u32 = 213; -pub const __NR_sysinfo: u32 = 214; -pub const __NR_ipc: u32 = 215; -pub const __NR_sigreturn: u32 = 216; -pub const __NR_clone: u32 = 217; -pub const __NR_ioprio_get: u32 = 218; -pub const __NR_adjtimex: u32 = 219; -pub const __NR_sigprocmask: u32 = 220; -pub const __NR_create_module: u32 = 221; -pub const __NR_delete_module: u32 = 222; -pub const __NR_get_kernel_syms: u32 = 223; -pub const __NR_getpgid: u32 = 224; -pub const __NR_bdflush: u32 = 225; -pub const __NR_sysfs: u32 = 226; -pub const __NR_afs_syscall: u32 = 227; -pub const __NR_setfsuid: u32 = 228; -pub const __NR_setfsgid: u32 = 229; -pub const __NR__newselect: u32 = 230; -pub const __NR_splice: u32 = 232; -pub const __NR_stime: u32 = 233; -pub const __NR_statfs64: u32 = 234; -pub const __NR_fstatfs64: u32 = 235; -pub const __NR__llseek: u32 = 236; -pub const __NR_mlock: u32 = 237; -pub const __NR_munlock: u32 = 238; -pub const __NR_mlockall: u32 = 239; -pub const __NR_munlockall: u32 = 240; -pub const __NR_sched_setparam: u32 = 241; -pub const __NR_sched_getparam: u32 = 242; -pub const __NR_sched_setscheduler: u32 = 243; -pub const __NR_sched_getscheduler: u32 = 244; -pub const __NR_sched_yield: u32 = 245; -pub const __NR_sched_get_priority_max: u32 = 246; -pub const __NR_sched_get_priority_min: u32 = 247; -pub const __NR_sched_rr_get_interval: u32 = 248; -pub const __NR_nanosleep: u32 = 249; -pub const __NR_mremap: u32 = 250; -pub const __NR__sysctl: u32 = 251; -pub const __NR_getsid: u32 = 252; -pub const __NR_fdatasync: u32 = 253; -pub const __NR_nfsservctl: u32 = 254; -pub const __NR_sync_file_range: u32 = 255; -pub const __NR_clock_settime: u32 = 256; -pub const __NR_clock_gettime: u32 = 257; -pub const __NR_clock_getres: u32 = 258; -pub const __NR_clock_nanosleep: u32 = 259; -pub const __NR_sched_getaffinity: u32 = 260; -pub const __NR_sched_setaffinity: u32 = 261; -pub const __NR_timer_settime: u32 = 262; -pub const __NR_timer_gettime: u32 = 263; -pub const __NR_timer_getoverrun: u32 = 264; -pub const __NR_timer_delete: u32 = 265; -pub const __NR_timer_create: u32 = 266; -pub const __NR_vserver: u32 = 267; -pub const __NR_io_setup: u32 = 268; -pub const __NR_io_destroy: u32 = 269; -pub const __NR_io_submit: u32 = 270; -pub const __NR_io_cancel: u32 = 271; -pub const __NR_io_getevents: u32 = 272; -pub const __NR_mq_open: u32 = 273; -pub const __NR_mq_unlink: u32 = 274; -pub const __NR_mq_timedsend: u32 = 275; -pub const __NR_mq_timedreceive: u32 = 276; -pub const __NR_mq_notify: u32 = 277; -pub const __NR_mq_getsetattr: u32 = 278; -pub const __NR_waitid: u32 = 279; -pub const __NR_tee: u32 = 280; -pub const __NR_add_key: u32 = 281; -pub const __NR_request_key: u32 = 282; -pub const __NR_keyctl: u32 = 283; -pub const __NR_openat: u32 = 284; -pub const __NR_mkdirat: u32 = 285; -pub const __NR_mknodat: u32 = 286; -pub const __NR_fchownat: u32 = 287; -pub const __NR_futimesat: u32 = 288; -pub const __NR_fstatat64: u32 = 289; -pub const __NR_unlinkat: u32 = 290; -pub const __NR_renameat: u32 = 291; -pub const __NR_linkat: u32 = 292; -pub const __NR_symlinkat: u32 = 293; -pub const __NR_readlinkat: u32 = 294; -pub const __NR_fchmodat: u32 = 295; -pub const __NR_faccessat: u32 = 296; -pub const __NR_pselect6: u32 = 297; -pub const __NR_ppoll: u32 = 298; -pub const __NR_unshare: u32 = 299; -pub const __NR_set_robust_list: u32 = 300; -pub const __NR_get_robust_list: u32 = 301; -pub const __NR_migrate_pages: u32 = 302; -pub const __NR_mbind: u32 = 303; -pub const __NR_get_mempolicy: u32 = 304; -pub const __NR_set_mempolicy: u32 = 305; -pub const __NR_kexec_load: u32 = 306; -pub const __NR_move_pages: u32 = 307; -pub const __NR_getcpu: u32 = 308; -pub const __NR_epoll_pwait: u32 = 309; -pub const __NR_utimensat: u32 = 310; -pub const __NR_signalfd: u32 = 311; -pub const __NR_timerfd_create: u32 = 312; -pub const __NR_eventfd: u32 = 313; -pub const __NR_fallocate: u32 = 314; -pub const __NR_timerfd_settime: u32 = 315; -pub const __NR_timerfd_gettime: u32 = 316; -pub const __NR_signalfd4: u32 = 317; -pub const __NR_eventfd2: u32 = 318; -pub const __NR_epoll_create1: u32 = 319; -pub const __NR_dup3: u32 = 320; -pub const __NR_pipe2: u32 = 321; -pub const __NR_inotify_init1: u32 = 322; -pub const __NR_accept4: u32 = 323; -pub const __NR_preadv: u32 = 324; -pub const __NR_pwritev: u32 = 325; -pub const __NR_rt_tgsigqueueinfo: u32 = 326; -pub const __NR_perf_event_open: u32 = 327; -pub const __NR_recvmmsg: u32 = 328; -pub const __NR_fanotify_init: u32 = 329; -pub const __NR_fanotify_mark: u32 = 330; -pub const __NR_prlimit64: u32 = 331; -pub const __NR_name_to_handle_at: u32 = 332; -pub const __NR_open_by_handle_at: u32 = 333; -pub const __NR_clock_adjtime: u32 = 334; -pub const __NR_syncfs: u32 = 335; -pub const __NR_sendmmsg: u32 = 336; -pub const __NR_setns: u32 = 337; -pub const __NR_process_vm_readv: u32 = 338; -pub const __NR_process_vm_writev: u32 = 339; -pub const __NR_kern_features: u32 = 340; -pub const __NR_kcmp: u32 = 341; -pub const __NR_finit_module: u32 = 342; -pub const __NR_sched_setattr: u32 = 343; -pub const __NR_sched_getattr: u32 = 344; -pub const __NR_renameat2: u32 = 345; -pub const __NR_seccomp: u32 = 346; -pub const __NR_getrandom: u32 = 347; -pub const __NR_memfd_create: u32 = 348; -pub const __NR_bpf: u32 = 349; -pub const __NR_execveat: u32 = 350; -pub const __NR_membarrier: u32 = 351; -pub const __NR_userfaultfd: u32 = 352; -pub const __NR_bind: u32 = 353; -pub const __NR_listen: u32 = 354; -pub const __NR_setsockopt: u32 = 355; -pub const __NR_mlock2: u32 = 356; -pub const __NR_copy_file_range: u32 = 357; -pub const __NR_preadv2: u32 = 358; -pub const __NR_pwritev2: u32 = 359; -pub const __NR_statx: u32 = 360; -pub const __NR_io_pgetevents: u32 = 361; -pub const __NR_pkey_mprotect: u32 = 362; -pub const __NR_pkey_alloc: u32 = 363; -pub const __NR_pkey_free: u32 = 364; -pub const __NR_rseq: u32 = 365; -pub const __NR_semtimedop: u32 = 392; -pub const __NR_semget: u32 = 393; -pub const __NR_semctl: u32 = 394; -pub const __NR_shmget: u32 = 395; -pub const __NR_shmctl: u32 = 396; -pub const __NR_shmat: u32 = 397; -pub const __NR_shmdt: u32 = 398; -pub const __NR_msgget: u32 = 399; -pub const __NR_msgsnd: u32 = 400; -pub const __NR_msgrcv: u32 = 401; -pub const __NR_msgctl: u32 = 402; -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_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_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 4194304; -pub const TFD_NONBLOCK: u32 = 16384; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 4194304; -pub const EFD_NONBLOCK: u32 = 16384; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 4210688; -pub const TFD_CREATE_FLAGS: u32 = 4210688; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/sparc64/if_ether.rs b/third_party/rust/linux-raw-sys/src/sparc64/if_ether.rs deleted file mode 100644 index 0922f29bf7f3..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/if_ether.rs +++ /dev/null @@ -1,173 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_suseconds_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/sparc64/io_uring.rs b/third_party/rust/linux-raw-sys/src/sparc64/io_uring.rs deleted file mode 100644 index 497f3edb701e..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/io_uring.rs +++ /dev/null @@ -1,1084 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_suseconds_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 13; -pub const _IOC_DIRBITS: u32 = 3; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 8191; -pub const _IOC_XSIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 7; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 29; -pub const _IOC_NONE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const _IOC_WRITE: u32 = 4; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/sparc64/ioctl.rs b/third_party/rust/linux-raw-sys/src/sparc64/ioctl.rs deleted file mode 100644 index 286ed79ea540..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/ioctl.rs +++ /dev/null @@ -1,3 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - - diff --git a/third_party/rust/linux-raw-sys/src/sparc64/net.rs b/third_party/rust/linux-raw-sys/src/sparc64/net.rs deleted file mode 100644 index 9a8975418e60..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/net.rs +++ /dev/null @@ -1,2066 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_suseconds_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __BIG_ENDIAN: u32 = 4321; -pub const ASI_NULL1: u32 = 0; -pub const ASI_NULL2: u32 = 1; -pub const ASI_CONTROL: u32 = 2; -pub const ASI_SEGMAP: u32 = 3; -pub const ASI_PTE: u32 = 4; -pub const ASI_HWFLUSHSEG: u32 = 5; -pub const ASI_HWFLUSHPAGE: u32 = 6; -pub const ASI_REGMAP: u32 = 6; -pub const ASI_HWFLUSHCONTEXT: u32 = 7; -pub const ASI_USERTXT: u32 = 8; -pub const ASI_KERNELTXT: u32 = 9; -pub const ASI_USERDATA: u32 = 10; -pub const ASI_KERNELDATA: u32 = 11; -pub const ASI_FLUSHSEG: u32 = 12; -pub const ASI_FLUSHPG: u32 = 13; -pub const ASI_FLUSHCTX: u32 = 14; -pub const ASI_M_RES00: u32 = 0; -pub const ASI_M_UNA01: u32 = 1; -pub const ASI_M_MXCC: u32 = 2; -pub const ASI_M_FLUSH_PROBE: u32 = 3; -pub const ASI_M_MMUREGS: u32 = 4; -pub const ASI_M_TLBDIAG: u32 = 5; -pub const ASI_M_DIAGS: u32 = 6; -pub const ASI_M_IODIAG: u32 = 7; -pub const ASI_M_USERTXT: u32 = 8; -pub const ASI_M_KERNELTXT: u32 = 9; -pub const ASI_M_USERDATA: u32 = 10; -pub const ASI_M_KERNELDATA: u32 = 11; -pub const ASI_M_TXTC_TAG: u32 = 12; -pub const ASI_M_TXTC_DATA: u32 = 13; -pub const ASI_M_DATAC_TAG: u32 = 14; -pub const ASI_M_DATAC_DATA: u32 = 15; -pub const ASI_M_FLUSH_PAGE: u32 = 16; -pub const ASI_M_FLUSH_SEG: u32 = 17; -pub const ASI_M_FLUSH_REGION: u32 = 18; -pub const ASI_M_FLUSH_CTX: u32 = 19; -pub const ASI_M_FLUSH_USER: u32 = 20; -pub const ASI_M_BCOPY: u32 = 23; -pub const ASI_M_IFLUSH_PAGE: u32 = 24; -pub const ASI_M_IFLUSH_SEG: u32 = 25; -pub const ASI_M_IFLUSH_REGION: u32 = 26; -pub const ASI_M_IFLUSH_CTX: u32 = 27; -pub const ASI_M_IFLUSH_USER: u32 = 28; -pub const ASI_M_BFILL: u32 = 31; -pub const ASI_M_BYPASS: u32 = 32; -pub const ASI_M_FBMEM: u32 = 41; -pub const ASI_M_VMEUS: u32 = 42; -pub const ASI_M_VMEPS: u32 = 43; -pub const ASI_M_VMEUT: u32 = 44; -pub const ASI_M_VMEPT: u32 = 45; -pub const ASI_M_SBUS: u32 = 46; -pub const ASI_M_CTL: u32 = 47; -pub const ASI_M_FLUSH_IWHOLE: u32 = 49; -pub const ASI_M_IC_FLCLEAR: u32 = 54; -pub const ASI_M_DC_FLCLEAR: u32 = 55; -pub const ASI_M_DCDR: u32 = 57; -pub const ASI_M_VIKING_TMP1: u32 = 64; -pub const ASI_M_ACTION: u32 = 76; -pub const ASI_LEON_NOCACHE: u32 = 1; -pub const ASI_LEON_DCACHE_MISS: u32 = 1; -pub const ASI_LEON_CACHEREGS: u32 = 2; -pub const ASI_LEON_IFLUSH: u32 = 16; -pub const ASI_LEON_DFLUSH: u32 = 17; -pub const ASI_LEON_MMUFLUSH: u32 = 24; -pub const ASI_LEON_MMUREGS: u32 = 25; -pub const ASI_LEON_BYPASS: u32 = 28; -pub const ASI_LEON_FLUSH_PAGE: u32 = 16; -pub const ASI_N: u32 = 4; -pub const ASI_NL: u32 = 12; -pub const ASI_AIUP: u32 = 16; -pub const ASI_AIUS: u32 = 17; -pub const ASI_AIUPL: u32 = 24; -pub const ASI_AIUSL: u32 = 25; -pub const ASI_P: u32 = 128; -pub const ASI_S: u32 = 129; -pub const ASI_PNF: u32 = 130; -pub const ASI_SNF: u32 = 131; -pub const ASI_PL: u32 = 136; -pub const ASI_SL: u32 = 137; -pub const ASI_PNFL: u32 = 138; -pub const ASI_SNFL: u32 = 139; -pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; -pub const ASI_MCD_REAL: u32 = 5; -pub const ASI_PHYS_USE_EC: u32 = 20; -pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; -pub const ASI_BLK_AIUP_4V: u32 = 22; -pub const ASI_BLK_AIUS_4V: u32 = 23; -pub const ASI_PHYS_USE_EC_L: u32 = 28; -pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; -pub const ASI_BLK_AIUP_L_4V: u32 = 30; -pub const ASI_BLK_AIUS_L_4V: u32 = 31; -pub const ASI_SCRATCHPAD: u32 = 32; -pub const ASI_MMU: u32 = 33; -pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; -pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; -pub const ASI_QUEUE: u32 = 37; -pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; -pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; -pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; -pub const ASI_PCACHE_DATA_STATUS: u32 = 48; -pub const ASI_PCACHE_DATA: u32 = 49; -pub const ASI_PCACHE_TAG: u32 = 50; -pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; -pub const ASI_QUAD_LDD_PHYS: u32 = 52; -pub const ASI_WCACHE_VALID_BITS: u32 = 56; -pub const ASI_WCACHE_DATA: u32 = 57; -pub const ASI_WCACHE_TAG: u32 = 58; -pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; -pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; -pub const ASI_SRAM_FAST_INIT: u32 = 64; -pub const ASI_CORE_AVAILABLE: u32 = 65; -pub const ASI_CORE_ENABLE_STAT: u32 = 65; -pub const ASI_CORE_ENABLE: u32 = 65; -pub const ASI_XIR_STEERING: u32 = 65; -pub const ASI_CORE_RUNNING_RW: u32 = 65; -pub const ASI_CORE_RUNNING_W1S: u32 = 65; -pub const ASI_CORE_RUNNING_W1C: u32 = 65; -pub const ASI_CORE_RUNNING_STAT: u32 = 65; -pub const ASI_CMT_ERROR_STEERING: u32 = 65; -pub const ASI_DCACHE_INVALIDATE: u32 = 66; -pub const ASI_DCACHE_UTAG: u32 = 67; -pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; -pub const ASI_LSU_CONTROL: u32 = 69; -pub const ASI_DCU_CONTROL_REG: u32 = 69; -pub const ASI_DCACHE_DATA: u32 = 70; -pub const ASI_DCACHE_TAG: u32 = 71; -pub const ASI_INTR_DISPATCH_STAT: u32 = 72; -pub const ASI_INTR_RECEIVE: u32 = 73; -pub const ASI_UPA_CONFIG: u32 = 74; -pub const ASI_JBUS_CONFIG: u32 = 74; -pub const ASI_SAFARI_CONFIG: u32 = 74; -pub const ASI_SAFARI_ADDRESS: u32 = 74; -pub const ASI_ESTATE_ERROR_EN: u32 = 75; -pub const ASI_AFSR: u32 = 76; -pub const ASI_AFAR: u32 = 77; -pub const ASI_EC_TAG_DATA: u32 = 78; -pub const ASI_IMMU: u32 = 80; -pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; -pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; -pub const ASI_ITLB_DATA_IN: u32 = 84; -pub const ASI_ITLB_DATA_ACCESS: u32 = 85; -pub const ASI_ITLB_TAG_READ: u32 = 86; -pub const ASI_IMMU_DEMAP: u32 = 87; -pub const ASI_DMMU: u32 = 88; -pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; -pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; -pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; -pub const ASI_DTLB_DATA_IN: u32 = 92; -pub const ASI_DTLB_DATA_ACCESS: u32 = 93; -pub const ASI_DTLB_TAG_READ: u32 = 94; -pub const ASI_DMMU_DEMAP: u32 = 95; -pub const ASI_IIU_INST_TRAP: u32 = 96; -pub const ASI_INTR_ID: u32 = 99; -pub const ASI_CORE_ID: u32 = 99; -pub const ASI_CESR_ID: u32 = 99; -pub const ASI_IC_INSTR: u32 = 102; -pub const ASI_IC_TAG: u32 = 103; -pub const ASI_IC_STAG: u32 = 104; -pub const ASI_IC_PRE_DECODE: u32 = 110; -pub const ASI_IC_NEXT_FIELD: u32 = 111; -pub const ASI_BRPRED_ARRAY: u32 = 111; -pub const ASI_BLK_AIUP: u32 = 112; -pub const ASI_BLK_AIUS: u32 = 113; -pub const ASI_MCU_CTRL_REG: u32 = 114; -pub const ASI_EC_DATA: u32 = 116; -pub const ASI_EC_CTRL: u32 = 117; -pub const ASI_EC_W: u32 = 118; -pub const ASI_UDB_ERROR_W: u32 = 119; -pub const ASI_UDB_CONTROL_W: u32 = 119; -pub const ASI_INTR_W: u32 = 119; -pub const ASI_INTR_DATAN_W: u32 = 119; -pub const ASI_INTR_DISPATCH_W: u32 = 119; -pub const ASI_BLK_AIUPL: u32 = 120; -pub const ASI_BLK_AIUSL: u32 = 121; -pub const ASI_EC_R: u32 = 126; -pub const ASI_UDBH_ERROR_R: u32 = 127; -pub const ASI_UDBL_ERROR_R: u32 = 127; -pub const ASI_UDBH_CONTROL_R: u32 = 127; -pub const ASI_UDBL_CONTROL_R: u32 = 127; -pub const ASI_INTR_R: u32 = 127; -pub const ASI_INTR_DATAN_R: u32 = 127; -pub const ASI_MCD_PRIMARY: u32 = 144; -pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; -pub const ASI_PIC: u32 = 176; -pub const ASI_PST8_P: u32 = 192; -pub const ASI_PST8_S: u32 = 193; -pub const ASI_PST16_P: u32 = 194; -pub const ASI_PST16_S: u32 = 195; -pub const ASI_PST32_P: u32 = 196; -pub const ASI_PST32_S: u32 = 197; -pub const ASI_PST8_PL: u32 = 200; -pub const ASI_PST8_SL: u32 = 201; -pub const ASI_PST16_PL: u32 = 202; -pub const ASI_PST16_SL: u32 = 203; -pub const ASI_PST32_PL: u32 = 204; -pub const ASI_PST32_SL: u32 = 205; -pub const ASI_FL8_P: u32 = 208; -pub const ASI_FL8_S: u32 = 209; -pub const ASI_FL16_P: u32 = 210; -pub const ASI_FL16_S: u32 = 211; -pub const ASI_FL8_PL: u32 = 216; -pub const ASI_FL8_SL: u32 = 217; -pub const ASI_FL16_PL: u32 = 218; -pub const ASI_FL16_SL: u32 = 219; -pub const ASI_BLK_COMMIT_P: u32 = 224; -pub const ASI_BLK_COMMIT_S: u32 = 225; -pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; -pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; -pub const ASI_BLK_P: u32 = 240; -pub const ASI_BLK_S: u32 = 241; -pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; -pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; -pub const ASI_BLK_PL: u32 = 248; -pub const ASI_BLK_SL: u32 = 249; -pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; -pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 65535; -pub const SO_DEBUG: u32 = 1; -pub const SO_PASSCRED: u32 = 2; -pub const SO_REUSEADDR: u32 = 4; -pub const SO_KEEPALIVE: u32 = 8; -pub const SO_DONTROUTE: u32 = 16; -pub const SO_BROADCAST: u32 = 32; -pub const SO_PEERCRED: u32 = 64; -pub const SO_LINGER: u32 = 128; -pub const SO_OOBINLINE: u32 = 256; -pub const SO_REUSEPORT: u32 = 512; -pub const SO_BSDCOMPAT: u32 = 1024; -pub const SO_RCVLOWAT: u32 = 2048; -pub const SO_SNDLOWAT: u32 = 4096; -pub const SO_RCVTIMEO_OLD: u32 = 8192; -pub const SO_SNDTIMEO_OLD: u32 = 16384; -pub const SO_ACCEPTCONN: u32 = 32768; -pub const SO_SNDBUF: u32 = 4097; -pub const SO_RCVBUF: u32 = 4098; -pub const SO_SNDBUFFORCE: u32 = 4106; -pub const SO_RCVBUFFORCE: u32 = 4107; -pub const SO_ERROR: u32 = 4103; -pub const SO_TYPE: u32 = 4104; -pub const SO_PROTOCOL: u32 = 4136; -pub const SO_DOMAIN: u32 = 4137; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_BINDTODEVICE: u32 = 13; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_PEERSEC: u32 = 30; -pub const SO_PASSSEC: u32 = 31; -pub const SO_MARK: u32 = 34; -pub const SO_RXQ_OVFL: u32 = 36; -pub const SO_WIFI_STATUS: u32 = 37; -pub const SCM_WIFI_STATUS: u32 = 37; -pub const SO_PEEK_OFF: u32 = 38; -pub const SO_NOFCS: u32 = 39; -pub const SO_LOCK_FILTER: u32 = 40; -pub const SO_SELECT_ERR_QUEUE: u32 = 41; -pub const SO_BUSY_POLL: u32 = 48; -pub const SO_MAX_PACING_RATE: u32 = 49; -pub const SO_BPF_EXTENSIONS: u32 = 50; -pub const SO_INCOMING_CPU: u32 = 51; -pub const SO_ATTACH_BPF: u32 = 52; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 53; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 54; -pub const SO_CNX_ADVICE: u32 = 55; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 56; -pub const SO_MEMINFO: u32 = 57; -pub const SO_INCOMING_NAPI_ID: u32 = 58; -pub const SO_COOKIE: u32 = 59; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 60; -pub const SO_PEERGROUPS: u32 = 61; -pub const SO_ZEROCOPY: u32 = 62; -pub const SO_TXTIME: u32 = 63; -pub const SCM_TXTIME: u32 = 63; -pub const SO_BINDTOIFINDEX: u32 = 65; -pub const SO_SECURITY_AUTHENTICATION: u32 = 20481; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 20482; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 20484; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 33; -pub const SO_TIMESTAMPING_OLD: u32 = 35; -pub const SO_TIMESTAMP_NEW: u32 = 70; -pub const SO_TIMESTAMPNS_NEW: u32 = 66; -pub const SO_TIMESTAMPING_NEW: u32 = 67; -pub const SO_RCVTIMEO_NEW: u32 = 68; -pub const SO_SNDTIMEO_NEW: u32 = 69; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 71; -pub const SO_PREFER_BUSY_POLL: u32 = 72; -pub const SO_BUSY_POLL_BUDGET: u32 = 73; -pub const SO_NETNS_COOKIE: u32 = 80; -pub const SO_BUF_LOCK: u32 = 81; -pub const SO_RESERVE_MEM: u32 = 82; -pub const SO_TXREHASH: u32 = 83; -pub const SO_RCVMARK: u32 = 84; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 33; -pub const SO_TIMESTAMPING: u32 = 35; -pub const SO_RCVTIMEO: u32 = 8192; -pub const SO_SNDTIMEO: u32 = 16384; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 33; -pub const SCM_TIMESTAMPING: u32 = 35; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 8388608, -TCP_FLAG_ECE = 4194304, -TCP_FLAG_URG = 2097152, -TCP_FLAG_ACK = 1048576, -TCP_FLAG_PSH = 524288, -TCP_FLAG_RST = 262144, -TCP_FLAG_SYN = 131072, -TCP_FLAG_FIN = 65536, -TCP_RESERVED_BITS = 251658240, -TCP_DATA_OFFSET = 4026531840, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/sparc64/netlink.rs b/third_party/rust/linux-raw-sys/src/sparc64/netlink.rs deleted file mode 100644 index b46b0e322a8c..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/netlink.rs +++ /dev/null @@ -1,2860 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_suseconds_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/sparc64/prctl.rs b/third_party/rust/linux-raw-sys/src/sparc64/prctl.rs deleted file mode 100644 index 871e782d50f0..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/prctl.rs +++ /dev/null @@ -1,227 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_suseconds_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/sparc64/system.rs b/third_party/rust/linux-raw-sys/src/sparc64/system.rs deleted file mode 100644 index 60935255a238..000000000000 --- a/third_party/rust/linux-raw-sys/src/sparc64/system.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_suseconds_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_dev_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/x32/errno.rs b/third_party/rust/linux-raw-sys/src/x32/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/x32/general.rs b/third_party/rust/linux-raw-sys/src/x32/general.rs deleted file mode 100644 index c23588f13f16..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/general.rs +++ /dev/null @@ -1,2864 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_longlong; -pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type __kernel_si_clock_t = crate::ctypes::c_longlong; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_si_clock_t, -pub _stime: __kernel_si_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: __kernel_ulong_t, -pub st_ino: __kernel_ulong_t, -pub st_nlink: __kernel_ulong_t, -pub st_mode: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub __pad0: crate::ctypes::c_uint, -pub st_rdev: __kernel_ulong_t, -pub st_size: __kernel_long_t, -pub st_blksize: __kernel_long_t, -pub st_blocks: __kernel_long_t, -pub st_atime: __kernel_ulong_t, -pub st_atime_nsec: __kernel_ulong_t, -pub st_mtime: __kernel_ulong_t, -pub st_mtime_nsec: __kernel_ulong_t, -pub st_ctime: __kernel_ulong_t, -pub st_ctime_nsec: __kernel_ulong_t, -pub __unused: [__kernel_long_t; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __old_kernel_stat { -pub st_dev: crate::ctypes::c_ushort, -pub st_ino: crate::ctypes::c_ushort, -pub st_mode: crate::ctypes::c_ushort, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_uint, -pub st_atime: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u32, -pub f_bfree: __u32, -pub f_bavail: __u32, -pub f_files: __u32, -pub f_ffree: __u32, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 3; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const MAP_32BIT: u32 = 64; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __X32_SYSCALL_BIT: u32 = 1073741824; -pub const __NR_read: u32 = 1073741824; -pub const __NR_write: u32 = 1073741825; -pub const __NR_open: u32 = 1073741826; -pub const __NR_close: u32 = 1073741827; -pub const __NR_stat: u32 = 1073741828; -pub const __NR_fstat: u32 = 1073741829; -pub const __NR_lstat: u32 = 1073741830; -pub const __NR_poll: u32 = 1073741831; -pub const __NR_lseek: u32 = 1073741832; -pub const __NR_mmap: u32 = 1073741833; -pub const __NR_mprotect: u32 = 1073741834; -pub const __NR_munmap: u32 = 1073741835; -pub const __NR_brk: u32 = 1073741836; -pub const __NR_rt_sigprocmask: u32 = 1073741838; -pub const __NR_pread64: u32 = 1073741841; -pub const __NR_pwrite64: u32 = 1073741842; -pub const __NR_access: u32 = 1073741845; -pub const __NR_pipe: u32 = 1073741846; -pub const __NR_select: u32 = 1073741847; -pub const __NR_sched_yield: u32 = 1073741848; -pub const __NR_mremap: u32 = 1073741849; -pub const __NR_msync: u32 = 1073741850; -pub const __NR_mincore: u32 = 1073741851; -pub const __NR_madvise: u32 = 1073741852; -pub const __NR_shmget: u32 = 1073741853; -pub const __NR_shmat: u32 = 1073741854; -pub const __NR_shmctl: u32 = 1073741855; -pub const __NR_dup: u32 = 1073741856; -pub const __NR_dup2: u32 = 1073741857; -pub const __NR_pause: u32 = 1073741858; -pub const __NR_nanosleep: u32 = 1073741859; -pub const __NR_getitimer: u32 = 1073741860; -pub const __NR_alarm: u32 = 1073741861; -pub const __NR_setitimer: u32 = 1073741862; -pub const __NR_getpid: u32 = 1073741863; -pub const __NR_sendfile: u32 = 1073741864; -pub const __NR_socket: u32 = 1073741865; -pub const __NR_connect: u32 = 1073741866; -pub const __NR_accept: u32 = 1073741867; -pub const __NR_sendto: u32 = 1073741868; -pub const __NR_shutdown: u32 = 1073741872; -pub const __NR_bind: u32 = 1073741873; -pub const __NR_listen: u32 = 1073741874; -pub const __NR_getsockname: u32 = 1073741875; -pub const __NR_getpeername: u32 = 1073741876; -pub const __NR_socketpair: u32 = 1073741877; -pub const __NR_clone: u32 = 1073741880; -pub const __NR_fork: u32 = 1073741881; -pub const __NR_vfork: u32 = 1073741882; -pub const __NR_exit: u32 = 1073741884; -pub const __NR_wait4: u32 = 1073741885; -pub const __NR_kill: u32 = 1073741886; -pub const __NR_uname: u32 = 1073741887; -pub const __NR_semget: u32 = 1073741888; -pub const __NR_semop: u32 = 1073741889; -pub const __NR_semctl: u32 = 1073741890; -pub const __NR_shmdt: u32 = 1073741891; -pub const __NR_msgget: u32 = 1073741892; -pub const __NR_msgsnd: u32 = 1073741893; -pub const __NR_msgrcv: u32 = 1073741894; -pub const __NR_msgctl: u32 = 1073741895; -pub const __NR_fcntl: u32 = 1073741896; -pub const __NR_flock: u32 = 1073741897; -pub const __NR_fsync: u32 = 1073741898; -pub const __NR_fdatasync: u32 = 1073741899; -pub const __NR_truncate: u32 = 1073741900; -pub const __NR_ftruncate: u32 = 1073741901; -pub const __NR_getdents: u32 = 1073741902; -pub const __NR_getcwd: u32 = 1073741903; -pub const __NR_chdir: u32 = 1073741904; -pub const __NR_fchdir: u32 = 1073741905; -pub const __NR_rename: u32 = 1073741906; -pub const __NR_mkdir: u32 = 1073741907; -pub const __NR_rmdir: u32 = 1073741908; -pub const __NR_creat: u32 = 1073741909; -pub const __NR_link: u32 = 1073741910; -pub const __NR_unlink: u32 = 1073741911; -pub const __NR_symlink: u32 = 1073741912; -pub const __NR_readlink: u32 = 1073741913; -pub const __NR_chmod: u32 = 1073741914; -pub const __NR_fchmod: u32 = 1073741915; -pub const __NR_chown: u32 = 1073741916; -pub const __NR_fchown: u32 = 1073741917; -pub const __NR_lchown: u32 = 1073741918; -pub const __NR_umask: u32 = 1073741919; -pub const __NR_gettimeofday: u32 = 1073741920; -pub const __NR_getrlimit: u32 = 1073741921; -pub const __NR_getrusage: u32 = 1073741922; -pub const __NR_sysinfo: u32 = 1073741923; -pub const __NR_times: u32 = 1073741924; -pub const __NR_getuid: u32 = 1073741926; -pub const __NR_syslog: u32 = 1073741927; -pub const __NR_getgid: u32 = 1073741928; -pub const __NR_setuid: u32 = 1073741929; -pub const __NR_setgid: u32 = 1073741930; -pub const __NR_geteuid: u32 = 1073741931; -pub const __NR_getegid: u32 = 1073741932; -pub const __NR_setpgid: u32 = 1073741933; -pub const __NR_getppid: u32 = 1073741934; -pub const __NR_getpgrp: u32 = 1073741935; -pub const __NR_setsid: u32 = 1073741936; -pub const __NR_setreuid: u32 = 1073741937; -pub const __NR_setregid: u32 = 1073741938; -pub const __NR_getgroups: u32 = 1073741939; -pub const __NR_setgroups: u32 = 1073741940; -pub const __NR_setresuid: u32 = 1073741941; -pub const __NR_getresuid: u32 = 1073741942; -pub const __NR_setresgid: u32 = 1073741943; -pub const __NR_getresgid: u32 = 1073741944; -pub const __NR_getpgid: u32 = 1073741945; -pub const __NR_setfsuid: u32 = 1073741946; -pub const __NR_setfsgid: u32 = 1073741947; -pub const __NR_getsid: u32 = 1073741948; -pub const __NR_capget: u32 = 1073741949; -pub const __NR_capset: u32 = 1073741950; -pub const __NR_rt_sigsuspend: u32 = 1073741954; -pub const __NR_utime: u32 = 1073741956; -pub const __NR_mknod: u32 = 1073741957; -pub const __NR_personality: u32 = 1073741959; -pub const __NR_ustat: u32 = 1073741960; -pub const __NR_statfs: u32 = 1073741961; -pub const __NR_fstatfs: u32 = 1073741962; -pub const __NR_sysfs: u32 = 1073741963; -pub const __NR_getpriority: u32 = 1073741964; -pub const __NR_setpriority: u32 = 1073741965; -pub const __NR_sched_setparam: u32 = 1073741966; -pub const __NR_sched_getparam: u32 = 1073741967; -pub const __NR_sched_setscheduler: u32 = 1073741968; -pub const __NR_sched_getscheduler: u32 = 1073741969; -pub const __NR_sched_get_priority_max: u32 = 1073741970; -pub const __NR_sched_get_priority_min: u32 = 1073741971; -pub const __NR_sched_rr_get_interval: u32 = 1073741972; -pub const __NR_mlock: u32 = 1073741973; -pub const __NR_munlock: u32 = 1073741974; -pub const __NR_mlockall: u32 = 1073741975; -pub const __NR_munlockall: u32 = 1073741976; -pub const __NR_vhangup: u32 = 1073741977; -pub const __NR_modify_ldt: u32 = 1073741978; -pub const __NR_pivot_root: u32 = 1073741979; -pub const __NR_prctl: u32 = 1073741981; -pub const __NR_arch_prctl: u32 = 1073741982; -pub const __NR_adjtimex: u32 = 1073741983; -pub const __NR_setrlimit: u32 = 1073741984; -pub const __NR_chroot: u32 = 1073741985; -pub const __NR_sync: u32 = 1073741986; -pub const __NR_acct: u32 = 1073741987; -pub const __NR_settimeofday: u32 = 1073741988; -pub const __NR_mount: u32 = 1073741989; -pub const __NR_umount2: u32 = 1073741990; -pub const __NR_swapon: u32 = 1073741991; -pub const __NR_swapoff: u32 = 1073741992; -pub const __NR_reboot: u32 = 1073741993; -pub const __NR_sethostname: u32 = 1073741994; -pub const __NR_setdomainname: u32 = 1073741995; -pub const __NR_iopl: u32 = 1073741996; -pub const __NR_ioperm: u32 = 1073741997; -pub const __NR_init_module: u32 = 1073741999; -pub const __NR_delete_module: u32 = 1073742000; -pub const __NR_quotactl: u32 = 1073742003; -pub const __NR_getpmsg: u32 = 1073742005; -pub const __NR_putpmsg: u32 = 1073742006; -pub const __NR_afs_syscall: u32 = 1073742007; -pub const __NR_tuxcall: u32 = 1073742008; -pub const __NR_security: u32 = 1073742009; -pub const __NR_gettid: u32 = 1073742010; -pub const __NR_readahead: u32 = 1073742011; -pub const __NR_setxattr: u32 = 1073742012; -pub const __NR_lsetxattr: u32 = 1073742013; -pub const __NR_fsetxattr: u32 = 1073742014; -pub const __NR_getxattr: u32 = 1073742015; -pub const __NR_lgetxattr: u32 = 1073742016; -pub const __NR_fgetxattr: u32 = 1073742017; -pub const __NR_listxattr: u32 = 1073742018; -pub const __NR_llistxattr: u32 = 1073742019; -pub const __NR_flistxattr: u32 = 1073742020; -pub const __NR_removexattr: u32 = 1073742021; -pub const __NR_lremovexattr: u32 = 1073742022; -pub const __NR_fremovexattr: u32 = 1073742023; -pub const __NR_tkill: u32 = 1073742024; -pub const __NR_time: u32 = 1073742025; -pub const __NR_futex: u32 = 1073742026; -pub const __NR_sched_setaffinity: u32 = 1073742027; -pub const __NR_sched_getaffinity: u32 = 1073742028; -pub const __NR_io_destroy: u32 = 1073742031; -pub const __NR_io_getevents: u32 = 1073742032; -pub const __NR_io_cancel: u32 = 1073742034; -pub const __NR_lookup_dcookie: u32 = 1073742036; -pub const __NR_epoll_create: u32 = 1073742037; -pub const __NR_remap_file_pages: u32 = 1073742040; -pub const __NR_getdents64: u32 = 1073742041; -pub const __NR_set_tid_address: u32 = 1073742042; -pub const __NR_restart_syscall: u32 = 1073742043; -pub const __NR_semtimedop: u32 = 1073742044; -pub const __NR_fadvise64: u32 = 1073742045; -pub const __NR_timer_settime: u32 = 1073742047; -pub const __NR_timer_gettime: u32 = 1073742048; -pub const __NR_timer_getoverrun: u32 = 1073742049; -pub const __NR_timer_delete: u32 = 1073742050; -pub const __NR_clock_settime: u32 = 1073742051; -pub const __NR_clock_gettime: u32 = 1073742052; -pub const __NR_clock_getres: u32 = 1073742053; -pub const __NR_clock_nanosleep: u32 = 1073742054; -pub const __NR_exit_group: u32 = 1073742055; -pub const __NR_epoll_wait: u32 = 1073742056; -pub const __NR_epoll_ctl: u32 = 1073742057; -pub const __NR_tgkill: u32 = 1073742058; -pub const __NR_utimes: u32 = 1073742059; -pub const __NR_mbind: u32 = 1073742061; -pub const __NR_set_mempolicy: u32 = 1073742062; -pub const __NR_get_mempolicy: u32 = 1073742063; -pub const __NR_mq_open: u32 = 1073742064; -pub const __NR_mq_unlink: u32 = 1073742065; -pub const __NR_mq_timedsend: u32 = 1073742066; -pub const __NR_mq_timedreceive: u32 = 1073742067; -pub const __NR_mq_getsetattr: u32 = 1073742069; -pub const __NR_add_key: u32 = 1073742072; -pub const __NR_request_key: u32 = 1073742073; -pub const __NR_keyctl: u32 = 1073742074; -pub const __NR_ioprio_set: u32 = 1073742075; -pub const __NR_ioprio_get: u32 = 1073742076; -pub const __NR_inotify_init: u32 = 1073742077; -pub const __NR_inotify_add_watch: u32 = 1073742078; -pub const __NR_inotify_rm_watch: u32 = 1073742079; -pub const __NR_migrate_pages: u32 = 1073742080; -pub const __NR_openat: u32 = 1073742081; -pub const __NR_mkdirat: u32 = 1073742082; -pub const __NR_mknodat: u32 = 1073742083; -pub const __NR_fchownat: u32 = 1073742084; -pub const __NR_futimesat: u32 = 1073742085; -pub const __NR_newfstatat: u32 = 1073742086; -pub const __NR_unlinkat: u32 = 1073742087; -pub const __NR_renameat: u32 = 1073742088; -pub const __NR_linkat: u32 = 1073742089; -pub const __NR_symlinkat: u32 = 1073742090; -pub const __NR_readlinkat: u32 = 1073742091; -pub const __NR_fchmodat: u32 = 1073742092; -pub const __NR_faccessat: u32 = 1073742093; -pub const __NR_pselect6: u32 = 1073742094; -pub const __NR_ppoll: u32 = 1073742095; -pub const __NR_unshare: u32 = 1073742096; -pub const __NR_splice: u32 = 1073742099; -pub const __NR_tee: u32 = 1073742100; -pub const __NR_sync_file_range: u32 = 1073742101; -pub const __NR_utimensat: u32 = 1073742104; -pub const __NR_epoll_pwait: u32 = 1073742105; -pub const __NR_signalfd: u32 = 1073742106; -pub const __NR_timerfd_create: u32 = 1073742107; -pub const __NR_eventfd: u32 = 1073742108; -pub const __NR_fallocate: u32 = 1073742109; -pub const __NR_timerfd_settime: u32 = 1073742110; -pub const __NR_timerfd_gettime: u32 = 1073742111; -pub const __NR_accept4: u32 = 1073742112; -pub const __NR_signalfd4: u32 = 1073742113; -pub const __NR_eventfd2: u32 = 1073742114; -pub const __NR_epoll_create1: u32 = 1073742115; -pub const __NR_dup3: u32 = 1073742116; -pub const __NR_pipe2: u32 = 1073742117; -pub const __NR_inotify_init1: u32 = 1073742118; -pub const __NR_perf_event_open: u32 = 1073742122; -pub const __NR_fanotify_init: u32 = 1073742124; -pub const __NR_fanotify_mark: u32 = 1073742125; -pub const __NR_prlimit64: u32 = 1073742126; -pub const __NR_name_to_handle_at: u32 = 1073742127; -pub const __NR_open_by_handle_at: u32 = 1073742128; -pub const __NR_clock_adjtime: u32 = 1073742129; -pub const __NR_syncfs: u32 = 1073742130; -pub const __NR_setns: u32 = 1073742132; -pub const __NR_getcpu: u32 = 1073742133; -pub const __NR_kcmp: u32 = 1073742136; -pub const __NR_finit_module: u32 = 1073742137; -pub const __NR_sched_setattr: u32 = 1073742138; -pub const __NR_sched_getattr: u32 = 1073742139; -pub const __NR_renameat2: u32 = 1073742140; -pub const __NR_seccomp: u32 = 1073742141; -pub const __NR_getrandom: u32 = 1073742142; -pub const __NR_memfd_create: u32 = 1073742143; -pub const __NR_kexec_file_load: u32 = 1073742144; -pub const __NR_bpf: u32 = 1073742145; -pub const __NR_userfaultfd: u32 = 1073742147; -pub const __NR_membarrier: u32 = 1073742148; -pub const __NR_mlock2: u32 = 1073742149; -pub const __NR_copy_file_range: u32 = 1073742150; -pub const __NR_pkey_mprotect: u32 = 1073742153; -pub const __NR_pkey_alloc: u32 = 1073742154; -pub const __NR_pkey_free: u32 = 1073742155; -pub const __NR_statx: u32 = 1073742156; -pub const __NR_io_pgetevents: u32 = 1073742157; -pub const __NR_rseq: u32 = 1073742158; -pub const __NR_pidfd_send_signal: u32 = 1073742248; -pub const __NR_io_uring_setup: u32 = 1073742249; -pub const __NR_io_uring_enter: u32 = 1073742250; -pub const __NR_io_uring_register: u32 = 1073742251; -pub const __NR_open_tree: u32 = 1073742252; -pub const __NR_move_mount: u32 = 1073742253; -pub const __NR_fsopen: u32 = 1073742254; -pub const __NR_fsconfig: u32 = 1073742255; -pub const __NR_fsmount: u32 = 1073742256; -pub const __NR_fspick: u32 = 1073742257; -pub const __NR_pidfd_open: u32 = 1073742258; -pub const __NR_clone3: u32 = 1073742259; -pub const __NR_close_range: u32 = 1073742260; -pub const __NR_openat2: u32 = 1073742261; -pub const __NR_pidfd_getfd: u32 = 1073742262; -pub const __NR_faccessat2: u32 = 1073742263; -pub const __NR_process_madvise: u32 = 1073742264; -pub const __NR_epoll_pwait2: u32 = 1073742265; -pub const __NR_mount_setattr: u32 = 1073742266; -pub const __NR_quotactl_fd: u32 = 1073742267; -pub const __NR_landlock_create_ruleset: u32 = 1073742268; -pub const __NR_landlock_add_rule: u32 = 1073742269; -pub const __NR_landlock_restrict_self: u32 = 1073742270; -pub const __NR_memfd_secret: u32 = 1073742271; -pub const __NR_process_mrelease: u32 = 1073742272; -pub const __NR_futex_waitv: u32 = 1073742273; -pub const __NR_set_mempolicy_home_node: u32 = 1073742274; -pub const __NR_rt_sigaction: u32 = 1073742336; -pub const __NR_rt_sigreturn: u32 = 1073742337; -pub const __NR_ioctl: u32 = 1073742338; -pub const __NR_readv: u32 = 1073742339; -pub const __NR_writev: u32 = 1073742340; -pub const __NR_recvfrom: u32 = 1073742341; -pub const __NR_sendmsg: u32 = 1073742342; -pub const __NR_recvmsg: u32 = 1073742343; -pub const __NR_execve: u32 = 1073742344; -pub const __NR_ptrace: u32 = 1073742345; -pub const __NR_rt_sigpending: u32 = 1073742346; -pub const __NR_rt_sigtimedwait: u32 = 1073742347; -pub const __NR_rt_sigqueueinfo: u32 = 1073742348; -pub const __NR_sigaltstack: u32 = 1073742349; -pub const __NR_timer_create: u32 = 1073742350; -pub const __NR_mq_notify: u32 = 1073742351; -pub const __NR_kexec_load: u32 = 1073742352; -pub const __NR_waitid: u32 = 1073742353; -pub const __NR_set_robust_list: u32 = 1073742354; -pub const __NR_get_robust_list: u32 = 1073742355; -pub const __NR_vmsplice: u32 = 1073742356; -pub const __NR_move_pages: u32 = 1073742357; -pub const __NR_preadv: u32 = 1073742358; -pub const __NR_pwritev: u32 = 1073742359; -pub const __NR_rt_tgsigqueueinfo: u32 = 1073742360; -pub const __NR_recvmmsg: u32 = 1073742361; -pub const __NR_sendmmsg: u32 = 1073742362; -pub const __NR_process_vm_readv: u32 = 1073742363; -pub const __NR_process_vm_writev: u32 = 1073742364; -pub const __NR_setsockopt: u32 = 1073742365; -pub const __NR_getsockopt: u32 = 1073742366; -pub const __NR_io_setup: u32 = 1073742367; -pub const __NR_io_submit: u32 = 1073742368; -pub const __NR_execveat: u32 = 1073742369; -pub const __NR_preadv2: u32 = 1073742370; -pub const __NR_pwritev2: u32 = 1073742371; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const ARCH_SET_FS: u32 = 4098; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -pub const _NSIG: u32 = 64; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn lm(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } -} -#[inline] -pub fn set_lm(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint, lm: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit.set(7usize, 1u8, { -let lm: u32 = unsafe { ::core::mem::transmute(lm) }; -lm as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/x32/if_ether.rs b/third_party/rust/linux-raw-sys/src/x32/if_ether.rs deleted file mode 100644 index 64a4046cdc74..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_longlong; -pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/x32/io_uring.rs b/third_party/rust/linux-raw-sys/src/x32/io_uring.rs deleted file mode 100644 index 1518a8ecc427..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/io_uring.rs +++ /dev/null @@ -1,1083 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_longlong; -pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/x32/ioctl.rs b/third_party/rust/linux-raw-sys/src/x32/ioctl.rs deleted file mode 100644 index b182418daff5..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/ioctl.rs +++ /dev/null @@ -1,1593 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21600; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2150657282; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2148012656; -pub const BLKBSZSET: u32 = 1074270833; -pub const BLKGETSIZE64: u32 = 2148012658; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2148034049; -pub const FS_IOC_SETFLAGS: u32 = 1074292226; -pub const FS_IOC_GETVERSION: u32 = 2148038145; -pub const FS_IOC_SETVERSION: u32 = 1074296322; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2148034051; -pub const EXT4_IOC_SETVERSION: u32 = 1074292228; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; -pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074815370; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const KVM_SET_BOOT_CPU_ID: u32 = 44664; -pub const KVM_SET_MP_STATE: u32 = 1074048665; -pub const KVM_GET_MP_STATE: u32 = 2147790488; -pub const KVM_GET_API_VERSION: u32 = 44544; -pub const KVM_S390_GET_SKEYS: u32 = 1077980850; -pub const KVM_SET_ONE_REG: u32 = 1074835116; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 1075883590; -pub const KVM_S390_INTERRUPT: u32 = 1074835092; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 2174791308; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 1074835060; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 2148576955; -pub const KVM_S390_UCAS_MAP: u32 = 1075359312; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 1077980836; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221794490; -pub const KVM_CREATE_PIT2: u32 = 1077980791; -pub const KVM_S390_VCPU_FAULT: u32 = 1074310738; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 1074835047; -pub const KVM_SET_VAPIC_ADDR: u32 = 1074310803; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 1074835094; -pub const KVM_X86_SETUP_MCE: u32 = 1074310812; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 1077980786; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 1078505161; -pub const KVM_GET_CLOCK: u32 = 2150674044; -pub const KVM_SET_FPU: u32 = 1101049485; -pub const KVM_KVMCLOCK_CTRL: u32 = 44717; -pub const KVM_PPC_GET_PVINFO: u32 = 1082175137; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 2148052637; -pub const KVM_S390_GET_IRQ_STATE: u32 = 1075883702; -pub const KVM_GET_DEVICE_ATTR: u32 = 1075359458; -pub const KVM_S390_INITIAL_RESET: u32 = 44695; -pub const KVM_SET_REGS: u32 = 1083223682; -pub const KVM_GET_TSC_KHZ: u32 = 44707; -pub const KVM_CHECK_EXTENSION: u32 = 44547; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 2148576942; -pub const KVM_GET_DIRTY_LOG: u32 = 1074835010; -pub const KVM_S390_SET_IRQ_STATE: u32 = 1075883701; -pub const KVM_S390_NORMAL_RESET: u32 = 44739; -pub const KVM_SET_SIGNAL_MASK: u32 = 1074048651; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 1078505163; -pub const KVM_SET_GSI_ROUTING: u32 = 1074310762; -pub const KVM_CREATE_VCPU: u32 = 44609; -pub const KVM_S390_UCAS_UNMAP: u32 = 1075359313; -pub const KVM_S390_STORE_STATUS: u32 = 1074310805; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 1074835048; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 1077980784; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 44550; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 1074835115; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 1074835115; -pub const KVM_DIRTY_TLB: u32 = 1074835114; -pub const KVM_NMI: u32 = 44698; -pub const KVM_HYPERV_EVENTFD: u32 = 1075359421; -pub const KVM_S390_MEM_OP: u32 = 1077980849; -pub const KVM_PPC_SVM_OFF: u32 = 44723; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 2148576941; -pub const KVM_INTERRUPT: u32 = 1074048646; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 2167975555; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 1074310728; -pub const KVM_GET_REGS: u32 = 2156965505; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 44640; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 2151722601; -pub const KVM_SET_NR_MMU_PAGES: u32 = 44612; -pub const KVM_IOEVENTFD: u32 = 1077980793; -pub const KVM_RUN: u32 = 44672; -pub const KVM_S390_SET_SKEYS: u32 = 1077980851; -pub const KVM_SET_DEVICE_ATTR: u32 = 1075359457; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 1077980789; -pub const KVM_SMI: u32 = 44727; -pub const KVM_SET_TSS_ADDR: u32 = 44615; -pub const KVM_GET_NR_MMU_PAGES: u32 = 44613; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 44657; -pub const KVM_HAS_DEVICE_ATTR: u32 = 1075359459; -pub const KVM_IRQFD: u32 = 1075883638; -pub const KVM_S390_SET_CMMA_BITS: u32 = 1075883705; -pub const KVM_SET_IRQCHIP: u32 = 2181607011; -pub const KVM_SIGNAL_MSI: u32 = 1075883685; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 44548; -pub const KVM_CREATE_VM: u32 = 44545; -pub const KVM_S390_CLEAR_RESET: u32 = 44740; -pub const KVM_RESET_DIRTY_RINGS: u32 = 44743; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 1074310771; -pub const KVM_CREATE_PIT: u32 = 44644; -pub const KVM_SET_GUEST_DEBUG: u32 = 1078505115; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 1074048706; -pub const KVM_SET_CLOCK: u32 = 1076932219; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 2186325670; -pub const KVM_SET_TSC_KHZ: u32 = 44706; -pub const KVM_S390_IRQ: u32 = 1078505140; -pub const KVM_ENABLE_CAP: u32 = 1080602275; -pub const KVM_IRQ_LINE: u32 = 1074310753; -pub const KVM_SET_SREGS: u32 = 1094233732; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 2148576956; -pub const KVM_GET_STATS_FD: u32 = 44750; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2156418649; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148561045; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149581316; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2148036621; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074331138; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; -pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074815373; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; -pub const PMU_IOC_GET_MODEL: u32 = 2148024835; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2155872785; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2148035841; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074815316; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150651402; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074812118; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149609489; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076905344; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2148035649; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074819222; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2148035650; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 1074815371; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2148017159; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074292742; -pub const ATM_GETESI: u32 = 1074815365; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2148036769; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2151175434; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078498342; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075839555; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074294785; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074815752; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074815314; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074820166; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074318593; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148559116; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074295041; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080579529; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2152727058; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074815364; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1082131088; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074291706; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; -pub const MTIOCPOS: u32 = 2148035843; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2149083139; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074820167; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2148036771; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075867666; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; -pub const FDSETPRM: u32 = 1075839554; -pub const ATM_GETSTATZ: u32 = 1074815313; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074286598; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2148036619; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148553947; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2148025993; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074815312; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074812117; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; -pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2148024836; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076909579; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2148033281; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074286597; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074287884; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148561983; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074815363; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074294949; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074287980; -pub const FDWERRORGET: u32 = 2150105623; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2152727059; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074815361; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074820173; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2150105621; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074294946; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074815372; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074294796; -pub const PCITEST_WRITE: u32 = 1074286596; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2148035842; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074291201; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2148035849; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/third_party/rust/linux-raw-sys/src/x32/net.rs b/third_party/rust/linux-raw-sys/src/x32/net.rs deleted file mode 100644 index d48dfc2693e6..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/net.rs +++ /dev/null @@ -1,1844 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_longlong; -pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/x32/netlink.rs b/third_party/rust/linux-raw-sys/src/x32/netlink.rs deleted file mode 100644 index cdb5ca9ea334..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_longlong; -pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/x32/prctl.rs b/third_party/rust/linux-raw-sys/src/x32/prctl.rs deleted file mode 100644 index d4af81b44945..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_longlong; -pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/x32/system.rs b/third_party/rust/linux-raw-sys/src/x32/system.rs deleted file mode 100644 index f90c0a4edec5..000000000000 --- a/third_party/rust/linux-raw-sys/src/x32/system.rs +++ /dev/null @@ -1,129 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_long_t = crate::ctypes::c_longlong; -pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/linux-raw-sys/src/x86/errno.rs b/third_party/rust/linux-raw-sys/src/x86/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/x86/general.rs b/third_party/rust/linux-raw-sys/src/x86/general.rs deleted file mode 100644 index 68bc4ab4d6be..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/general.rs +++ /dev/null @@ -1,2968 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __u32; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { -pub _u: sigaction__bindgen_ty_1, -pub sa_mask: sigset_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 4usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 4usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulonglong, -pub d_off: crate::ctypes::c_longlong, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_ushort, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ulong, -pub st_size: crate::ctypes::c_ulong, -pub st_blksize: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub __unused4: crate::ctypes::c_ulong, -pub __unused5: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat64 { -pub st_dev: crate::ctypes::c_ulonglong, -pub __pad0: [crate::ctypes::c_uchar; 4usize], -pub __st_ino: crate::ctypes::c_ulong, -pub st_mode: crate::ctypes::c_uint, -pub st_nlink: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_ulong, -pub st_gid: crate::ctypes::c_ulong, -pub st_rdev: crate::ctypes::c_ulonglong, -pub __pad3: [crate::ctypes::c_uchar; 4usize], -pub st_size: crate::ctypes::c_longlong, -pub st_blksize: crate::ctypes::c_ulong, -pub st_blocks: crate::ctypes::c_ulonglong, -pub st_atime: crate::ctypes::c_ulong, -pub st_atime_nsec: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_mtime_nsec: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_ulong, -pub st_ctime_nsec: crate::ctypes::c_ulong, -pub st_ino: crate::ctypes::c_ulonglong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __old_kernel_stat { -pub st_dev: crate::ctypes::c_ushort, -pub st_ino: crate::ctypes::c_ushort, -pub st_mode: crate::ctypes::c_ushort, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_ulong, -pub st_atime: crate::ctypes::c_ulong, -pub st_mtime: crate::ctypes::c_ulong, -pub st_ctime: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u32, -pub f_bfree: __u32, -pub f_bavail: __u32, -pub f_files: __u32, -pub f_ffree: __u32, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO: u32 = 32; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 3; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const MAP_32BIT: u32 = 64; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __X32_SYSCALL_BIT: u32 = 1073741824; -pub const __NR_restart_syscall: u32 = 0; -pub const __NR_exit: u32 = 1; -pub const __NR_fork: u32 = 2; -pub const __NR_read: u32 = 3; -pub const __NR_write: u32 = 4; -pub const __NR_open: u32 = 5; -pub const __NR_close: u32 = 6; -pub const __NR_waitpid: u32 = 7; -pub const __NR_creat: u32 = 8; -pub const __NR_link: u32 = 9; -pub const __NR_unlink: u32 = 10; -pub const __NR_execve: u32 = 11; -pub const __NR_chdir: u32 = 12; -pub const __NR_time: u32 = 13; -pub const __NR_mknod: u32 = 14; -pub const __NR_chmod: u32 = 15; -pub const __NR_lchown: u32 = 16; -pub const __NR_break: u32 = 17; -pub const __NR_oldstat: u32 = 18; -pub const __NR_lseek: u32 = 19; -pub const __NR_getpid: u32 = 20; -pub const __NR_mount: u32 = 21; -pub const __NR_umount: u32 = 22; -pub const __NR_setuid: u32 = 23; -pub const __NR_getuid: u32 = 24; -pub const __NR_stime: u32 = 25; -pub const __NR_ptrace: u32 = 26; -pub const __NR_alarm: u32 = 27; -pub const __NR_oldfstat: u32 = 28; -pub const __NR_pause: u32 = 29; -pub const __NR_utime: u32 = 30; -pub const __NR_stty: u32 = 31; -pub const __NR_gtty: u32 = 32; -pub const __NR_access: u32 = 33; -pub const __NR_nice: u32 = 34; -pub const __NR_ftime: u32 = 35; -pub const __NR_sync: u32 = 36; -pub const __NR_kill: u32 = 37; -pub const __NR_rename: u32 = 38; -pub const __NR_mkdir: u32 = 39; -pub const __NR_rmdir: u32 = 40; -pub const __NR_dup: u32 = 41; -pub const __NR_pipe: u32 = 42; -pub const __NR_times: u32 = 43; -pub const __NR_prof: u32 = 44; -pub const __NR_brk: u32 = 45; -pub const __NR_setgid: u32 = 46; -pub const __NR_getgid: u32 = 47; -pub const __NR_signal: u32 = 48; -pub const __NR_geteuid: u32 = 49; -pub const __NR_getegid: u32 = 50; -pub const __NR_acct: u32 = 51; -pub const __NR_umount2: u32 = 52; -pub const __NR_lock: u32 = 53; -pub const __NR_ioctl: u32 = 54; -pub const __NR_fcntl: u32 = 55; -pub const __NR_mpx: u32 = 56; -pub const __NR_setpgid: u32 = 57; -pub const __NR_ulimit: u32 = 58; -pub const __NR_oldolduname: u32 = 59; -pub const __NR_umask: u32 = 60; -pub const __NR_chroot: u32 = 61; -pub const __NR_ustat: u32 = 62; -pub const __NR_dup2: u32 = 63; -pub const __NR_getppid: u32 = 64; -pub const __NR_getpgrp: u32 = 65; -pub const __NR_setsid: u32 = 66; -pub const __NR_sigaction: u32 = 67; -pub const __NR_sgetmask: u32 = 68; -pub const __NR_ssetmask: u32 = 69; -pub const __NR_setreuid: u32 = 70; -pub const __NR_setregid: u32 = 71; -pub const __NR_sigsuspend: u32 = 72; -pub const __NR_sigpending: u32 = 73; -pub const __NR_sethostname: u32 = 74; -pub const __NR_setrlimit: u32 = 75; -pub const __NR_getrlimit: u32 = 76; -pub const __NR_getrusage: u32 = 77; -pub const __NR_gettimeofday: u32 = 78; -pub const __NR_settimeofday: u32 = 79; -pub const __NR_getgroups: u32 = 80; -pub const __NR_setgroups: u32 = 81; -pub const __NR_select: u32 = 82; -pub const __NR_symlink: u32 = 83; -pub const __NR_oldlstat: u32 = 84; -pub const __NR_readlink: u32 = 85; -pub const __NR_uselib: u32 = 86; -pub const __NR_swapon: u32 = 87; -pub const __NR_reboot: u32 = 88; -pub const __NR_readdir: u32 = 89; -pub const __NR_mmap: u32 = 90; -pub const __NR_munmap: u32 = 91; -pub const __NR_truncate: u32 = 92; -pub const __NR_ftruncate: u32 = 93; -pub const __NR_fchmod: u32 = 94; -pub const __NR_fchown: u32 = 95; -pub const __NR_getpriority: u32 = 96; -pub const __NR_setpriority: u32 = 97; -pub const __NR_profil: u32 = 98; -pub const __NR_statfs: u32 = 99; -pub const __NR_fstatfs: u32 = 100; -pub const __NR_ioperm: u32 = 101; -pub const __NR_socketcall: u32 = 102; -pub const __NR_syslog: u32 = 103; -pub const __NR_setitimer: u32 = 104; -pub const __NR_getitimer: u32 = 105; -pub const __NR_stat: u32 = 106; -pub const __NR_lstat: u32 = 107; -pub const __NR_fstat: u32 = 108; -pub const __NR_olduname: u32 = 109; -pub const __NR_iopl: u32 = 110; -pub const __NR_vhangup: u32 = 111; -pub const __NR_idle: u32 = 112; -pub const __NR_vm86old: u32 = 113; -pub const __NR_wait4: u32 = 114; -pub const __NR_swapoff: u32 = 115; -pub const __NR_sysinfo: u32 = 116; -pub const __NR_ipc: u32 = 117; -pub const __NR_fsync: u32 = 118; -pub const __NR_sigreturn: u32 = 119; -pub const __NR_clone: u32 = 120; -pub const __NR_setdomainname: u32 = 121; -pub const __NR_uname: u32 = 122; -pub const __NR_modify_ldt: u32 = 123; -pub const __NR_adjtimex: u32 = 124; -pub const __NR_mprotect: u32 = 125; -pub const __NR_sigprocmask: u32 = 126; -pub const __NR_create_module: u32 = 127; -pub const __NR_init_module: u32 = 128; -pub const __NR_delete_module: u32 = 129; -pub const __NR_get_kernel_syms: u32 = 130; -pub const __NR_quotactl: u32 = 131; -pub const __NR_getpgid: u32 = 132; -pub const __NR_fchdir: u32 = 133; -pub const __NR_bdflush: u32 = 134; -pub const __NR_sysfs: u32 = 135; -pub const __NR_personality: u32 = 136; -pub const __NR_afs_syscall: u32 = 137; -pub const __NR_setfsuid: u32 = 138; -pub const __NR_setfsgid: u32 = 139; -pub const __NR__llseek: u32 = 140; -pub const __NR_getdents: u32 = 141; -pub const __NR__newselect: u32 = 142; -pub const __NR_flock: u32 = 143; -pub const __NR_msync: u32 = 144; -pub const __NR_readv: u32 = 145; -pub const __NR_writev: u32 = 146; -pub const __NR_getsid: u32 = 147; -pub const __NR_fdatasync: u32 = 148; -pub const __NR__sysctl: u32 = 149; -pub const __NR_mlock: u32 = 150; -pub const __NR_munlock: u32 = 151; -pub const __NR_mlockall: u32 = 152; -pub const __NR_munlockall: u32 = 153; -pub const __NR_sched_setparam: u32 = 154; -pub const __NR_sched_getparam: u32 = 155; -pub const __NR_sched_setscheduler: u32 = 156; -pub const __NR_sched_getscheduler: u32 = 157; -pub const __NR_sched_yield: u32 = 158; -pub const __NR_sched_get_priority_max: u32 = 159; -pub const __NR_sched_get_priority_min: u32 = 160; -pub const __NR_sched_rr_get_interval: u32 = 161; -pub const __NR_nanosleep: u32 = 162; -pub const __NR_mremap: u32 = 163; -pub const __NR_setresuid: u32 = 164; -pub const __NR_getresuid: u32 = 165; -pub const __NR_vm86: u32 = 166; -pub const __NR_query_module: u32 = 167; -pub const __NR_poll: u32 = 168; -pub const __NR_nfsservctl: u32 = 169; -pub const __NR_setresgid: u32 = 170; -pub const __NR_getresgid: u32 = 171; -pub const __NR_prctl: u32 = 172; -pub const __NR_rt_sigreturn: u32 = 173; -pub const __NR_rt_sigaction: u32 = 174; -pub const __NR_rt_sigprocmask: u32 = 175; -pub const __NR_rt_sigpending: u32 = 176; -pub const __NR_rt_sigtimedwait: u32 = 177; -pub const __NR_rt_sigqueueinfo: u32 = 178; -pub const __NR_rt_sigsuspend: u32 = 179; -pub const __NR_pread64: u32 = 180; -pub const __NR_pwrite64: u32 = 181; -pub const __NR_chown: u32 = 182; -pub const __NR_getcwd: u32 = 183; -pub const __NR_capget: u32 = 184; -pub const __NR_capset: u32 = 185; -pub const __NR_sigaltstack: u32 = 186; -pub const __NR_sendfile: u32 = 187; -pub const __NR_getpmsg: u32 = 188; -pub const __NR_putpmsg: u32 = 189; -pub const __NR_vfork: u32 = 190; -pub const __NR_ugetrlimit: u32 = 191; -pub const __NR_mmap2: u32 = 192; -pub const __NR_truncate64: u32 = 193; -pub const __NR_ftruncate64: u32 = 194; -pub const __NR_stat64: u32 = 195; -pub const __NR_lstat64: u32 = 196; -pub const __NR_fstat64: u32 = 197; -pub const __NR_lchown32: u32 = 198; -pub const __NR_getuid32: u32 = 199; -pub const __NR_getgid32: u32 = 200; -pub const __NR_geteuid32: u32 = 201; -pub const __NR_getegid32: u32 = 202; -pub const __NR_setreuid32: u32 = 203; -pub const __NR_setregid32: u32 = 204; -pub const __NR_getgroups32: u32 = 205; -pub const __NR_setgroups32: u32 = 206; -pub const __NR_fchown32: u32 = 207; -pub const __NR_setresuid32: u32 = 208; -pub const __NR_getresuid32: u32 = 209; -pub const __NR_setresgid32: u32 = 210; -pub const __NR_getresgid32: u32 = 211; -pub const __NR_chown32: u32 = 212; -pub const __NR_setuid32: u32 = 213; -pub const __NR_setgid32: u32 = 214; -pub const __NR_setfsuid32: u32 = 215; -pub const __NR_setfsgid32: u32 = 216; -pub const __NR_pivot_root: u32 = 217; -pub const __NR_mincore: u32 = 218; -pub const __NR_madvise: u32 = 219; -pub const __NR_getdents64: u32 = 220; -pub const __NR_fcntl64: u32 = 221; -pub const __NR_gettid: u32 = 224; -pub const __NR_readahead: u32 = 225; -pub const __NR_setxattr: u32 = 226; -pub const __NR_lsetxattr: u32 = 227; -pub const __NR_fsetxattr: u32 = 228; -pub const __NR_getxattr: u32 = 229; -pub const __NR_lgetxattr: u32 = 230; -pub const __NR_fgetxattr: u32 = 231; -pub const __NR_listxattr: u32 = 232; -pub const __NR_llistxattr: u32 = 233; -pub const __NR_flistxattr: u32 = 234; -pub const __NR_removexattr: u32 = 235; -pub const __NR_lremovexattr: u32 = 236; -pub const __NR_fremovexattr: u32 = 237; -pub const __NR_tkill: u32 = 238; -pub const __NR_sendfile64: u32 = 239; -pub const __NR_futex: u32 = 240; -pub const __NR_sched_setaffinity: u32 = 241; -pub const __NR_sched_getaffinity: u32 = 242; -pub const __NR_set_thread_area: u32 = 243; -pub const __NR_get_thread_area: u32 = 244; -pub const __NR_io_setup: u32 = 245; -pub const __NR_io_destroy: u32 = 246; -pub const __NR_io_getevents: u32 = 247; -pub const __NR_io_submit: u32 = 248; -pub const __NR_io_cancel: u32 = 249; -pub const __NR_fadvise64: u32 = 250; -pub const __NR_exit_group: u32 = 252; -pub const __NR_lookup_dcookie: u32 = 253; -pub const __NR_epoll_create: u32 = 254; -pub const __NR_epoll_ctl: u32 = 255; -pub const __NR_epoll_wait: u32 = 256; -pub const __NR_remap_file_pages: u32 = 257; -pub const __NR_set_tid_address: u32 = 258; -pub const __NR_timer_create: u32 = 259; -pub const __NR_timer_settime: u32 = 260; -pub const __NR_timer_gettime: u32 = 261; -pub const __NR_timer_getoverrun: u32 = 262; -pub const __NR_timer_delete: u32 = 263; -pub const __NR_clock_settime: u32 = 264; -pub const __NR_clock_gettime: u32 = 265; -pub const __NR_clock_getres: u32 = 266; -pub const __NR_clock_nanosleep: u32 = 267; -pub const __NR_statfs64: u32 = 268; -pub const __NR_fstatfs64: u32 = 269; -pub const __NR_tgkill: u32 = 270; -pub const __NR_utimes: u32 = 271; -pub const __NR_fadvise64_64: u32 = 272; -pub const __NR_vserver: u32 = 273; -pub const __NR_mbind: u32 = 274; -pub const __NR_get_mempolicy: u32 = 275; -pub const __NR_set_mempolicy: u32 = 276; -pub const __NR_mq_open: u32 = 277; -pub const __NR_mq_unlink: u32 = 278; -pub const __NR_mq_timedsend: u32 = 279; -pub const __NR_mq_timedreceive: u32 = 280; -pub const __NR_mq_notify: u32 = 281; -pub const __NR_mq_getsetattr: u32 = 282; -pub const __NR_kexec_load: u32 = 283; -pub const __NR_waitid: u32 = 284; -pub const __NR_add_key: u32 = 286; -pub const __NR_request_key: u32 = 287; -pub const __NR_keyctl: u32 = 288; -pub const __NR_ioprio_set: u32 = 289; -pub const __NR_ioprio_get: u32 = 290; -pub const __NR_inotify_init: u32 = 291; -pub const __NR_inotify_add_watch: u32 = 292; -pub const __NR_inotify_rm_watch: u32 = 293; -pub const __NR_migrate_pages: u32 = 294; -pub const __NR_openat: u32 = 295; -pub const __NR_mkdirat: u32 = 296; -pub const __NR_mknodat: u32 = 297; -pub const __NR_fchownat: u32 = 298; -pub const __NR_futimesat: u32 = 299; -pub const __NR_fstatat64: u32 = 300; -pub const __NR_unlinkat: u32 = 301; -pub const __NR_renameat: u32 = 302; -pub const __NR_linkat: u32 = 303; -pub const __NR_symlinkat: u32 = 304; -pub const __NR_readlinkat: u32 = 305; -pub const __NR_fchmodat: u32 = 306; -pub const __NR_faccessat: u32 = 307; -pub const __NR_pselect6: u32 = 308; -pub const __NR_ppoll: u32 = 309; -pub const __NR_unshare: u32 = 310; -pub const __NR_set_robust_list: u32 = 311; -pub const __NR_get_robust_list: u32 = 312; -pub const __NR_splice: u32 = 313; -pub const __NR_sync_file_range: u32 = 314; -pub const __NR_tee: u32 = 315; -pub const __NR_vmsplice: u32 = 316; -pub const __NR_move_pages: u32 = 317; -pub const __NR_getcpu: u32 = 318; -pub const __NR_epoll_pwait: u32 = 319; -pub const __NR_utimensat: u32 = 320; -pub const __NR_signalfd: u32 = 321; -pub const __NR_timerfd_create: u32 = 322; -pub const __NR_eventfd: u32 = 323; -pub const __NR_fallocate: u32 = 324; -pub const __NR_timerfd_settime: u32 = 325; -pub const __NR_timerfd_gettime: u32 = 326; -pub const __NR_signalfd4: u32 = 327; -pub const __NR_eventfd2: u32 = 328; -pub const __NR_epoll_create1: u32 = 329; -pub const __NR_dup3: u32 = 330; -pub const __NR_pipe2: u32 = 331; -pub const __NR_inotify_init1: u32 = 332; -pub const __NR_preadv: u32 = 333; -pub const __NR_pwritev: u32 = 334; -pub const __NR_rt_tgsigqueueinfo: u32 = 335; -pub const __NR_perf_event_open: u32 = 336; -pub const __NR_recvmmsg: u32 = 337; -pub const __NR_fanotify_init: u32 = 338; -pub const __NR_fanotify_mark: u32 = 339; -pub const __NR_prlimit64: u32 = 340; -pub const __NR_name_to_handle_at: u32 = 341; -pub const __NR_open_by_handle_at: u32 = 342; -pub const __NR_clock_adjtime: u32 = 343; -pub const __NR_syncfs: u32 = 344; -pub const __NR_sendmmsg: u32 = 345; -pub const __NR_setns: u32 = 346; -pub const __NR_process_vm_readv: u32 = 347; -pub const __NR_process_vm_writev: u32 = 348; -pub const __NR_kcmp: u32 = 349; -pub const __NR_finit_module: u32 = 350; -pub const __NR_sched_setattr: u32 = 351; -pub const __NR_sched_getattr: u32 = 352; -pub const __NR_renameat2: u32 = 353; -pub const __NR_seccomp: u32 = 354; -pub const __NR_getrandom: u32 = 355; -pub const __NR_memfd_create: u32 = 356; -pub const __NR_bpf: u32 = 357; -pub const __NR_execveat: u32 = 358; -pub const __NR_socket: u32 = 359; -pub const __NR_socketpair: u32 = 360; -pub const __NR_bind: u32 = 361; -pub const __NR_connect: u32 = 362; -pub const __NR_listen: u32 = 363; -pub const __NR_accept4: u32 = 364; -pub const __NR_getsockopt: u32 = 365; -pub const __NR_setsockopt: u32 = 366; -pub const __NR_getsockname: u32 = 367; -pub const __NR_getpeername: u32 = 368; -pub const __NR_sendto: u32 = 369; -pub const __NR_sendmsg: u32 = 370; -pub const __NR_recvfrom: u32 = 371; -pub const __NR_recvmsg: u32 = 372; -pub const __NR_shutdown: u32 = 373; -pub const __NR_userfaultfd: u32 = 374; -pub const __NR_membarrier: u32 = 375; -pub const __NR_mlock2: u32 = 376; -pub const __NR_copy_file_range: u32 = 377; -pub const __NR_preadv2: u32 = 378; -pub const __NR_pwritev2: u32 = 379; -pub const __NR_pkey_mprotect: u32 = 380; -pub const __NR_pkey_alloc: u32 = 381; -pub const __NR_pkey_free: u32 = 382; -pub const __NR_statx: u32 = 383; -pub const __NR_arch_prctl: u32 = 384; -pub const __NR_io_pgetevents: u32 = 385; -pub const __NR_rseq: u32 = 386; -pub const __NR_semget: u32 = 393; -pub const __NR_semctl: u32 = 394; -pub const __NR_shmget: u32 = 395; -pub const __NR_shmctl: u32 = 396; -pub const __NR_shmat: u32 = 397; -pub const __NR_shmdt: u32 = 398; -pub const __NR_msgget: u32 = 399; -pub const __NR_msgsnd: u32 = 400; -pub const __NR_msgrcv: u32 = 401; -pub const __NR_msgctl: u32 = 402; -pub const __NR_clock_gettime64: u32 = 403; -pub const __NR_clock_settime64: u32 = 404; -pub const __NR_clock_adjtime64: u32 = 405; -pub const __NR_clock_getres_time64: u32 = 406; -pub const __NR_clock_nanosleep_time64: u32 = 407; -pub const __NR_timer_gettime64: u32 = 408; -pub const __NR_timer_settime64: u32 = 409; -pub const __NR_timerfd_gettime64: u32 = 410; -pub const __NR_timerfd_settime64: u32 = 411; -pub const __NR_utimensat_time64: u32 = 412; -pub const __NR_pselect6_time64: u32 = 413; -pub const __NR_ppoll_time64: u32 = 414; -pub const __NR_io_pgetevents_time64: u32 = 416; -pub const __NR_recvmmsg_time64: u32 = 417; -pub const __NR_mq_timedsend_time64: u32 = 418; -pub const __NR_mq_timedreceive_time64: u32 = 419; -pub const __NR_semtimedop_time64: u32 = 420; -pub const __NR_rt_sigtimedwait_time64: u32 = 421; -pub const __NR_futex_time64: u32 = 422; -pub const __NR_sched_rr_get_interval_time64: u32 = 423; -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 WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const STAT64_HAS_BROKEN_ST_INO: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const ARCH_SET_FS: u32 = 4098; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -pub const _NSIG: u32 = 64; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { -pub _sa_handler: __sighandler_t, -pub _sa_sigaction: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 13usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/x86/if_ether.rs b/third_party/rust/linux-raw-sys/src/x86/if_ether.rs deleted file mode 100644 index 080940ebeb7a..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/x86/io_uring.rs b/third_party/rust/linux-raw-sys/src/x86/io_uring.rs deleted file mode 100644 index d03f3e2fb4fb..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/io_uring.rs +++ /dev/null @@ -1,1087 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/x86/ioctl.rs b/third_party/rust/linux-raw-sys/src/x86/ioctl.rs deleted file mode 100644 index c205fbdce9b0..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/ioctl.rs +++ /dev/null @@ -1,1593 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21600; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2149346562; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2147750512; -pub const BLKBSZSET: u32 = 1074008689; -pub const BLKGETSIZE64: u32 = 2147750514; -pub const BLKTRACESETUP: u32 = 3225424499; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2147771905; -pub const FS_IOC_SETFLAGS: u32 = 1074030082; -pub const FS_IOC_GETVERSION: u32 = 2147776001; -pub const FS_IOC_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; -pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074553226; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149608705; -pub const ENI_SETMULT: u32 = 1074553191; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const KVM_SET_BOOT_CPU_ID: u32 = 44664; -pub const KVM_SET_MP_STATE: u32 = 1074048665; -pub const KVM_GET_MP_STATE: u32 = 2147790488; -pub const KVM_GET_API_VERSION: u32 = 44544; -pub const KVM_S390_GET_SKEYS: u32 = 1077980850; -pub const KVM_SET_ONE_REG: u32 = 1074835116; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 1075883590; -pub const KVM_S390_INTERRUPT: u32 = 1074835092; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 2174791308; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 1074835060; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 2148576955; -pub const KVM_S390_UCAS_MAP: u32 = 1075359312; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 1077980836; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221532346; -pub const KVM_CREATE_PIT2: u32 = 1077980791; -pub const KVM_S390_VCPU_FAULT: u32 = 1074048594; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 1074835047; -pub const KVM_SET_VAPIC_ADDR: u32 = 1074310803; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 1074835094; -pub const KVM_X86_SETUP_MCE: u32 = 1074310812; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 1077980786; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 1078505161; -pub const KVM_GET_CLOCK: u32 = 2150674044; -pub const KVM_SET_FPU: u32 = 1101049485; -pub const KVM_KVMCLOCK_CTRL: u32 = 44717; -pub const KVM_PPC_GET_PVINFO: u32 = 1082175137; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 2148052637; -pub const KVM_S390_GET_IRQ_STATE: u32 = 1075883702; -pub const KVM_GET_DEVICE_ATTR: u32 = 1075359458; -pub const KVM_S390_INITIAL_RESET: u32 = 44695; -pub const KVM_SET_REGS: u32 = 1083223682; -pub const KVM_GET_TSC_KHZ: u32 = 44707; -pub const KVM_CHECK_EXTENSION: u32 = 44547; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 2148576942; -pub const KVM_GET_DIRTY_LOG: u32 = 1074835010; -pub const KVM_S390_SET_IRQ_STATE: u32 = 1075883701; -pub const KVM_S390_NORMAL_RESET: u32 = 44739; -pub const KVM_SET_SIGNAL_MASK: u32 = 1074048651; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 1078505163; -pub const KVM_SET_GSI_ROUTING: u32 = 1074310762; -pub const KVM_CREATE_VCPU: u32 = 44609; -pub const KVM_S390_UCAS_UNMAP: u32 = 1075359313; -pub const KVM_S390_STORE_STATUS: u32 = 1074048661; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 1074835048; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 1077980784; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 44550; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 1074835115; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 1074835115; -pub const KVM_DIRTY_TLB: u32 = 1074572970; -pub const KVM_NMI: u32 = 44698; -pub const KVM_HYPERV_EVENTFD: u32 = 1075359421; -pub const KVM_S390_MEM_OP: u32 = 1077980849; -pub const KVM_PPC_SVM_OFF: u32 = 44723; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 2148576941; -pub const KVM_INTERRUPT: u32 = 1074048646; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 2167975555; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 1074310728; -pub const KVM_GET_REGS: u32 = 2156965505; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 44640; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 2151722601; -pub const KVM_SET_NR_MMU_PAGES: u32 = 44612; -pub const KVM_IOEVENTFD: u32 = 1077980793; -pub const KVM_RUN: u32 = 44672; -pub const KVM_S390_SET_SKEYS: u32 = 1077980851; -pub const KVM_SET_DEVICE_ATTR: u32 = 1075359457; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 1077980789; -pub const KVM_SMI: u32 = 44727; -pub const KVM_SET_TSS_ADDR: u32 = 44615; -pub const KVM_GET_NR_MMU_PAGES: u32 = 44613; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 44657; -pub const KVM_HAS_DEVICE_ATTR: u32 = 1075359459; -pub const KVM_IRQFD: u32 = 1075883638; -pub const KVM_S390_SET_CMMA_BITS: u32 = 1075883705; -pub const KVM_SET_IRQCHIP: u32 = 2181607011; -pub const KVM_SIGNAL_MSI: u32 = 1075883685; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 44548; -pub const KVM_CREATE_VM: u32 = 44545; -pub const KVM_S390_CLEAR_RESET: u32 = 44740; -pub const KVM_RESET_DIRTY_RINGS: u32 = 44743; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 1074310771; -pub const KVM_CREATE_PIT: u32 = 44644; -pub const KVM_SET_GUEST_DEBUG: u32 = 1078505115; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 1074048706; -pub const KVM_SET_CLOCK: u32 = 1076932219; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 2186325670; -pub const KVM_SET_TSC_KHZ: u32 = 44706; -pub const KVM_S390_IRQ: u32 = 1078505140; -pub const KVM_ENABLE_CAP: u32 = 1080602275; -pub const KVM_IRQ_LINE: u32 = 1074310753; -pub const KVM_SET_SREGS: u32 = 1094233732; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 2148576956; -pub const KVM_GET_STATS_FD: u32 = 44750; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234616896; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2155370073; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227022624; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148036757; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3222825227; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076645442; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149319172; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2147774477; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074068994; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074025741; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2147762179; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1074550464; -pub const IPMICTL_SEND_COMMAND: u32 = 2148821261; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074553229; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075061508; -pub const PMU_IOC_GET_MODEL: u32 = 2147762691; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2153251345; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2147773697; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225441817; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076110081; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3223087369; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; -pub const I2OPARMSET: u32 = 3222825219; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074553172; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3225961992; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222565639; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150389258; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148279052; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074537239; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223614220; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074287830; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223614218; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149347345; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148029710; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076643200; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075866880; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2147773505; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074294934; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2147773506; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222038785; -pub const ATM_SETCIRANGE: u32 = 1074553227; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2147755015; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222033682; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074030598; -pub const ATM_GETESI: u32 = 1074553221; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2147774625; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2147762689; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223614219; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221515331; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228508482; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223069448; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234616837; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2150389002; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078236198; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2147762694; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075577411; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222295810; -pub const SCIF_VWRITETO: u32 = 3223614221; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3233846309; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074020866; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074013195; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074020356; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074032641; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3222820550; -pub const PPS_FETCH: u32 = 3221516452; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074291464; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234616836; -pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074553170; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223123209; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221514631; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074295878; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222545173; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074056449; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148034828; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3225703951; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222565638; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3223087365; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3223087366; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225441817; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074032897; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221514630; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080055241; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222295808; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2182640130; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2150892050; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074553220; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1079509648; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074029562; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076110098; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; -pub const MTIOCPOS: u32 = 2147773699; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2148296707; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074026177; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074295879; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3223087367; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3225703945; -pub const VIDIOC_S_EDID: u32 = 3223606825; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2147774627; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222565646; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075605522; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; -pub const FDSETPRM: u32 = 1075577410; -pub const ATM_GETSTATZ: u32 = 1074553169; -pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2179503164; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074024454; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2147774475; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148029659; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2147763849; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074553168; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074287829; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; -pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221512970; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2147762692; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076647435; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2147771137; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391394869; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222545172; -pub const ATM_DELLECSADDR: u32 = 1074553231; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074024453; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2147774203; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074025740; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148037695; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3222825220; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074291075; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222038786; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074032805; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2147810816; -pub const SCIF_FENCE_MARK: u32 = 3222041359; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074025836; -pub const FDWERRORGET: u32 = 2149057047; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221516288; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221504262; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2150892051; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074553217; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; -pub const PHN_GET_REGS: u32 = 3221516290; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223614225; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074558029; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221552643; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221496842; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2149581333; -pub const CM_IOCGATR: u32 = 3221512961; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226228250; -pub const ZATM_GETPOOLZ: u32 = 1074553186; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223093520; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223593728; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3222820424; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3223344833; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074032802; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223606824; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075115275; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221514629; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074553228; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074032652; -pub const PCITEST_WRITE: u32 = 1074024452; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3225703953; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2147773698; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074029057; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2182640129; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2147773705; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224142101; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1092919830; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; diff --git a/third_party/rust/linux-raw-sys/src/x86/net.rs b/third_party/rust/linux-raw-sys/src/x86/net.rs deleted file mode 100644 index 86228098f6ab..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/net.rs +++ /dev/null @@ -1,1836 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/x86/netlink.rs b/third_party/rust/linux-raw-sys/src/x86/netlink.rs deleted file mode 100644 index 366dbc3fe7d5..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/x86/prctl.rs b/third_party/rust/linux-raw-sys/src/x86/prctl.rs deleted file mode 100644 index 949be1712bf0..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/x86/system.rs b/third_party/rust/linux-raw-sys/src/x86/system.rs deleted file mode 100644 index 3ffa430545a0..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86/system.rs +++ /dev/null @@ -1,99 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_mode_t = crate::ctypes::c_ushort; -pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; -pub type __kernel_uid_t = crate::ctypes::c_ushort; -pub type __kernel_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ushort; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_old_uid_t = __kernel_uid_t; -pub type __kernel_old_gid_t = __kernel_gid_t; -pub type __kernel_size_t = crate::ctypes::c_uint; -pub type __kernel_ssize_t = crate::ctypes::c_int; -pub type __kernel_ptrdiff_t = crate::ctypes::c_int; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: [crate::ctypes::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; diff --git a/third_party/rust/linux-raw-sys/src/x86_64/errno.rs b/third_party/rust/linux-raw-sys/src/x86_64/errno.rs deleted file mode 100644 index fc8d7b415770..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/errno.rs +++ /dev/null @@ -1,135 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; diff --git a/third_party/rust/linux-raw-sys/src/x86_64/general.rs b/third_party/rust/linux-raw-sys/src/x86_64/general.rs deleted file mode 100644 index d33497c46f63..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/general.rs +++ /dev/null @@ -1,2870 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_sighandler_t = ::core::option::Option; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type cap_user_header_t = *mut __user_cap_header_struct; -pub type cap_user_data_t = *mut __user_cap_data_struct; -pub type __kernel_rwf_t = crate::ctypes::c_int; -pub type sigset_t = crate::ctypes::c_ulong; -pub type __signalfn_t = ::core::option::Option; -pub type __sighandler_t = __signalfn_t; -pub type __restorefn_t = ::core::option::Option; -pub type __sigrestore_t = __restorefn_t; -pub type stack_t = sigaltstack; -pub type sigval_t = sigval; -pub type siginfo_t = siginfo; -pub type sigevent_t = sigevent; -pub type cc_t = crate::ctypes::c_uchar; -pub type speed_t = crate::ctypes::c_uint; -pub type tcflag_t = crate::ctypes::c_uint; -pub type __fsword_t = __kernel_long_t; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fd_set { -pub fds_bits: [crate::ctypes::c_ulong; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_fsid_t { -pub val: [crate::ctypes::c_int; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_header_struct { -pub version: __u32, -pub pid: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __user_cap_data_struct { -pub effective: __u32, -pub permitted: __u32, -pub inheritable: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data { -pub magic_etc: __le32, -pub data: [vfs_cap_data__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data { -pub magic_etc: __le32, -pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], -pub rootid: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct vfs_ns_cap_data__bindgen_ty_1 { -pub permitted: __le32, -pub inheritable: __le32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct f_owner_ex { -pub type_: crate::ctypes::c_int, -pub pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_off_t, -pub l_len: __kernel_off_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct flock64 { -pub l_type: crate::ctypes::c_short, -pub l_whence: crate::ctypes::c_short, -pub l_start: __kernel_loff_t, -pub l_len: __kernel_loff_t, -pub l_pid: __kernel_pid_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct open_how { -pub flags: __u64, -pub mode: __u64, -pub resolve: __u64, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct epoll_event { -pub events: __poll_t, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct futex_waitv { -pub val: __u64, -pub uaddr: __u64, -pub flags: __u32, -pub __reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list { -pub next: *mut robust_list, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct robust_list_head { -pub list: robust_list, -pub futex_offset: crate::ctypes::c_long, -pub list_op_pending: *mut robust_list, -} -#[repr(C)] -#[derive(Debug)] -pub struct inotify_event { -pub wd: __s32, -pub mask: __u32, -pub cookie: __u32, -pub len: __u32, -pub name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pollfd { -pub fd: crate::ctypes::c_int, -pub events: crate::ctypes::c_short, -pub revents: crate::ctypes::c_short, -} -#[repr(C)] -#[derive(Debug)] -pub struct rand_pool_info { -pub entropy_count: crate::ctypes::c_int, -pub buf_size: crate::ctypes::c_int, -pub buf: __IncompleteArrayField<__u32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { -pub tv_sec: __kernel_old_time_t, -pub tv_usec: __kernel_suseconds_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerspec { -pub it_interval: timespec, -pub it_value: timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct itimerval { -pub it_interval: timeval, -pub it_value: timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timezone { -pub tz_minuteswest: crate::ctypes::c_int, -pub tz_dsttime: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rusage { -pub ru_utime: __kernel_old_timeval, -pub ru_stime: __kernel_old_timeval, -pub ru_maxrss: __kernel_long_t, -pub ru_ixrss: __kernel_long_t, -pub ru_idrss: __kernel_long_t, -pub ru_isrss: __kernel_long_t, -pub ru_minflt: __kernel_long_t, -pub ru_majflt: __kernel_long_t, -pub ru_nswap: __kernel_long_t, -pub ru_inblock: __kernel_long_t, -pub ru_oublock: __kernel_long_t, -pub ru_msgsnd: __kernel_long_t, -pub ru_msgrcv: __kernel_long_t, -pub ru_nsignals: __kernel_long_t, -pub ru_nvcsw: __kernel_long_t, -pub ru_nivcsw: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit { -pub rlim_cur: __kernel_ulong_t, -pub rlim_max: __kernel_ulong_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rlimit64 { -pub rlim_cur: __u64, -pub rlim_max: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct clone_args { -pub flags: __u64, -pub pidfd: __u64, -pub child_tid: __u64, -pub parent_tid: __u64, -pub exit_signal: __u64, -pub stack: __u64, -pub stack_size: __u64, -pub tls: __u64, -pub set_tid: __u64, -pub set_tid_size: __u64, -pub cgroup: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaction { -pub sa_handler: __sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: sigset_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigaltstack { -pub ss_sp: *mut crate::ctypes::c_void, -pub ss_flags: crate::ctypes::c_int, -pub ss_size: __kernel_size_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_1 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_2 { -pub _tid: __kernel_timer_t, -pub _overrun: crate::ctypes::c_int, -pub _sigval: sigval_t, -pub _sys_private: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_3 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _sigval: sigval_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_4 { -pub _pid: __kernel_pid_t, -pub _uid: __kernel_uid32_t, -pub _status: crate::ctypes::c_int, -pub _utime: __kernel_clock_t, -pub _stime: __kernel_clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __sifields__bindgen_ty_5 { -pub _addr: *mut crate::ctypes::c_void, -pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { -pub _dummy_bnd: [crate::ctypes::c_char; 8usize], -pub _lower: *mut crate::ctypes::c_void, -pub _upper: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { -pub _dummy_pkey: [crate::ctypes::c_char; 8usize], -pub _pkey: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { -pub _data: crate::ctypes::c_ulong, -pub _type: __u32, -pub _flags: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_6 { -pub _band: crate::ctypes::c_long, -pub _fd: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __sifields__bindgen_ty_7 { -pub _call_addr: *mut crate::ctypes::c_void, -pub _syscall: crate::ctypes::c_int, -pub _arch: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo { -pub __bindgen_anon_1: siginfo__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { -pub si_signo: crate::ctypes::c_int, -pub si_errno: crate::ctypes::c_int, -pub si_code: crate::ctypes::c_int, -pub _sifields: __sifields, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { -pub sigev_value: sigval_t, -pub sigev_signo: crate::ctypes::c_int, -pub sigev_notify: crate::ctypes::c_int, -pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { -pub _function: ::core::option::Option, -pub _attribute: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx_timestamp { -pub tv_sec: __s64, -pub tv_nsec: __u32, -pub __reserved: __s32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statx { -pub stx_mask: __u32, -pub stx_blksize: __u32, -pub stx_attributes: __u64, -pub stx_nlink: __u32, -pub stx_uid: __u32, -pub stx_gid: __u32, -pub stx_mode: __u16, -pub __spare0: [__u16; 1usize], -pub stx_ino: __u64, -pub stx_size: __u64, -pub stx_blocks: __u64, -pub stx_attributes_mask: __u64, -pub stx_atime: statx_timestamp, -pub stx_btime: statx_timestamp, -pub stx_ctime: statx_timestamp, -pub stx_mtime: statx_timestamp, -pub stx_rdev_major: __u32, -pub stx_rdev_minor: __u32, -pub stx_dev_major: __u32, -pub stx_dev_minor: __u32, -pub stx_mnt_id: __u64, -pub stx_dio_mem_align: __u32, -pub stx_dio_offset_align: __u32, -pub __spare3: [__u64; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termios2 { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ktermios { -pub c_iflag: tcflag_t, -pub c_oflag: tcflag_t, -pub c_cflag: tcflag_t, -pub c_lflag: tcflag_t, -pub c_line: cc_t, -pub c_cc: [cc_t; 19usize], -pub c_ispeed: speed_t, -pub c_ospeed: speed_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct winsize { -pub ws_row: crate::ctypes::c_ushort, -pub ws_col: crate::ctypes::c_ushort, -pub ws_xpixel: crate::ctypes::c_ushort, -pub ws_ypixel: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct termio { -pub c_iflag: crate::ctypes::c_ushort, -pub c_oflag: crate::ctypes::c_ushort, -pub c_cflag: crate::ctypes::c_ushort, -pub c_lflag: crate::ctypes::c_ushort, -pub c_line: crate::ctypes::c_uchar, -pub c_cc: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub iov_base: *mut crate::ctypes::c_void, -pub iov_len: __kernel_size_t, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct uffd_msg { -pub event: __u8, -pub reserved1: __u8, -pub reserved2: __u16, -pub reserved3: __u32, -pub arg: uffd_msg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { -pub flags: __u64, -pub address: __u64, -pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { -pub ufd: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { -pub from: __u64, -pub to: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { -pub start: __u64, -pub end: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { -pub reserved1: __u64, -pub reserved2: __u64, -pub reserved3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_api { -pub api: __u64, -pub features: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_range { -pub start: __u64, -pub len: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_register { -pub range: uffdio_range, -pub mode: __u64, -pub ioctls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_copy { -pub dst: __u64, -pub src: __u64, -pub len: __u64, -pub mode: __u64, -pub copy: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_zeropage { -pub range: uffdio_range, -pub mode: __u64, -pub zeropage: __s64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_writeprotect { -pub range: uffdio_range, -pub mode: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct uffdio_continue { -pub range: uffdio_range, -pub mode: __u64, -pub mapped: __s64, -} -#[repr(C)] -#[derive(Debug)] -pub struct linux_dirent64 { -pub d_ino: crate::ctypes::c_ulong, -pub d_off: crate::ctypes::c_long, -pub d_reclen: __u16, -pub d_type: __u8, -pub d_name: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stat { -pub st_dev: __kernel_ulong_t, -pub st_ino: __kernel_ulong_t, -pub st_nlink: __kernel_ulong_t, -pub st_mode: crate::ctypes::c_uint, -pub st_uid: crate::ctypes::c_uint, -pub st_gid: crate::ctypes::c_uint, -pub __pad0: crate::ctypes::c_uint, -pub st_rdev: __kernel_ulong_t, -pub st_size: __kernel_long_t, -pub st_blksize: __kernel_long_t, -pub st_blocks: __kernel_long_t, -pub st_atime: __kernel_ulong_t, -pub st_atime_nsec: __kernel_ulong_t, -pub st_mtime: __kernel_ulong_t, -pub st_mtime_nsec: __kernel_ulong_t, -pub st_ctime: __kernel_ulong_t, -pub st_ctime_nsec: __kernel_ulong_t, -pub __unused: [__kernel_long_t; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __old_kernel_stat { -pub st_dev: crate::ctypes::c_ushort, -pub st_ino: crate::ctypes::c_ushort, -pub st_mode: crate::ctypes::c_ushort, -pub st_nlink: crate::ctypes::c_ushort, -pub st_uid: crate::ctypes::c_ushort, -pub st_gid: crate::ctypes::c_ushort, -pub st_rdev: crate::ctypes::c_ushort, -pub st_size: crate::ctypes::c_uint, -pub st_atime: crate::ctypes::c_uint, -pub st_mtime: crate::ctypes::c_uint, -pub st_ctime: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __kernel_long_t, -pub f_bfree: __kernel_long_t, -pub f_bavail: __kernel_long_t, -pub f_files: __kernel_long_t, -pub f_ffree: __kernel_long_t, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct statfs64 { -pub f_type: __kernel_long_t, -pub f_bsize: __kernel_long_t, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __kernel_long_t, -pub f_frsize: __kernel_long_t, -pub f_flags: __kernel_long_t, -pub f_spare: [__kernel_long_t; 4usize], -} -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct compat_statfs64 { -pub f_type: __u32, -pub f_bsize: __u32, -pub f_blocks: __u64, -pub f_bfree: __u64, -pub f_bavail: __u64, -pub f_files: __u64, -pub f_ffree: __u64, -pub f_fsid: __kernel_fsid_t, -pub f_namelen: __u32, -pub f_frsize: __u32, -pub f_flags: __u32, -pub f_spare: [__u32; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct user_desc { -pub entry_number: crate::ctypes::c_uint, -pub base_addr: crate::ctypes::c_uint, -pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub __bindgen_padding_0: [u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigset_t { -pub sig: [crate::ctypes::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct kernel_sigaction { -pub sa_handler_kernel: __kernel_sighandler_t, -pub sa_flags: crate::ctypes::c_ulong, -pub sa_restorer: __sigrestore_t, -pub sa_mask: kernel_sigset_t, -} -pub const LINUX_VERSION_CODE: u32 = 393984; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 3; -pub const LINUX_VERSION_SUBLEVEL: u32 = 0; -pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 3; -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_EXECFN: u32 = 31; -pub const AT_MINSIGSTKSZ: u32 = 51; -pub const __FD_SETSIZE: u32 = 1024; -pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; -pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; -pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; -pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; -pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; -pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; -pub const VFS_CAP_REVISION_SHIFT: u32 = 24; -pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; -pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; -pub const VFS_CAP_REVISION_1: u32 = 16777216; -pub const VFS_CAP_U32_1: u32 = 1; -pub const VFS_CAP_REVISION_2: u32 = 33554432; -pub const VFS_CAP_U32_2: u32 = 2; -pub const VFS_CAP_REVISION_3: u32 = 50331648; -pub const VFS_CAP_U32_3: u32 = 2; -pub const VFS_CAP_U32: u32 = 2; -pub const VFS_CAP_REVISION: u32 = 50331648; -pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; -pub const _LINUX_CAPABILITY_U32S: u32 = 1; -pub const CAP_CHOWN: u32 = 0; -pub const CAP_DAC_OVERRIDE: u32 = 1; -pub const CAP_DAC_READ_SEARCH: u32 = 2; -pub const CAP_FOWNER: u32 = 3; -pub const CAP_FSETID: u32 = 4; -pub const CAP_KILL: u32 = 5; -pub const CAP_SETGID: u32 = 6; -pub const CAP_SETUID: u32 = 7; -pub const CAP_SETPCAP: u32 = 8; -pub const CAP_LINUX_IMMUTABLE: u32 = 9; -pub const CAP_NET_BIND_SERVICE: u32 = 10; -pub const CAP_NET_BROADCAST: u32 = 11; -pub const CAP_NET_ADMIN: u32 = 12; -pub const CAP_NET_RAW: u32 = 13; -pub const CAP_IPC_LOCK: u32 = 14; -pub const CAP_IPC_OWNER: u32 = 15; -pub const CAP_SYS_MODULE: u32 = 16; -pub const CAP_SYS_RAWIO: u32 = 17; -pub const CAP_SYS_CHROOT: u32 = 18; -pub const CAP_SYS_PTRACE: u32 = 19; -pub const CAP_SYS_PACCT: u32 = 20; -pub const CAP_SYS_ADMIN: u32 = 21; -pub const CAP_SYS_BOOT: u32 = 22; -pub const CAP_SYS_NICE: u32 = 23; -pub const CAP_SYS_RESOURCE: u32 = 24; -pub const CAP_SYS_TIME: u32 = 25; -pub const CAP_SYS_TTY_CONFIG: u32 = 26; -pub const CAP_MKNOD: u32 = 27; -pub const CAP_LEASE: u32 = 28; -pub const CAP_AUDIT_WRITE: u32 = 29; -pub const CAP_AUDIT_CONTROL: u32 = 30; -pub const CAP_SETFCAP: u32 = 31; -pub const CAP_MAC_OVERRIDE: u32 = 32; -pub const CAP_MAC_ADMIN: u32 = 33; -pub const CAP_SYSLOG: u32 = 34; -pub const CAP_WAKE_ALARM: u32 = 35; -pub const CAP_BLOCK_SUSPEND: u32 = 36; -pub const CAP_AUDIT_READ: u32 = 37; -pub const CAP_PERFMON: u32 = 38; -pub const CAP_BPF: u32 = 39; -pub const CAP_CHECKPOINT_RESTORE: u32 = 40; -pub const CAP_LAST_CAP: u32 = 40; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const RESOLVE_NO_XDEV: u32 = 1; -pub const RESOLVE_NO_MAGICLINKS: u32 = 2; -pub const RESOLVE_NO_SYMLINKS: u32 = 4; -pub const RESOLVE_BENEATH: u32 = 8; -pub const RESOLVE_IN_ROOT: u32 = 16; -pub const RESOLVE_CACHED: u32 = 32; -pub const F_SETLEASE: u32 = 1024; -pub const F_GETLEASE: u32 = 1025; -pub const F_CANCELLK: u32 = 1029; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const F_NOTIFY: u32 = 1026; -pub const F_SETPIPE_SZ: u32 = 1031; -pub const F_GETPIPE_SZ: u32 = 1032; -pub const F_ADD_SEALS: u32 = 1033; -pub const F_GET_SEALS: u32 = 1034; -pub const F_SEAL_SEAL: u32 = 1; -pub const F_SEAL_SHRINK: u32 = 2; -pub const F_SEAL_GROW: u32 = 4; -pub const F_SEAL_WRITE: u32 = 8; -pub const F_SEAL_FUTURE_WRITE: u32 = 16; -pub const F_SEAL_EXEC: u32 = 32; -pub const F_GET_RW_HINT: u32 = 1035; -pub const F_SET_RW_HINT: u32 = 1036; -pub const F_GET_FILE_RW_HINT: u32 = 1037; -pub const F_SET_FILE_RW_HINT: u32 = 1038; -pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; -pub const RWH_WRITE_LIFE_NONE: u32 = 1; -pub const RWH_WRITE_LIFE_SHORT: u32 = 2; -pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; -pub const RWH_WRITE_LIFE_LONG: u32 = 4; -pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; -pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; -pub const DN_ACCESS: u32 = 1; -pub const DN_MODIFY: u32 = 2; -pub const DN_CREATE: u32 = 4; -pub const DN_DELETE: u32 = 8; -pub const DN_RENAME: u32 = 16; -pub const DN_ATTRIB: u32 = 32; -pub const DN_MULTISHOT: u32 = 2147483648; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_EACCESS: u32 = 512; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_NO_AUTOMOUNT: u32 = 2048; -pub const AT_EMPTY_PATH: u32 = 4096; -pub const AT_STATX_SYNC_TYPE: u32 = 24576; -pub const AT_STATX_SYNC_AS_STAT: u32 = 0; -pub const AT_STATX_FORCE_SYNC: u32 = 8192; -pub const AT_STATX_DONT_SYNC: u32 = 16384; -pub const AT_RECURSIVE: u32 = 32768; -pub const EPOLL_CLOEXEC: u32 = 524288; -pub const EPOLL_CTL_ADD: u32 = 1; -pub const EPOLL_CTL_DEL: u32 = 2; -pub const EPOLL_CTL_MOD: u32 = 3; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const FALLOC_FL_KEEP_SIZE: u32 = 1; -pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; -pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; -pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; -pub const FALLOC_FL_ZERO_RANGE: u32 = 16; -pub const FALLOC_FL_INSERT_RANGE: u32 = 32; -pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const OPEN_TREE_CLOEXEC: u32 = 524288; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const FUTEX_WAIT: u32 = 0; -pub const FUTEX_WAKE: u32 = 1; -pub const FUTEX_FD: u32 = 2; -pub const FUTEX_REQUEUE: u32 = 3; -pub const FUTEX_CMP_REQUEUE: u32 = 4; -pub const FUTEX_WAKE_OP: u32 = 5; -pub const FUTEX_LOCK_PI: u32 = 6; -pub const FUTEX_UNLOCK_PI: u32 = 7; -pub const FUTEX_TRYLOCK_PI: u32 = 8; -pub const FUTEX_WAIT_BITSET: u32 = 9; -pub const FUTEX_WAKE_BITSET: u32 = 10; -pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; -pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; -pub const FUTEX_LOCK_PI2: u32 = 13; -pub const FUTEX_PRIVATE_FLAG: u32 = 128; -pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; -pub const FUTEX_WAIT_PRIVATE: u32 = 128; -pub const FUTEX_WAKE_PRIVATE: u32 = 129; -pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; -pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; -pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; -pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; -pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; -pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; -pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; -pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; -pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; -pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; -pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; -pub const FUTEX_32: u32 = 2; -pub const FUTEX_WAITV_MAX: u32 = 128; -pub const FUTEX_WAITERS: u32 = 2147483648; -pub const FUTEX_OWNER_DIED: u32 = 1073741824; -pub const FUTEX_TID_MASK: u32 = 1073741823; -pub const ROBUST_LIST_LIMIT: u32 = 2048; -pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; -pub const FUTEX_OP_SET: u32 = 0; -pub const FUTEX_OP_ADD: u32 = 1; -pub const FUTEX_OP_OR: u32 = 2; -pub const FUTEX_OP_ANDN: u32 = 3; -pub const FUTEX_OP_XOR: u32 = 4; -pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; -pub const FUTEX_OP_CMP_EQ: u32 = 0; -pub const FUTEX_OP_CMP_NE: u32 = 1; -pub const FUTEX_OP_CMP_LT: u32 = 2; -pub const FUTEX_OP_CMP_LE: u32 = 3; -pub const FUTEX_OP_CMP_GT: u32 = 4; -pub const FUTEX_OP_CMP_GE: u32 = 5; -pub const IN_ACCESS: u32 = 1; -pub const IN_MODIFY: u32 = 2; -pub const IN_ATTRIB: u32 = 4; -pub const IN_CLOSE_WRITE: u32 = 8; -pub const IN_CLOSE_NOWRITE: u32 = 16; -pub const IN_OPEN: u32 = 32; -pub const IN_MOVED_FROM: u32 = 64; -pub const IN_MOVED_TO: u32 = 128; -pub const IN_CREATE: u32 = 256; -pub const IN_DELETE: u32 = 512; -pub const IN_DELETE_SELF: u32 = 1024; -pub const IN_MOVE_SELF: u32 = 2048; -pub const IN_UNMOUNT: u32 = 8192; -pub const IN_Q_OVERFLOW: u32 = 16384; -pub const IN_IGNORED: u32 = 32768; -pub const IN_CLOSE: u32 = 24; -pub const IN_MOVE: u32 = 192; -pub const IN_ONLYDIR: u32 = 16777216; -pub const IN_DONT_FOLLOW: u32 = 33554432; -pub const IN_EXCL_UNLINK: u32 = 67108864; -pub const IN_MASK_CREATE: u32 = 268435456; -pub const IN_MASK_ADD: u32 = 536870912; -pub const IN_ISDIR: u32 = 1073741824; -pub const IN_ONESHOT: u32 = 2147483648; -pub const IN_ALL_EVENTS: u32 = 4095; -pub const IN_CLOEXEC: u32 = 524288; -pub const IN_NONBLOCK: u32 = 2048; -pub const ADFS_SUPER_MAGIC: u32 = 44533; -pub const AFFS_SUPER_MAGIC: u32 = 44543; -pub const AFS_SUPER_MAGIC: u32 = 1397113167; -pub const AUTOFS_SUPER_MAGIC: u32 = 391; -pub const CEPH_SUPER_MAGIC: u32 = 12805120; -pub const CODA_SUPER_MAGIC: u32 = 1937076805; -pub const CRAMFS_MAGIC: u32 = 684539205; -pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; -pub const DEBUGFS_MAGIC: u32 = 1684170528; -pub const SECURITYFS_MAGIC: u32 = 1935894131; -pub const SELINUX_MAGIC: u32 = 4185718668; -pub const SMACK_MAGIC: u32 = 1128357203; -pub const RAMFS_MAGIC: u32 = 2240043254; -pub const TMPFS_MAGIC: u32 = 16914836; -pub const HUGETLBFS_MAGIC: u32 = 2508478710; -pub const SQUASHFS_MAGIC: u32 = 1936814952; -pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; -pub const EFS_SUPER_MAGIC: u32 = 4278867; -pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; -pub const EXT2_SUPER_MAGIC: u32 = 61267; -pub const EXT3_SUPER_MAGIC: u32 = 61267; -pub const XENFS_SUPER_MAGIC: u32 = 2881100148; -pub const EXT4_SUPER_MAGIC: u32 = 61267; -pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; -pub const NILFS_SUPER_MAGIC: u32 = 13364; -pub const F2FS_SUPER_MAGIC: u32 = 4076150800; -pub const HPFS_SUPER_MAGIC: u32 = 4187351113; -pub const ISOFS_SUPER_MAGIC: u32 = 38496; -pub const JFFS2_SUPER_MAGIC: u32 = 29366; -pub const XFS_SUPER_MAGIC: u32 = 1481003842; -pub const PSTOREFS_MAGIC: u32 = 1634035564; -pub const EFIVARFS_MAGIC: u32 = 3730735588; -pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; -pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; -pub const FUSE_SUPER_MAGIC: u32 = 1702057286; -pub const MINIX_SUPER_MAGIC: u32 = 4991; -pub const MINIX_SUPER_MAGIC2: u32 = 5007; -pub const MINIX2_SUPER_MAGIC: u32 = 9320; -pub const MINIX2_SUPER_MAGIC2: u32 = 9336; -pub const MINIX3_SUPER_MAGIC: u32 = 19802; -pub const MSDOS_SUPER_MAGIC: u32 = 19780; -pub const EXFAT_SUPER_MAGIC: u32 = 538032816; -pub const NCP_SUPER_MAGIC: u32 = 22092; -pub const NFS_SUPER_MAGIC: u32 = 26985; -pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; -pub const OPENPROM_SUPER_MAGIC: u32 = 40865; -pub const QNX4_SUPER_MAGIC: u32 = 47; -pub const QNX6_SUPER_MAGIC: u32 = 1746473250; -pub const AFS_FS_MAGIC: u32 = 1799439955; -pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; -pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; -pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; -pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; -pub const SMB_SUPER_MAGIC: u32 = 20859; -pub const CIFS_SUPER_MAGIC: u32 = 4283649346; -pub const SMB2_SUPER_MAGIC: u32 = 4266872130; -pub const CGROUP_SUPER_MAGIC: u32 = 2613483; -pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; -pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; -pub const STACK_END_MAGIC: u32 = 1470918301; -pub const TRACEFS_MAGIC: u32 = 1953653091; -pub const V9FS_MAGIC: u32 = 16914839; -pub const BDEVFS_MAGIC: u32 = 1650746742; -pub const DAXFS_MAGIC: u32 = 1684300152; -pub const BINFMTFS_MAGIC: u32 = 1112100429; -pub const DEVPTS_SUPER_MAGIC: u32 = 7377; -pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; -pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; -pub const PIPEFS_MAGIC: u32 = 1346981957; -pub const PROC_SUPER_MAGIC: u32 = 40864; -pub const SOCKFS_MAGIC: u32 = 1397703499; -pub const SYSFS_MAGIC: u32 = 1650812274; -pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; -pub const MTD_INODE_FS_MAGIC: u32 = 288389204; -pub const ANON_INODE_FS_MAGIC: u32 = 151263540; -pub const BTRFS_TEST_MAGIC: u32 = 1936880249; -pub const NSFS_MAGIC: u32 = 1853056627; -pub const BPF_FS_MAGIC: u32 = 3405662737; -pub const AAFS_MAGIC: u32 = 1513908720; -pub const ZONEFS_MAGIC: u32 = 1515144787; -pub const UDF_SUPER_MAGIC: u32 = 352400198; -pub const DMA_BUF_MAGIC: u32 = 1145913666; -pub const DEVMEM_MAGIC: u32 = 1162691661; -pub const SECRETMEM_MAGIC: u32 = 1397048141; -pub const MAP_32BIT: u32 = 64; -pub const PROT_READ: u32 = 1; -pub const PROT_WRITE: u32 = 2; -pub const PROT_EXEC: u32 = 4; -pub const PROT_SEM: u32 = 8; -pub const PROT_NONE: u32 = 0; -pub const PROT_GROWSDOWN: u32 = 16777216; -pub const PROT_GROWSUP: u32 = 33554432; -pub const MAP_TYPE: u32 = 15; -pub const MAP_FIXED: u32 = 16; -pub const MAP_ANONYMOUS: u32 = 32; -pub const MAP_POPULATE: u32 = 32768; -pub const MAP_NONBLOCK: u32 = 65536; -pub const MAP_STACK: u32 = 131072; -pub const MAP_HUGETLB: u32 = 262144; -pub const MAP_SYNC: u32 = 524288; -pub const MAP_FIXED_NOREPLACE: u32 = 1048576; -pub const MAP_UNINITIALIZED: u32 = 67108864; -pub const MLOCK_ONFAULT: u32 = 1; -pub const MS_ASYNC: u32 = 1; -pub const MS_INVALIDATE: u32 = 2; -pub const MS_SYNC: u32 = 4; -pub const MADV_NORMAL: u32 = 0; -pub const MADV_RANDOM: u32 = 1; -pub const MADV_SEQUENTIAL: u32 = 2; -pub const MADV_WILLNEED: u32 = 3; -pub const MADV_DONTNEED: u32 = 4; -pub const MADV_FREE: u32 = 8; -pub const MADV_REMOVE: u32 = 9; -pub const MADV_DONTFORK: u32 = 10; -pub const MADV_DOFORK: u32 = 11; -pub const MADV_HWPOISON: u32 = 100; -pub const MADV_SOFT_OFFLINE: u32 = 101; -pub const MADV_MERGEABLE: u32 = 12; -pub const MADV_UNMERGEABLE: u32 = 13; -pub const MADV_HUGEPAGE: u32 = 14; -pub const MADV_NOHUGEPAGE: u32 = 15; -pub const MADV_DONTDUMP: u32 = 16; -pub const MADV_DODUMP: u32 = 17; -pub const MADV_WIPEONFORK: u32 = 18; -pub const MADV_KEEPONFORK: u32 = 19; -pub const MADV_COLD: u32 = 20; -pub const MADV_PAGEOUT: u32 = 21; -pub const MADV_POPULATE_READ: u32 = 22; -pub const MADV_POPULATE_WRITE: u32 = 23; -pub const MADV_DONTNEED_LOCKED: u32 = 24; -pub const MADV_COLLAPSE: u32 = 25; -pub const MAP_FILE: u32 = 0; -pub const PKEY_DISABLE_ACCESS: u32 = 1; -pub const PKEY_DISABLE_WRITE: u32 = 2; -pub const PKEY_ACCESS_MASK: u32 = 3; -pub const MAP_GROWSDOWN: u32 = 256; -pub const MAP_DENYWRITE: u32 = 2048; -pub const MAP_EXECUTABLE: u32 = 4096; -pub const MAP_LOCKED: u32 = 8192; -pub const MAP_NORESERVE: u32 = 16384; -pub const MCL_CURRENT: u32 = 1; -pub const MCL_FUTURE: u32 = 2; -pub const MCL_ONFAULT: u32 = 4; -pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; -pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; -pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; -pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; -pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; -pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; -pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; -pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; -pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; -pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; -pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; -pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; -pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; -pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; -pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; -pub const MREMAP_MAYMOVE: u32 = 1; -pub const MREMAP_FIXED: u32 = 2; -pub const MREMAP_DONTUNMAP: u32 = 4; -pub const OVERCOMMIT_GUESS: u32 = 0; -pub const OVERCOMMIT_ALWAYS: u32 = 1; -pub const OVERCOMMIT_NEVER: u32 = 2; -pub const MAP_SHARED: u32 = 1; -pub const MAP_PRIVATE: u32 = 2; -pub const MAP_SHARED_VALIDATE: u32 = 3; -pub const MAP_HUGE_SHIFT: u32 = 26; -pub const MAP_HUGE_MASK: u32 = 63; -pub const MAP_HUGE_16KB: u32 = 939524096; -pub const MAP_HUGE_64KB: u32 = 1073741824; -pub const MAP_HUGE_512KB: u32 = 1275068416; -pub const MAP_HUGE_1MB: u32 = 1342177280; -pub const MAP_HUGE_2MB: u32 = 1409286144; -pub const MAP_HUGE_8MB: u32 = 1543503872; -pub const MAP_HUGE_16MB: u32 = 1610612736; -pub const MAP_HUGE_32MB: u32 = 1677721600; -pub const MAP_HUGE_256MB: u32 = 1879048192; -pub const MAP_HUGE_512MB: u32 = 1946157056; -pub const MAP_HUGE_1GB: u32 = 2013265920; -pub const MAP_HUGE_2GB: u32 = 2080374784; -pub const MAP_HUGE_16GB: u32 = 2281701376; -pub const POLLIN: u32 = 1; -pub const POLLPRI: u32 = 2; -pub const POLLOUT: u32 = 4; -pub const POLLERR: u32 = 8; -pub const POLLHUP: u32 = 16; -pub const POLLNVAL: u32 = 32; -pub const POLLRDNORM: u32 = 64; -pub const POLLRDBAND: u32 = 128; -pub const POLLWRNORM: u32 = 256; -pub const POLLWRBAND: u32 = 512; -pub const POLLMSG: u32 = 1024; -pub const POLLREMOVE: u32 = 4096; -pub const POLLRDHUP: u32 = 8192; -pub const GRND_NONBLOCK: u32 = 1; -pub const GRND_RANDOM: u32 = 2; -pub const GRND_INSECURE: u32 = 4; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const RUSAGE_SELF: u32 = 0; -pub const RUSAGE_CHILDREN: i32 = -1; -pub const RUSAGE_BOTH: i32 = -2; -pub const RUSAGE_THREAD: u32 = 1; -pub const RLIM64_INFINITY: i32 = -1; -pub const PRIO_MIN: i32 = -20; -pub const PRIO_MAX: u32 = 20; -pub const PRIO_PROCESS: u32 = 0; -pub const PRIO_PGRP: u32 = 1; -pub const PRIO_USER: u32 = 2; -pub const _STK_LIM: u32 = 8388608; -pub const MLOCK_LIMIT: u32 = 8388608; -pub const RLIMIT_CPU: u32 = 0; -pub const RLIMIT_FSIZE: u32 = 1; -pub const RLIMIT_DATA: u32 = 2; -pub const RLIMIT_STACK: u32 = 3; -pub const RLIMIT_CORE: u32 = 4; -pub const RLIMIT_RSS: u32 = 5; -pub const RLIMIT_NPROC: u32 = 6; -pub const RLIMIT_NOFILE: u32 = 7; -pub const RLIMIT_MEMLOCK: u32 = 8; -pub const RLIMIT_AS: u32 = 9; -pub const RLIMIT_LOCKS: u32 = 10; -pub const RLIMIT_SIGPENDING: u32 = 11; -pub const RLIMIT_MSGQUEUE: u32 = 12; -pub const RLIMIT_NICE: u32 = 13; -pub const RLIMIT_RTPRIO: u32 = 14; -pub const RLIMIT_RTTIME: u32 = 15; -pub const RLIM_NLIMITS: u32 = 16; -pub const RLIM_INFINITY: i32 = -1; -pub const CSIGNAL: u32 = 255; -pub const CLONE_VM: u32 = 256; -pub const CLONE_FS: u32 = 512; -pub const CLONE_FILES: u32 = 1024; -pub const CLONE_SIGHAND: u32 = 2048; -pub const CLONE_PIDFD: u32 = 4096; -pub const CLONE_PTRACE: u32 = 8192; -pub const CLONE_VFORK: u32 = 16384; -pub const CLONE_PARENT: u32 = 32768; -pub const CLONE_THREAD: u32 = 65536; -pub const CLONE_NEWNS: u32 = 131072; -pub const CLONE_SYSVSEM: u32 = 262144; -pub const CLONE_SETTLS: u32 = 524288; -pub const CLONE_PARENT_SETTID: u32 = 1048576; -pub const CLONE_CHILD_CLEARTID: u32 = 2097152; -pub const CLONE_DETACHED: u32 = 4194304; -pub const CLONE_UNTRACED: u32 = 8388608; -pub const CLONE_CHILD_SETTID: u32 = 16777216; -pub const CLONE_NEWCGROUP: u32 = 33554432; -pub const CLONE_NEWUTS: u32 = 67108864; -pub const CLONE_NEWIPC: u32 = 134217728; -pub const CLONE_NEWUSER: u32 = 268435456; -pub const CLONE_NEWPID: u32 = 536870912; -pub const CLONE_NEWNET: u32 = 1073741824; -pub const CLONE_IO: u32 = 2147483648; -pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; -pub const CLONE_INTO_CGROUP: u64 = 8589934592; -pub const CLONE_NEWTIME: u32 = 128; -pub const CLONE_ARGS_SIZE_VER0: u32 = 64; -pub const CLONE_ARGS_SIZE_VER1: u32 = 80; -pub const CLONE_ARGS_SIZE_VER2: u32 = 88; -pub const SCHED_NORMAL: u32 = 0; -pub const SCHED_FIFO: u32 = 1; -pub const SCHED_RR: u32 = 2; -pub const SCHED_BATCH: u32 = 3; -pub const SCHED_IDLE: u32 = 5; -pub const SCHED_DEADLINE: u32 = 6; -pub const SCHED_RESET_ON_FORK: u32 = 1073741824; -pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; -pub const SCHED_FLAG_RECLAIM: u32 = 2; -pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; -pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; -pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; -pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; -pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; -pub const SCHED_FLAG_KEEP_ALL: u32 = 24; -pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; -pub const SCHED_FLAG_ALL: u32 = 127; -pub const NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const SIGRTMIN: u32 = 32; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const S_IFMT: u32 = 61440; -pub const S_IFSOCK: u32 = 49152; -pub const S_IFLNK: u32 = 40960; -pub const S_IFREG: u32 = 32768; -pub const S_IFBLK: u32 = 24576; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFIFO: u32 = 4096; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRWXU: u32 = 448; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXG: u32 = 56; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXO: u32 = 7; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const STATX_TYPE: u32 = 1; -pub const STATX_MODE: u32 = 2; -pub const STATX_NLINK: u32 = 4; -pub const STATX_UID: u32 = 8; -pub const STATX_GID: u32 = 16; -pub const STATX_ATIME: u32 = 32; -pub const STATX_MTIME: u32 = 64; -pub const STATX_CTIME: u32 = 128; -pub const STATX_INO: u32 = 256; -pub const STATX_SIZE: u32 = 512; -pub const STATX_BLOCKS: u32 = 1024; -pub const STATX_BASIC_STATS: u32 = 2047; -pub const STATX_BTIME: u32 = 2048; -pub const STATX_MNT_ID: u32 = 4096; -pub const STATX_DIOALIGN: u32 = 8192; -pub const STATX__RESERVED: u32 = 2147483648; -pub const STATX_ALL: u32 = 4095; -pub const STATX_ATTR_COMPRESSED: u32 = 4; -pub const STATX_ATTR_IMMUTABLE: u32 = 16; -pub const STATX_ATTR_APPEND: u32 = 32; -pub const STATX_ATTR_NODUMP: u32 = 64; -pub const STATX_ATTR_ENCRYPTED: u32 = 2048; -pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; -pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; -pub const STATX_ATTR_VERITY: u32 = 1048576; -pub const STATX_ATTR_DAX: u32 = 2097152; -pub const IGNBRK: u32 = 1; -pub const BRKINT: u32 = 2; -pub const IGNPAR: u32 = 4; -pub const PARMRK: u32 = 8; -pub const INPCK: u32 = 16; -pub const ISTRIP: u32 = 32; -pub const INLCR: u32 = 64; -pub const IGNCR: u32 = 128; -pub const ICRNL: u32 = 256; -pub const IXANY: u32 = 2048; -pub const OPOST: u32 = 1; -pub const OCRNL: u32 = 8; -pub const ONOCR: u32 = 16; -pub const ONLRET: u32 = 32; -pub const OFILL: u32 = 64; -pub const OFDEL: u32 = 128; -pub const B0: u32 = 0; -pub const B50: u32 = 1; -pub const B75: u32 = 2; -pub const B110: u32 = 3; -pub const B134: u32 = 4; -pub const B150: u32 = 5; -pub const B200: u32 = 6; -pub const B300: u32 = 7; -pub const B600: u32 = 8; -pub const B1200: u32 = 9; -pub const B1800: u32 = 10; -pub const B2400: u32 = 11; -pub const B4800: u32 = 12; -pub const B9600: u32 = 13; -pub const B19200: u32 = 14; -pub const B38400: u32 = 15; -pub const EXTA: u32 = 14; -pub const EXTB: u32 = 15; -pub const ADDRB: u32 = 536870912; -pub const CMSPAR: u32 = 1073741824; -pub const CRTSCTS: u32 = 2147483648; -pub const IBSHIFT: u32 = 16; -pub const TCOOFF: u32 = 0; -pub const TCOON: u32 = 1; -pub const TCIOFF: u32 = 2; -pub const TCION: u32 = 3; -pub const TCIFLUSH: u32 = 0; -pub const TCOFLUSH: u32 = 1; -pub const TCIOFLUSH: u32 = 2; -pub const NCCS: u32 = 19; -pub const VINTR: u32 = 0; -pub const VQUIT: u32 = 1; -pub const VERASE: u32 = 2; -pub const VKILL: u32 = 3; -pub const VEOF: u32 = 4; -pub const VTIME: u32 = 5; -pub const VMIN: u32 = 6; -pub const VSWTC: u32 = 7; -pub const VSTART: u32 = 8; -pub const VSTOP: u32 = 9; -pub const VSUSP: u32 = 10; -pub const VEOL: u32 = 11; -pub const VREPRINT: u32 = 12; -pub const VDISCARD: u32 = 13; -pub const VWERASE: u32 = 14; -pub const VLNEXT: u32 = 15; -pub const VEOL2: u32 = 16; -pub const IUCLC: u32 = 512; -pub const IXON: u32 = 1024; -pub const IXOFF: u32 = 4096; -pub const IMAXBEL: u32 = 8192; -pub const IUTF8: u32 = 16384; -pub const OLCUC: u32 = 2; -pub const ONLCR: u32 = 4; -pub const NLDLY: u32 = 256; -pub const NL0: u32 = 0; -pub const NL1: u32 = 256; -pub const CRDLY: u32 = 1536; -pub const CR0: u32 = 0; -pub const CR1: u32 = 512; -pub const CR2: u32 = 1024; -pub const CR3: u32 = 1536; -pub const TABDLY: u32 = 6144; -pub const TAB0: u32 = 0; -pub const TAB1: u32 = 2048; -pub const TAB2: u32 = 4096; -pub const TAB3: u32 = 6144; -pub const XTABS: u32 = 6144; -pub const BSDLY: u32 = 8192; -pub const BS0: u32 = 0; -pub const BS1: u32 = 8192; -pub const VTDLY: u32 = 16384; -pub const VT0: u32 = 0; -pub const VT1: u32 = 16384; -pub const FFDLY: u32 = 32768; -pub const FF0: u32 = 0; -pub const FF1: u32 = 32768; -pub const CBAUD: u32 = 4111; -pub const CSIZE: u32 = 48; -pub const CS5: u32 = 0; -pub const CS6: u32 = 16; -pub const CS7: u32 = 32; -pub const CS8: u32 = 48; -pub const CSTOPB: u32 = 64; -pub const CREAD: u32 = 128; -pub const PARENB: u32 = 256; -pub const PARODD: u32 = 512; -pub const HUPCL: u32 = 1024; -pub const CLOCAL: u32 = 2048; -pub const CBAUDEX: u32 = 4096; -pub const BOTHER: u32 = 4096; -pub const B57600: u32 = 4097; -pub const B115200: u32 = 4098; -pub const B230400: u32 = 4099; -pub const B460800: u32 = 4100; -pub const B500000: u32 = 4101; -pub const B576000: u32 = 4102; -pub const B921600: u32 = 4103; -pub const B1000000: u32 = 4104; -pub const B1152000: u32 = 4105; -pub const B1500000: u32 = 4106; -pub const B2000000: u32 = 4107; -pub const B2500000: u32 = 4108; -pub const B3000000: u32 = 4109; -pub const B3500000: u32 = 4110; -pub const B4000000: u32 = 4111; -pub const CIBAUD: u32 = 269418496; -pub const ISIG: u32 = 1; -pub const ICANON: u32 = 2; -pub const XCASE: u32 = 4; -pub const ECHO: u32 = 8; -pub const ECHOE: u32 = 16; -pub const ECHOK: u32 = 32; -pub const ECHONL: u32 = 64; -pub const NOFLSH: u32 = 128; -pub const TOSTOP: u32 = 256; -pub const ECHOCTL: u32 = 512; -pub const ECHOPRT: u32 = 1024; -pub const ECHOKE: u32 = 2048; -pub const FLUSHO: u32 = 4096; -pub const PENDIN: u32 = 16384; -pub const IEXTEN: u32 = 32768; -pub const EXTPROC: u32 = 65536; -pub const TCSANOW: u32 = 0; -pub const TCSADRAIN: u32 = 1; -pub const TCSAFLUSH: u32 = 2; -pub const TIOCPKT_DATA: u32 = 0; -pub const TIOCPKT_FLUSHREAD: u32 = 1; -pub const TIOCPKT_FLUSHWRITE: u32 = 2; -pub const TIOCPKT_STOP: u32 = 4; -pub const TIOCPKT_START: u32 = 8; -pub const TIOCPKT_NOSTOP: u32 = 16; -pub const TIOCPKT_DOSTOP: u32 = 32; -pub const TIOCPKT_IOCTL: u32 = 64; -pub const TIOCSER_TEMT: u32 = 1; -pub const NCC: u32 = 8; -pub const TIOCM_LE: u32 = 1; -pub const TIOCM_DTR: u32 = 2; -pub const TIOCM_RTS: u32 = 4; -pub const TIOCM_ST: u32 = 8; -pub const TIOCM_SR: u32 = 16; -pub const TIOCM_CTS: u32 = 32; -pub const TIOCM_CAR: u32 = 64; -pub const TIOCM_RNG: u32 = 128; -pub const TIOCM_DSR: u32 = 256; -pub const TIOCM_CD: u32 = 64; -pub const TIOCM_RI: u32 = 128; -pub const TIOCM_OUT1: u32 = 8192; -pub const TIOCM_OUT2: u32 = 16384; -pub const TIOCM_LOOP: u32 = 32768; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const __X32_SYSCALL_BIT: u32 = 1073741824; -pub const __NR_read: u32 = 0; -pub const __NR_write: u32 = 1; -pub const __NR_open: u32 = 2; -pub const __NR_close: u32 = 3; -pub const __NR_stat: u32 = 4; -pub const __NR_fstat: u32 = 5; -pub const __NR_lstat: u32 = 6; -pub const __NR_poll: u32 = 7; -pub const __NR_lseek: u32 = 8; -pub const __NR_mmap: u32 = 9; -pub const __NR_mprotect: u32 = 10; -pub const __NR_munmap: u32 = 11; -pub const __NR_brk: u32 = 12; -pub const __NR_rt_sigaction: u32 = 13; -pub const __NR_rt_sigprocmask: u32 = 14; -pub const __NR_rt_sigreturn: u32 = 15; -pub const __NR_ioctl: u32 = 16; -pub const __NR_pread64: u32 = 17; -pub const __NR_pwrite64: u32 = 18; -pub const __NR_readv: u32 = 19; -pub const __NR_writev: u32 = 20; -pub const __NR_access: u32 = 21; -pub const __NR_pipe: u32 = 22; -pub const __NR_select: u32 = 23; -pub const __NR_sched_yield: u32 = 24; -pub const __NR_mremap: u32 = 25; -pub const __NR_msync: u32 = 26; -pub const __NR_mincore: u32 = 27; -pub const __NR_madvise: u32 = 28; -pub const __NR_shmget: u32 = 29; -pub const __NR_shmat: u32 = 30; -pub const __NR_shmctl: u32 = 31; -pub const __NR_dup: u32 = 32; -pub const __NR_dup2: u32 = 33; -pub const __NR_pause: u32 = 34; -pub const __NR_nanosleep: u32 = 35; -pub const __NR_getitimer: u32 = 36; -pub const __NR_alarm: u32 = 37; -pub const __NR_setitimer: u32 = 38; -pub const __NR_getpid: u32 = 39; -pub const __NR_sendfile: u32 = 40; -pub const __NR_socket: u32 = 41; -pub const __NR_connect: u32 = 42; -pub const __NR_accept: u32 = 43; -pub const __NR_sendto: u32 = 44; -pub const __NR_recvfrom: u32 = 45; -pub const __NR_sendmsg: u32 = 46; -pub const __NR_recvmsg: u32 = 47; -pub const __NR_shutdown: u32 = 48; -pub const __NR_bind: u32 = 49; -pub const __NR_listen: u32 = 50; -pub const __NR_getsockname: u32 = 51; -pub const __NR_getpeername: u32 = 52; -pub const __NR_socketpair: u32 = 53; -pub const __NR_setsockopt: u32 = 54; -pub const __NR_getsockopt: u32 = 55; -pub const __NR_clone: u32 = 56; -pub const __NR_fork: u32 = 57; -pub const __NR_vfork: u32 = 58; -pub const __NR_execve: u32 = 59; -pub const __NR_exit: u32 = 60; -pub const __NR_wait4: u32 = 61; -pub const __NR_kill: u32 = 62; -pub const __NR_uname: u32 = 63; -pub const __NR_semget: u32 = 64; -pub const __NR_semop: u32 = 65; -pub const __NR_semctl: u32 = 66; -pub const __NR_shmdt: u32 = 67; -pub const __NR_msgget: u32 = 68; -pub const __NR_msgsnd: u32 = 69; -pub const __NR_msgrcv: u32 = 70; -pub const __NR_msgctl: u32 = 71; -pub const __NR_fcntl: u32 = 72; -pub const __NR_flock: u32 = 73; -pub const __NR_fsync: u32 = 74; -pub const __NR_fdatasync: u32 = 75; -pub const __NR_truncate: u32 = 76; -pub const __NR_ftruncate: u32 = 77; -pub const __NR_getdents: u32 = 78; -pub const __NR_getcwd: u32 = 79; -pub const __NR_chdir: u32 = 80; -pub const __NR_fchdir: u32 = 81; -pub const __NR_rename: u32 = 82; -pub const __NR_mkdir: u32 = 83; -pub const __NR_rmdir: u32 = 84; -pub const __NR_creat: u32 = 85; -pub const __NR_link: u32 = 86; -pub const __NR_unlink: u32 = 87; -pub const __NR_symlink: u32 = 88; -pub const __NR_readlink: u32 = 89; -pub const __NR_chmod: u32 = 90; -pub const __NR_fchmod: u32 = 91; -pub const __NR_chown: u32 = 92; -pub const __NR_fchown: u32 = 93; -pub const __NR_lchown: u32 = 94; -pub const __NR_umask: u32 = 95; -pub const __NR_gettimeofday: u32 = 96; -pub const __NR_getrlimit: u32 = 97; -pub const __NR_getrusage: u32 = 98; -pub const __NR_sysinfo: u32 = 99; -pub const __NR_times: u32 = 100; -pub const __NR_ptrace: u32 = 101; -pub const __NR_getuid: u32 = 102; -pub const __NR_syslog: u32 = 103; -pub const __NR_getgid: u32 = 104; -pub const __NR_setuid: u32 = 105; -pub const __NR_setgid: u32 = 106; -pub const __NR_geteuid: u32 = 107; -pub const __NR_getegid: u32 = 108; -pub const __NR_setpgid: u32 = 109; -pub const __NR_getppid: u32 = 110; -pub const __NR_getpgrp: u32 = 111; -pub const __NR_setsid: u32 = 112; -pub const __NR_setreuid: u32 = 113; -pub const __NR_setregid: u32 = 114; -pub const __NR_getgroups: u32 = 115; -pub const __NR_setgroups: u32 = 116; -pub const __NR_setresuid: u32 = 117; -pub const __NR_getresuid: u32 = 118; -pub const __NR_setresgid: u32 = 119; -pub const __NR_getresgid: u32 = 120; -pub const __NR_getpgid: u32 = 121; -pub const __NR_setfsuid: u32 = 122; -pub const __NR_setfsgid: u32 = 123; -pub const __NR_getsid: u32 = 124; -pub const __NR_capget: u32 = 125; -pub const __NR_capset: u32 = 126; -pub const __NR_rt_sigpending: u32 = 127; -pub const __NR_rt_sigtimedwait: u32 = 128; -pub const __NR_rt_sigqueueinfo: u32 = 129; -pub const __NR_rt_sigsuspend: u32 = 130; -pub const __NR_sigaltstack: u32 = 131; -pub const __NR_utime: u32 = 132; -pub const __NR_mknod: u32 = 133; -pub const __NR_uselib: u32 = 134; -pub const __NR_personality: u32 = 135; -pub const __NR_ustat: u32 = 136; -pub const __NR_statfs: u32 = 137; -pub const __NR_fstatfs: u32 = 138; -pub const __NR_sysfs: u32 = 139; -pub const __NR_getpriority: u32 = 140; -pub const __NR_setpriority: u32 = 141; -pub const __NR_sched_setparam: u32 = 142; -pub const __NR_sched_getparam: u32 = 143; -pub const __NR_sched_setscheduler: u32 = 144; -pub const __NR_sched_getscheduler: u32 = 145; -pub const __NR_sched_get_priority_max: u32 = 146; -pub const __NR_sched_get_priority_min: u32 = 147; -pub const __NR_sched_rr_get_interval: u32 = 148; -pub const __NR_mlock: u32 = 149; -pub const __NR_munlock: u32 = 150; -pub const __NR_mlockall: u32 = 151; -pub const __NR_munlockall: u32 = 152; -pub const __NR_vhangup: u32 = 153; -pub const __NR_modify_ldt: u32 = 154; -pub const __NR_pivot_root: u32 = 155; -pub const __NR__sysctl: u32 = 156; -pub const __NR_prctl: u32 = 157; -pub const __NR_arch_prctl: u32 = 158; -pub const __NR_adjtimex: u32 = 159; -pub const __NR_setrlimit: u32 = 160; -pub const __NR_chroot: u32 = 161; -pub const __NR_sync: u32 = 162; -pub const __NR_acct: u32 = 163; -pub const __NR_settimeofday: u32 = 164; -pub const __NR_mount: u32 = 165; -pub const __NR_umount2: u32 = 166; -pub const __NR_swapon: u32 = 167; -pub const __NR_swapoff: u32 = 168; -pub const __NR_reboot: u32 = 169; -pub const __NR_sethostname: u32 = 170; -pub const __NR_setdomainname: u32 = 171; -pub const __NR_iopl: u32 = 172; -pub const __NR_ioperm: u32 = 173; -pub const __NR_create_module: u32 = 174; -pub const __NR_init_module: u32 = 175; -pub const __NR_delete_module: u32 = 176; -pub const __NR_get_kernel_syms: u32 = 177; -pub const __NR_query_module: u32 = 178; -pub const __NR_quotactl: u32 = 179; -pub const __NR_nfsservctl: u32 = 180; -pub const __NR_getpmsg: u32 = 181; -pub const __NR_putpmsg: u32 = 182; -pub const __NR_afs_syscall: u32 = 183; -pub const __NR_tuxcall: u32 = 184; -pub const __NR_security: u32 = 185; -pub const __NR_gettid: u32 = 186; -pub const __NR_readahead: u32 = 187; -pub const __NR_setxattr: u32 = 188; -pub const __NR_lsetxattr: u32 = 189; -pub const __NR_fsetxattr: u32 = 190; -pub const __NR_getxattr: u32 = 191; -pub const __NR_lgetxattr: u32 = 192; -pub const __NR_fgetxattr: u32 = 193; -pub const __NR_listxattr: u32 = 194; -pub const __NR_llistxattr: u32 = 195; -pub const __NR_flistxattr: u32 = 196; -pub const __NR_removexattr: u32 = 197; -pub const __NR_lremovexattr: u32 = 198; -pub const __NR_fremovexattr: u32 = 199; -pub const __NR_tkill: u32 = 200; -pub const __NR_time: u32 = 201; -pub const __NR_futex: u32 = 202; -pub const __NR_sched_setaffinity: u32 = 203; -pub const __NR_sched_getaffinity: u32 = 204; -pub const __NR_set_thread_area: u32 = 205; -pub const __NR_io_setup: u32 = 206; -pub const __NR_io_destroy: u32 = 207; -pub const __NR_io_getevents: u32 = 208; -pub const __NR_io_submit: u32 = 209; -pub const __NR_io_cancel: u32 = 210; -pub const __NR_get_thread_area: u32 = 211; -pub const __NR_lookup_dcookie: u32 = 212; -pub const __NR_epoll_create: u32 = 213; -pub const __NR_epoll_ctl_old: u32 = 214; -pub const __NR_epoll_wait_old: u32 = 215; -pub const __NR_remap_file_pages: u32 = 216; -pub const __NR_getdents64: u32 = 217; -pub const __NR_set_tid_address: u32 = 218; -pub const __NR_restart_syscall: u32 = 219; -pub const __NR_semtimedop: u32 = 220; -pub const __NR_fadvise64: u32 = 221; -pub const __NR_timer_create: u32 = 222; -pub const __NR_timer_settime: u32 = 223; -pub const __NR_timer_gettime: u32 = 224; -pub const __NR_timer_getoverrun: u32 = 225; -pub const __NR_timer_delete: u32 = 226; -pub const __NR_clock_settime: u32 = 227; -pub const __NR_clock_gettime: u32 = 228; -pub const __NR_clock_getres: u32 = 229; -pub const __NR_clock_nanosleep: u32 = 230; -pub const __NR_exit_group: u32 = 231; -pub const __NR_epoll_wait: u32 = 232; -pub const __NR_epoll_ctl: u32 = 233; -pub const __NR_tgkill: u32 = 234; -pub const __NR_utimes: u32 = 235; -pub const __NR_vserver: u32 = 236; -pub const __NR_mbind: u32 = 237; -pub const __NR_set_mempolicy: u32 = 238; -pub const __NR_get_mempolicy: u32 = 239; -pub const __NR_mq_open: u32 = 240; -pub const __NR_mq_unlink: u32 = 241; -pub const __NR_mq_timedsend: u32 = 242; -pub const __NR_mq_timedreceive: u32 = 243; -pub const __NR_mq_notify: u32 = 244; -pub const __NR_mq_getsetattr: u32 = 245; -pub const __NR_kexec_load: u32 = 246; -pub const __NR_waitid: u32 = 247; -pub const __NR_add_key: u32 = 248; -pub const __NR_request_key: u32 = 249; -pub const __NR_keyctl: u32 = 250; -pub const __NR_ioprio_set: u32 = 251; -pub const __NR_ioprio_get: u32 = 252; -pub const __NR_inotify_init: u32 = 253; -pub const __NR_inotify_add_watch: u32 = 254; -pub const __NR_inotify_rm_watch: u32 = 255; -pub const __NR_migrate_pages: u32 = 256; -pub const __NR_openat: u32 = 257; -pub const __NR_mkdirat: u32 = 258; -pub const __NR_mknodat: u32 = 259; -pub const __NR_fchownat: u32 = 260; -pub const __NR_futimesat: u32 = 261; -pub const __NR_newfstatat: u32 = 262; -pub const __NR_unlinkat: u32 = 263; -pub const __NR_renameat: u32 = 264; -pub const __NR_linkat: u32 = 265; -pub const __NR_symlinkat: u32 = 266; -pub const __NR_readlinkat: u32 = 267; -pub const __NR_fchmodat: u32 = 268; -pub const __NR_faccessat: u32 = 269; -pub const __NR_pselect6: u32 = 270; -pub const __NR_ppoll: u32 = 271; -pub const __NR_unshare: u32 = 272; -pub const __NR_set_robust_list: u32 = 273; -pub const __NR_get_robust_list: u32 = 274; -pub const __NR_splice: u32 = 275; -pub const __NR_tee: u32 = 276; -pub const __NR_sync_file_range: u32 = 277; -pub const __NR_vmsplice: u32 = 278; -pub const __NR_move_pages: u32 = 279; -pub const __NR_utimensat: u32 = 280; -pub const __NR_epoll_pwait: u32 = 281; -pub const __NR_signalfd: u32 = 282; -pub const __NR_timerfd_create: u32 = 283; -pub const __NR_eventfd: u32 = 284; -pub const __NR_fallocate: u32 = 285; -pub const __NR_timerfd_settime: u32 = 286; -pub const __NR_timerfd_gettime: u32 = 287; -pub const __NR_accept4: u32 = 288; -pub const __NR_signalfd4: u32 = 289; -pub const __NR_eventfd2: u32 = 290; -pub const __NR_epoll_create1: u32 = 291; -pub const __NR_dup3: u32 = 292; -pub const __NR_pipe2: u32 = 293; -pub const __NR_inotify_init1: u32 = 294; -pub const __NR_preadv: u32 = 295; -pub const __NR_pwritev: u32 = 296; -pub const __NR_rt_tgsigqueueinfo: u32 = 297; -pub const __NR_perf_event_open: u32 = 298; -pub const __NR_recvmmsg: u32 = 299; -pub const __NR_fanotify_init: u32 = 300; -pub const __NR_fanotify_mark: u32 = 301; -pub const __NR_prlimit64: u32 = 302; -pub const __NR_name_to_handle_at: u32 = 303; -pub const __NR_open_by_handle_at: u32 = 304; -pub const __NR_clock_adjtime: u32 = 305; -pub const __NR_syncfs: u32 = 306; -pub const __NR_sendmmsg: u32 = 307; -pub const __NR_setns: u32 = 308; -pub const __NR_getcpu: u32 = 309; -pub const __NR_process_vm_readv: u32 = 310; -pub const __NR_process_vm_writev: u32 = 311; -pub const __NR_kcmp: u32 = 312; -pub const __NR_finit_module: u32 = 313; -pub const __NR_sched_setattr: u32 = 314; -pub const __NR_sched_getattr: u32 = 315; -pub const __NR_renameat2: u32 = 316; -pub const __NR_seccomp: u32 = 317; -pub const __NR_getrandom: u32 = 318; -pub const __NR_memfd_create: u32 = 319; -pub const __NR_kexec_file_load: u32 = 320; -pub const __NR_bpf: u32 = 321; -pub const __NR_execveat: u32 = 322; -pub const __NR_userfaultfd: u32 = 323; -pub const __NR_membarrier: u32 = 324; -pub const __NR_mlock2: u32 = 325; -pub const __NR_copy_file_range: u32 = 326; -pub const __NR_preadv2: u32 = 327; -pub const __NR_pwritev2: u32 = 328; -pub const __NR_pkey_mprotect: u32 = 329; -pub const __NR_pkey_alloc: u32 = 330; -pub const __NR_pkey_free: u32 = 331; -pub const __NR_statx: u32 = 332; -pub const __NR_io_pgetevents: u32 = 333; -pub const __NR_rseq: u32 = 334; -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 WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const XATTR_CREATE: u32 = 1; -pub const XATTR_REPLACE: u32 = 2; -pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; -pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; -pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; -pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; -pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; -pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; -pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; -pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; -pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; -pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; -pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; -pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; -pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; -pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; -pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; -pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; -pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; -pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; -pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; -pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; -pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; -pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; -pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; -pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; -pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; -pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; -pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; -pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; -pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; -pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; -pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; -pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; -pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; -pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; -pub const MFD_CLOEXEC: u32 = 1; -pub const MFD_ALLOW_SEALING: u32 = 2; -pub const MFD_HUGETLB: u32 = 4; -pub const MFD_NOEXEC_SEAL: u32 = 8; -pub const MFD_EXEC: u32 = 16; -pub const MFD_HUGE_SHIFT: u32 = 26; -pub const MFD_HUGE_MASK: u32 = 63; -pub const MFD_HUGE_64KB: u32 = 1073741824; -pub const MFD_HUGE_512KB: u32 = 1275068416; -pub const MFD_HUGE_1MB: u32 = 1342177280; -pub const MFD_HUGE_2MB: u32 = 1409286144; -pub const MFD_HUGE_8MB: u32 = 1543503872; -pub const MFD_HUGE_16MB: u32 = 1610612736; -pub const MFD_HUGE_32MB: u32 = 1677721600; -pub const MFD_HUGE_256MB: u32 = 1879048192; -pub const MFD_HUGE_512MB: u32 = 1946157056; -pub const MFD_HUGE_1GB: u32 = 2013265920; -pub const MFD_HUGE_2GB: u32 = 2080374784; -pub const MFD_HUGE_16GB: u32 = 2281701376; -pub const TFD_TIMER_ABSTIME: u32 = 1; -pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; -pub const TFD_CLOEXEC: u32 = 524288; -pub const TFD_NONBLOCK: u32 = 2048; -pub const USERFAULTFD_IOC: u32 = 170; -pub const _UFFDIO_REGISTER: u32 = 0; -pub const _UFFDIO_UNREGISTER: u32 = 1; -pub const _UFFDIO_WAKE: u32 = 2; -pub const _UFFDIO_COPY: u32 = 3; -pub const _UFFDIO_ZEROPAGE: u32 = 4; -pub const _UFFDIO_WRITEPROTECT: u32 = 6; -pub const _UFFDIO_CONTINUE: u32 = 7; -pub const _UFFDIO_API: u32 = 63; -pub const UFFDIO: u32 = 170; -pub const UFFD_EVENT_PAGEFAULT: u32 = 18; -pub const UFFD_EVENT_FORK: u32 = 19; -pub const UFFD_EVENT_REMAP: u32 = 20; -pub const UFFD_EVENT_REMOVE: u32 = 21; -pub const UFFD_EVENT_UNMAP: u32 = 22; -pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; -pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; -pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; -pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; -pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; -pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; -pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; -pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; -pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; -pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; -pub const UFFD_FEATURE_SIGBUS: u32 = 128; -pub const UFFD_FEATURE_THREAD_ID: u32 = 256; -pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; -pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; -pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; -pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; -pub const UFFD_USER_MODE_ONLY: u32 = 1; -pub const DT_UNKNOWN: u32 = 0; -pub const DT_FIFO: u32 = 1; -pub const DT_CHR: u32 = 2; -pub const DT_DIR: u32 = 4; -pub const DT_BLK: u32 = 6; -pub const DT_REG: u32 = 8; -pub const DT_LNK: u32 = 10; -pub const DT_SOCK: u32 = 12; -pub const STAT_HAVE_NSEC: u32 = 1; -pub const F_OK: u32 = 0; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const MNT_FORCE: u32 = 1; -pub const MNT_DETACH: u32 = 2; -pub const MNT_EXPIRE: u32 = 4; -pub const UMOUNT_NOFOLLOW: u32 = 8; -pub const UMOUNT_UNUSED: u32 = 2147483648; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const RWF_HIPRI: u32 = 1; -pub const RWF_DSYNC: u32 = 2; -pub const RWF_SYNC: u32 = 4; -pub const RWF_NOWAIT: u32 = 8; -pub const RWF_APPEND: u32 = 16; -pub const EFD_SEMAPHORE: u32 = 1; -pub const EFD_CLOEXEC: u32 = 524288; -pub const EFD_NONBLOCK: u32 = 2048; -pub const EPOLLIN: u32 = 1; -pub const EPOLLPRI: u32 = 2; -pub const EPOLLOUT: u32 = 4; -pub const EPOLLERR: u32 = 8; -pub const EPOLLHUP: u32 = 16; -pub const EPOLLNVAL: u32 = 32; -pub const EPOLLRDNORM: u32 = 64; -pub const EPOLLRDBAND: u32 = 128; -pub const EPOLLWRNORM: u32 = 256; -pub const EPOLLWRBAND: u32 = 512; -pub const EPOLLMSG: u32 = 1024; -pub const EPOLLRDHUP: u32 = 8192; -pub const EPOLLEXCLUSIVE: u32 = 268435456; -pub const EPOLLWAKEUP: u32 = 536870912; -pub const EPOLLONESHOT: u32 = 1073741824; -pub const EPOLLET: u32 = 2147483648; -pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; -pub const TFD_CREATE_FLAGS: u32 = 526336; -pub const TFD_SETTIME_FLAGS: u32 = 1; -pub const ARCH_SET_FS: u32 = 4098; -pub const UFFD_API: u32 = 170; -pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; -pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; -pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; -pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; -pub const UFFDIO_COPY_MODE_WP: u32 = 2; -pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; -pub const SPLICE_F_MOVE: u32 = 1; -pub const SPLICE_F_NONBLOCK: u32 = 2; -pub const SPLICE_F_MORE: u32 = 4; -pub const SPLICE_F_GIFT: u32 = 8; -pub const _NSIG: u32 = 64; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd { -MEMBARRIER_CMD_QUERY = 0, -MEMBARRIER_CMD_GLOBAL = 1, -MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, -MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, -MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, -MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, -MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, -MEMBARRIER_CMD_GET_REGISTRATIONS = 512, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum membarrier_cmd_flag { -MEMBARRIER_CMD_FLAG_CPU = 1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { -pub sival_int: crate::ctypes::c_int, -pub sival_ptr: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields { -pub _kill: __sifields__bindgen_ty_1, -pub _timer: __sifields__bindgen_ty_2, -pub _rt: __sifields__bindgen_ty_3, -pub _sigchld: __sifields__bindgen_ty_4, -pub _sigfault: __sifields__bindgen_ty_5, -pub _sigpoll: __sifields__bindgen_ty_6, -pub _sigsys: __sifields__bindgen_ty_7, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __sifields__bindgen_ty_5__bindgen_ty_1 { -pub _trapno: crate::ctypes::c_int, -pub _addr_lsb: crate::ctypes::c_short, -pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, -pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, -pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo__bindgen_ty_1 { -pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, -pub _si_pad: [crate::ctypes::c_int; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { -pub _pad: [crate::ctypes::c_int; 12usize], -pub _tid: crate::ctypes::c_int, -pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1 { -pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, -pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, -pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, -pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, -pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { -pub ptid: __u32, -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl membarrier_cmd { -pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; -} -impl user_desc { -#[inline] -pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) -} -} -#[inline] -pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } -} -#[inline] -pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) -} -} -#[inline] -pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } -} -#[inline] -pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) -} -} -#[inline] -pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } -} -#[inline] -pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) -} -} -#[inline] -pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } -} -#[inline] -pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) -} -} -#[inline] -pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } -} -#[inline] -pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) -} -} -#[inline] -pub fn lm(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } -} -#[inline] -pub fn set_lm(&mut self, val: crate::ctypes::c_uint) { -unsafe { -let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint, lm: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { -let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; -seg_32bit as u64 -}); -__bindgen_bitfield_unit.set(1usize, 2u8, { -let contents: u32 = unsafe { ::core::mem::transmute(contents) }; -contents as u64 -}); -__bindgen_bitfield_unit.set(3usize, 1u8, { -let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; -read_exec_only as u64 -}); -__bindgen_bitfield_unit.set(4usize, 1u8, { -let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; -limit_in_pages as u64 -}); -__bindgen_bitfield_unit.set(5usize, 1u8, { -let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; -seg_not_present as u64 -}); -__bindgen_bitfield_unit.set(6usize, 1u8, { -let useable: u32 = unsafe { ::core::mem::transmute(useable) }; -useable as u64 -}); -__bindgen_bitfield_unit.set(7usize, 1u8, { -let lm: u32 = unsafe { ::core::mem::transmute(lm) }; -lm as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/x86_64/if_ether.rs b/third_party/rust/linux-raw-sys/src/x86_64/if_ether.rs deleted file mode 100644 index 3e5eb5496797..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/if_ether.rs +++ /dev/null @@ -1,167 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ethhdr { -pub h_dest: [crate::ctypes::c_uchar; 6usize], -pub h_source: [crate::ctypes::c_uchar; 6usize], -pub h_proto: __be16, -} -pub const ETH_ALEN: u32 = 6; -pub const ETH_TLEN: u32 = 2; -pub const ETH_HLEN: u32 = 14; -pub const ETH_ZLEN: u32 = 60; -pub const ETH_DATA_LEN: u32 = 1500; -pub const ETH_FRAME_LEN: u32 = 1514; -pub const ETH_FCS_LEN: u32 = 4; -pub const ETH_MIN_MTU: u32 = 68; -pub const ETH_MAX_MTU: u32 = 65535; -pub const ETH_P_LOOP: u32 = 96; -pub const ETH_P_PUP: u32 = 512; -pub const ETH_P_PUPAT: u32 = 513; -pub const ETH_P_TSN: u32 = 8944; -pub const ETH_P_ERSPAN2: u32 = 8939; -pub const ETH_P_IP: u32 = 2048; -pub const ETH_P_X25: u32 = 2053; -pub const ETH_P_ARP: u32 = 2054; -pub const ETH_P_BPQ: u32 = 2303; -pub const ETH_P_IEEEPUP: u32 = 2560; -pub const ETH_P_IEEEPUPAT: u32 = 2561; -pub const ETH_P_BATMAN: u32 = 17157; -pub const ETH_P_DEC: u32 = 24576; -pub const ETH_P_DNA_DL: u32 = 24577; -pub const ETH_P_DNA_RC: u32 = 24578; -pub const ETH_P_DNA_RT: u32 = 24579; -pub const ETH_P_LAT: u32 = 24580; -pub const ETH_P_DIAG: u32 = 24581; -pub const ETH_P_CUST: u32 = 24582; -pub const ETH_P_SCA: u32 = 24583; -pub const ETH_P_TEB: u32 = 25944; -pub const ETH_P_RARP: u32 = 32821; -pub const ETH_P_ATALK: u32 = 32923; -pub const ETH_P_AARP: u32 = 33011; -pub const ETH_P_8021Q: u32 = 33024; -pub const ETH_P_ERSPAN: u32 = 35006; -pub const ETH_P_IPX: u32 = 33079; -pub const ETH_P_IPV6: u32 = 34525; -pub const ETH_P_PAUSE: u32 = 34824; -pub const ETH_P_SLOW: u32 = 34825; -pub const ETH_P_WCCP: u32 = 34878; -pub const ETH_P_MPLS_UC: u32 = 34887; -pub const ETH_P_MPLS_MC: u32 = 34888; -pub const ETH_P_ATMMPOA: u32 = 34892; -pub const ETH_P_PPP_DISC: u32 = 34915; -pub const ETH_P_PPP_SES: u32 = 34916; -pub const ETH_P_LINK_CTL: u32 = 34924; -pub const ETH_P_ATMFATE: u32 = 34948; -pub const ETH_P_PAE: u32 = 34958; -pub const ETH_P_PROFINET: u32 = 34962; -pub const ETH_P_REALTEK: u32 = 34969; -pub const ETH_P_AOE: u32 = 34978; -pub const ETH_P_ETHERCAT: u32 = 34980; -pub const ETH_P_8021AD: u32 = 34984; -pub const ETH_P_802_EX1: u32 = 34997; -pub const ETH_P_PREAUTH: u32 = 35015; -pub const ETH_P_TIPC: u32 = 35018; -pub const ETH_P_LLDP: u32 = 35020; -pub const ETH_P_MRP: u32 = 35043; -pub const ETH_P_MACSEC: u32 = 35045; -pub const ETH_P_8021AH: u32 = 35047; -pub const ETH_P_MVRP: u32 = 35061; -pub const ETH_P_1588: u32 = 35063; -pub const ETH_P_NCSI: u32 = 35064; -pub const ETH_P_PRP: u32 = 35067; -pub const ETH_P_CFM: u32 = 35074; -pub const ETH_P_FCOE: u32 = 35078; -pub const ETH_P_IBOE: u32 = 35093; -pub const ETH_P_TDLS: u32 = 35085; -pub const ETH_P_FIP: u32 = 35092; -pub const ETH_P_80221: u32 = 35095; -pub const ETH_P_HSR: u32 = 35119; -pub const ETH_P_NSH: u32 = 35151; -pub const ETH_P_LOOPBACK: u32 = 36864; -pub const ETH_P_QINQ1: u32 = 37120; -pub const ETH_P_QINQ2: u32 = 37376; -pub const ETH_P_QINQ3: u32 = 37632; -pub const ETH_P_EDSA: u32 = 56026; -pub const ETH_P_DSA_8021Q: u32 = 56027; -pub const ETH_P_DSA_A5PSW: u32 = 57345; -pub const ETH_P_IFE: u32 = 60734; -pub const ETH_P_AF_IUCV: u32 = 64507; -pub const ETH_P_802_3_MIN: u32 = 1536; -pub const ETH_P_802_3: u32 = 1; -pub const ETH_P_AX25: u32 = 2; -pub const ETH_P_ALL: u32 = 3; -pub const ETH_P_802_2: u32 = 4; -pub const ETH_P_SNAP: u32 = 5; -pub const ETH_P_DDCMP: u32 = 6; -pub const ETH_P_WAN_PPP: u32 = 7; -pub const ETH_P_PPP_MP: u32 = 8; -pub const ETH_P_LOCALTALK: u32 = 9; -pub const ETH_P_CAN: u32 = 12; -pub const ETH_P_CANFD: u32 = 13; -pub const ETH_P_CANXL: u32 = 14; -pub const ETH_P_PPPTALK: u32 = 16; -pub const ETH_P_TR_802_2: u32 = 17; -pub const ETH_P_MOBITEX: u32 = 21; -pub const ETH_P_CONTROL: u32 = 22; -pub const ETH_P_IRDA: u32 = 23; -pub const ETH_P_ECONET: u32 = 24; -pub const ETH_P_HDLC: u32 = 25; -pub const ETH_P_ARCNET: u32 = 26; -pub const ETH_P_DSA: u32 = 27; -pub const ETH_P_TRAILER: u32 = 28; -pub const ETH_P_PHONET: u32 = 245; -pub const ETH_P_IEEE802154: u32 = 246; -pub const ETH_P_CAIF: u32 = 247; -pub const ETH_P_XDSA: u32 = 248; -pub const ETH_P_MAP: u32 = 249; -pub const ETH_P_MCTP: u32 = 250; diff --git a/third_party/rust/linux-raw-sys/src/x86_64/io_uring.rs b/third_party/rust/linux-raw-sys/src/x86_64/io_uring.rs deleted file mode 100644 index 5c280c0c0314..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/io_uring.rs +++ /dev/null @@ -1,1083 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_rwf_t = crate::ctypes::c_int; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v1 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub master_key_descriptor: [__u8; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_key { -pub mode: __u32, -pub raw: [__u8; 64usize], -pub size: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fscrypt_policy_v2 { -pub version: __u8, -pub contents_encryption_mode: __u8, -pub filenames_encryption_mode: __u8, -pub flags: __u8, -pub __reserved: [__u8; 4usize], -pub master_key_identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_policy_ex_arg { -pub policy_size: __u64, -pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_key_specifier { -pub type_: __u32, -pub __reserved: __u32, -pub u: fscrypt_key_specifier__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug)] -pub struct fscrypt_provisioning_key_payload { -pub type_: __u32, -pub __reserved: __u32, -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -pub struct fscrypt_add_key_arg { -pub key_spec: fscrypt_key_specifier, -pub raw_size: __u32, -pub key_id: __u32, -pub __reserved: [__u32; 8usize], -pub raw: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_remove_key_arg { -pub key_spec: fscrypt_key_specifier, -pub removal_status_flags: __u32, -pub __reserved: [__u32; 5usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct fscrypt_get_key_status_arg { -pub key_spec: fscrypt_key_specifier, -pub __reserved: [__u32; 6usize], -pub status: __u32, -pub status_flags: __u32, -pub user_count: __u32, -pub __out_reserved: [__u32; 13usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mount_attr { -pub attr_set: __u64, -pub attr_clr: __u64, -pub propagation: __u64, -pub userns_fd: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_clone_range { -pub src_fd: __s64, -pub src_offset: __u64, -pub src_length: __u64, -pub dest_offset: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fstrim_range { -pub start: __u64, -pub len: __u64, -pub minlen: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct file_dedupe_range_info { -pub dest_fd: __s64, -pub dest_offset: __u64, -pub bytes_deduped: __u64, -pub status: __s32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct file_dedupe_range { -pub src_offset: __u64, -pub src_length: __u64, -pub dest_count: __u16, -pub reserved1: __u16, -pub reserved2: __u32, -pub info: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct files_stat_struct { -pub nr_files: crate::ctypes::c_ulong, -pub nr_free_files: crate::ctypes::c_ulong, -pub max_files: crate::ctypes::c_ulong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct inodes_stat_t { -pub nr_inodes: crate::ctypes::c_long, -pub nr_unused: crate::ctypes::c_long, -pub dummy: [crate::ctypes::c_long; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fsxattr { -pub fsx_xflags: __u32, -pub fsx_extsize: __u32, -pub fsx_nextents: __u32, -pub fsx_projid: __u32, -pub fsx_cowextsize: __u32, -pub fsx_pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_timespec { -pub tv_sec: __kernel_time64_t, -pub tv_nsec: crate::ctypes::c_longlong, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_itimerspec { -pub it_interval: __kernel_timespec, -pub it_value: __kernel_timespec, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timeval { -pub tv_sec: __kernel_long_t, -pub tv_usec: __kernel_long_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_timespec { -pub tv_sec: __kernel_old_time_t, -pub tv_nsec: crate::ctypes::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_old_itimerval { -pub it_interval: __kernel_old_timeval, -pub it_value: __kernel_old_timeval, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sock_timeval { -pub tv_sec: __s64, -pub tv_usec: __s64, -} -#[repr(C)] -pub struct io_uring_sqe { -pub opcode: __u8, -pub flags: __u8, -pub ioprio: __u16, -pub fd: __s32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, -pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, -pub len: __u32, -pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, -pub user_data: __u64, -pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, -pub personality: __u16, -pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, -pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { -pub cmd_op: __u32, -pub __pad1: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { -pub addr_len: __u16, -pub __pad3: [__u16; 1usize], -} -#[repr(C)] -pub struct io_uring_sqe__bindgen_ty_6 { -pub __bindgen_anon_1: __BindgenUnionField, -pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { -pub addr3: __u64, -pub __pad2: [__u64; 1usize], -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_cqe { -pub user_data: __u64, -pub res: __s32, -pub flags: __u32, -pub big_cqe: __IncompleteArrayField<__u64>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_sqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub flags: __u32, -pub dropped: __u32, -pub array: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_cqring_offsets { -pub head: __u32, -pub tail: __u32, -pub ring_mask: __u32, -pub ring_entries: __u32, -pub overflow: __u32, -pub cqes: __u32, -pub flags: __u32, -pub resv1: __u32, -pub resv2: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_params { -pub sq_entries: __u32, -pub cq_entries: __u32, -pub flags: __u32, -pub sq_thread_cpu: __u32, -pub sq_thread_idle: __u32, -pub features: __u32, -pub wq_fd: __u32, -pub resv: [__u32; 3usize], -pub sq_off: io_sqring_offsets, -pub cq_off: io_cqring_offsets, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_files_update { -pub offset: __u32, -pub resv: __u32, -pub fds: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_register { -pub nr: __u32, -pub flags: __u32, -pub resv2: __u64, -pub data: __u64, -pub tags: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_rsrc_update2 { -pub offset: __u32, -pub resv: __u32, -pub data: __u64, -pub tags: __u64, -pub nr: __u32, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_slot { -pub tag: __u64, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_notification_register { -pub nr_slots: __u32, -pub resv: __u32, -pub resv2: __u64, -pub data: __u64, -pub resv3: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_probe_op { -pub op: __u8, -pub resv: __u8, -pub flags: __u16, -pub resv2: __u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_probe { -pub last_op: __u8, -pub ops_len: __u8, -pub resv: __u16, -pub resv2: [__u32; 3usize], -pub ops: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_restriction { -pub opcode: __u16, -pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, -pub resv: __u8, -pub resv2: [__u32; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf { -pub addr: __u64, -pub len: __u32, -pub bid: __u16, -pub resv: __u16, -} -#[repr(C)] -pub struct io_uring_buf_ring { -pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, -} -#[repr(C)] -pub struct io_uring_buf_ring__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { -pub resv1: __u64, -pub resv2: __u32, -pub resv3: __u16, -pub tail: __u16, -} -#[repr(C)] -#[derive(Debug)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { -pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, -pub bufs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_buf_reg { -pub ring_addr: __u64, -pub ring_entries: __u32, -pub bgid: __u16, -pub pad: __u16, -pub resv: [__u64; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_getevents_arg { -pub sigmask: __u64, -pub sigmask_sz: __u32, -pub pad: __u32, -pub ts: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_sync_cancel_reg { -pub addr: __u64, -pub fd: __s32, -pub flags: __u32, -pub timeout: __kernel_timespec, -pub pad: [__u64; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_file_index_range { -pub off: __u32, -pub len: __u32, -pub resv: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_recvmsg_out { -pub namelen: __u32, -pub controllen: __u32, -pub payloadlen: __u32, -pub flags: __u32, -} -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; -pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; -pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; -pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; -pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; -pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; -pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; -pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; -pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; -pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; -pub const FSCRYPT_POLICY_V1: u32 = 0; -pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; -pub const FSCRYPT_POLICY_V2: u32 = 2; -pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; -pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; -pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; -pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; -pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; -pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; -pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; -pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; -pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; -pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; -pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; -pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; -pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; -pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; -pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; -pub const FS_POLICY_FLAGS_VALID: u32 = 7; -pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; -pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; -pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; -pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; -pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; -pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; -pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; -pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; -pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; -pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; -pub const FS_MAX_KEY_SIZE: u32 = 64; -pub const MS_RDONLY: u32 = 1; -pub const MS_NOSUID: u32 = 2; -pub const MS_NODEV: u32 = 4; -pub const MS_NOEXEC: u32 = 8; -pub const MS_SYNCHRONOUS: u32 = 16; -pub const MS_REMOUNT: u32 = 32; -pub const MS_MANDLOCK: u32 = 64; -pub const MS_DIRSYNC: u32 = 128; -pub const MS_NOSYMFOLLOW: u32 = 256; -pub const MS_NOATIME: u32 = 1024; -pub const MS_NODIRATIME: u32 = 2048; -pub const MS_BIND: u32 = 4096; -pub const MS_MOVE: u32 = 8192; -pub const MS_REC: u32 = 16384; -pub const MS_VERBOSE: u32 = 32768; -pub const MS_SILENT: u32 = 32768; -pub const MS_POSIXACL: u32 = 65536; -pub const MS_UNBINDABLE: u32 = 131072; -pub const MS_PRIVATE: u32 = 262144; -pub const MS_SLAVE: u32 = 524288; -pub const MS_SHARED: u32 = 1048576; -pub const MS_RELATIME: u32 = 2097152; -pub const MS_KERNMOUNT: u32 = 4194304; -pub const MS_I_VERSION: u32 = 8388608; -pub const MS_STRICTATIME: u32 = 16777216; -pub const MS_LAZYTIME: u32 = 33554432; -pub const MS_SUBMOUNT: u32 = 67108864; -pub const MS_NOREMOTELOCK: u32 = 134217728; -pub const MS_NOSEC: u32 = 268435456; -pub const MS_BORN: u32 = 536870912; -pub const MS_ACTIVE: u32 = 1073741824; -pub const MS_NOUSER: u32 = 2147483648; -pub const MS_RMT_MASK: u32 = 41943121; -pub const MS_MGC_VAL: u32 = 3236757504; -pub const MS_MGC_MSK: u32 = 4294901760; -pub const OPEN_TREE_CLONE: u32 = 1; -pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; -pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; -pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; -pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; -pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; -pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; -pub const MOVE_MOUNT_SET_GROUP: u32 = 256; -pub const MOVE_MOUNT__MASK: u32 = 375; -pub const FSOPEN_CLOEXEC: u32 = 1; -pub const FSPICK_CLOEXEC: u32 = 1; -pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; -pub const FSPICK_NO_AUTOMOUNT: u32 = 4; -pub const FSPICK_EMPTY_PATH: u32 = 8; -pub const FSMOUNT_CLOEXEC: u32 = 1; -pub const MOUNT_ATTR_RDONLY: u32 = 1; -pub const MOUNT_ATTR_NOSUID: u32 = 2; -pub const MOUNT_ATTR_NODEV: u32 = 4; -pub const MOUNT_ATTR_NOEXEC: u32 = 8; -pub const MOUNT_ATTR__ATIME: u32 = 112; -pub const MOUNT_ATTR_RELATIME: u32 = 0; -pub const MOUNT_ATTR_NOATIME: u32 = 16; -pub const MOUNT_ATTR_STRICTATIME: u32 = 32; -pub const MOUNT_ATTR_NODIRATIME: u32 = 128; -pub const MOUNT_ATTR_IDMAP: u32 = 1048576; -pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; -pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; -pub const INR_OPEN_CUR: u32 = 1024; -pub const INR_OPEN_MAX: u32 = 4096; -pub const BLOCK_SIZE_BITS: u32 = 10; -pub const BLOCK_SIZE: u32 = 1024; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const SEEK_DATA: u32 = 3; -pub const SEEK_HOLE: u32 = 4; -pub const SEEK_MAX: u32 = 4; -pub const RENAME_NOREPLACE: u32 = 1; -pub const RENAME_EXCHANGE: u32 = 2; -pub const RENAME_WHITEOUT: u32 = 4; -pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; -pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; -pub const NR_FILE: u32 = 8192; -pub const FS_XFLAG_REALTIME: u32 = 1; -pub const FS_XFLAG_PREALLOC: u32 = 2; -pub const FS_XFLAG_IMMUTABLE: u32 = 8; -pub const FS_XFLAG_APPEND: u32 = 16; -pub const FS_XFLAG_SYNC: u32 = 32; -pub const FS_XFLAG_NOATIME: u32 = 64; -pub const FS_XFLAG_NODUMP: u32 = 128; -pub const FS_XFLAG_RTINHERIT: u32 = 256; -pub const FS_XFLAG_PROJINHERIT: u32 = 512; -pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; -pub const FS_XFLAG_EXTSIZE: u32 = 2048; -pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; -pub const FS_XFLAG_NODEFRAG: u32 = 8192; -pub const FS_XFLAG_FILESTREAM: u32 = 16384; -pub const FS_XFLAG_DAX: u32 = 32768; -pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; -pub const FS_XFLAG_HASATTR: u32 = 2147483648; -pub const BMAP_IOCTL: u32 = 1; -pub const FSLABEL_MAX: u32 = 256; -pub const FS_SECRM_FL: u32 = 1; -pub const FS_UNRM_FL: u32 = 2; -pub const FS_COMPR_FL: u32 = 4; -pub const FS_SYNC_FL: u32 = 8; -pub const FS_IMMUTABLE_FL: u32 = 16; -pub const FS_APPEND_FL: u32 = 32; -pub const FS_NODUMP_FL: u32 = 64; -pub const FS_NOATIME_FL: u32 = 128; -pub const FS_DIRTY_FL: u32 = 256; -pub const FS_COMPRBLK_FL: u32 = 512; -pub const FS_NOCOMP_FL: u32 = 1024; -pub const FS_ENCRYPT_FL: u32 = 2048; -pub const FS_BTREE_FL: u32 = 4096; -pub const FS_INDEX_FL: u32 = 4096; -pub const FS_IMAGIC_FL: u32 = 8192; -pub const FS_JOURNAL_DATA_FL: u32 = 16384; -pub const FS_NOTAIL_FL: u32 = 32768; -pub const FS_DIRSYNC_FL: u32 = 65536; -pub const FS_TOPDIR_FL: u32 = 131072; -pub const FS_HUGE_FILE_FL: u32 = 262144; -pub const FS_EXTENT_FL: u32 = 524288; -pub const FS_VERITY_FL: u32 = 1048576; -pub const FS_EA_INODE_FL: u32 = 2097152; -pub const FS_EOFBLOCKS_FL: u32 = 4194304; -pub const FS_NOCOW_FL: u32 = 8388608; -pub const FS_DAX_FL: u32 = 33554432; -pub const FS_INLINE_DATA_FL: u32 = 268435456; -pub const FS_PROJINHERIT_FL: u32 = 536870912; -pub const FS_CASEFOLD_FL: u32 = 1073741824; -pub const FS_RESERVED_FL: u32 = 2147483648; -pub const FS_FL_USER_VISIBLE: u32 = 253951; -pub const FS_FL_USER_MODIFIABLE: u32 = 229631; -pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; -pub const SYNC_FILE_RANGE_WRITE: u32 = 2; -pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; -pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; -pub const IORING_FILE_INDEX_ALLOC: i32 = -1; -pub const IORING_SETUP_IOPOLL: u32 = 1; -pub const IORING_SETUP_SQPOLL: u32 = 2; -pub const IORING_SETUP_SQ_AFF: u32 = 4; -pub const IORING_SETUP_CQSIZE: u32 = 8; -pub const IORING_SETUP_CLAMP: u32 = 16; -pub const IORING_SETUP_ATTACH_WQ: u32 = 32; -pub const IORING_SETUP_R_DISABLED: u32 = 64; -pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; -pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; -pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; -pub const IORING_SETUP_SQE128: u32 = 1024; -pub const IORING_SETUP_CQE32: u32 = 2048; -pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; -pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; -pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_FSYNC_DATASYNC: u32 = 1; -pub const IORING_TIMEOUT_ABS: u32 = 1; -pub const IORING_TIMEOUT_UPDATE: u32 = 2; -pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; -pub const IORING_TIMEOUT_REALTIME: u32 = 8; -pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; -pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; -pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; -pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; -pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; -pub const IORING_POLL_ADD_MULTI: u32 = 1; -pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; -pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; -pub const IORING_POLL_ADD_LEVEL: u32 = 8; -pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; -pub const IORING_ASYNC_CANCEL_FD: u32 = 2; -pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; -pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; -pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; -pub const IORING_RECV_MULTISHOT: u32 = 2; -pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; -pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; -pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; -pub const IORING_ACCEPT_MULTISHOT: u32 = 1; -pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; -pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; -pub const IORING_CQE_F_BUFFER: u32 = 1; -pub const IORING_CQE_F_MORE: u32 = 2; -pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; -pub const IORING_CQE_F_NOTIF: u32 = 8; -pub const IORING_OFF_SQ_RING: u32 = 0; -pub const IORING_OFF_CQ_RING: u32 = 134217728; -pub const IORING_OFF_SQES: u32 = 268435456; -pub const IORING_SQ_NEED_WAKEUP: u32 = 1; -pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; -pub const IORING_SQ_TASKRUN: u32 = 4; -pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; -pub const IORING_ENTER_GETEVENTS: u32 = 1; -pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; -pub const IORING_ENTER_SQ_WAIT: u32 = 4; -pub const IORING_ENTER_EXT_ARG: u32 = 8; -pub const IORING_ENTER_REGISTERED_RING: u32 = 16; -pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; -pub const IORING_FEAT_NODROP: u32 = 2; -pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; -pub const IORING_FEAT_RW_CUR_POS: u32 = 8; -pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; -pub const IORING_FEAT_FAST_POLL: u32 = 32; -pub const IORING_FEAT_POLL_32BITS: u32 = 64; -pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; -pub const IORING_FEAT_EXT_ARG: u32 = 256; -pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; -pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; -pub const IORING_FEAT_CQE_SKIP: u32 = 2048; -pub const IORING_FEAT_LINKED_FILE: u32 = 4096; -pub const IORING_FEAT_REG_REG_RING: u32 = 8192; -pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; -pub const IORING_REGISTER_FILES_SKIP: i32 = -2; -pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_FIXED_FILE_BIT; -pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_DRAIN_BIT; -pub const IOSQE_IO_LINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_LINK_BIT; -pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_IO_HARDLINK_BIT; -pub const IOSQE_ASYNC_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_ASYNC_BIT; -pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_BUFFER_SELECT_BIT; -pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_1 = _bindgen_ty_1::IOSQE_CQE_SKIP_SUCCESS_BIT; -pub const IORING_MSG_DATA: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_DATA; -pub const IORING_MSG_SEND_FD: _bindgen_ty_2 = _bindgen_ty_2::IORING_MSG_SEND_FD; -pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_3 = _bindgen_ty_3::IORING_CQE_BUFFER_SHIFT; -pub const IORING_REGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS; -pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_BUFFERS; -pub const IORING_REGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES; -pub const IORING_UNREGISTER_FILES: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_FILES; -pub const IORING_REGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD; -pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_EVENTFD; -pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE; -pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_EVENTFD_ASYNC; -pub const IORING_REGISTER_PROBE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PROBE; -pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PERSONALITY; -pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PERSONALITY; -pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RESTRICTIONS; -pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_ENABLE_RINGS; -pub const IORING_REGISTER_FILES2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES2; -pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILES_UPDATE2; -pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS2; -pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_BUFFERS_UPDATE; -pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_AFF; -pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_IOWQ_AFF; -pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_IOWQ_MAX_WORKERS; -pub const IORING_REGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_RING_FDS; -pub const IORING_UNREGISTER_RING_FDS: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_RING_FDS; -pub const IORING_REGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_PBUF_RING; -pub const IORING_UNREGISTER_PBUF_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_UNREGISTER_PBUF_RING; -pub const IORING_REGISTER_SYNC_CANCEL: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_SYNC_CANCEL; -pub const IORING_REGISTER_FILE_ALLOC_RANGE: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_FILE_ALLOC_RANGE; -pub const IORING_REGISTER_LAST: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_LAST; -pub const IORING_REGISTER_USE_REGISTERED_RING: _bindgen_ty_4 = _bindgen_ty_4::IORING_REGISTER_USE_REGISTERED_RING; -pub const IO_WQ_BOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_BOUND; -pub const IO_WQ_UNBOUND: _bindgen_ty_5 = _bindgen_ty_5::IO_WQ_UNBOUND; -pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_REGISTER_OP; -pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_OP; -pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; -pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; -pub const IORING_RESTRICTION_LAST: _bindgen_ty_6 = _bindgen_ty_6::IORING_RESTRICTION_LAST; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum fsconfig_command { -FSCONFIG_SET_FLAG = 0, -FSCONFIG_SET_STRING = 1, -FSCONFIG_SET_BINARY = 2, -FSCONFIG_SET_PATH = 3, -FSCONFIG_SET_PATH_EMPTY = 4, -FSCONFIG_SET_FD = 5, -FSCONFIG_CMD_CREATE = 6, -FSCONFIG_CMD_RECONFIGURE = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IOSQE_FIXED_FILE_BIT = 0, -IOSQE_IO_DRAIN_BIT = 1, -IOSQE_IO_LINK_BIT = 2, -IOSQE_IO_HARDLINK_BIT = 3, -IOSQE_ASYNC_BIT = 4, -IOSQE_BUFFER_SELECT_BIT = 5, -IOSQE_CQE_SKIP_SUCCESS_BIT = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_op { -IORING_OP_NOP = 0, -IORING_OP_READV = 1, -IORING_OP_WRITEV = 2, -IORING_OP_FSYNC = 3, -IORING_OP_READ_FIXED = 4, -IORING_OP_WRITE_FIXED = 5, -IORING_OP_POLL_ADD = 6, -IORING_OP_POLL_REMOVE = 7, -IORING_OP_SYNC_FILE_RANGE = 8, -IORING_OP_SENDMSG = 9, -IORING_OP_RECVMSG = 10, -IORING_OP_TIMEOUT = 11, -IORING_OP_TIMEOUT_REMOVE = 12, -IORING_OP_ACCEPT = 13, -IORING_OP_ASYNC_CANCEL = 14, -IORING_OP_LINK_TIMEOUT = 15, -IORING_OP_CONNECT = 16, -IORING_OP_FALLOCATE = 17, -IORING_OP_OPENAT = 18, -IORING_OP_CLOSE = 19, -IORING_OP_FILES_UPDATE = 20, -IORING_OP_STATX = 21, -IORING_OP_READ = 22, -IORING_OP_WRITE = 23, -IORING_OP_FADVISE = 24, -IORING_OP_MADVISE = 25, -IORING_OP_SEND = 26, -IORING_OP_RECV = 27, -IORING_OP_OPENAT2 = 28, -IORING_OP_EPOLL_CTL = 29, -IORING_OP_SPLICE = 30, -IORING_OP_PROVIDE_BUFFERS = 31, -IORING_OP_REMOVE_BUFFERS = 32, -IORING_OP_TEE = 33, -IORING_OP_SHUTDOWN = 34, -IORING_OP_RENAMEAT = 35, -IORING_OP_UNLINKAT = 36, -IORING_OP_MKDIRAT = 37, -IORING_OP_SYMLINKAT = 38, -IORING_OP_LINKAT = 39, -IORING_OP_MSG_RING = 40, -IORING_OP_FSETXATTR = 41, -IORING_OP_SETXATTR = 42, -IORING_OP_FGETXATTR = 43, -IORING_OP_GETXATTR = 44, -IORING_OP_SOCKET = 45, -IORING_OP_URING_CMD = 46, -IORING_OP_SEND_ZC = 47, -IORING_OP_SENDMSG_ZC = 48, -IORING_OP_LAST = 49, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IORING_MSG_DATA = 0, -IORING_MSG_SEND_FD = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IORING_CQE_BUFFER_SHIFT = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IORING_REGISTER_BUFFERS = 0, -IORING_UNREGISTER_BUFFERS = 1, -IORING_REGISTER_FILES = 2, -IORING_UNREGISTER_FILES = 3, -IORING_REGISTER_EVENTFD = 4, -IORING_UNREGISTER_EVENTFD = 5, -IORING_REGISTER_FILES_UPDATE = 6, -IORING_REGISTER_EVENTFD_ASYNC = 7, -IORING_REGISTER_PROBE = 8, -IORING_REGISTER_PERSONALITY = 9, -IORING_UNREGISTER_PERSONALITY = 10, -IORING_REGISTER_RESTRICTIONS = 11, -IORING_REGISTER_ENABLE_RINGS = 12, -IORING_REGISTER_FILES2 = 13, -IORING_REGISTER_FILES_UPDATE2 = 14, -IORING_REGISTER_BUFFERS2 = 15, -IORING_REGISTER_BUFFERS_UPDATE = 16, -IORING_REGISTER_IOWQ_AFF = 17, -IORING_UNREGISTER_IOWQ_AFF = 18, -IORING_REGISTER_IOWQ_MAX_WORKERS = 19, -IORING_REGISTER_RING_FDS = 20, -IORING_UNREGISTER_RING_FDS = 21, -IORING_REGISTER_PBUF_RING = 22, -IORING_UNREGISTER_PBUF_RING = 23, -IORING_REGISTER_SYNC_CANCEL = 24, -IORING_REGISTER_FILE_ALLOC_RANGE = 25, -IORING_REGISTER_LAST = 26, -IORING_REGISTER_USE_REGISTERED_RING = 2147483648, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IO_WQ_BOUND = 0, -IO_WQ_UNBOUND = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IORING_RESTRICTION_REGISTER_OP = 0, -IORING_RESTRICTION_SQE_OP = 1, -IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, -IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, -IORING_RESTRICTION_LAST = 4, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { -pub version: __u8, -pub v1: fscrypt_policy_v1, -pub v2: fscrypt_policy_v2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union fscrypt_key_specifier__bindgen_ty_1 { -pub __reserved: [__u8; 32usize], -pub descriptor: [__u8; 8usize], -pub identifier: [__u8; 16usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_1 { -pub off: __u64, -pub addr2: __u64, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_2 { -pub addr: __u64, -pub splice_off_in: __u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_3 { -pub rw_flags: __kernel_rwf_t, -pub fsync_flags: __u32, -pub poll_events: __u16, -pub poll32_events: __u32, -pub sync_range_flags: __u32, -pub msg_flags: __u32, -pub timeout_flags: __u32, -pub accept_flags: __u32, -pub cancel_flags: __u32, -pub open_flags: __u32, -pub statx_flags: __u32, -pub fadvise_advice: __u32, -pub splice_flags: __u32, -pub rename_flags: __u32, -pub unlink_flags: __u32, -pub hardlink_flags: __u32, -pub xattr_flags: __u32, -pub msg_ring_flags: __u32, -pub uring_cmd_flags: __u32, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_4 { -pub buf_index: __u16, -pub buf_group: __u16, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_sqe__bindgen_ty_5 { -pub splice_fd_in: __s32, -pub file_index: __u32, -pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_restriction__bindgen_ty_1 { -pub register_op: __u8, -pub sqe_op: __u8, -pub sqe_flags: __u8, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/third_party/rust/linux-raw-sys/src/x86_64/ioctl.rs b/third_party/rust/linux-raw-sys/src/x86_64/ioctl.rs deleted file mode 100644 index b182418daff5..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/ioctl.rs +++ /dev/null @@ -1,1593 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub const FIONREAD: u32 = 21531; -pub const FIONBIO: u32 = 21537; -pub const FIOCLEX: u32 = 21585; -pub const FIONCLEX: u32 = 21584; -pub const FIOASYNC: u32 = 21586; -pub const FIOQSIZE: u32 = 21600; -pub const TCXONC: u32 = 21514; -pub const TCFLSH: u32 = 21515; -pub const TIOCSCTTY: u32 = 21518; -pub const TIOCSPGRP: u32 = 21520; -pub const TIOCOUTQ: u32 = 21521; -pub const TIOCSTI: u32 = 21522; -pub const TIOCSWINSZ: u32 = 21524; -pub const TIOCMGET: u32 = 21525; -pub const TIOCMBIS: u32 = 21526; -pub const TIOCMBIC: u32 = 21527; -pub const TIOCMSET: u32 = 21528; -pub const TIOCSSOFTCAR: u32 = 21530; -pub const TIOCLINUX: u32 = 21532; -pub const TIOCCONS: u32 = 21533; -pub const TIOCSSERIAL: u32 = 21535; -pub const TIOCPKT: u32 = 21536; -pub const TIOCNOTTY: u32 = 21538; -pub const TIOCSETD: u32 = 21539; -pub const TIOCSBRK: u32 = 21543; -pub const TIOCCBRK: u32 = 21544; -pub const TIOCSRS485: u32 = 21551; -pub const TIOCSPTLCK: u32 = 1074025521; -pub const TIOCSIG: u32 = 1074025526; -pub const TIOCVHANGUP: u32 = 21559; -pub const TIOCSERCONFIG: u32 = 21587; -pub const TIOCSERGWILD: u32 = 21588; -pub const TIOCSERSWILD: u32 = 21589; -pub const TIOCSLCKTRMIOS: u32 = 21591; -pub const TIOCSERGSTRUCT: u32 = 21592; -pub const TIOCSERGETLSR: u32 = 21593; -pub const TIOCSERGETMULTI: u32 = 21594; -pub const TIOCSERSETMULTI: u32 = 21595; -pub const TIOCMIWAIT: u32 = 21596; -pub const TCGETS: u32 = 21505; -pub const TCGETA: u32 = 21509; -pub const TCSBRK: u32 = 21513; -pub const TCSBRKP: u32 = 21541; -pub const TCSETA: u32 = 21510; -pub const TCSETAF: u32 = 21512; -pub const TCSETAW: u32 = 21511; -pub const TIOCEXCL: u32 = 21516; -pub const TIOCNXCL: u32 = 21517; -pub const TIOCGDEV: u32 = 2147767346; -pub const TIOCGEXCL: u32 = 2147767360; -pub const TIOCGICOUNT: u32 = 21597; -pub const TIOCGLCKTRMIOS: u32 = 21590; -pub const TIOCGPGRP: u32 = 21519; -pub const TIOCGPKT: u32 = 2147767352; -pub const TIOCGPTLCK: u32 = 2147767353; -pub const TIOCGPTN: u32 = 2147767344; -pub const TIOCGPTPEER: u32 = 21569; -pub const TIOCGRS485: u32 = 21550; -pub const TIOCGSERIAL: u32 = 21534; -pub const TIOCGSID: u32 = 21545; -pub const TIOCGSOFTCAR: u32 = 21529; -pub const TIOCGWINSZ: u32 = 21523; -pub const TCGETS2: u32 = 2150388778; -pub const TCGETX: u32 = 21554; -pub const TCSETS: u32 = 21506; -pub const TCSETS2: u32 = 1076646955; -pub const TCSETSF: u32 = 21508; -pub const TCSETSF2: u32 = 1076646957; -pub const TCSETSW: u32 = 21507; -pub const TCSETSW2: u32 = 1076646956; -pub const TCSETX: u32 = 21555; -pub const TCSETXF: u32 = 21556; -pub const TCSETXW: u32 = 21557; -pub const TIOCGETD: u32 = 21540; -pub const MTIOCGET: u32 = 2150657282; -pub const BLKSSZGET: u32 = 4712; -pub const BLKPBSZGET: u32 = 4731; -pub const BLKROSET: u32 = 4701; -pub const BLKROGET: u32 = 4702; -pub const BLKRRPART: u32 = 4703; -pub const BLKGETSIZE: u32 = 4704; -pub const BLKFLSBUF: u32 = 4705; -pub const BLKRASET: u32 = 4706; -pub const BLKRAGET: u32 = 4707; -pub const BLKFRASET: u32 = 4708; -pub const BLKFRAGET: u32 = 4709; -pub const BLKSECTSET: u32 = 4710; -pub const BLKSECTGET: u32 = 4711; -pub const BLKPG: u32 = 4713; -pub const BLKBSZGET: u32 = 2148012656; -pub const BLKBSZSET: u32 = 1074270833; -pub const BLKGETSIZE64: u32 = 2148012658; -pub const BLKTRACESETUP: u32 = 3225948787; -pub const BLKTRACESTART: u32 = 4724; -pub const BLKTRACESTOP: u32 = 4725; -pub const BLKTRACETEARDOWN: u32 = 4726; -pub const BLKDISCARD: u32 = 4727; -pub const BLKIOMIN: u32 = 4728; -pub const BLKIOOPT: u32 = 4729; -pub const BLKALIGNOFF: u32 = 4730; -pub const BLKDISCARDZEROES: u32 = 4732; -pub const BLKSECDISCARD: u32 = 4733; -pub const BLKROTATIONAL: u32 = 4734; -pub const BLKZEROOUT: u32 = 4735; -pub const UFFDIO_REGISTER: u32 = 3223366144; -pub const UFFDIO_UNREGISTER: u32 = 2148575745; -pub const UFFDIO_WAKE: u32 = 2148575746; -pub const UFFDIO_COPY: u32 = 3223890435; -pub const UFFDIO_ZEROPAGE: u32 = 3223366148; -pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; -pub const UFFDIO_API: u32 = 3222841919; -pub const NS_GET_USERNS: u32 = 46849; -pub const NS_GET_PARENT: u32 = 46850; -pub const NS_GET_NSTYPE: u32 = 46851; -pub const KDGETLED: u32 = 19249; -pub const KDSETLED: u32 = 19250; -pub const KDGKBLED: u32 = 19300; -pub const KDSKBLED: u32 = 19301; -pub const KDGKBTYPE: u32 = 19251; -pub const KDADDIO: u32 = 19252; -pub const KDDELIO: u32 = 19253; -pub const KDENABIO: u32 = 19254; -pub const KDDISABIO: u32 = 19255; -pub const KDSETMODE: u32 = 19258; -pub const KDGETMODE: u32 = 19259; -pub const KDMKTONE: u32 = 19248; -pub const KIOCSOUND: u32 = 19247; -pub const GIO_CMAP: u32 = 19312; -pub const PIO_CMAP: u32 = 19313; -pub const GIO_FONT: u32 = 19296; -pub const GIO_FONTX: u32 = 19307; -pub const PIO_FONT: u32 = 19297; -pub const PIO_FONTX: u32 = 19308; -pub const PIO_FONTRESET: u32 = 19309; -pub const GIO_SCRNMAP: u32 = 19264; -pub const GIO_UNISCRNMAP: u32 = 19305; -pub const PIO_SCRNMAP: u32 = 19265; -pub const PIO_UNISCRNMAP: u32 = 19306; -pub const GIO_UNIMAP: u32 = 19302; -pub const PIO_UNIMAP: u32 = 19303; -pub const PIO_UNIMAPCLR: u32 = 19304; -pub const KDGKBMODE: u32 = 19268; -pub const KDSKBMODE: u32 = 19269; -pub const KDGKBMETA: u32 = 19298; -pub const KDSKBMETA: u32 = 19299; -pub const KDGKBENT: u32 = 19270; -pub const KDSKBENT: u32 = 19271; -pub const KDGKBSENT: u32 = 19272; -pub const KDSKBSENT: u32 = 19273; -pub const KDGKBDIACR: u32 = 19274; -pub const KDGETKEYCODE: u32 = 19276; -pub const KDSETKEYCODE: u32 = 19277; -pub const KDSIGACCEPT: u32 = 19278; -pub const VT_OPENQRY: u32 = 22016; -pub const VT_GETMODE: u32 = 22017; -pub const VT_SETMODE: u32 = 22018; -pub const VT_GETSTATE: u32 = 22019; -pub const VT_RELDISP: u32 = 22021; -pub const VT_ACTIVATE: u32 = 22022; -pub const VT_WAITACTIVE: u32 = 22023; -pub const VT_DISALLOCATE: u32 = 22024; -pub const VT_RESIZE: u32 = 22025; -pub const VT_RESIZEX: u32 = 22026; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP: u32 = 35078; -pub const TIOCINQ: u32 = 21531; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const FIBMAP: u32 = 1; -pub const FIGETBSZ: u32 = 2; -pub const FIFREEZE: u32 = 3221510263; -pub const FITHAW: u32 = 3221510264; -pub const FITRIM: u32 = 3222820985; -pub const FICLONE: u32 = 1074041865; -pub const FICLONERANGE: u32 = 1075876877; -pub const FIDEDUPERANGE: u32 = 3222836278; -pub const FS_IOC_GETFLAGS: u32 = 2148034049; -pub const FS_IOC_SETFLAGS: u32 = 1074292226; -pub const FS_IOC_GETVERSION: u32 = 2148038145; -pub const FS_IOC_SETVERSION: u32 = 1074296322; -pub const FS_IOC_FIEMAP: u32 = 3223348747; -pub const FS_IOC32_GETFLAGS: u32 = 2147771905; -pub const FS_IOC32_SETFLAGS: u32 = 1074030082; -pub const FS_IOC32_GETVERSION: u32 = 2147776001; -pub const FS_IOC32_SETVERSION: u32 = 1074034178; -pub const FS_IOC_FSGETXATTR: u32 = 2149341215; -pub const FS_IOC_FSSETXATTR: u32 = 1075599392; -pub const FS_IOC_GETFSLABEL: u32 = 2164298801; -pub const FS_IOC_SETFSLABEL: u32 = 1090556978; -pub const EXT4_IOC_GETVERSION: u32 = 2148034051; -pub const EXT4_IOC_SETVERSION: u32 = 1074292228; -pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; -pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; -pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; -pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; -pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; -pub const EXT4_IOC_MIGRATE: u32 = 26121; -pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; -pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; -pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; -pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; -pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; -pub const EXT4_IOC_GETSTATE: u32 = 1074030121; -pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; -pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; -pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; -pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; -pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; -pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; -pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; -pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; -pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; -pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; -pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; -pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; -pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; -pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; -pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; -pub const FSI_SCOM_WRITE: u32 = 3223352066; -pub const ATM_GETCIRANGE: u32 = 1074815370; -pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; -pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; -pub const TUNSETPERSIST: u32 = 1074025675; -pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; -pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; -pub const RIO_GET_EVENT_MASK: u32 = 2147773710; -pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; -pub const KVM_SET_BOOT_CPU_ID: u32 = 44664; -pub const KVM_SET_MP_STATE: u32 = 1074048665; -pub const KVM_GET_MP_STATE: u32 = 2147790488; -pub const KVM_GET_API_VERSION: u32 = 44544; -pub const KVM_S390_GET_SKEYS: u32 = 1077980850; -pub const KVM_SET_ONE_REG: u32 = 1074835116; -pub const KVM_IRQ_LINE_STATUS: u32 = 3221794407; -pub const KVM_SET_USER_MEMORY_REGION: u32 = 1075883590; -pub const KVM_S390_INTERRUPT: u32 = 1074835092; -pub const KVM_TPR_ACCESS_REPORTING: u32 = 3223891602; -pub const KVM_GET_FPU: u32 = 2174791308; -pub const KVM_ASSIGN_SET_MSIX_ENTRY: u32 = 1074835060; -pub const KVM_MEMORY_ENCRYPT_REG_REGION: u32 = 2148576955; -pub const KVM_S390_UCAS_MAP: u32 = 1075359312; -pub const KVM_ASSIGN_SET_INTX_MASK: u32 = 1077980836; -pub const KVM_MEMORY_ENCRYPT_OP: u32 = 3221794490; -pub const KVM_CREATE_PIT2: u32 = 1077980791; -pub const KVM_S390_VCPU_FAULT: u32 = 1074310738; -pub const KVM_REGISTER_COALESCED_MMIO: u32 = 1074835047; -pub const KVM_SET_VAPIC_ADDR: u32 = 1074310803; -pub const KVM_CREATE_DEVICE: u32 = 3222056672; -pub const KVM_GET_IRQCHIP: u32 = 3255348834; -pub const KVM_TRANSLATE: u32 = 3222843013; -pub const KVM_S390_SET_INITIAL_PSW: u32 = 1074835094; -pub const KVM_X86_SETUP_MCE: u32 = 1074310812; -pub const KVM_DEASSIGN_PCI_DEVICE: u32 = 1077980786; -pub const KVM_XEN_HVM_SET_ATTR: u32 = 1078505161; -pub const KVM_GET_CLOCK: u32 = 2150674044; -pub const KVM_SET_FPU: u32 = 1101049485; -pub const KVM_KVMCLOCK_CTRL: u32 = 44717; -pub const KVM_PPC_GET_PVINFO: u32 = 1082175137; -pub const KVM_X86_GET_MCE_CAP_SUPPORTED: u32 = 2148052637; -pub const KVM_S390_GET_IRQ_STATE: u32 = 1075883702; -pub const KVM_GET_DEVICE_ATTR: u32 = 1075359458; -pub const KVM_S390_INITIAL_RESET: u32 = 44695; -pub const KVM_SET_REGS: u32 = 1083223682; -pub const KVM_GET_TSC_KHZ: u32 = 44707; -pub const KVM_CHECK_EXTENSION: u32 = 44547; -pub const KVM_PPC_RESIZE_HPT_COMMIT: u32 = 2148576942; -pub const KVM_GET_DIRTY_LOG: u32 = 1074835010; -pub const KVM_S390_SET_IRQ_STATE: u32 = 1075883701; -pub const KVM_S390_NORMAL_RESET: u32 = 44739; -pub const KVM_SET_SIGNAL_MASK: u32 = 1074048651; -pub const KVM_XEN_VCPU_SET_ATTR: u32 = 1078505163; -pub const KVM_SET_GSI_ROUTING: u32 = 1074310762; -pub const KVM_CREATE_VCPU: u32 = 44609; -pub const KVM_S390_UCAS_UNMAP: u32 = 1075359313; -pub const KVM_S390_STORE_STATUS: u32 = 1074310805; -pub const KVM_UNREGISTER_COALESCED_MMIO: u32 = 1074835048; -pub const KVM_ASSIGN_DEV_IRQ: u32 = 1077980784; -pub const KVM_S390_PV_COMMAND: u32 = 3223367365; -pub const KVM_S390_ENABLE_SIE: u32 = 44550; -pub const KVM_CLEAR_DIRTY_LOG: u32 = 3222843072; -pub const KVM_GET_ONE_REG: u32 = 1074835115; -pub const KVM_ARM_SET_DEVICE_ADDR: u32 = 1074835115; -pub const KVM_DIRTY_TLB: u32 = 1074835114; -pub const KVM_NMI: u32 = 44698; -pub const KVM_HYPERV_EVENTFD: u32 = 1075359421; -pub const KVM_S390_MEM_OP: u32 = 1077980849; -pub const KVM_PPC_SVM_OFF: u32 = 44723; -pub const KVM_PPC_RESIZE_HPT_PREPARE: u32 = 2148576941; -pub const KVM_INTERRUPT: u32 = 1074048646; -pub const KVM_XEN_HVM_GET_ATTR: u32 = 3225988808; -pub const KVM_GET_SREGS: u32 = 2167975555; -pub const KVM_SET_IDENTITY_MAP_ADDR: u32 = 1074310728; -pub const KVM_GET_REGS: u32 = 2156965505; -pub const KVM_S390_GET_CMMA_BITS: u32 = 3223367352; -pub const KVM_CREATE_IRQCHIP: u32 = 44640; -pub const KVM_ASSIGN_PCI_DEVICE: u32 = 2151722601; -pub const KVM_SET_NR_MMU_PAGES: u32 = 44612; -pub const KVM_IOEVENTFD: u32 = 1077980793; -pub const KVM_RUN: u32 = 44672; -pub const KVM_S390_SET_SKEYS: u32 = 1077980851; -pub const KVM_SET_DEVICE_ATTR: u32 = 1075359457; -pub const KVM_DEASSIGN_DEV_IRQ: u32 = 1077980789; -pub const KVM_SMI: u32 = 44727; -pub const KVM_SET_TSS_ADDR: u32 = 44615; -pub const KVM_GET_NR_MMU_PAGES: u32 = 44613; -pub const KVM_XEN_VCPU_GET_ATTR: u32 = 3225988810; -pub const KVM_REINJECT_CONTROL: u32 = 44657; -pub const KVM_HAS_DEVICE_ATTR: u32 = 1075359459; -pub const KVM_IRQFD: u32 = 1075883638; -pub const KVM_S390_SET_CMMA_BITS: u32 = 1075883705; -pub const KVM_SET_IRQCHIP: u32 = 2181607011; -pub const KVM_SIGNAL_MSI: u32 = 1075883685; -pub const KVM_GET_VCPU_MMAP_SIZE: u32 = 44548; -pub const KVM_CREATE_VM: u32 = 44545; -pub const KVM_S390_CLEAR_RESET: u32 = 44740; -pub const KVM_RESET_DIRTY_RINGS: u32 = 44743; -pub const KVM_ASSIGN_SET_MSIX_NR: u32 = 1074310771; -pub const KVM_CREATE_PIT: u32 = 44644; -pub const KVM_SET_GUEST_DEBUG: u32 = 1078505115; -pub const KVM_GET_REG_LIST: u32 = 3221794480; -pub const KVM_ARM_VCPU_FINALIZE: u32 = 1074048706; -pub const KVM_SET_CLOCK: u32 = 1076932219; -pub const KVM_PPC_ALLOCATE_HTAB: u32 = 3221532327; -pub const KVM_PPC_GET_SMMU_INFO: u32 = 2186325670; -pub const KVM_SET_TSC_KHZ: u32 = 44706; -pub const KVM_S390_IRQ: u32 = 1078505140; -pub const KVM_ENABLE_CAP: u32 = 1080602275; -pub const KVM_IRQ_LINE: u32 = 1074310753; -pub const KVM_SET_SREGS: u32 = 1094233732; -pub const KVM_MEMORY_ENCRYPT_UNREG_REGION: u32 = 2148576956; -pub const KVM_GET_STATS_FD: u32 = 44750; -pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; -pub const CHIOMOVE: u32 = 1075077889; -pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; -pub const BTRFS_IOC_SYNC: u32 = 37896; -pub const VIDIOC_TRY_FMT: u32 = 3234879040; -pub const LIRC_SET_REC_MODE: u32 = 1074030866; -pub const VIDIOC_DQEVENT: u32 = 2156418649; -pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; -pub const UVCIOC_CTRL_MAP: u32 = 3227546912; -pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; -pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; -pub const UI_SET_KEYBIT: u32 = 1074025829; -pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; -pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; -pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; -pub const VHOST_SET_VRING_BASE: u32 = 1074310930; -pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; -pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; -pub const LIRC_GET_REC_MODE: u32 = 2147772674; -pub const PPGETTIME: u32 = 2148561045; -pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; -pub const ATM_SETBACKEND: u32 = 1073897970; -pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; -pub const FBIO_WAITEVENT: u32 = 18056; -pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; -pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; -pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; -pub const FDTWADDLE: u32 = 601; -pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; -pub const NILFS_IOCTL_SYNC: u32 = 2148036234; -pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; -pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; -pub const DM_DEV_STATUS: u32 = 3241737479; -pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; -pub const UI_SET_PROPBIT: u32 = 1074025838; -pub const TUNSETFILTEREBPF: u32 = 2147767521; -pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; -pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; -pub const WDIOC_SETOPTIONS: u32 = 2147768068; -pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; -pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; -pub const FDGETPRM: u32 = 2149581316; -pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; -pub const PTP_SYS_OFFSET2: u32 = 1128283406; -pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; -pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; -pub const PTP_PIN_GETFUNC: u32 = 3227532550; -pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; -pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; -pub const RTC_EPOCH_READ: u32 = 2148036621; -pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; -pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; -pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; -pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; -pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; -pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; -pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; -pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; -pub const UI_DEV_SETUP: u32 = 1079792899; -pub const ISST_IF_IO_CMD: u32 = 1074331138; -pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; -pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; -pub const BLKGETNRZONES: u32 = 2147750533; -pub const VIDIOC_G_MODULATOR: u32 = 3225703990; -pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; -pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; -pub const PPPIOCGCHAN: u32 = 2147775543; -pub const EVIOCGVERSION: u32 = 2147763457; -pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; -pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; -pub const RNDZAPENTCNT: u32 = 20996; -pub const VIDIOC_G_PARM: u32 = 3234616853; -pub const TUNGETDEVNETNS: u32 = 21731; -pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; -pub const VHOST_SET_VRING_ERR: u32 = 1074310946; -pub const VDUSE_VQ_SETUP: u32 = 1075872020; -pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; -pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; -pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; -pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; -pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; -pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; -pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; -pub const STP_SET_OPTIONS: u32 = 1074275586; -pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; -pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; -pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; -pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; -pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; -pub const CHIOSVOLTAG: u32 = 1076912914; -pub const ATM_SETESIF: u32 = 1074815373; -pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; -pub const PMU_IOC_GET_MODEL: u32 = 2148024835; -pub const JSIOCGBTNMAP: u32 = 2214619700; -pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; -pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; -pub const FDCLRPRM: u32 = 577; -pub const BTRFS_IOC_SCRUB: u32 = 3288372251; -pub const USBDEVFS_DISCONNECT: u32 = 21782; -pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; -pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; -pub const PPPIOCGNPMODE: u32 = 3221779532; -pub const FDGETDRVPRM: u32 = 2155872785; -pub const TUNSETVNETLE: u32 = 1074025692; -pub const PHN_SETREG: u32 = 1074294790; -pub const PPPIOCDETACH: u32 = 1074033724; -pub const MMTIMER_GETRES: u32 = 2148035841; -pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; -pub const PPGETFLAGS: u32 = 2147774618; -pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; -pub const VIDIOC_G_TUNER: u32 = 3226752541; -pub const DM_TABLE_STATUS: u32 = 3241737484; -pub const DM_DEV_ARM_POLL: u32 = 3241737488; -pub const NE_CREATE_VM: u32 = 2148052512; -pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; -pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; -pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; -pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; -pub const SONYPI_IOCGBLUE: u32 = 2147579400; -pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; -pub const I2OHTML: u32 = 3224398089; -pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; -pub const I2OPARMSET: u32 = 3223873795; -pub const TEE_IOC_CANCEL: u32 = 2148049924; -pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; -pub const DFL_FPGA_PORT_RESET: u32 = 46656; -pub const PPPIOCGASYNCMAP: u32 = 2147775576; -pub const EVIOCGKEYCODE_V2: u32 = 2150122756; -pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; -pub const HIDIOCSUSAGE: u32 = 1075333132; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; -pub const PTP_EXTTS_REQUEST: u32 = 1074806018; -pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; -pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; -pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; -pub const JSIOCGAXES: u32 = 2147576337; -pub const HIDIOCSFLAG: u32 = 1074022415; -pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; -pub const PPWDATA: u32 = 1073836166; -pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; -pub const FDGETMAXERRS: u32 = 2148794894; -pub const TUNSETQUEUE: u32 = 1074025689; -pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; -pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; -pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; -pub const NBD_SET_BLKSIZE: u32 = 43777; -pub const NBD_SET_TIMEOUT: u32 = 43785; -pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; -pub const RIO_UNMAP_INBOUND: u32 = 1074294034; -pub const ATM_QUERYLOOP: u32 = 1074815316; -pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; -pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; -pub const FBIO_CURSOR: u32 = 3228059144; -pub const RNDCLEARPOOL: u32 = 20998; -pub const VIDIOC_QUERYSTD: u32 = 2148030015; -pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; -pub const SCIF_RECV: u32 = 3222827783; -pub const PTP_PIN_GETFUNC2: u32 = 3227532559; -pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; -pub const CEC_ADAP_G_CAPS: u32 = 3226231040; -pub const VIDIOC_G_FBUF: u32 = 2150651402; -pub const PTP_ENABLE_PPS2: u32 = 1074019597; -pub const PCITEST_CLEAR_IRQ: u32 = 20496; -pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; -pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; -pub const JSIOCGAXMAP: u32 = 2151705138; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; -pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; -pub const RTC_WIE_OFF: u32 = 28688; -pub const PPGETMODE: u32 = 2147774616; -pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; -pub const PTP_SYS_OFFSET: u32 = 1128283397; -pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; -pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; -pub const ND_IOCTL_VENDOR: u32 = 3221769737; -pub const SCIF_VREADFROM: u32 = 3223876364; -pub const BTRFS_IOC_TRANS_START: u32 = 37894; -pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; -pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; -pub const TUNDETACHFILTER: u32 = 1074812118; -pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; -pub const IOC_PR_CLEAR: u32 = 1074819277; -pub const SCIF_READFROM: u32 = 3223876362; -pub const PPPIOCGDEBUG: u32 = 2147775553; -pub const BLKGETZONESZ: u32 = 2147750532; -pub const HIDIOCGUSAGES: u32 = 3491514387; -pub const SONYPI_IOCGTEMP: u32 = 2147579404; -pub const UI_SET_MSCBIT: u32 = 1074025832; -pub const APM_IOC_SUSPEND: u32 = 16642; -pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; -pub const RTC_PLL_GET: u32 = 2149609489; -pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; -pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; -pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; -pub const DM_TARGET_MSG: u32 = 3241737486; -pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; -pub const EVIOCSFF: u32 = 1076905344; -pub const TUNSETGROUP: u32 = 1074025678; -pub const EVIOCGKEYCODE: u32 = 2148025604; -pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; -pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; -pub const FDEJECT: u32 = 602; -pub const TUNSETOFFLOAD: u32 = 1074025680; -pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; -pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; -pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; -pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; -pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; -pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; -pub const UI_ABS_SETUP: u32 = 1075598596; -pub const UI_DEV_DESTROY: u32 = 21762; -pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; -pub const RTC_AIE_ON: u32 = 28673; -pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; -pub const PPPIOCSDEBUG: u32 = 1074033728; -pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; -pub const PPPIOCSMRU: u32 = 1074033746; -pub const CCISS_DEREGDISK: u32 = 16908; -pub const UI_DEV_CREATE: u32 = 21761; -pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; -pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; -pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; -pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; -pub const DM_TABLE_CLEAR: u32 = 3241737482; -pub const CCISS_GETINTINFO: u32 = 2148024834; -pub const PPPIOCSASYNCMAP: u32 = 1074033751; -pub const I2OEVTGET: u32 = 2154326283; -pub const NVME_IOCTL_RESET: u32 = 20036; -pub const PPYIELD: u32 = 28813; -pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; -pub const TUNSETCARRIER: u32 = 1074025698; -pub const DM_DEV_WAIT: u32 = 3241737480; -pub const RTC_WIE_ON: u32 = 28687; -pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; -pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; -pub const RTC_SET_TIME: u32 = 1076129802; -pub const VHOST_RESET_OWNER: u32 = 44802; -pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; -pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; -pub const UDF_GETEABLOCK: u32 = 2148035649; -pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; -pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; -pub const HIDIOCGFLAG: u32 = 2147764238; -pub const HIDIOCGUCODE: u32 = 3222816781; -pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; -pub const DM_REMOVE_ALL: u32 = 3241737473; -pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; -pub const CCISS_GETFIRMVER: u32 = 2147762696; -pub const ND_IOCTL_ARS_START: u32 = 3223342594; -pub const PPPIOCSMRRU: u32 = 1074033723; -pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; -pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; -pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; -pub const PPSETTIME: u32 = 1074819222; -pub const RTC_ALM_READ: u32 = 2149871624; -pub const VDUSE_SET_API_VERSION: u32 = 1074299137; -pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; -pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; -pub const USBDEVFS_CONNECT: u32 = 21783; -pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; -pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; -pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; -pub const NBD_SET_SIZE: u32 = 43778; -pub const UDF_GETVOLIDENT: u32 = 2148035650; -pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; -pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; -pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; -pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; -pub const UDF_GETEASIZE: u32 = 2147773504; -pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; -pub const VHOST_SET_OWNER: u32 = 44801; -pub const RIO_ALLOC_DMA: u32 = 3222826259; -pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; -pub const I2OHRTGET: u32 = 3222825217; -pub const ATM_SETCIRANGE: u32 = 1074815371; -pub const HPET_IE_ON: u32 = 26625; -pub const PERF_EVENT_IOC_ID: u32 = 2148017159; -pub const TUNSETSNDBUF: u32 = 1074025684; -pub const PTP_PIN_SETFUNC: u32 = 1080048903; -pub const PPPIOCDISCONN: u32 = 29753; -pub const VIDIOC_QUERYCTRL: u32 = 3225703972; -pub const PPEXCL: u32 = 28815; -pub const PCITEST_MSI: u32 = 1074024451; -pub const FDWERRORCLR: u32 = 598; -pub const AUTOFS_IOC_FAIL: u32 = 37729; -pub const USBDEVFS_IOCTL: u32 = 3222295826; -pub const VIDIOC_S_STD: u32 = 1074288152; -pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; -pub const SONET_SETDIAG: u32 = 3221512466; -pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; -pub const CCISS_GETDRIVVER: u32 = 2147762697; -pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; -pub const HPET_IRQFREQ: u32 = 1074292742; -pub const ATM_GETESI: u32 = 1074815365; -pub const CCISS_GETLUNINFO: u32 = 2148286993; -pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; -pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; -pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; -pub const UDMABUF_CREATE_LIST: u32 = 1074296131; -pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; -pub const BR2684_SETFILT: u32 = 1075601808; -pub const RNDGETPOOL: u32 = 2148028930; -pub const PPS_GETPARAMS: u32 = 2148036769; -pub const IOC_PR_RESERVE: u32 = 1074819273; -pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; -pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; -pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; -pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; -pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; -pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; -pub const SCIF_WRITETO: u32 = 3223876363; -pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; -pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; -pub const CCISS_REGNEWD: u32 = 16910; -pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; -pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; -pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; -pub const VFIO_EEH_PE_OP: u32 = 15225; -pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; -pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; -pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; -pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; -pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; -pub const VIDIOC_S_AUDOUT: u32 = 1077171762; -pub const VIDIOC_S_FMT: u32 = 3234878981; -pub const PPPIOCATTACH: u32 = 1074033725; -pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; -pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; -pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; -pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; -pub const PCITEST_LEGACY_IRQ: u32 = 20482; -pub const USBDEVFS_SUBMITURB: u32 = 2151175434; -pub const AUTOFS_IOC_READY: u32 = 37728; -pub const BTRFS_IOC_SEND: u32 = 1078498342; -pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; -pub const JSIOCSBTNMAP: u32 = 1140877875; -pub const PPPIOCSFLAGS: u32 = 1074033753; -pub const NVRAM_INIT: u32 = 28736; -pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; -pub const BTRFS_IOC_BALANCE: u32 = 1342215180; -pub const FS_IOC_GETFSMAP: u32 = 3233830971; -pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; -pub const STP_POLICY_ID_GET: u32 = 2148541697; -pub const PPSETFLAGS: u32 = 1074032795; -pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; -pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; -pub const PPPIOCGXASYNCMAP: u32 = 2149610576; -pub const VHOST_SET_VRING_CALL: u32 = 1074310945; -pub const LIRC_GET_FEATURES: u32 = 2147772672; -pub const GSMIOC_DISABLE_NET: u32 = 18179; -pub const AUTOFS_IOC_CATATONIC: u32 = 37730; -pub const NBD_DO_IT: u32 = 43779; -pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; -pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; -pub const EVIOCSCLOCKID: u32 = 1074021792; -pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; -pub const FSI_SCOM_RESET: u32 = 1074033411; -pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; -pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; -pub const FDDEFPRM: u32 = 1075839555; -pub const TEE_IOC_INVOKE: u32 = 2148574211; -pub const USBDEVFS_BULK: u32 = 3222820098; -pub const SCIF_VWRITETO: u32 = 3223876365; -pub const SONYPI_IOCSBRT: u32 = 1073837568; -pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; -pub const RTC_PIE_ON: u32 = 28677; -pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; -pub const PPPIOCXFERUNIT: u32 = 29774; -pub const WDIOC_GETTIMEOUT: u32 = 2147768071; -pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; -pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; -pub const FBIO_WAITFORVSYNC: u32 = 1074021920; -pub const RTC_PIE_OFF: u32 = 28678; -pub const EVIOCGRAB: u32 = 1074021776; -pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; -pub const EVIOCGREP: u32 = 2148025603; -pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; -pub const UFFDIO_CONTINUE: u32 = 3223366151; -pub const VDUSE_GET_API_VERSION: u32 = 2148040960; -pub const RTC_RD_TIME: u32 = 2149871625; -pub const FDMSGOFF: u32 = 582; -pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; -pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; -pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; -pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; -pub const RIO_DEV_ADD: u32 = 1075866903; -pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; -pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; -pub const PCITEST_GET_IRQTYPE: u32 = 20489; -pub const JSIOCGVERSION: u32 = 2147772929; -pub const SONYPI_IOCSBLUE: u32 = 1073837577; -pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; -pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; -pub const SCIF_REG: u32 = 3223876360; -pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; -pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; -pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; -pub const VHOST_SET_VRING_NUM: u32 = 1074310928; -pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; -pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; -pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; -pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; -pub const PPPIOCGL2TPSTATS: u32 = 2152231990; -pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; -pub const PTP_PIN_SETFUNC2: u32 = 1080048912; -pub const CHIOEXCHANGE: u32 = 1075602178; -pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; -pub const CEC_DQEVENT: u32 = 3226493191; -pub const UI_SET_SWBIT: u32 = 1074025837; -pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; -pub const TUNSETIFF: u32 = 1074025674; -pub const CHIOPOSITION: u32 = 1074553603; -pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; -pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; -pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; -pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; -pub const EVIOCSMASK: u32 = 1074808211; -pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; -pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; -pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; -pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; -pub const PPSETMODE: u32 = 1074032768; -pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; -pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; -pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; -pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; -pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; -pub const UDMABUF_CREATE: u32 = 1075344706; -pub const SONET_CLRDIAG: u32 = 3221512467; -pub const PHN_SET_REG: u32 = 1074294785; -pub const RNDADDTOENTCNT: u32 = 1074024961; -pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; -pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; -pub const PPS_FETCH: u32 = 3221778596; -pub const RTC_AIE_OFF: u32 = 28674; -pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; -pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; -pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; -pub const VFIO_IOMMU_GET_INFO: u32 = 15216; -pub const DM_DEV_SUSPEND: u32 = 3241737478; -pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; -pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; -pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; -pub const PPPIOCSXASYNCMAP: u32 = 1075868751; -pub const CHIOGSTATUS: u32 = 1074815752; -pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; -pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; -pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; -pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; -pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; -pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; -pub const VHOST_GET_FEATURES: u32 = 2148052736; -pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; -pub const PACKET_CTRL_CMD: u32 = 3222820865; -pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; -pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; -pub const JSIOCGCORR: u32 = 2149870114; -pub const VIDIOC_G_FMT: u32 = 3234878980; -pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; -pub const ATM_GETLOOP: u32 = 1074815314; -pub const SCIF_LISTEN: u32 = 1074033410; -pub const NBD_CLEAR_QUE: u32 = 43781; -pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; -pub const LIRC_GET_LENGTH: u32 = 2147772687; -pub const I8K_SET_FAN: u32 = 3221776775; -pub const FDSETMAXERRS: u32 = 1075053132; -pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; -pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; -pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; -pub const EVIOCRMFF: u32 = 1074021761; -pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; -pub const PPRDATA: u32 = 2147577989; -pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; -pub const TUNSETVNETHDRSZ: u32 = 1074025688; -pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; -pub const GSMIOC_GETCONF: u32 = 2152482560; -pub const LIRC_GET_SEND_MODE: u32 = 2147772673; -pub const PPPIOCSACTIVE: u32 = 1074820166; -pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; -pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; -pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; -pub const UI_END_FF_ERASE: u32 = 1074550219; -pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; -pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; -pub const NBD_SET_FLAGS: u32 = 43786; -pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074318593; -pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; -pub const RIO_SET_EVENT_MASK: u32 = 1074031885; -pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; -pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; -pub const I2OPASSTHRU: u32 = 2148559116; -pub const IOC_OPAL_SET_PW: u32 = 1109422304; -pub const FSI_SCOM_READ: u32 = 3223352065; -pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; -pub const VIDIOC_QBUF: u32 = 3227014671; -pub const VIDIOC_S_TUNER: u32 = 1079268894; -pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; -pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; -pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; -pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; -pub const TEE_IOC_VERSION: u32 = 2148312064; -pub const VIDIOC_LOG_STATUS: u32 = 22086; -pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; -pub const VHOST_SET_LOG_FD: u32 = 1074048775; -pub const SCIF_SEND: u32 = 3222827782; -pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; -pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; -pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; -pub const PHN_GETREG: u32 = 3221778437; -pub const I2OSWDL: u32 = 3224398085; -pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; -pub const JSIOCGBUTTONS: u32 = 2147576338; -pub const VFIO_IOMMU_ENABLE: u32 = 15219; -pub const DM_DEV_RENAME: u32 = 3241737477; -pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; -pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; -pub const STP_POLICY_ID_SET: u32 = 3222283520; -pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; -pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; -pub const VIDIOC_S_CROP: u32 = 1075074620; -pub const WDIOC_GETTEMP: u32 = 2147768067; -pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; -pub const UI_SET_LEDBIT: u32 = 1074025833; -pub const NBD_SET_SOCK: u32 = 43776; -pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; -pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; -pub const I2OSWUL: u32 = 3224398086; -pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; -pub const FDFMTTRK: u32 = 1074528840; -pub const MMTIMER_GETBITS: u32 = 27908; -pub const VIDIOC_ENUMSTD: u32 = 3225966105; -pub const VHOST_GET_VRING_BASE: u32 = 3221794578; -pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; -pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; -pub const RTC_VL_READ: u32 = 2147774483; -pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; -pub const RIO_DEV_DEL: u32 = 1075866904; -pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; -pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; -pub const SONYPI_IOCSFAN: u32 = 1073837579; -pub const SPIOCSTYPE: u32 = 1074295041; -pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; -pub const I8K_GET_FAN: u32 = 3221776774; -pub const TUNGETVNETBE: u32 = 2147767519; -pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; -pub const UI_END_FF_UPLOAD: u32 = 1080579529; -pub const TOSH_SMM: u32 = 3222828176; -pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; -pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; -pub const PPPIOCSNPMODE: u32 = 1074295883; -pub const USBDEVFS_CONTROL: u32 = 3222820096; -pub const HIDIOCGUSAGE: u32 = 3222816779; -pub const TUNSETTXFILTER: u32 = 1074025681; -pub const TUNGETVNETLE: u32 = 2147767517; -pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; -pub const HIDIOCGFIELDINFO: u32 = 3224913930; -pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; -pub const I2OVALIDATE: u32 = 2147772680; -pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; -pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; -pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; -pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; -pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; -pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; -pub const FDGETDRVSTAT: u32 = 2152727058; -pub const SYNC_IOC_MERGE: u32 = 3224387075; -pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; -pub const PPPIOCBRIDGECHAN: u32 = 1074033717; -pub const LIRC_SET_SEND_MODE: u32 = 1074030865; -pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; -pub const ATM_GETTYPE: u32 = 1074815364; -pub const PHN_GETREGS: u32 = 3223875591; -pub const FDSETEMSGTRESH: u32 = 586; -pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; -pub const EVIOCGMASK: u32 = 2148550034; -pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; -pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; -pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; -pub const GSMIOC_GETFIRST: u32 = 2147763972; -pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; -pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; -pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; -pub const FDSETDRVPRM: u32 = 1082131088; -pub const IOC_OPAL_SAVE: u32 = 1092120796; -pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; -pub const TUNSETIFINDEX: u32 = 1074025690; -pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074291706; -pub const RTC_VL_CLR: u32 = 28692; -pub const VIDIOC_REQBUFS: u32 = 3222558216; -pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; -pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; -pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; -pub const CCISS_GETNODENAME: u32 = 2148549124; -pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; -pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; -pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; -pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; -pub const LPSETTIMEOUT_NEW: u32 = 1074791951; -pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; -pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; -pub const FDRAWCMD: u32 = 600; -pub const SCIF_UNREG: u32 = 3222303497; -pub const PPPIOCGIDLE64: u32 = 2148561983; -pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; -pub const VIDIOC_CROPCAP: u32 = 3224131130; -pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; -pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; -pub const VIDIOC_S_SELECTION: u32 = 3225441887; -pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; -pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; -pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; -pub const MTIOCPOS: u32 = 2148035843; -pub const PMU_IOC_SLEEP: u32 = 16896; -pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; -pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; -pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; -pub const VIDIOC_QUERYCAP: u32 = 2154321408; -pub const HPET_INFO: u32 = 2149083139; -pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; -pub const DM_LIST_DEVICES: u32 = 3241737474; -pub const TUNSETOWNER: u32 = 1074025676; -pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; -pub const RNDADDENTROPY: u32 = 1074287107; -pub const USBDEVFS_RESET: u32 = 21780; -pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; -pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; -pub const FDGETDRVTYP: u32 = 2148532751; -pub const PPWCONTROL: u32 = 1073836164; -pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; -pub const KCOV_DISABLE: u32 = 25445; -pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; -pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; -pub const PPPIOCSPASS: u32 = 1074820167; -pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; -pub const I2OSWDEL: u32 = 3224398087; -pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; -pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; -pub const PPPIOCSMAXCID: u32 = 1074033745; -pub const PPSETPHASE: u32 = 1074032788; -pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; -pub const USBDEVFS_GET_SPEED: u32 = 21791; -pub const SONET_GETFRAMING: u32 = 2147770646; -pub const VIDIOC_QUERYBUF: u32 = 3227014665; -pub const VIDIOC_S_EDID: u32 = 3223868969; -pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; -pub const PPS_GETCAP: u32 = 2148036771; -pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; -pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; -pub const SCIF_GET_NODEIDS: u32 = 3222827790; -pub const NBD_DISCONNECT: u32 = 43784; -pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; -pub const VFIO_IOMMU_DISABLE: u32 = 15220; -pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; -pub const SNAPSHOT_POWER_OFF: u32 = 13072; -pub const APM_IOC_STANDBY: u32 = 16641; -pub const PPPIOCGUNIT: u32 = 2147775574; -pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; -pub const SCIF_BIND: u32 = 3221779201; -pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; -pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; -pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; -pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; -pub const PPPIOCGRASYNCMAP: u32 = 2147775573; -pub const MMTIMER_MMAPAVAIL: u32 = 27910; -pub const I2OPASSTHRU32: u32 = 2148034828; -pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; -pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const UI_SET_SNDBIT: u32 = 1074025834; -pub const VIDIOC_G_AUDOUT: u32 = 2150913585; -pub const RTC_PLL_SET: u32 = 1075867666; -pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; -pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; -pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; -pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; -pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; -pub const VDUSE_CREATE_DEV: u32 = 1095794946; -pub const FDFLUSH: u32 = 587; -pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; -pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; -pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; -pub const SCIF_CONNECT: u32 = 3221779203; -pub const BLKREPORTZONE: u32 = 3222278786; -pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; -pub const FDSETPRM: u32 = 1075839554; -pub const ATM_GETSTATZ: u32 = 1074815313; -pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; -pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; -pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; -pub const SEV_ISSUE_CMD: u32 = 3222295296; -pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; -pub const PCITEST_COPY: u32 = 1074286598; -pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; -pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; -pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; -pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; -pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; -pub const CHIOGVPARAMS: u32 = 2154849043; -pub const PTP_PEROUT_REQUEST: u32 = 1077427459; -pub const FSI_SCOM_CHECK: u32 = 2147775232; -pub const RTC_IRQP_READ: u32 = 2148036619; -pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; -pub const HIDIOCGRDESCSIZE: u32 = 2147764225; -pub const UI_GET_VERSION: u32 = 2147767597; -pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; -pub const CCISS_GETBUSTYPES: u32 = 2147762695; -pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; -pub const VIDIOC_EXPBUF: u32 = 3225441808; -pub const UI_SET_RELBIT: u32 = 1074025830; -pub const VFIO_SET_IOMMU: u32 = 15206; -pub const VIDIOC_S_MODULATOR: u32 = 1078220343; -pub const TUNGETFILTER: u32 = 2148553947; -pub const MEYEIOC_SYNC: u32 = 3221518019; -pub const CCISS_SETNODENAME: u32 = 1074807301; -pub const FBIO_GETCONTROL2: u32 = 2148025993; -pub const TUNSETDEBUG: u32 = 1074025673; -pub const DM_DEV_REMOVE: u32 = 3241737476; -pub const HIDIOCSUSAGES: u32 = 1344030740; -pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; -pub const FBIOGET_VBLANK: u32 = 2149598738; -pub const ATM_GETSTAT: u32 = 1074815312; -pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; -pub const TUNATTACHFILTER: u32 = 1074812117; -pub const UI_SET_ABSBIT: u32 = 1074025831; -pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; -pub const USBDEVFS_REAPURB32: u32 = 1074025740; -pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; -pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; -pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; -pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; -pub const CIOC_KERNEL_VERSION: u32 = 3221775114; -pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; -pub const SNAPSHOT_UNFREEZE: u32 = 13058; -pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; -pub const PMU_IOC_HAS_ADB: u32 = 2148024836; -pub const I2OGETIOPS: u32 = 2149607680; -pub const VIDIOC_S_FBUF: u32 = 1076909579; -pub const PPRCONTROL: u32 = 2147577987; -pub const CHIOSPICKER: u32 = 1074029317; -pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; -pub const TUNGETSNDBUF: u32 = 2147767507; -pub const GSMIOC_SETCONF: u32 = 1078740737; -pub const IOC_PR_PREEMPT: u32 = 1075343563; -pub const KCOV_INIT_TRACE: u32 = 2148033281; -pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; -pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; -pub const MTIOCTOP: u32 = 1074294017; -pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; -pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; -pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; -pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; -pub const PPPIOCGMRU: u32 = 2147775571; -pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; -pub const PPPIOCGFLAGS: u32 = 2147775578; -pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; -pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; -pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; -pub const PPPIOCGIDLE32: u32 = 2148037695; -pub const VFIO_DEVICE_RESET: u32 = 15215; -pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; -pub const WDIOC_GETSTATUS: u32 = 2147768065; -pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; -pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; -pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; -pub const PCITEST_READ: u32 = 1074286597; -pub const VFIO_GROUP_GET_STATUS: u32 = 15207; -pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; -pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; -pub const VIDIOC_DECODER_CMD: u32 = 3225966176; -pub const VIDIOC_G_AUDIO: u32 = 2150913569; -pub const CCISS_RESCANDISK: u32 = 16912; -pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; -pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; -pub const USBDEVFS_REAPURB: u32 = 1074287884; -pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; -pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; -pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; -pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; -pub const PCITEST_MSIX: u32 = 1074024455; -pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; -pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; -pub const DM_GET_TARGET_VERSION: u32 = 3241737489; -pub const PPPIOCGIDLE: u32 = 2148561983; -pub const NVRAM_SETCKS: u32 = 28737; -pub const WDIOC_GETSUPPORT: u32 = 2150127360; -pub const GSMIOC_ENABLE_NET: u32 = 1077167874; -pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; -pub const NE_ADD_VCPU: u32 = 3221532193; -pub const EVIOCSKEYCODE_V2: u32 = 1076380932; -pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; -pub const SCIF_FENCE_WAIT: u32 = 3221517072; -pub const RIO_TRANSFER: u32 = 3222826261; -pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; -pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; -pub const I2OEVTREG: u32 = 1074555146; -pub const I2OPARMGET: u32 = 3223873796; -pub const EVIOCGID: u32 = 2148025602; -pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; -pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; -pub const VIDIOC_S_PARM: u32 = 3234616854; -pub const TUNSETSTEERINGEBPF: u32 = 2147767520; -pub const ATM_GETNAMES: u32 = 1074815363; -pub const VIDIOC_QUERYMENU: u32 = 3224131109; -pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; -pub const I2OLCTGET: u32 = 3222825218; -pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; -pub const BLKCLOSEZONE: u32 = 1074795143; -pub const SONET_GETFRSENSE: u32 = 2147901719; -pub const UI_SET_EVBIT: u32 = 1074025828; -pub const DM_LIST_VERSIONS: u32 = 3241737485; -pub const HIDIOCGSTRING: u32 = 2164541444; -pub const PPPIOCATTCHAN: u32 = 1074033720; -pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; -pub const TUNGETFEATURES: u32 = 2147767503; -pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; -pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; -pub const CCISS_REGNEWDISK: u32 = 1074020877; -pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; -pub const PHN_SETREGS: u32 = 1076391944; -pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; -pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; -pub const TUNGETIFF: u32 = 2147767506; -pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; -pub const BTRFS_IOC_RESIZE: u32 = 1342215171; -pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; -pub const PPS_KC_BIND: u32 = 1074294949; -pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; -pub const UI_SET_FFBIT: u32 = 1074025835; -pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; -pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; -pub const CEC_G_MODE: u32 = 2147770632; -pub const USBDEVFS_RESETEP: u32 = 2147767555; -pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; -pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; -pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; -pub const PPPIOCUNBRIDGECHAN: u32 = 29748; -pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; -pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; -pub const SCIF_FENCE_MARK: u32 = 3222303503; -pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; -pub const VFIO_CHECK_EXTENSION: u32 = 15205; -pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; -pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; -pub const UI_SET_PHYS: u32 = 1074287980; -pub const FDWERRORGET: u32 = 2150105623; -pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; -pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; -pub const SIOCGSTAMP_NEW: u32 = 2148567302; -pub const RTC_WKALM_RD: u32 = 2150133776; -pub const PHN_GET_REG: u32 = 3221778432; -pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; -pub const PHN_NOT_OH: u32 = 28676; -pub const PPGETMODES: u32 = 2147774615; -pub const CHIOGPARAMS: u32 = 2148819718; -pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; -pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; -pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; -pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; -pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; -pub const KCOV_ENABLE: u32 = 25444; -pub const BTRFS_IOC_CLONE: u32 = 1074041865; -pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; -pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; -pub const AGPIOC_ALLOCATE: u32 = 3221766406; -pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; -pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; -pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; -pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; -pub const RTC_UIE_OFF: u32 = 28676; -pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; -pub const NVME_IOCTL_ID: u32 = 20032; -pub const NE_START_ENCLAVE: u32 = 3222318628; -pub const VIDIOC_STREAMON: u32 = 1074026002; -pub const FDPOLLDRVSTAT: u32 = 2152727059; -pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; -pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; -pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; -pub const WDIOC_GETTIMELEFT: u32 = 2147768074; -pub const ATM_GETLINKRATE: u32 = 1074815361; -pub const RTC_WKALM_SET: u32 = 1076391951; -pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; -pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; -pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; -pub const NS_GET_OWNER_UID: u32 = 46852; -pub const VIDIOC_OVERLAY: u32 = 1074025998; -pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; -pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; -pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; -pub const PHN_GET_REGS: u32 = 3221778434; -pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; -pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; -pub const SNAPSHOT_S2RAM: u32 = 13067; -pub const JSIOCSAXMAP: u32 = 1077963313; -pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; -pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; -pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; -pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; -pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; -pub const MMTIMER_GETOFFSET: u32 = 27904; -pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; -pub const ATM_SETSC: u32 = 1074029041; -pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; -pub const NVME_IOCTL_RESCAN: u32 = 20038; -pub const BLKOPENZONE: u32 = 1074795142; -pub const DM_VERSION: u32 = 3241737472; -pub const CEC_TRANSMIT: u32 = 3224920325; -pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; -pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; -pub const HIDIOCGVERSION: u32 = 2147764225; -pub const VIDIOC_S_INPUT: u32 = 3221509671; -pub const VIDIOC_G_CROP: u32 = 3222558267; -pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; -pub const EVIOCGEFFECTS: u32 = 2147763588; -pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; -pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; -pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; -pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; -pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; -pub const HIDIOCINITREPORT: u32 = 18437; -pub const VFIO_DEVICE_GET_INFO: u32 = 15211; -pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; -pub const RNDGETENTCNT: u32 = 2147766784; -pub const PPPIOCNEWUNIT: u32 = 3221517374; -pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; -pub const FDRESET: u32 = 596; -pub const IOC_PR_REGISTER: u32 = 1075343560; -pub const HIDIOCSREPORT: u32 = 1074546696; -pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; -pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; -pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; -pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; -pub const HIDIOCGRAWINFO: u32 = 2148026371; -pub const PPPIOCSCOMPRESS: u32 = 1074820173; -pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; -pub const BLKRESETZONE: u32 = 1074795139; -pub const CHIOINITELEM: u32 = 25361; -pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; -pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; -pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; -pub const PPGETPHASE: u32 = 2147774617; -pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; -pub const FDMSGON: u32 = 581; -pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; -pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; -pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; -pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; -pub const FDFMTBEG: u32 = 583; -pub const RNDRESEEDCRNG: u32 = 20999; -pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; -pub const TUNSETNOCSUM: u32 = 1074025672; -pub const SONET_GETSTAT: u32 = 2149867792; -pub const TFD_IOC_SET_TICKS: u32 = 1074287616; -pub const PPDATADIR: u32 = 1074032784; -pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; -pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; -pub const RIO_CM_CHAN_SEND: u32 = 1074815753; -pub const PPWCTLONIRQ: u32 = 1073836178; -pub const SONYPI_IOCGBRT: u32 = 2147579392; -pub const IOC_PR_RELEASE: u32 = 1074819274; -pub const PPCLRIRQ: u32 = 2147774611; -pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; -pub const HPET_IE_OFF: u32 = 26626; -pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; -pub const SONET_SETFRAMING: u32 = 1074028821; -pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; -pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; -pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; -pub const BLKFINISHZONE: u32 = 1074795144; -pub const EVIOCREVOKE: u32 = 1074021777; -pub const VFIO_DEVICE_FEATURE: u32 = 15221; -pub const CCISS_GETPCIINFO: u32 = 2148024833; -pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; -pub const SCIF_ACCEPTREQ: u32 = 3222303492; -pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; -pub const VIDIOC_STREAMOFF: u32 = 1074026003; -pub const VDUSE_DESTROY_DEV: u32 = 1090552067; -pub const FDGETFDCSTAT: u32 = 2150105621; -pub const CM_IOCGATR: u32 = 3221775105; -pub const VIDIOC_S_PRIORITY: u32 = 1074026052; -pub const SNAPSHOT_FREEZE: u32 = 13057; -pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; -pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; -pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; -pub const VIDIOC_G_STD: u32 = 2148029975; -pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; -pub const SONET_GETSTATZ: u32 = 2149867793; -pub const SCIF_ACCEPTREG: u32 = 3221779205; -pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; -pub const PPPIOCSRASYNCMAP: u32 = 1074033748; -pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; -pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; -pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; -pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; -pub const DM_DEV_CREATE: u32 = 3241737475; -pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; -pub const VIDIOC_G_CTRL: u32 = 3221771803; -pub const NBD_CLEAR_SOCK: u32 = 43780; -pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; -pub const WDIOC_KEEPALIVE: u32 = 2147768069; -pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; -pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; -pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; -pub const EVIOCSREP: u32 = 1074283779; -pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; -pub const HPET_DPI: u32 = 26629; -pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; -pub const ND_IOCTL_CALL: u32 = 3225439754; -pub const HIDIOCGDEVINFO: u32 = 2149337091; -pub const DM_TABLE_DEPS: u32 = 3241737483; -pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; -pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; -pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; -pub const VIDIOC_G_PRIORITY: u32 = 2147767875; -pub const ATM_NEWBACKENDIF: u32 = 1073897971; -pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; -pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; -pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; -pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; -pub const DM_TABLE_LOAD: u32 = 3241737481; -pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; -pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; -pub const CHIOGELEM: u32 = 1080845072; -pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; -pub const EVIOCSKEYCODE: u32 = 1074283780; -pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; -pub const TUNSETLINK: u32 = 1074025677; -pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; -pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; -pub const PPS_SETPARAMS: u32 = 1074294946; -pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; -pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; -pub const WDIOC_SETTIMEOUT: u32 = 3221509894; -pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; -pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; -pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; -pub const VIDIOC_G_EDID: u32 = 3223868968; -pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; -pub const RIO_MAP_INBOUND: u32 = 3223874833; -pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; -pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; -pub const VIDIOC_S_AUDIO: u32 = 1077171746; -pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; -pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; -pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; -pub const SNAPSHOT_FREE: u32 = 13061; -pub const I8K_GET_SPEED: u32 = 3221776773; -pub const HIDIOCGREPORT: u32 = 1074546695; -pub const HPET_EPI: u32 = 26628; -pub const JSIOCSCORR: u32 = 1076128289; -pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; -pub const RIO_MAP_OUTBOUND: u32 = 3223874831; -pub const ATM_SETESI: u32 = 1074815372; -pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; -pub const PPFCONTROL: u32 = 1073901710; -pub const SONYPI_IOCGFAN: u32 = 2147579402; -pub const RTC_IRQP_SET: u32 = 1074294796; -pub const PCITEST_WRITE: u32 = 1074286596; -pub const PPCLAIM: u32 = 28811; -pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; -pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; -pub const VHOST_SET_FEATURES: u32 = 1074310912; -pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; -pub const VIDIOC_DQBUF: u32 = 3227014673; -pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; -pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; -pub const MMTIMER_GETFREQ: u32 = 2148035842; -pub const VIDIOC_G_SELECTION: u32 = 3225441886; -pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; -pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; -pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; -pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; -pub const FDFMTEND: u32 = 585; -pub const DMA_BUF_SET_NAME: u32 = 1074291201; -pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; -pub const RTC_UIE_ON: u32 = 28675; -pub const PPRELEASE: u32 = 28812; -pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; -pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; -pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; -pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; -pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; -pub const VHOST_SET_VRING_KICK: u32 = 1074310944; -pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; -pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; -pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; -pub const PPNEGOT: u32 = 1074032785; -pub const NBD_PRINT_DEBUG: u32 = 43782; -pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; -pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; -pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; -pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; -pub const VIDIOC_ENUM_FMT: u32 = 3225441794; -pub const VIDIOC_G_INPUT: u32 = 2147767846; -pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; -pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; -pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; -pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; -pub const MMTIMER_GETCOUNTER: u32 = 2148035849; -pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; -pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; -pub const RIO_CM_CHAN_BIND: u32 = 1074291461; -pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; -pub const VIDIOC_S_OUTPUT: u32 = 3221509679; -pub const HIDIOCGREPORTINFO: u32 = 3222030345; -pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; -pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; -pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; -pub const BLKGETDISKSEQ: u32 = 2148012672; -pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; -pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; -pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; -pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; -pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; -pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; -pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; -pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; -pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; -pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; -pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; -pub const ACRN_IOCTL_START_VM: u32 = 41490; -pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; -pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; -pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; -pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; -pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; -pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; -pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; -pub const ACRN_IOCTL_RESET_VM: u32 = 41493; -pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; -pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/third_party/rust/linux-raw-sys/src/x86_64/net.rs b/third_party/rust/linux-raw-sys/src/x86_64/net.rs deleted file mode 100644 index 51e11c28352b..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/net.rs +++ /dev/null @@ -1,1844 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type socklen_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { -storage: Storage, -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -pub struct __BindgenUnionField(::core::marker::PhantomData); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr { -pub s_addr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq { -pub imr_multiaddr: in_addr, -pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreqn { -pub imr_multiaddr: in_addr, -pub imr_address: in_addr, -pub imr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_mreq_source { -pub imr_multiaddr: __be32, -pub imr_interface: __be32, -pub imr_sourceaddr: __be32, -} -#[repr(C)] -pub struct ip_msfilter { -pub imsf_multiaddr: __be32, -pub imsf_interface: __be32, -pub imsf_fmode: __u32, -pub imsf_numsrc: __u32, -pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, -} -#[repr(C)] -pub struct ip_msfilter__bindgen_ty_1 { -pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, -pub __bindgen_anon_1: __BindgenUnionField, -pub bindgen_union_field: u32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { -pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -pub imsf_slist_flex: __IncompleteArrayField<__be32>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_req { -pub gr_interface: __u32, -pub gr_group: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_source_req { -pub gsr_interface: __u32, -pub gsr_group: __kernel_sockaddr_storage, -pub gsr_source: __kernel_sockaddr_storage, -} -#[repr(C)] -pub struct group_filter { -pub __bindgen_anon_1: group_filter__bindgen_ty_1, -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1 { -pub __bindgen_anon_1: __BindgenUnionField, -pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { -pub gf_interface_aux: __u32, -pub gf_group_aux: __kernel_sockaddr_storage, -pub gf_fmode_aux: __u32, -pub gf_numsrc_aux: __u32, -pub gf_slist: [__kernel_sockaddr_storage; 1usize], -} -#[repr(C)] -pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { -pub gf_interface: __u32, -pub gf_group: __kernel_sockaddr_storage, -pub gf_fmode: __u32, -pub gf_numsrc: __u32, -pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_pktinfo { -pub ipi_ifindex: crate::ctypes::c_int, -pub ipi_spec_dst: in_addr, -pub ipi_addr: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_in { -pub sin_family: __kernel_sa_family_t, -pub sin_port: __be16, -pub sin_addr: in_addr, -pub __pad: [crate::ctypes::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct iphdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub tos: __u8, -pub tot_len: __be16, -pub id: __be16, -pub frag_off: __be16, -pub ttl: __u8, -pub protocol: __u8, -pub check: __sum16, -pub __bindgen_anon_1: iphdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: __be32, -pub daddr: __be32, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_auth_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub reserved: __be16, -pub spi: __be32, -pub seq_no: __be32, -pub auth_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug)] -pub struct ip_esp_hdr { -pub spi: __be32, -pub seq_no: __be32, -pub enc_data: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_comp_hdr { -pub nexthdr: __u8, -pub flags: __u8, -pub cpi: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_beet_phdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub padlen: __u8, -pub reserved: __u8, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { -pub in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { -pub sin6_family: crate::ctypes::c_ushort, -pub sin6_port: __be16, -pub sin6_flowinfo: __be32, -pub sin6_addr: in6_addr, -pub sin6_scope_id: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { -pub ipv6mr_multiaddr: in6_addr, -pub ipv6mr_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_flowlabel_req { -pub flr_dst: in6_addr, -pub flr_label: __be32, -pub flr_action: __u8, -pub flr_share: __u8, -pub flr_flags: __u16, -pub flr_expires: __u16, -pub flr_linger: __u16, -pub __flr_pad: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_pktinfo { -pub ipi6_addr: in6_addr, -pub ipi6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip6_mtuinfo { -pub ip6m_addr: sockaddr_in6, -pub ip6m_mtu: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_ifreq { -pub ifr6_addr: in6_addr, -pub ifr6_prefixlen: __u32, -pub ifr6_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_rt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -pub type_: __u8, -pub segments_left: __u8, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct ipv6_opt_hdr { -pub nexthdr: __u8, -pub hdrlen: __u8, -} -#[repr(C)] -pub struct rt0_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rt2_hdr { -pub rt_hdr: ipv6_rt_hdr, -pub reserved: __u32, -pub addr: in6_addr, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct ipv6_destopt_hao { -pub type_: __u8, -pub length: __u8, -pub addr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -pub flow_lbl: [__u8; 3usize], -pub payload_len: __be16, -pub nexthdr: __u8, -pub hop_limit: __u8, -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { -pub saddr: in6_addr, -pub daddr: in6_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcphdr { -pub source: __be16, -pub dest: __be16, -pub seq: __be32, -pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub window: __be16, -pub check: __sum16, -pub urg_ptr: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_opt { -pub opt_code: __u32, -pub opt_val: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_repair_window { -pub snd_wl1: __u32, -pub snd_wnd: __u32, -pub max_window: __u32, -pub rcv_wnd: __u32, -pub rcv_wup: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_info { -pub tcpi_state: __u8, -pub tcpi_ca_state: __u8, -pub tcpi_retransmits: __u8, -pub tcpi_probes: __u8, -pub tcpi_backoff: __u8, -pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], -pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -pub tcpi_rto: __u32, -pub tcpi_ato: __u32, -pub tcpi_snd_mss: __u32, -pub tcpi_rcv_mss: __u32, -pub tcpi_unacked: __u32, -pub tcpi_sacked: __u32, -pub tcpi_lost: __u32, -pub tcpi_retrans: __u32, -pub tcpi_fackets: __u32, -pub tcpi_last_data_sent: __u32, -pub tcpi_last_ack_sent: __u32, -pub tcpi_last_data_recv: __u32, -pub tcpi_last_ack_recv: __u32, -pub tcpi_pmtu: __u32, -pub tcpi_rcv_ssthresh: __u32, -pub tcpi_rtt: __u32, -pub tcpi_rttvar: __u32, -pub tcpi_snd_ssthresh: __u32, -pub tcpi_snd_cwnd: __u32, -pub tcpi_advmss: __u32, -pub tcpi_reordering: __u32, -pub tcpi_rcv_rtt: __u32, -pub tcpi_rcv_space: __u32, -pub tcpi_total_retrans: __u32, -pub tcpi_pacing_rate: __u64, -pub tcpi_max_pacing_rate: __u64, -pub tcpi_bytes_acked: __u64, -pub tcpi_bytes_received: __u64, -pub tcpi_segs_out: __u32, -pub tcpi_segs_in: __u32, -pub tcpi_notsent_bytes: __u32, -pub tcpi_min_rtt: __u32, -pub tcpi_data_segs_in: __u32, -pub tcpi_data_segs_out: __u32, -pub tcpi_delivery_rate: __u64, -pub tcpi_busy_time: __u64, -pub tcpi_rwnd_limited: __u64, -pub tcpi_sndbuf_limited: __u64, -pub tcpi_delivered: __u32, -pub tcpi_delivered_ce: __u32, -pub tcpi_bytes_sent: __u64, -pub tcpi_bytes_retrans: __u64, -pub tcpi_dsack_dups: __u32, -pub tcpi_reord_seen: __u32, -pub tcpi_rcv_ooopack: __u32, -pub tcpi_snd_wnd: __u32, -pub tcpi_rcv_wnd: __u32, -pub tcpi_rehash: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tcp_md5sig { -pub tcpm_addr: __kernel_sockaddr_storage, -pub tcpm_flags: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_ifindex: crate::ctypes::c_int, -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_diag_md5sig { -pub tcpm_family: __u8, -pub tcpm_prefixlen: __u8, -pub tcpm_keylen: __u16, -pub tcpm_addr: [__be32; 4usize], -pub tcpm_key: [__u8; 80usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcp_zerocopy_receive { -pub address: __u64, -pub length: __u32, -pub recv_skip_hint: __u32, -pub inq: __u32, -pub err: __s32, -pub copybuf_address: __u64, -pub copybuf_len: __s32, -pub flags: __u32, -pub msg_control: __u64, -pub msg_controllen: __u64, -pub msg_flags: __u32, -pub reserved: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { -pub sun_family: __kernel_sa_family_t, -pub sun_path: [crate::ctypes::c_char; 108usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr { -pub __storage: __kernel_sockaddr_storage, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { -pub l_onoff: crate::ctypes::c_int, -pub l_linger: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { -pub msg_name: *mut crate::ctypes::c_void, -pub msg_namelen: crate::ctypes::c_int, -pub msg_iov: *mut iovec, -pub msg_iovlen: usize, -pub msg_control: *mut crate::ctypes::c_void, -pub msg_controllen: usize, -pub msg_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct cmsghdr { -pub cmsg_len: usize, -pub cmsg_level: crate::ctypes::c_int, -pub cmsg_type: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucred { -pub pid: __u32, -pub uid: __u32, -pub gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmsghdr { -pub msg_hdr: msghdr, -pub msg_len: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { -pub _address: u8, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_HDRINCL: u32 = 3; -pub const IP_OPTIONS: u32 = 4; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_RECVRETOPTS: u32 = 7; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const IP_LOCAL_PORT_RANGE: u32 = 51; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const __SOCK_SIZE__: u32 = 16; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_MULTICAST_NET: u32 = 3758096384; -pub const IN_CLASSE_NET: u32 = 4294967295; -pub const IN_CLASSE_NSHIFT: u32 = 0; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; -pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; -pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; -pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; -pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const IPTOS_TOS_MASK: u32 = 30; -pub const IPTOS_LOWDELAY: u32 = 16; -pub const IPTOS_THROUGHPUT: u32 = 8; -pub const IPTOS_RELIABILITY: u32 = 4; -pub const IPTOS_MINCOST: u32 = 2; -pub const IPTOS_PREC_MASK: u32 = 224; -pub const IPTOS_PREC_NETCONTROL: u32 = 224; -pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; -pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; -pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; -pub const IPTOS_PREC_FLASH: u32 = 96; -pub const IPTOS_PREC_IMMEDIATE: u32 = 64; -pub const IPTOS_PREC_PRIORITY: u32 = 32; -pub const IPTOS_PREC_ROUTINE: u32 = 0; -pub const IPOPT_COPY: u32 = 128; -pub const IPOPT_CLASS_MASK: u32 = 96; -pub const IPOPT_NUMBER_MASK: u32 = 31; -pub const IPOPT_CONTROL: u32 = 0; -pub const IPOPT_RESERVED1: u32 = 32; -pub const IPOPT_MEASUREMENT: u32 = 64; -pub const IPOPT_RESERVED2: u32 = 96; -pub const IPOPT_END: u32 = 0; -pub const IPOPT_NOOP: u32 = 1; -pub const IPOPT_SEC: u32 = 130; -pub const IPOPT_LSRR: u32 = 131; -pub const IPOPT_TIMESTAMP: u32 = 68; -pub const IPOPT_CIPSO: u32 = 134; -pub const IPOPT_RR: u32 = 7; -pub const IPOPT_SID: u32 = 136; -pub const IPOPT_SSRR: u32 = 137; -pub const IPOPT_RA: u32 = 148; -pub const IPVERSION: u32 = 4; -pub const MAXTTL: u32 = 255; -pub const IPDEFTTL: u32 = 64; -pub const IPOPT_OPTVAL: u32 = 0; -pub const IPOPT_OLEN: u32 = 1; -pub const IPOPT_OFFSET: u32 = 2; -pub const IPOPT_MINOFF: u32 = 4; -pub const MAX_IPOPTLEN: u32 = 40; -pub const IPOPT_NOP: u32 = 1; -pub const IPOPT_EOL: u32 = 0; -pub const IPOPT_TS: u32 = 68; -pub const IPOPT_TS_TSONLY: u32 = 0; -pub const IPOPT_TS_TSANDADDR: u32 = 1; -pub const IPOPT_TS_PRESPEC: u32 = 3; -pub const IPV4_BEET_PHMAXLEN: u32 = 8; -pub const IPV6_FL_A_GET: u32 = 0; -pub const IPV6_FL_A_PUT: u32 = 1; -pub const IPV6_FL_A_RENEW: u32 = 2; -pub const IPV6_FL_F_CREATE: u32 = 1; -pub const IPV6_FL_F_EXCL: u32 = 2; -pub const IPV6_FL_F_REFLECT: u32 = 4; -pub const IPV6_FL_F_REMOTE: u32 = 8; -pub const IPV6_FL_S_NONE: u32 = 0; -pub const IPV6_FL_S_EXCL: u32 = 1; -pub const IPV6_FL_S_PROCESS: u32 = 2; -pub const IPV6_FL_S_USER: u32 = 3; -pub const IPV6_FL_S_ANY: u32 = 255; -pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; -pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; -pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; -pub const IPV6_PRIORITY_FILLER: u32 = 256; -pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; -pub const IPV6_PRIORITY_RESERVED1: u32 = 768; -pub const IPV6_PRIORITY_BULK: u32 = 1024; -pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; -pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; -pub const IPV6_PRIORITY_CONTROL: u32 = 1792; -pub const IPV6_PRIORITY_8: u32 = 2048; -pub const IPV6_PRIORITY_9: u32 = 2304; -pub const IPV6_PRIORITY_10: u32 = 2560; -pub const IPV6_PRIORITY_11: u32 = 2816; -pub const IPV6_PRIORITY_12: u32 = 3072; -pub const IPV6_PRIORITY_13: u32 = 3328; -pub const IPV6_PRIORITY_14: u32 = 3584; -pub const IPV6_PRIORITY_15: u32 = 3840; -pub const IPPROTO_HOPOPTS: u32 = 0; -pub const IPPROTO_ROUTING: u32 = 43; -pub const IPPROTO_FRAGMENT: u32 = 44; -pub const IPPROTO_ICMPV6: u32 = 58; -pub const IPPROTO_NONE: u32 = 59; -pub const IPPROTO_DSTOPTS: u32 = 60; -pub const IPPROTO_MH: u32 = 135; -pub const IPV6_TLV_PAD1: u32 = 0; -pub const IPV6_TLV_PADN: u32 = 1; -pub const IPV6_TLV_ROUTERALERT: u32 = 5; -pub const IPV6_TLV_CALIPSO: u32 = 7; -pub const IPV6_TLV_IOAM: u32 = 49; -pub const IPV6_TLV_JUMBO: u32 = 194; -pub const IPV6_TLV_HAO: u32 = 201; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_FLOWINFO: u32 = 11; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const IPV6_FLOWLABEL_MGR: u32 = 32; -pub const IPV6_FLOWINFO_SEND: u32 = 33; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_PREFER_SRC_TMP: u32 = 1; -pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; -pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; -pub const IPV6_PREFER_SRC_COA: u32 = 4; -pub const IPV6_PREFER_SRC_HOME: u32 = 1024; -pub const IPV6_PREFER_SRC_CGA: u32 = 8; -pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_MIN_MTU: u32 = 1280; -pub const IPV6_SRCRT_STRICT: u32 = 1; -pub const IPV6_SRCRT_TYPE_0: u32 = 0; -pub const IPV6_SRCRT_TYPE_2: u32 = 2; -pub const IPV6_SRCRT_TYPE_3: u32 = 3; -pub const IPV6_SRCRT_TYPE_4: u32 = 4; -pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TXREHASH: u32 = 74; -pub const SO_RCVMARK: u32 = 75; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SYS_SOCKET: u32 = 1; -pub const SYS_BIND: u32 = 2; -pub const SYS_CONNECT: u32 = 3; -pub const SYS_LISTEN: u32 = 4; -pub const SYS_ACCEPT: u32 = 5; -pub const SYS_GETSOCKNAME: u32 = 6; -pub const SYS_GETPEERNAME: u32 = 7; -pub const SYS_SOCKETPAIR: u32 = 8; -pub const SYS_SEND: u32 = 9; -pub const SYS_RECV: u32 = 10; -pub const SYS_SENDTO: u32 = 11; -pub const SYS_RECVFROM: u32 = 12; -pub const SYS_SHUTDOWN: u32 = 13; -pub const SYS_SETSOCKOPT: u32 = 14; -pub const SYS_GETSOCKOPT: u32 = 15; -pub const SYS_SENDMSG: u32 = 16; -pub const SYS_RECVMSG: u32 = 17; -pub const SYS_ACCEPT4: u32 = 18; -pub const SYS_RECVMMSG: u32 = 19; -pub const SYS_SENDMMSG: u32 = 20; -pub const __SO_ACCEPTCON: u32 = 65536; -pub const TCP_MSS_DEFAULT: u32 = 536; -pub const TCP_MSS_DESIRED: u32 = 1220; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_MAXSEG: u32 = 2; -pub const TCP_CORK: u32 = 3; -pub const TCP_KEEPIDLE: u32 = 4; -pub const TCP_KEEPINTVL: u32 = 5; -pub const TCP_KEEPCNT: u32 = 6; -pub const TCP_SYNCNT: u32 = 7; -pub const TCP_LINGER2: u32 = 8; -pub const TCP_DEFER_ACCEPT: u32 = 9; -pub const TCP_WINDOW_CLAMP: u32 = 10; -pub const TCP_INFO: u32 = 11; -pub const TCP_QUICKACK: u32 = 12; -pub const TCP_CONGESTION: u32 = 13; -pub const TCP_MD5SIG: u32 = 14; -pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; -pub const TCP_THIN_DUPACK: u32 = 17; -pub const TCP_USER_TIMEOUT: u32 = 18; -pub const TCP_REPAIR: u32 = 19; -pub const TCP_REPAIR_QUEUE: u32 = 20; -pub const TCP_QUEUE_SEQ: u32 = 21; -pub const TCP_REPAIR_OPTIONS: u32 = 22; -pub const TCP_FASTOPEN: u32 = 23; -pub const TCP_TIMESTAMP: u32 = 24; -pub const TCP_NOTSENT_LOWAT: u32 = 25; -pub const TCP_CC_INFO: u32 = 26; -pub const TCP_SAVE_SYN: u32 = 27; -pub const TCP_SAVED_SYN: u32 = 28; -pub const TCP_REPAIR_WINDOW: u32 = 29; -pub const TCP_FASTOPEN_CONNECT: u32 = 30; -pub const TCP_ULP: u32 = 31; -pub const TCP_MD5SIG_EXT: u32 = 32; -pub const TCP_FASTOPEN_KEY: u32 = 33; -pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; -pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; -pub const TCP_INQ: u32 = 36; -pub const TCP_CM_INQ: u32 = 36; -pub const TCP_TX_DELAY: u32 = 37; -pub const TCP_REPAIR_ON: u32 = 1; -pub const TCP_REPAIR_OFF: u32 = 0; -pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; -pub const TCPI_OPT_TIMESTAMPS: u32 = 1; -pub const TCPI_OPT_SACK: u32 = 2; -pub const TCPI_OPT_WSCALE: u32 = 4; -pub const TCPI_OPT_ECN: u32 = 8; -pub const TCPI_OPT_ECN_SEEN: u32 = 16; -pub const TCPI_OPT_SYN_DATA: u32 = 32; -pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; -pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; -pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; -pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; -pub const UNIX_PATH_MAX: u32 = 108; -pub const SHUT_RD: u32 = 0; -pub const SHUT_WR: u32 = 1; -pub const SHUT_RDWR: u32 = 2; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const MSG_DONTWAIT: u32 = 64; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_MAX: u32 = 37; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; -pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; -pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; -pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; -pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; -pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; -pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; -pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; -pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; -pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; -pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; -pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; -pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; -pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; -pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; -pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; -pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; -pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; -pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; -pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; -pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; -pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; -pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; -pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; -pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; -pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; -pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; -pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; -pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; -pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; -pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; -pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; -pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; -pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; -pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; -pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; -pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; -pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; -pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; -pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; -pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; -pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; -pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; -pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; -pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; -pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; -pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; -pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; -pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; -pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; -pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; -pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; -pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; -pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; -pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; -pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; -pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; -pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; -pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; -pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; -pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; -pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; -pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; -pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; -pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; -pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; -pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; -pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; -pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; -pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; -pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; -pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; -pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; -pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; -pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; -pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; -pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; -pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; -pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; -pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; -pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; -pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; -pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; -pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; -pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; -pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; -pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; -pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; -pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; -pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; -pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; -pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; -pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; -pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; -pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; -pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; -pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; -pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; -pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; -pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; -pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; -pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; -pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; -pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; -pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; -pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; -pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; -pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; -pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; -pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; -pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; -pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; -pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; -pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; -pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; -pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; -pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; -pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; -pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; -pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; -pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; -pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; -pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; -pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; -pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; -pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; -pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; -pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; -pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; -pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; -pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; -pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; -pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; -pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; -pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; -pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; -pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; -pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; -pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; -pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; -pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; -pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; -pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; -pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; -pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; -pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; -pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; -pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; -pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; -pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; -pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; -pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; -pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; -pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; -pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; -pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; -pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; -pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -IPPROTO_IP = 0, -IPPROTO_ICMP = 1, -IPPROTO_IGMP = 2, -IPPROTO_IPIP = 4, -IPPROTO_TCP = 6, -IPPROTO_EGP = 8, -IPPROTO_PUP = 12, -IPPROTO_UDP = 17, -IPPROTO_IDP = 22, -IPPROTO_TP = 29, -IPPROTO_DCCP = 33, -IPPROTO_IPV6 = 41, -IPPROTO_RSVP = 46, -IPPROTO_GRE = 47, -IPPROTO_ESP = 50, -IPPROTO_AH = 51, -IPPROTO_MTP = 92, -IPPROTO_BEETPH = 94, -IPPROTO_ENCAP = 98, -IPPROTO_PIM = 103, -IPPROTO_COMP = 108, -IPPROTO_L2TP = 115, -IPPROTO_SCTP = 132, -IPPROTO_UDPLITE = 136, -IPPROTO_MPLS = 137, -IPPROTO_ETHERNET = 143, -IPPROTO_RAW = 255, -IPPROTO_MPTCP = 262, -IPPROTO_MAX = 263, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IPV4_DEVCONF_FORWARDING = 1, -IPV4_DEVCONF_MC_FORWARDING = 2, -IPV4_DEVCONF_PROXY_ARP = 3, -IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, -IPV4_DEVCONF_SECURE_REDIRECTS = 5, -IPV4_DEVCONF_SEND_REDIRECTS = 6, -IPV4_DEVCONF_SHARED_MEDIA = 7, -IPV4_DEVCONF_RP_FILTER = 8, -IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, -IPV4_DEVCONF_BOOTP_RELAY = 10, -IPV4_DEVCONF_LOG_MARTIANS = 11, -IPV4_DEVCONF_TAG = 12, -IPV4_DEVCONF_ARPFILTER = 13, -IPV4_DEVCONF_MEDIUM_ID = 14, -IPV4_DEVCONF_NOXFRM = 15, -IPV4_DEVCONF_NOPOLICY = 16, -IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, -IPV4_DEVCONF_ARP_ANNOUNCE = 18, -IPV4_DEVCONF_ARP_IGNORE = 19, -IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, -IPV4_DEVCONF_ARP_ACCEPT = 21, -IPV4_DEVCONF_ARP_NOTIFY = 22, -IPV4_DEVCONF_ACCEPT_LOCAL = 23, -IPV4_DEVCONF_SRC_VMARK = 24, -IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, -IPV4_DEVCONF_ROUTE_LOCALNET = 26, -IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, -IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, -IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, -IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, -IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, -IPV4_DEVCONF_BC_FORWARDING = 32, -IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, -__IPV4_DEVCONF_MAX = 34, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -DEVCONF_FORWARDING = 0, -DEVCONF_HOPLIMIT = 1, -DEVCONF_MTU6 = 2, -DEVCONF_ACCEPT_RA = 3, -DEVCONF_ACCEPT_REDIRECTS = 4, -DEVCONF_AUTOCONF = 5, -DEVCONF_DAD_TRANSMITS = 6, -DEVCONF_RTR_SOLICITS = 7, -DEVCONF_RTR_SOLICIT_INTERVAL = 8, -DEVCONF_RTR_SOLICIT_DELAY = 9, -DEVCONF_USE_TEMPADDR = 10, -DEVCONF_TEMP_VALID_LFT = 11, -DEVCONF_TEMP_PREFERED_LFT = 12, -DEVCONF_REGEN_MAX_RETRY = 13, -DEVCONF_MAX_DESYNC_FACTOR = 14, -DEVCONF_MAX_ADDRESSES = 15, -DEVCONF_FORCE_MLD_VERSION = 16, -DEVCONF_ACCEPT_RA_DEFRTR = 17, -DEVCONF_ACCEPT_RA_PINFO = 18, -DEVCONF_ACCEPT_RA_RTR_PREF = 19, -DEVCONF_RTR_PROBE_INTERVAL = 20, -DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, -DEVCONF_PROXY_NDP = 22, -DEVCONF_OPTIMISTIC_DAD = 23, -DEVCONF_ACCEPT_SOURCE_ROUTE = 24, -DEVCONF_MC_FORWARDING = 25, -DEVCONF_DISABLE_IPV6 = 26, -DEVCONF_ACCEPT_DAD = 27, -DEVCONF_FORCE_TLLAO = 28, -DEVCONF_NDISC_NOTIFY = 29, -DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, -DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, -DEVCONF_SUPPRESS_FRAG_NDISC = 32, -DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, -DEVCONF_USE_OPTIMISTIC = 34, -DEVCONF_ACCEPT_RA_MTU = 35, -DEVCONF_STABLE_SECRET = 36, -DEVCONF_USE_OIF_ADDRS_ONLY = 37, -DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, -DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, -DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, -DEVCONF_DROP_UNSOLICITED_NA = 41, -DEVCONF_KEEP_ADDR_ON_DOWN = 42, -DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, -DEVCONF_SEG6_ENABLED = 44, -DEVCONF_SEG6_REQUIRE_HMAC = 45, -DEVCONF_ENHANCED_DAD = 46, -DEVCONF_ADDR_GEN_MODE = 47, -DEVCONF_DISABLE_POLICY = 48, -DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, -DEVCONF_NDISC_TCLASS = 50, -DEVCONF_RPL_SEG_ENABLED = 51, -DEVCONF_RA_DEFRTR_METRIC = 52, -DEVCONF_IOAM6_ENABLED = 53, -DEVCONF_IOAM6_ID = 54, -DEVCONF_IOAM6_ID_WIDE = 55, -DEVCONF_NDISC_EVICT_NOCARRIER = 56, -DEVCONF_ACCEPT_UNTRACKED_NA = 57, -DEVCONF_MAX = 58, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum socket_state { -SS_FREE = 0, -SS_UNCONNECTED = 1, -SS_CONNECTING = 2, -SS_CONNECTED = 3, -SS_DISCONNECTING = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -TCP_FLAG_CWR = 32768, -TCP_FLAG_ECE = 16384, -TCP_FLAG_URG = 8192, -TCP_FLAG_ACK = 4096, -TCP_FLAG_PSH = 2048, -TCP_FLAG_RST = 1024, -TCP_FLAG_SYN = 512, -TCP_FLAG_FIN = 256, -TCP_RESERVED_BITS = 15, -TCP_DATA_OFFSET = 240, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -TCP_NO_QUEUE = 0, -TCP_RECV_QUEUE = 1, -TCP_SEND_QUEUE = 2, -TCP_QUEUES_NR = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_fastopen_client_fail { -TFO_STATUS_UNSPEC = 0, -TFO_COOKIE_UNAVAILABLE = 1, -TFO_DATA_NOT_ACKED = 2, -TFO_SYN_RETRANSMITTED = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum tcp_ca_state { -TCP_CA_Open = 0, -TCP_CA_Disorder = 1, -TCP_CA_CWR = 2, -TCP_CA_Recovery = 3, -TCP_CA_Loss = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -TCP_NLA_PAD = 0, -TCP_NLA_BUSY = 1, -TCP_NLA_RWND_LIMITED = 2, -TCP_NLA_SNDBUF_LIMITED = 3, -TCP_NLA_DATA_SEGS_OUT = 4, -TCP_NLA_TOTAL_RETRANS = 5, -TCP_NLA_PACING_RATE = 6, -TCP_NLA_DELIVERY_RATE = 7, -TCP_NLA_SND_CWND = 8, -TCP_NLA_REORDERING = 9, -TCP_NLA_MIN_RTT = 10, -TCP_NLA_RECUR_RETRANS = 11, -TCP_NLA_DELIVERY_RATE_APP_LMT = 12, -TCP_NLA_SNDQ_SIZE = 13, -TCP_NLA_CA_STATE = 14, -TCP_NLA_SND_SSTHRESH = 15, -TCP_NLA_DELIVERED = 16, -TCP_NLA_DELIVERED_CE = 17, -TCP_NLA_BYTES_SENT = 18, -TCP_NLA_BYTES_RETRANS = 19, -TCP_NLA_DSACK_DUPS = 20, -TCP_NLA_REORD_SEEN = 21, -TCP_NLA_SRTT = 22, -TCP_NLA_TIMEOUT_REHASH = 23, -TCP_NLA_BYTES_NOTSENT = 24, -TCP_NLA_EDT = 25, -TCP_NLA_TTL = 26, -TCP_NLA_REHASH = 27, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union iphdr__bindgen_ty_1 { -pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { -pub u6_addr8: [__u8; 16usize], -pub u6_addr16: [__be16; 8usize], -pub u6_addr32: [__be32; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ipv6hdr__bindgen_ty_1 { -pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, -pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tcp_word_hdr { -pub hdr: tcphdr, -pub words: [__be32; 5usize], -} -impl __BindgenBitfieldUnit { -#[inline] -pub const fn new(storage: Storage) -> Self { -Self { storage } -} -} -impl __BindgenBitfieldUnit -where -Storage: AsRef<[u8]> + AsMut<[u8]>, -{ -#[inline] -pub fn get_bit(&self, index: usize) -> bool { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = self.storage.as_ref()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -byte & mask == mask -} -#[inline] -pub fn set_bit(&mut self, index: usize, val: bool) { -debug_assert!(index / 8 < self.storage.as_ref().len()); -let byte_index = index / 8; -let byte = &mut self.storage.as_mut()[byte_index]; -let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; -let mask = 1 << bit_index; -if val { -*byte |= mask; -} else { -*byte &= !mask; -} -} -#[inline] -pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; -} -} -val -} -#[inline] -pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { -debug_assert!(bit_width <= 64); -debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); -} -} -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl __BindgenUnionField { -#[inline] -pub const fn new() -> Self { -__BindgenUnionField(::core::marker::PhantomData) -} -#[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) -} -#[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) -} -} -impl ::core::default::Default for __BindgenUnionField { -#[inline] -fn default() -> Self { -Self::new() -} -} -impl ::core::clone::Clone for __BindgenUnionField { -#[inline] -fn clone(&self) -> Self { -Self::new() -} -} -impl ::core::marker::Copy for __BindgenUnionField {} -impl ::core::fmt::Debug for __BindgenUnionField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__BindgenUnionField") -} -} -impl ::core::hash::Hash for __BindgenUnionField { -fn hash(&self, _state: &mut H) {} -} -impl ::core::cmp::PartialEq for __BindgenUnionField { -fn eq(&self, _other: &__BindgenUnionField) -> bool { -true -} -} -impl ::core::cmp::Eq for __BindgenUnionField {} -impl iphdr { -#[inline] -pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_ihl(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; -ihl as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl ipv6hdr { -#[inline] -pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_priority(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_version(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let priority: u8 = unsafe { ::core::mem::transmute(priority) }; -priority as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let version: u8 = unsafe { ::core::mem::transmute(version) }; -version as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcphdr { -#[inline] -pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } -} -#[inline] -pub fn set_res1(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } -} -#[inline] -pub fn set_doff(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } -} -#[inline] -pub fn set_fin(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } -} -#[inline] -pub fn set_syn(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) -} -} -#[inline] -pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } -} -#[inline] -pub fn set_rst(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) -} -} -#[inline] -pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } -} -#[inline] -pub fn set_psh(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) -} -} -#[inline] -pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } -} -#[inline] -pub fn set_ack(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) -} -} -#[inline] -pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } -} -#[inline] -pub fn set_urg(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) -} -} -#[inline] -pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } -} -#[inline] -pub fn set_ece(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) -} -} -#[inline] -pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } -} -#[inline] -pub fn set_cwr(&mut self, val: __u16) { -unsafe { -let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let res1: u16 = unsafe { ::core::mem::transmute(res1) }; -res1 as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let doff: u16 = unsafe { ::core::mem::transmute(doff) }; -doff as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let fin: u16 = unsafe { ::core::mem::transmute(fin) }; -fin as u64 -}); -__bindgen_bitfield_unit.set(9usize, 1u8, { -let syn: u16 = unsafe { ::core::mem::transmute(syn) }; -syn as u64 -}); -__bindgen_bitfield_unit.set(10usize, 1u8, { -let rst: u16 = unsafe { ::core::mem::transmute(rst) }; -rst as u64 -}); -__bindgen_bitfield_unit.set(11usize, 1u8, { -let psh: u16 = unsafe { ::core::mem::transmute(psh) }; -psh as u64 -}); -__bindgen_bitfield_unit.set(12usize, 1u8, { -let ack: u16 = unsafe { ::core::mem::transmute(ack) }; -ack as u64 -}); -__bindgen_bitfield_unit.set(13usize, 1u8, { -let urg: u16 = unsafe { ::core::mem::transmute(urg) }; -urg as u64 -}); -__bindgen_bitfield_unit.set(14usize, 1u8, { -let ece: u16 = unsafe { ::core::mem::transmute(ece) }; -ece as u64 -}); -__bindgen_bitfield_unit.set(15usize, 1u8, { -let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; -cwr as u64 -}); -__bindgen_bitfield_unit -} -} -impl tcp_info { -#[inline] -pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } -} -#[inline] -pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) -} -} -#[inline] -pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } -} -#[inline] -pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) -} -} -#[inline] -pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } -} -#[inline] -pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { -unsafe { -let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) -} -} -#[inline] -pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { -let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { -let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; -tcpi_snd_wscale as u64 -}); -__bindgen_bitfield_unit.set(4usize, 4u8, { -let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; -tcpi_rcv_wscale as u64 -}); -__bindgen_bitfield_unit.set(8usize, 1u8, { -let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; -tcpi_delivery_rate_app_limited as u64 -}); -__bindgen_bitfield_unit.set(9usize, 2u8, { -let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; -tcpi_fastopen_client_fail as u64 -}); -__bindgen_bitfield_unit -} -} diff --git a/third_party/rust/linux-raw-sys/src/x86_64/netlink.rs b/third_party/rust/linux-raw-sys/src/x86_64/netlink.rs deleted file mode 100644 index 6c6e95aa089c..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/netlink.rs +++ /dev/null @@ -1,2854 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __kernel_sa_family_t = crate::ctypes::c_ushort; -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __kernel_sockaddr_storage { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { -pub ss_family: __kernel_sa_family_t, -pub __data: [crate::ctypes::c_char; 126usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_nl { -pub nl_family: __kernel_sa_family_t, -pub nl_pad: crate::ctypes::c_ushort, -pub nl_pid: __u32, -pub nl_groups: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsghdr { -pub nlmsg_len: __u32, -pub nlmsg_type: __u16, -pub nlmsg_flags: __u16, -pub nlmsg_seq: __u32, -pub nlmsg_pid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlmsgerr { -pub error: crate::ctypes::c_int, -pub msg: nlmsghdr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_pktinfo { -pub group: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_req { -pub nm_block_size: crate::ctypes::c_uint, -pub nm_block_nr: crate::ctypes::c_uint, -pub nm_frame_size: crate::ctypes::c_uint, -pub nm_frame_nr: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nl_mmap_hdr { -pub nm_status: crate::ctypes::c_uint, -pub nm_len: crate::ctypes::c_uint, -pub nm_group: __u32, -pub nm_pid: __u32, -pub nm_uid: __u32, -pub nm_gid: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nlattr { -pub nla_len: __u16, -pub nla_type: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nla_bitfield32 { -pub value: __u32, -pub selector: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats { -pub rx_packets: __u32, -pub tx_packets: __u32, -pub rx_bytes: __u32, -pub tx_bytes: __u32, -pub rx_errors: __u32, -pub tx_errors: __u32, -pub rx_dropped: __u32, -pub tx_dropped: __u32, -pub multicast: __u32, -pub collisions: __u32, -pub rx_length_errors: __u32, -pub rx_over_errors: __u32, -pub rx_crc_errors: __u32, -pub rx_frame_errors: __u32, -pub rx_fifo_errors: __u32, -pub rx_missed_errors: __u32, -pub tx_aborted_errors: __u32, -pub tx_carrier_errors: __u32, -pub tx_fifo_errors: __u32, -pub tx_heartbeat_errors: __u32, -pub tx_window_errors: __u32, -pub rx_compressed: __u32, -pub tx_compressed: __u32, -pub rx_nohandler: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -pub collisions: __u64, -pub rx_length_errors: __u64, -pub rx_over_errors: __u64, -pub rx_crc_errors: __u64, -pub rx_frame_errors: __u64, -pub rx_fifo_errors: __u64, -pub rx_missed_errors: __u64, -pub tx_aborted_errors: __u64, -pub tx_carrier_errors: __u64, -pub tx_fifo_errors: __u64, -pub tx_heartbeat_errors: __u64, -pub tx_window_errors: __u64, -pub rx_compressed: __u64, -pub tx_compressed: __u64, -pub rx_nohandler: __u64, -pub rx_otherhost_dropped: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_hw_stats64 { -pub rx_packets: __u64, -pub tx_packets: __u64, -pub rx_bytes: __u64, -pub tx_bytes: __u64, -pub rx_errors: __u64, -pub tx_errors: __u64, -pub rx_dropped: __u64, -pub tx_dropped: __u64, -pub multicast: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnl_link_ifmap { -pub mem_start: __u64, -pub mem_end: __u64, -pub base_addr: __u64, -pub irq: __u16, -pub dma: __u8, -pub port: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_bridge_id { -pub prio: [__u8; 2usize], -pub addr: [__u8; 6usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_cacheinfo { -pub max_reasm_len: __u32, -pub tstamp: __u32, -pub reachable_time: __u32, -pub retrans_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vlan_qos_mapping { -pub from: __u32, -pub to: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tunnel_msg { -pub family: __u8, -pub flags: __u8, -pub reserved2: __u16, -pub ifindex: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vxlan_port_range { -pub low: __be16, -pub high: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_mac { -pub vf: __u32, -pub mac: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_broadcast { -pub broadcast: [__u8; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_vlan_info { -pub vf: __u32, -pub vlan: __u32, -pub qos: __u32, -pub vlan_proto: __be16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_tx_rate { -pub vf: __u32, -pub rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rate { -pub vf: __u32, -pub min_tx_rate: __u32, -pub max_tx_rate: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_spoofchk { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_guid { -pub vf: __u32, -pub guid: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_link_state { -pub vf: __u32, -pub link_state: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_rss_query_en { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_vf_trust { -pub vf: __u32, -pub setting: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_port_vsi { -pub vsi_mgr_id: __u8, -pub vsi_type_id: [__u8; 3usize], -pub vsi_type_version: __u8, -pub pad: [__u8; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct if_stats_msg { -pub family: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub ifindex: __u32, -pub filter_mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifla_rmnet_flags { -pub flags: __u32, -pub mask: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifaddrmsg { -pub ifa_family: __u8, -pub ifa_prefixlen: __u8, -pub ifa_flags: __u8, -pub ifa_scope: __u8, -pub ifa_index: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifa_cacheinfo { -pub ifa_prefered: __u32, -pub ifa_valid: __u32, -pub cstamp: __u32, -pub tstamp: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndmsg { -pub ndm_family: __u8, -pub ndm_pad1: __u8, -pub ndm_pad2: __u16, -pub ndm_ifindex: __s32, -pub ndm_state: __u16, -pub ndm_flags: __u8, -pub ndm_type: __u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nda_cacheinfo { -pub ndm_confirmed: __u32, -pub ndm_used: __u32, -pub ndm_updated: __u32, -pub ndm_refcnt: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_stats { -pub ndts_allocs: __u64, -pub ndts_destroys: __u64, -pub ndts_hash_grows: __u64, -pub ndts_res_failed: __u64, -pub ndts_lookups: __u64, -pub ndts_hits: __u64, -pub ndts_rcv_probes_mcast: __u64, -pub ndts_rcv_probes_ucast: __u64, -pub ndts_periodic_gc_runs: __u64, -pub ndts_forced_gc_runs: __u64, -pub ndts_table_fulls: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndtmsg { -pub ndtm_family: __u8, -pub ndtm_pad1: __u8, -pub ndtm_pad2: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ndt_config { -pub ndtc_key_len: __u16, -pub ndtc_entry_size: __u16, -pub ndtc_entries: __u32, -pub ndtc_last_flush: __u32, -pub ndtc_last_rand: __u32, -pub ndtc_hash_rnd: __u32, -pub ndtc_hash_mask: __u32, -pub ndtc_hash_chain_gc: __u32, -pub ndtc_proxy_qlen: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtattr { -pub rta_len: crate::ctypes::c_ushort, -pub rta_type: crate::ctypes::c_ushort, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtmsg { -pub rtm_family: crate::ctypes::c_uchar, -pub rtm_dst_len: crate::ctypes::c_uchar, -pub rtm_src_len: crate::ctypes::c_uchar, -pub rtm_tos: crate::ctypes::c_uchar, -pub rtm_table: crate::ctypes::c_uchar, -pub rtm_protocol: crate::ctypes::c_uchar, -pub rtm_scope: crate::ctypes::c_uchar, -pub rtm_type: crate::ctypes::c_uchar, -pub rtm_flags: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtnexthop { -pub rtnh_len: crate::ctypes::c_ushort, -pub rtnh_flags: crate::ctypes::c_uchar, -pub rtnh_hops: crate::ctypes::c_uchar, -pub rtnh_ifindex: crate::ctypes::c_int, -} -#[repr(C)] -#[derive(Debug)] -pub struct rtvia { -pub rtvia_family: __kernel_sa_family_t, -pub rtvia_addr: __IncompleteArrayField<__u8>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_cacheinfo { -pub rta_clntref: __u32, -pub rta_lastuse: __u32, -pub rta_expires: __s32, -pub rta_error: __u32, -pub rta_used: __u32, -pub rta_id: __u32, -pub rta_ts: __u32, -pub rta_tsage: __u32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rta_session { -pub proto: __u8, -pub pad1: __u8, -pub pad2: __u16, -pub u: rta_session__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { -pub sport: __u16, -pub dport: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { -pub type_: __u8, -pub code: __u8, -pub ident: __u16, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rta_mfc_stats { -pub mfcs_packets: __u64, -pub mfcs_bytes: __u64, -pub mfcs_wrong_if: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rtgenmsg { -pub rtgen_family: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ifinfomsg { -pub ifi_family: crate::ctypes::c_uchar, -pub __ifi_pad: crate::ctypes::c_uchar, -pub ifi_type: crate::ctypes::c_ushort, -pub ifi_index: crate::ctypes::c_int, -pub ifi_flags: crate::ctypes::c_uint, -pub ifi_change: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefixmsg { -pub prefix_family: crate::ctypes::c_uchar, -pub prefix_pad1: crate::ctypes::c_uchar, -pub prefix_pad2: crate::ctypes::c_ushort, -pub prefix_ifindex: crate::ctypes::c_int, -pub prefix_type: crate::ctypes::c_uchar, -pub prefix_len: crate::ctypes::c_uchar, -pub prefix_flags: crate::ctypes::c_uchar, -pub prefix_pad3: crate::ctypes::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prefix_cacheinfo { -pub preferred_time: __u32, -pub valid_time: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcmsg { -pub tcm_family: crate::ctypes::c_uchar, -pub tcm__pad1: crate::ctypes::c_uchar, -pub tcm__pad2: crate::ctypes::c_ushort, -pub tcm_ifindex: crate::ctypes::c_int, -pub tcm_handle: __u32, -pub tcm_parent: __u32, -pub tcm_info: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nduseroptmsg { -pub nduseropt_family: crate::ctypes::c_uchar, -pub nduseropt_pad1: crate::ctypes::c_uchar, -pub nduseropt_opts_len: crate::ctypes::c_ushort, -pub nduseropt_ifindex: crate::ctypes::c_int, -pub nduseropt_icmp_type: __u8, -pub nduseropt_icmp_code: __u8, -pub nduseropt_pad2: crate::ctypes::c_ushort, -pub nduseropt_pad3: crate::ctypes::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tcamsg { -pub tca_family: crate::ctypes::c_uchar, -pub tca__pad1: crate::ctypes::c_uchar, -pub tca__pad2: crate::ctypes::c_ushort, -} -pub const _K_SS_MAXSIZE: u32 = 128; -pub const SOCK_SNDBUF_LOCK: u32 = 1; -pub const SOCK_RCVBUF_LOCK: u32 = 2; -pub const SOCK_BUF_LOCK_MASK: u32 = 3; -pub const SOCK_TXREHASH_DEFAULT: u32 = 255; -pub const SOCK_TXREHASH_DISABLED: u32 = 0; -pub const SOCK_TXREHASH_ENABLED: u32 = 1; -pub const NETLINK_ROUTE: u32 = 0; -pub const NETLINK_UNUSED: u32 = 1; -pub const NETLINK_USERSOCK: u32 = 2; -pub const NETLINK_FIREWALL: u32 = 3; -pub const NETLINK_SOCK_DIAG: u32 = 4; -pub const NETLINK_NFLOG: u32 = 5; -pub const NETLINK_XFRM: u32 = 6; -pub const NETLINK_SELINUX: u32 = 7; -pub const NETLINK_ISCSI: u32 = 8; -pub const NETLINK_AUDIT: u32 = 9; -pub const NETLINK_FIB_LOOKUP: u32 = 10; -pub const NETLINK_CONNECTOR: u32 = 11; -pub const NETLINK_NETFILTER: u32 = 12; -pub const NETLINK_IP6_FW: u32 = 13; -pub const NETLINK_DNRTMSG: u32 = 14; -pub const NETLINK_KOBJECT_UEVENT: u32 = 15; -pub const NETLINK_GENERIC: u32 = 16; -pub const NETLINK_SCSITRANSPORT: u32 = 18; -pub const NETLINK_ECRYPTFS: u32 = 19; -pub const NETLINK_RDMA: u32 = 20; -pub const NETLINK_CRYPTO: u32 = 21; -pub const NETLINK_SMC: u32 = 22; -pub const NETLINK_INET_DIAG: u32 = 4; -pub const MAX_LINKS: u32 = 32; -pub const NLM_F_REQUEST: u32 = 1; -pub const NLM_F_MULTI: u32 = 2; -pub const NLM_F_ACK: u32 = 4; -pub const NLM_F_ECHO: u32 = 8; -pub const NLM_F_DUMP_INTR: u32 = 16; -pub const NLM_F_DUMP_FILTERED: u32 = 32; -pub const NLM_F_ROOT: u32 = 256; -pub const NLM_F_MATCH: u32 = 512; -pub const NLM_F_ATOMIC: u32 = 1024; -pub const NLM_F_DUMP: u32 = 768; -pub const NLM_F_REPLACE: u32 = 256; -pub const NLM_F_EXCL: u32 = 512; -pub const NLM_F_CREATE: u32 = 1024; -pub const NLM_F_APPEND: u32 = 2048; -pub const NLM_F_NONREC: u32 = 256; -pub const NLM_F_BULK: u32 = 512; -pub const NLM_F_CAPPED: u32 = 256; -pub const NLM_F_ACK_TLVS: u32 = 512; -pub const NLMSG_ALIGNTO: u32 = 4; -pub const NLMSG_NOOP: u32 = 1; -pub const NLMSG_ERROR: u32 = 2; -pub const NLMSG_DONE: u32 = 3; -pub const NLMSG_OVERRUN: u32 = 4; -pub const NLMSG_MIN_TYPE: u32 = 16; -pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; -pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; -pub const NETLINK_PKTINFO: u32 = 3; -pub const NETLINK_BROADCAST_ERROR: u32 = 4; -pub const NETLINK_NO_ENOBUFS: u32 = 5; -pub const NETLINK_RX_RING: u32 = 6; -pub const NETLINK_TX_RING: u32 = 7; -pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; -pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; -pub const NETLINK_CAP_ACK: u32 = 10; -pub const NETLINK_EXT_ACK: u32 = 11; -pub const NETLINK_GET_STRICT_CHK: u32 = 12; -pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; -pub const NET_MAJOR: u32 = 36; -pub const NLA_F_NESTED: u32 = 32768; -pub const NLA_F_NET_BYTEORDER: u32 = 16384; -pub const NLA_TYPE_MASK: i32 = -49153; -pub const NLA_ALIGNTO: u32 = 4; -pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; -pub const MACVLAN_FLAG_NODST: u32 = 2; -pub const IPVLAN_F_PRIVATE: u32 = 1; -pub const IPVLAN_F_VEPA: u32 = 2; -pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; -pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; -pub const MAX_VLAN_LIST_LEN: u32 = 1; -pub const PORT_PROFILE_MAX: u32 = 40; -pub const PORT_UUID_MAX: u32 = 16; -pub const PORT_SELF_VF: i32 = -1; -pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; -pub const XDP_FLAGS_SKB_MODE: u32 = 2; -pub const XDP_FLAGS_DRV_MODE: u32 = 4; -pub const XDP_FLAGS_HW_MODE: u32 = 8; -pub const XDP_FLAGS_REPLACE: u32 = 16; -pub const XDP_FLAGS_MODES: u32 = 14; -pub const XDP_FLAGS_MASK: u32 = 31; -pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; -pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; -pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; -pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; -pub const IFA_F_SECONDARY: u32 = 1; -pub const IFA_F_TEMPORARY: u32 = 1; -pub const IFA_F_NODAD: u32 = 2; -pub const IFA_F_OPTIMISTIC: u32 = 4; -pub const IFA_F_DADFAILED: u32 = 8; -pub const IFA_F_HOMEADDRESS: u32 = 16; -pub const IFA_F_DEPRECATED: u32 = 32; -pub const IFA_F_TENTATIVE: u32 = 64; -pub const IFA_F_PERMANENT: u32 = 128; -pub const IFA_F_MANAGETEMPADDR: u32 = 256; -pub const IFA_F_NOPREFIXROUTE: u32 = 512; -pub const IFA_F_MCAUTOJOIN: u32 = 1024; -pub const IFA_F_STABLE_PRIVACY: u32 = 2048; -pub const IFAPROT_UNSPEC: u32 = 0; -pub const IFAPROT_KERNEL_LO: u32 = 1; -pub const IFAPROT_KERNEL_RA: u32 = 2; -pub const IFAPROT_KERNEL_LL: u32 = 3; -pub const NTF_USE: u32 = 1; -pub const NTF_SELF: u32 = 2; -pub const NTF_MASTER: u32 = 4; -pub const NTF_PROXY: u32 = 8; -pub const NTF_EXT_LEARNED: u32 = 16; -pub const NTF_OFFLOADED: u32 = 32; -pub const NTF_STICKY: u32 = 64; -pub const NTF_ROUTER: u32 = 128; -pub const NTF_EXT_MANAGED: u32 = 1; -pub const NTF_EXT_LOCKED: u32 = 2; -pub const NUD_INCOMPLETE: u32 = 1; -pub const NUD_REACHABLE: u32 = 2; -pub const NUD_STALE: u32 = 4; -pub const NUD_DELAY: u32 = 8; -pub const NUD_PROBE: u32 = 16; -pub const NUD_FAILED: u32 = 32; -pub const NUD_NOARP: u32 = 64; -pub const NUD_PERMANENT: u32 = 128; -pub const NUD_NONE: u32 = 0; -pub const RTNL_FAMILY_IPMR: u32 = 128; -pub const RTNL_FAMILY_IP6MR: u32 = 129; -pub const RTNL_FAMILY_MAX: u32 = 129; -pub const RTA_ALIGNTO: u32 = 4; -pub const RTPROT_UNSPEC: u32 = 0; -pub const RTPROT_REDIRECT: u32 = 1; -pub const RTPROT_KERNEL: u32 = 2; -pub const RTPROT_BOOT: u32 = 3; -pub const RTPROT_STATIC: u32 = 4; -pub const RTPROT_GATED: u32 = 8; -pub const RTPROT_RA: u32 = 9; -pub const RTPROT_MRT: u32 = 10; -pub const RTPROT_ZEBRA: u32 = 11; -pub const RTPROT_BIRD: u32 = 12; -pub const RTPROT_DNROUTED: u32 = 13; -pub const RTPROT_XORP: u32 = 14; -pub const RTPROT_NTK: u32 = 15; -pub const RTPROT_DHCP: u32 = 16; -pub const RTPROT_MROUTED: u32 = 17; -pub const RTPROT_KEEPALIVED: u32 = 18; -pub const RTPROT_BABEL: u32 = 42; -pub const RTPROT_OPENR: u32 = 99; -pub const RTPROT_BGP: u32 = 186; -pub const RTPROT_ISIS: u32 = 187; -pub const RTPROT_OSPF: u32 = 188; -pub const RTPROT_RIP: u32 = 189; -pub const RTPROT_EIGRP: u32 = 192; -pub const RTM_F_NOTIFY: u32 = 256; -pub const RTM_F_CLONED: u32 = 512; -pub const RTM_F_EQUALIZE: u32 = 1024; -pub const RTM_F_PREFIX: u32 = 2048; -pub const RTM_F_LOOKUP_TABLE: u32 = 4096; -pub const RTM_F_FIB_MATCH: u32 = 8192; -pub const RTM_F_OFFLOAD: u32 = 16384; -pub const RTM_F_TRAP: u32 = 32768; -pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; -pub const RTNH_F_DEAD: u32 = 1; -pub const RTNH_F_PERVASIVE: u32 = 2; -pub const RTNH_F_ONLINK: u32 = 4; -pub const RTNH_F_OFFLOAD: u32 = 8; -pub const RTNH_F_LINKDOWN: u32 = 16; -pub const RTNH_F_UNRESOLVED: u32 = 32; -pub const RTNH_F_TRAP: u32 = 64; -pub const RTNH_COMPARE_MASK: u32 = 89; -pub const RTNH_ALIGNTO: u32 = 4; -pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; -pub const RTAX_FEATURE_ECN: u32 = 1; -pub const RTAX_FEATURE_SACK: u32 = 2; -pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; -pub const RTAX_FEATURE_ALLFRAG: u32 = 8; -pub const RTAX_FEATURE_MASK: u32 = 15; -pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; -pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; -pub const RTMGRP_LINK: u32 = 1; -pub const RTMGRP_NOTIFY: u32 = 2; -pub const RTMGRP_NEIGH: u32 = 4; -pub const RTMGRP_TC: u32 = 8; -pub const RTMGRP_IPV4_IFADDR: u32 = 16; -pub const RTMGRP_IPV4_MROUTE: u32 = 32; -pub const RTMGRP_IPV4_ROUTE: u32 = 64; -pub const RTMGRP_IPV4_RULE: u32 = 128; -pub const RTMGRP_IPV6_IFADDR: u32 = 256; -pub const RTMGRP_IPV6_MROUTE: u32 = 512; -pub const RTMGRP_IPV6_ROUTE: u32 = 1024; -pub const RTMGRP_IPV6_IFINFO: u32 = 2048; -pub const RTMGRP_DECnet_IFADDR: u32 = 4096; -pub const RTMGRP_DECnet_ROUTE: u32 = 16384; -pub const RTMGRP_IPV6_PREFIX: u32 = 131072; -pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; -pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; -pub const RTEXT_FILTER_VF: u32 = 1; -pub const RTEXT_FILTER_BRVLAN: u32 = 2; -pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; -pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; -pub const RTEXT_FILTER_MRP: u32 = 16; -pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; -pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; -pub const RTEXT_FILTER_MST: u32 = 128; -pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; -pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; -pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; -pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; -pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; -pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; -pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; -pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; -pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; -pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; -pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; -pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; -pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; -pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; -pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; -pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; -pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; -pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; -pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; -pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; -pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; -pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; -pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; -pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; -pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; -pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; -pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; -pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; -pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; -pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; -pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; -pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; -pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; -pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; -pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; -pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; -pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; -pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; -pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; -pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; -pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; -pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; -pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; -pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; -pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; -pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; -pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; -pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; -pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; -pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; -pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; -pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; -pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; -pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; -pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; -pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; -pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; -pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; -pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; -pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; -pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; -pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; -pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; -pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; -pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; -pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; -pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; -pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; -pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; -pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; -pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; -pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; -pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; -pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; -pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; -pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; -pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; -pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; -pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; -pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; -pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; -pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; -pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; -pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; -pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; -pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; -pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; -pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; -pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; -pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; -pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; -pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; -pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; -pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; -pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; -pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; -pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; -pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; -pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; -pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; -pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; -pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; -pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; -pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; -pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; -pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; -pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; -pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; -pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; -pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; -pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; -pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; -pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; -pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; -pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; -pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; -pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; -pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; -pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; -pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; -pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; -pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; -pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; -pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; -pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; -pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; -pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; -pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; -pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; -pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; -pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; -pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; -pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; -pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; -pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; -pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; -pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; -pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; -pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; -pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; -pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; -pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; -pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; -pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; -pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; -pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; -pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; -pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; -pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; -pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; -pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; -pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; -pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; -pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; -pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; -pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; -pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; -pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; -pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; -pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; -pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; -pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; -pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; -pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; -pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; -pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; -pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; -pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; -pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; -pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; -pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; -pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; -pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; -pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; -pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; -pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; -pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; -pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; -pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; -pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; -pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; -pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; -pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; -pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; -pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; -pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; -pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; -pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; -pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; -pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; -pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; -pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; -pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; -pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; -pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; -pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; -pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; -pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; -pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; -pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; -pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; -pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; -pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; -pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; -pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; -pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; -pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; -pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; -pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; -pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; -pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; -pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; -pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; -pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; -pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; -pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; -pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; -pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; -pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; -pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; -pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; -pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; -pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; -pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; -pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; -pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; -pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; -pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; -pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; -pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; -pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; -pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; -pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; -pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; -pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; -pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; -pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; -pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; -pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; -pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_UNSPEC; -pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_BYTES; -pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_PKTS; -pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_DROPS; -pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_RX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_BYTES; -pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_PKTS; -pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_DROPS; -pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_TX_ERRORS; -pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_18 = _bindgen_ty_18::VNIFILTER_ENTRY_STATS_PAD; -pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_18 = _bindgen_ty_18::__VNIFILTER_ENTRY_STATS_MAX; -pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_START; -pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_END; -pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP; -pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_GROUP6; -pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_19 = _bindgen_ty_19::VXLAN_VNIFILTER_ENTRY_STATS; -pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VXLAN_VNIFILTER_ENTRY_MAX; -pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_UNSPEC; -pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY; -pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_MAX; -pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UNSPEC; -pub const IFLA_VXLAN_ID: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_ID; -pub const IFLA_VXLAN_GROUP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP; -pub const IFLA_VXLAN_LINK: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LINK; -pub const IFLA_VXLAN_LOCAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL; -pub const IFLA_VXLAN_TTL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL; -pub const IFLA_VXLAN_TOS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TOS; -pub const IFLA_VXLAN_LEARNING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LEARNING; -pub const IFLA_VXLAN_AGEING: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_AGEING; -pub const IFLA_VXLAN_LIMIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LIMIT; -pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT_RANGE; -pub const IFLA_VXLAN_PROXY: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PROXY; -pub const IFLA_VXLAN_RSC: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_RSC; -pub const IFLA_VXLAN_L2MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L2MISS; -pub const IFLA_VXLAN_L3MISS: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_L3MISS; -pub const IFLA_VXLAN_PORT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_PORT; -pub const IFLA_VXLAN_GROUP6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GROUP6; -pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LOCAL6; -pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_CSUM; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; -pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; -pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_TX; -pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_RX; -pub const IFLA_VXLAN_GBP: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GBP; -pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_REMCSUM_NOPARTIAL; -pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_COLLECT_METADATA; -pub const IFLA_VXLAN_LABEL: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_LABEL; -pub const IFLA_VXLAN_GPE: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_GPE; -pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_TTL_INHERIT; -pub const IFLA_VXLAN_DF: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_DF; -pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_21 = _bindgen_ty_21::IFLA_VXLAN_VNIFILTER; -pub const __IFLA_VXLAN_MAX: _bindgen_ty_21 = _bindgen_ty_21::__IFLA_VXLAN_MAX; -pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UNSPEC; -pub const IFLA_GENEVE_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_ID; -pub const IFLA_GENEVE_REMOTE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE; -pub const IFLA_GENEVE_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL; -pub const IFLA_GENEVE_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TOS; -pub const IFLA_GENEVE_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_PORT; -pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_COLLECT_METADATA; -pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_REMOTE6; -pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_CSUM; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; -pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; -pub const IFLA_GENEVE_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_LABEL; -pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_TTL_INHERIT; -pub const IFLA_GENEVE_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_DF; -pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_GENEVE_INNER_PROTO_INHERIT; -pub const __IFLA_GENEVE_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_GENEVE_MAX; -pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_UNSPEC; -pub const IFLA_BAREUDP_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_PORT; -pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_ETHERTYPE; -pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_SRCPORT_MIN; -pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_BAREUDP_MULTIPROTO_MODE; -pub const __IFLA_BAREUDP_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_BAREUDP_MAX; -pub const IFLA_PPP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_UNSPEC; -pub const IFLA_PPP_DEV_FD: _bindgen_ty_24 = _bindgen_ty_24::IFLA_PPP_DEV_FD; -pub const __IFLA_PPP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_PPP_MAX; -pub const IFLA_GTP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_UNSPEC; -pub const IFLA_GTP_FD0: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD0; -pub const IFLA_GTP_FD1: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_FD1; -pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_PDP_HASHSIZE; -pub const IFLA_GTP_ROLE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_ROLE; -pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_CREATE_SOCKETS; -pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GTP_RESTART_COUNT; -pub const __IFLA_GTP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GTP_MAX; -pub const IFLA_BOND_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UNSPEC; -pub const IFLA_BOND_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MODE; -pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ACTIVE_SLAVE; -pub const IFLA_BOND_MIIMON: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIIMON; -pub const IFLA_BOND_UPDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_UPDELAY; -pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_DOWNDELAY; -pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_USE_CARRIER; -pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_INTERVAL; -pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_IP_TARGET; -pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_VALIDATE; -pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ARP_ALL_TARGETS; -pub const IFLA_BOND_PRIMARY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY; -pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PRIMARY_RESELECT; -pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_FAIL_OVER_MAC; -pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_XMIT_HASH_POLICY; -pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_RESEND_IGMP; -pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NUM_PEER_NOTIF; -pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_ALL_SLAVES_ACTIVE; -pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MIN_LINKS; -pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_LP_INTERVAL; -pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PACKETS_PER_SLAVE; -pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_RATE; -pub const IFLA_BOND_AD_SELECT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_SELECT; -pub const IFLA_BOND_AD_INFO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_INFO; -pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYS_PRIO; -pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_USER_PORT_KEY; -pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_ACTOR_SYSTEM; -pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_TLB_DYNAMIC_LB; -pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_PEER_NOTIF_DELAY; -pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_AD_LACP_ACTIVE; -pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_MISSED_MAX; -pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BOND_NS_IP6_TARGET; -pub const __IFLA_BOND_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BOND_MAX; -pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_UNSPEC; -pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_AGGREGATOR; -pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_NUM_PORTS; -pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_ACTOR_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_KEY; -pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO_PARTNER_MAC; -pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_AD_INFO_MAX; -pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_UNSPEC; -pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_STATE; -pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_MII_STATUS; -pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; -pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PERM_HWADDR; -pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_QUEUE_ID; -pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; -pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; -pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_SLAVE_PRIO; -pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_SLAVE_MAX; -pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO_UNSPEC; -pub const IFLA_VF_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_VF_INFO; -pub const __IFLA_VF_INFO_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_VF_INFO_MAX; -pub const IFLA_VF_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_UNSPEC; -pub const IFLA_VF_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_MAC; -pub const IFLA_VF_VLAN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN; -pub const IFLA_VF_TX_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TX_RATE; -pub const IFLA_VF_SPOOFCHK: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_SPOOFCHK; -pub const IFLA_VF_LINK_STATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_LINK_STATE; -pub const IFLA_VF_RATE: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RATE; -pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_RSS_QUERY_EN; -pub const IFLA_VF_STATS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_STATS; -pub const IFLA_VF_TRUST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_TRUST; -pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_NODE_GUID; -pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_IB_PORT_GUID; -pub const IFLA_VF_VLAN_LIST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_VLAN_LIST; -pub const IFLA_VF_BROADCAST: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_BROADCAST; -pub const __IFLA_VF_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_MAX; -pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO_UNSPEC; -pub const IFLA_VF_VLAN_INFO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_INFO; -pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_VLAN_INFO_MAX; -pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_AUTO; -pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_ENABLE; -pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_LINK_STATE_DISABLE; -pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_LINK_STATE_MAX; -pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_PACKETS; -pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_PACKETS; -pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_BYTES; -pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_BYTES; -pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_BROADCAST; -pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_MULTICAST; -pub const IFLA_VF_STATS_PAD: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_PAD; -pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_RX_DROPPED; -pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS_TX_DROPPED; -pub const __IFLA_VF_STATS_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_STATS_MAX; -pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT_UNSPEC; -pub const IFLA_VF_PORT: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_PORT; -pub const __IFLA_VF_PORT_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_PORT_MAX; -pub const IFLA_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_UNSPEC; -pub const IFLA_PORT_VF: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VF; -pub const IFLA_PORT_PROFILE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_PROFILE; -pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_VSI_TYPE; -pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_INSTANCE_UUID; -pub const IFLA_PORT_HOST_UUID: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_HOST_UUID; -pub const IFLA_PORT_REQUEST: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_REQUEST; -pub const IFLA_PORT_RESPONSE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_PORT_RESPONSE; -pub const __IFLA_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_PORT_MAX; -pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE; -pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_PREASSOCIATE_RR; -pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_ASSOCIATE; -pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_36 = _bindgen_ty_36::PORT_REQUEST_DISASSOCIATE; -pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_SUCCESS; -pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INVALID_FORMAT; -pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_UNUSED_VTID; -pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VIOLATION; -pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; -pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_37 = _bindgen_ty_37::PORT_VDP_RESPONSE_OUT_OF_SYNC; -pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_SUCCESS; -pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INPROGRESS; -pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INVALID; -pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_BADSTATE; -pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; -pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_37 = _bindgen_ty_37::PORT_PROFILE_RESPONSE_ERROR; -pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UNSPEC; -pub const IFLA_IPOIB_PKEY: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_PKEY; -pub const IFLA_IPOIB_MODE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_MODE; -pub const IFLA_IPOIB_UMCAST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_IPOIB_UMCAST; -pub const __IFLA_IPOIB_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_IPOIB_MAX; -pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_DATAGRAM; -pub const IPOIB_MODE_CONNECTED: _bindgen_ty_39 = _bindgen_ty_39::IPOIB_MODE_CONNECTED; -pub const HSR_PROTOCOL_HSR: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_HSR; -pub const HSR_PROTOCOL_PRP: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_PRP; -pub const HSR_PROTOCOL_MAX: _bindgen_ty_40 = _bindgen_ty_40::HSR_PROTOCOL_MAX; -pub const IFLA_HSR_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_UNSPEC; -pub const IFLA_HSR_SLAVE1: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE1; -pub const IFLA_HSR_SLAVE2: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SLAVE2; -pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_MULTICAST_SPEC; -pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SUPERVISION_ADDR; -pub const IFLA_HSR_SEQ_NR: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_SEQ_NR; -pub const IFLA_HSR_VERSION: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_VERSION; -pub const IFLA_HSR_PROTOCOL: _bindgen_ty_41 = _bindgen_ty_41::IFLA_HSR_PROTOCOL; -pub const __IFLA_HSR_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_HSR_MAX; -pub const IFLA_STATS_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_UNSPEC; -pub const IFLA_STATS_LINK_64: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_64; -pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS; -pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_XSTATS_SLAVE; -pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_LINK_OFFLOAD_XSTATS; -pub const IFLA_STATS_AF_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_STATS_AF_SPEC; -pub const __IFLA_STATS_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_STATS_MAX; -pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GETSET_UNSPEC; -pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_GET_FILTERS; -pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_GETSET_MAX; -pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_UNSPEC; -pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BRIDGE; -pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_44 = _bindgen_ty_44::LINK_XSTATS_TYPE_BOND; -pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_44 = _bindgen_ty_44::__LINK_XSTATS_TYPE_MAX; -pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_CPU_HIT; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_HW_S_INFO; -pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_OFFLOAD_XSTATS_L3_STATS; -pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_OFFLOAD_XSTATS_MAX; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; -pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; -pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; -pub const XDP_ATTACHED_NONE: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_NONE; -pub const XDP_ATTACHED_DRV: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_DRV; -pub const XDP_ATTACHED_SKB: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_SKB; -pub const XDP_ATTACHED_HW: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_HW; -pub const XDP_ATTACHED_MULTI: _bindgen_ty_47 = _bindgen_ty_47::XDP_ATTACHED_MULTI; -pub const IFLA_XDP_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_UNSPEC; -pub const IFLA_XDP_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FD; -pub const IFLA_XDP_ATTACHED: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_ATTACHED; -pub const IFLA_XDP_FLAGS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_FLAGS; -pub const IFLA_XDP_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_PROG_ID; -pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_DRV_PROG_ID; -pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_SKB_PROG_ID; -pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_HW_PROG_ID; -pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_48 = _bindgen_ty_48::IFLA_XDP_EXPECTED_FD; -pub const __IFLA_XDP_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_XDP_MAX; -pub const IFLA_EVENT_NONE: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NONE; -pub const IFLA_EVENT_REBOOT: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_REBOOT; -pub const IFLA_EVENT_FEATURES: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_FEATURES; -pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_FAILOVER; -pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_NOTIFY_PEERS; -pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_IGMP_RESEND; -pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_EVENT_BONDING_OPTIONS; -pub const IFLA_TUN_UNSPEC: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_UNSPEC; -pub const IFLA_TUN_OWNER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_OWNER; -pub const IFLA_TUN_GROUP: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_GROUP; -pub const IFLA_TUN_TYPE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_TYPE; -pub const IFLA_TUN_PI: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PI; -pub const IFLA_TUN_VNET_HDR: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_VNET_HDR; -pub const IFLA_TUN_PERSIST: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_PERSIST; -pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_MULTI_QUEUE; -pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_QUEUES; -pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_TUN_NUM_DISABLED_QUEUES; -pub const __IFLA_TUN_MAX: _bindgen_ty_50 = _bindgen_ty_50::__IFLA_TUN_MAX; -pub const IFLA_RMNET_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_UNSPEC; -pub const IFLA_RMNET_MUX_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_MUX_ID; -pub const IFLA_RMNET_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_RMNET_FLAGS; -pub const __IFLA_RMNET_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_RMNET_MAX; -pub const IFLA_MCTP_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_UNSPEC; -pub const IFLA_MCTP_NET: _bindgen_ty_52 = _bindgen_ty_52::IFLA_MCTP_NET; -pub const __IFLA_MCTP_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_MCTP_MAX; -pub const IFLA_DSA_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_UNSPEC; -pub const IFLA_DSA_MASTER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_DSA_MASTER; -pub const __IFLA_DSA_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_DSA_MAX; -pub const IFA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFA_UNSPEC; -pub const IFA_ADDRESS: _bindgen_ty_54 = _bindgen_ty_54::IFA_ADDRESS; -pub const IFA_LOCAL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LOCAL; -pub const IFA_LABEL: _bindgen_ty_54 = _bindgen_ty_54::IFA_LABEL; -pub const IFA_BROADCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_BROADCAST; -pub const IFA_ANYCAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_ANYCAST; -pub const IFA_CACHEINFO: _bindgen_ty_54 = _bindgen_ty_54::IFA_CACHEINFO; -pub const IFA_MULTICAST: _bindgen_ty_54 = _bindgen_ty_54::IFA_MULTICAST; -pub const IFA_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFA_FLAGS; -pub const IFA_RT_PRIORITY: _bindgen_ty_54 = _bindgen_ty_54::IFA_RT_PRIORITY; -pub const IFA_TARGET_NETNSID: _bindgen_ty_54 = _bindgen_ty_54::IFA_TARGET_NETNSID; -pub const IFA_PROTO: _bindgen_ty_54 = _bindgen_ty_54::IFA_PROTO; -pub const __IFA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFA_MAX; -pub const NDA_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::NDA_UNSPEC; -pub const NDA_DST: _bindgen_ty_55 = _bindgen_ty_55::NDA_DST; -pub const NDA_LLADDR: _bindgen_ty_55 = _bindgen_ty_55::NDA_LLADDR; -pub const NDA_CACHEINFO: _bindgen_ty_55 = _bindgen_ty_55::NDA_CACHEINFO; -pub const NDA_PROBES: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROBES; -pub const NDA_VLAN: _bindgen_ty_55 = _bindgen_ty_55::NDA_VLAN; -pub const NDA_PORT: _bindgen_ty_55 = _bindgen_ty_55::NDA_PORT; -pub const NDA_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_VNI; -pub const NDA_IFINDEX: _bindgen_ty_55 = _bindgen_ty_55::NDA_IFINDEX; -pub const NDA_MASTER: _bindgen_ty_55 = _bindgen_ty_55::NDA_MASTER; -pub const NDA_LINK_NETNSID: _bindgen_ty_55 = _bindgen_ty_55::NDA_LINK_NETNSID; -pub const NDA_SRC_VNI: _bindgen_ty_55 = _bindgen_ty_55::NDA_SRC_VNI; -pub const NDA_PROTOCOL: _bindgen_ty_55 = _bindgen_ty_55::NDA_PROTOCOL; -pub const NDA_NH_ID: _bindgen_ty_55 = _bindgen_ty_55::NDA_NH_ID; -pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_55 = _bindgen_ty_55::NDA_FDB_EXT_ATTRS; -pub const NDA_FLAGS_EXT: _bindgen_ty_55 = _bindgen_ty_55::NDA_FLAGS_EXT; -pub const NDA_NDM_STATE_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_STATE_MASK; -pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_55 = _bindgen_ty_55::NDA_NDM_FLAGS_MASK; -pub const __NDA_MAX: _bindgen_ty_55 = _bindgen_ty_55::__NDA_MAX; -pub const NDTPA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UNSPEC; -pub const NDTPA_IFINDEX: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_IFINDEX; -pub const NDTPA_REFCNT: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REFCNT; -pub const NDTPA_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_REACHABLE_TIME; -pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_BASE_REACHABLE_TIME; -pub const NDTPA_RETRANS_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_RETRANS_TIME; -pub const NDTPA_GC_STALETIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_GC_STALETIME; -pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_DELAY_PROBE_TIME; -pub const NDTPA_QUEUE_LEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LEN; -pub const NDTPA_APP_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_APP_PROBES; -pub const NDTPA_UCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_UCAST_PROBES; -pub const NDTPA_MCAST_PROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_PROBES; -pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_ANYCAST_DELAY; -pub const NDTPA_PROXY_DELAY: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_DELAY; -pub const NDTPA_PROXY_QLEN: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PROXY_QLEN; -pub const NDTPA_LOCKTIME: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_LOCKTIME; -pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_QUEUE_LENBYTES; -pub const NDTPA_MCAST_REPROBES: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_MCAST_REPROBES; -pub const NDTPA_PAD: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_PAD; -pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_56 = _bindgen_ty_56::NDTPA_INTERVAL_PROBE_TIME_MS; -pub const __NDTPA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__NDTPA_MAX; -pub const NDTA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDTA_UNSPEC; -pub const NDTA_NAME: _bindgen_ty_57 = _bindgen_ty_57::NDTA_NAME; -pub const NDTA_THRESH1: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH1; -pub const NDTA_THRESH2: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH2; -pub const NDTA_THRESH3: _bindgen_ty_57 = _bindgen_ty_57::NDTA_THRESH3; -pub const NDTA_CONFIG: _bindgen_ty_57 = _bindgen_ty_57::NDTA_CONFIG; -pub const NDTA_PARMS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PARMS; -pub const NDTA_STATS: _bindgen_ty_57 = _bindgen_ty_57::NDTA_STATS; -pub const NDTA_GC_INTERVAL: _bindgen_ty_57 = _bindgen_ty_57::NDTA_GC_INTERVAL; -pub const NDTA_PAD: _bindgen_ty_57 = _bindgen_ty_57::NDTA_PAD; -pub const __NDTA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDTA_MAX; -pub const FDB_NOTIFY_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_BIT; -pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_58 = _bindgen_ty_58::FDB_NOTIFY_INACTIVE_BIT; -pub const NFEA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NFEA_UNSPEC; -pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_59 = _bindgen_ty_59::NFEA_ACTIVITY_NOTIFY; -pub const NFEA_DONT_REFRESH: _bindgen_ty_59 = _bindgen_ty_59::NFEA_DONT_REFRESH; -pub const __NFEA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NFEA_MAX; -pub const RTM_BASE: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_NEWLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_BASE; -pub const RTM_DELLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINK; -pub const RTM_GETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINK; -pub const RTM_SETLINK: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETLINK; -pub const RTM_NEWADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDR; -pub const RTM_DELADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDR; -pub const RTM_GETADDR: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDR; -pub const RTM_NEWROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWROUTE; -pub const RTM_DELROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELROUTE; -pub const RTM_GETROUTE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETROUTE; -pub const RTM_NEWNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGH; -pub const RTM_DELNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEIGH; -pub const RTM_GETNEIGH: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGH; -pub const RTM_NEWRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWRULE; -pub const RTM_DELRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELRULE; -pub const RTM_GETRULE: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETRULE; -pub const RTM_NEWQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWQDISC; -pub const RTM_DELQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELQDISC; -pub const RTM_GETQDISC: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETQDISC; -pub const RTM_NEWTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTCLASS; -pub const RTM_DELTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTCLASS; -pub const RTM_GETTCLASS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTCLASS; -pub const RTM_NEWTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTFILTER; -pub const RTM_DELTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTFILTER; -pub const RTM_GETTFILTER: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTFILTER; -pub const RTM_NEWACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWACTION; -pub const RTM_DELACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELACTION; -pub const RTM_GETACTION: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETACTION; -pub const RTM_NEWPREFIX: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWPREFIX; -pub const RTM_GETMULTICAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMULTICAST; -pub const RTM_GETANYCAST: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETANYCAST; -pub const RTM_NEWNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEIGHTBL; -pub const RTM_GETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEIGHTBL; -pub const RTM_SETNEIGHTBL: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETNEIGHTBL; -pub const RTM_NEWNDUSEROPT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNDUSEROPT; -pub const RTM_NEWADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWADDRLABEL; -pub const RTM_DELADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELADDRLABEL; -pub const RTM_GETADDRLABEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETADDRLABEL; -pub const RTM_GETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETDCB; -pub const RTM_SETDCB: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETDCB; -pub const RTM_NEWNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNETCONF; -pub const RTM_DELNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNETCONF; -pub const RTM_GETNETCONF: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNETCONF; -pub const RTM_NEWMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWMDB; -pub const RTM_DELMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELMDB; -pub const RTM_GETMDB: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETMDB; -pub const RTM_NEWNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNSID; -pub const RTM_DELNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNSID; -pub const RTM_GETNSID: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNSID; -pub const RTM_NEWSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWSTATS; -pub const RTM_GETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETSTATS; -pub const RTM_SETSTATS: _bindgen_ty_60 = _bindgen_ty_60::RTM_SETSTATS; -pub const RTM_NEWCACHEREPORT: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCACHEREPORT; -pub const RTM_NEWCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWCHAIN; -pub const RTM_DELCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELCHAIN; -pub const RTM_GETCHAIN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETCHAIN; -pub const RTM_NEWNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOP; -pub const RTM_DELNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOP; -pub const RTM_GETNEXTHOP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOP; -pub const RTM_NEWLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWLINKPROP; -pub const RTM_DELLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELLINKPROP; -pub const RTM_GETLINKPROP: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETLINKPROP; -pub const RTM_NEWVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWVLAN; -pub const RTM_DELVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELVLAN; -pub const RTM_GETVLAN: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETVLAN; -pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWNEXTHOPBUCKET; -pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELNEXTHOPBUCKET; -pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETNEXTHOPBUCKET; -pub const RTM_NEWTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_NEWTUNNEL; -pub const RTM_DELTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_DELTUNNEL; -pub const RTM_GETTUNNEL: _bindgen_ty_60 = _bindgen_ty_60::RTM_GETTUNNEL; -pub const __RTM_MAX: _bindgen_ty_60 = _bindgen_ty_60::__RTM_MAX; -pub const RTN_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNSPEC; -pub const RTN_UNICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNICAST; -pub const RTN_LOCAL: _bindgen_ty_61 = _bindgen_ty_61::RTN_LOCAL; -pub const RTN_BROADCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_BROADCAST; -pub const RTN_ANYCAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_ANYCAST; -pub const RTN_MULTICAST: _bindgen_ty_61 = _bindgen_ty_61::RTN_MULTICAST; -pub const RTN_BLACKHOLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_BLACKHOLE; -pub const RTN_UNREACHABLE: _bindgen_ty_61 = _bindgen_ty_61::RTN_UNREACHABLE; -pub const RTN_PROHIBIT: _bindgen_ty_61 = _bindgen_ty_61::RTN_PROHIBIT; -pub const RTN_THROW: _bindgen_ty_61 = _bindgen_ty_61::RTN_THROW; -pub const RTN_NAT: _bindgen_ty_61 = _bindgen_ty_61::RTN_NAT; -pub const RTN_XRESOLVE: _bindgen_ty_61 = _bindgen_ty_61::RTN_XRESOLVE; -pub const __RTN_MAX: _bindgen_ty_61 = _bindgen_ty_61::__RTN_MAX; -pub const RTAX_UNSPEC: _bindgen_ty_62 = _bindgen_ty_62::RTAX_UNSPEC; -pub const RTAX_LOCK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_LOCK; -pub const RTAX_MTU: _bindgen_ty_62 = _bindgen_ty_62::RTAX_MTU; -pub const RTAX_WINDOW: _bindgen_ty_62 = _bindgen_ty_62::RTAX_WINDOW; -pub const RTAX_RTT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTT; -pub const RTAX_RTTVAR: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTTVAR; -pub const RTAX_SSTHRESH: _bindgen_ty_62 = _bindgen_ty_62::RTAX_SSTHRESH; -pub const RTAX_CWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CWND; -pub const RTAX_ADVMSS: _bindgen_ty_62 = _bindgen_ty_62::RTAX_ADVMSS; -pub const RTAX_REORDERING: _bindgen_ty_62 = _bindgen_ty_62::RTAX_REORDERING; -pub const RTAX_HOPLIMIT: _bindgen_ty_62 = _bindgen_ty_62::RTAX_HOPLIMIT; -pub const RTAX_INITCWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITCWND; -pub const RTAX_FEATURES: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FEATURES; -pub const RTAX_RTO_MIN: _bindgen_ty_62 = _bindgen_ty_62::RTAX_RTO_MIN; -pub const RTAX_INITRWND: _bindgen_ty_62 = _bindgen_ty_62::RTAX_INITRWND; -pub const RTAX_QUICKACK: _bindgen_ty_62 = _bindgen_ty_62::RTAX_QUICKACK; -pub const RTAX_CC_ALGO: _bindgen_ty_62 = _bindgen_ty_62::RTAX_CC_ALGO; -pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_62 = _bindgen_ty_62::RTAX_FASTOPEN_NO_COOKIE; -pub const __RTAX_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTAX_MAX; -pub const PREFIX_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_UNSPEC; -pub const PREFIX_ADDRESS: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_ADDRESS; -pub const PREFIX_CACHEINFO: _bindgen_ty_63 = _bindgen_ty_63::PREFIX_CACHEINFO; -pub const __PREFIX_MAX: _bindgen_ty_63 = _bindgen_ty_63::__PREFIX_MAX; -pub const TCA_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::TCA_UNSPEC; -pub const TCA_KIND: _bindgen_ty_64 = _bindgen_ty_64::TCA_KIND; -pub const TCA_OPTIONS: _bindgen_ty_64 = _bindgen_ty_64::TCA_OPTIONS; -pub const TCA_STATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS; -pub const TCA_XSTATS: _bindgen_ty_64 = _bindgen_ty_64::TCA_XSTATS; -pub const TCA_RATE: _bindgen_ty_64 = _bindgen_ty_64::TCA_RATE; -pub const TCA_FCNT: _bindgen_ty_64 = _bindgen_ty_64::TCA_FCNT; -pub const TCA_STATS2: _bindgen_ty_64 = _bindgen_ty_64::TCA_STATS2; -pub const TCA_STAB: _bindgen_ty_64 = _bindgen_ty_64::TCA_STAB; -pub const TCA_PAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_PAD; -pub const TCA_DUMP_INVISIBLE: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_INVISIBLE; -pub const TCA_CHAIN: _bindgen_ty_64 = _bindgen_ty_64::TCA_CHAIN; -pub const TCA_HW_OFFLOAD: _bindgen_ty_64 = _bindgen_ty_64::TCA_HW_OFFLOAD; -pub const TCA_INGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_INGRESS_BLOCK; -pub const TCA_EGRESS_BLOCK: _bindgen_ty_64 = _bindgen_ty_64::TCA_EGRESS_BLOCK; -pub const TCA_DUMP_FLAGS: _bindgen_ty_64 = _bindgen_ty_64::TCA_DUMP_FLAGS; -pub const TCA_EXT_WARN_MSG: _bindgen_ty_64 = _bindgen_ty_64::TCA_EXT_WARN_MSG; -pub const __TCA_MAX: _bindgen_ty_64 = _bindgen_ty_64::__TCA_MAX; -pub const NDUSEROPT_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_UNSPEC; -pub const NDUSEROPT_SRCADDR: _bindgen_ty_65 = _bindgen_ty_65::NDUSEROPT_SRCADDR; -pub const __NDUSEROPT_MAX: _bindgen_ty_65 = _bindgen_ty_65::__NDUSEROPT_MAX; -pub const TCA_ROOT_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_UNSPEC; -pub const TCA_ROOT_TAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TAB; -pub const TCA_ROOT_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_FLAGS; -pub const TCA_ROOT_COUNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_COUNT; -pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_TIME_DELTA; -pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_ROOT_EXT_WARN_MSG; -pub const __TCA_ROOT_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_ROOT_MAX; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nlmsgerr_attrs { -NLMSGERR_ATTR_UNUSED = 0, -NLMSGERR_ATTR_MSG = 1, -NLMSGERR_ATTR_OFFS = 2, -NLMSGERR_ATTR_COOKIE = 3, -NLMSGERR_ATTR_POLICY = 4, -NLMSGERR_ATTR_MISS_TYPE = 5, -NLMSGERR_ATTR_MISS_NEST = 6, -__NLMSGERR_ATTR_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum nl_mmap_status { -NL_MMAP_STATUS_UNUSED = 0, -NL_MMAP_STATUS_RESERVED = 1, -NL_MMAP_STATUS_VALID = 2, -NL_MMAP_STATUS_COPY = 3, -NL_MMAP_STATUS_SKIP = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_1 { -NETLINK_UNCONNECTED = 0, -NETLINK_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_attribute_type { -NL_ATTR_TYPE_INVALID = 0, -NL_ATTR_TYPE_FLAG = 1, -NL_ATTR_TYPE_U8 = 2, -NL_ATTR_TYPE_U16 = 3, -NL_ATTR_TYPE_U32 = 4, -NL_ATTR_TYPE_U64 = 5, -NL_ATTR_TYPE_S8 = 6, -NL_ATTR_TYPE_S16 = 7, -NL_ATTR_TYPE_S32 = 8, -NL_ATTR_TYPE_S64 = 9, -NL_ATTR_TYPE_BINARY = 10, -NL_ATTR_TYPE_STRING = 11, -NL_ATTR_TYPE_NUL_STRING = 12, -NL_ATTR_TYPE_NESTED = 13, -NL_ATTR_TYPE_NESTED_ARRAY = 14, -NL_ATTR_TYPE_BITFIELD32 = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum netlink_policy_type_attr { -NL_POLICY_TYPE_ATTR_UNSPEC = 0, -NL_POLICY_TYPE_ATTR_TYPE = 1, -NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, -NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, -NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, -NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, -NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, -NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, -NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, -NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, -NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, -NL_POLICY_TYPE_ATTR_PAD = 11, -NL_POLICY_TYPE_ATTR_MASK = 12, -__NL_POLICY_TYPE_ATTR_MAX = 13, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_2 { -IFLA_UNSPEC = 0, -IFLA_ADDRESS = 1, -IFLA_BROADCAST = 2, -IFLA_IFNAME = 3, -IFLA_MTU = 4, -IFLA_LINK = 5, -IFLA_QDISC = 6, -IFLA_STATS = 7, -IFLA_COST = 8, -IFLA_PRIORITY = 9, -IFLA_MASTER = 10, -IFLA_WIRELESS = 11, -IFLA_PROTINFO = 12, -IFLA_TXQLEN = 13, -IFLA_MAP = 14, -IFLA_WEIGHT = 15, -IFLA_OPERSTATE = 16, -IFLA_LINKMODE = 17, -IFLA_LINKINFO = 18, -IFLA_NET_NS_PID = 19, -IFLA_IFALIAS = 20, -IFLA_NUM_VF = 21, -IFLA_VFINFO_LIST = 22, -IFLA_STATS64 = 23, -IFLA_VF_PORTS = 24, -IFLA_PORT_SELF = 25, -IFLA_AF_SPEC = 26, -IFLA_GROUP = 27, -IFLA_NET_NS_FD = 28, -IFLA_EXT_MASK = 29, -IFLA_PROMISCUITY = 30, -IFLA_NUM_TX_QUEUES = 31, -IFLA_NUM_RX_QUEUES = 32, -IFLA_CARRIER = 33, -IFLA_PHYS_PORT_ID = 34, -IFLA_CARRIER_CHANGES = 35, -IFLA_PHYS_SWITCH_ID = 36, -IFLA_LINK_NETNSID = 37, -IFLA_PHYS_PORT_NAME = 38, -IFLA_PROTO_DOWN = 39, -IFLA_GSO_MAX_SEGS = 40, -IFLA_GSO_MAX_SIZE = 41, -IFLA_PAD = 42, -IFLA_XDP = 43, -IFLA_EVENT = 44, -IFLA_NEW_NETNSID = 45, -IFLA_IF_NETNSID = 46, -IFLA_CARRIER_UP_COUNT = 47, -IFLA_CARRIER_DOWN_COUNT = 48, -IFLA_NEW_IFINDEX = 49, -IFLA_MIN_MTU = 50, -IFLA_MAX_MTU = 51, -IFLA_PROP_LIST = 52, -IFLA_ALT_IFNAME = 53, -IFLA_PERM_ADDRESS = 54, -IFLA_PROTO_DOWN_REASON = 55, -IFLA_PARENT_DEV_NAME = 56, -IFLA_PARENT_DEV_BUS_NAME = 57, -IFLA_GRO_MAX_SIZE = 58, -IFLA_TSO_MAX_SIZE = 59, -IFLA_TSO_MAX_SEGS = 60, -IFLA_ALLMULTI = 61, -IFLA_DEVLINK_PORT = 62, -IFLA_GSO_IPV4_MAX_SIZE = 63, -IFLA_GRO_IPV4_MAX_SIZE = 64, -__IFLA_MAX = 65, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_3 { -IFLA_PROTO_DOWN_REASON_UNSPEC = 0, -IFLA_PROTO_DOWN_REASON_MASK = 1, -IFLA_PROTO_DOWN_REASON_VALUE = 2, -__IFLA_PROTO_DOWN_REASON_CNT = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_4 { -IFLA_INET_UNSPEC = 0, -IFLA_INET_CONF = 1, -__IFLA_INET_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_5 { -IFLA_INET6_UNSPEC = 0, -IFLA_INET6_FLAGS = 1, -IFLA_INET6_CONF = 2, -IFLA_INET6_STATS = 3, -IFLA_INET6_MCAST = 4, -IFLA_INET6_CACHEINFO = 5, -IFLA_INET6_ICMP6STATS = 6, -IFLA_INET6_TOKEN = 7, -IFLA_INET6_ADDR_GEN_MODE = 8, -IFLA_INET6_RA_MTU = 9, -__IFLA_INET6_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum in6_addr_gen_mode { -IN6_ADDR_GEN_MODE_EUI64 = 0, -IN6_ADDR_GEN_MODE_NONE = 1, -IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, -IN6_ADDR_GEN_MODE_RANDOM = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_6 { -IFLA_BR_UNSPEC = 0, -IFLA_BR_FORWARD_DELAY = 1, -IFLA_BR_HELLO_TIME = 2, -IFLA_BR_MAX_AGE = 3, -IFLA_BR_AGEING_TIME = 4, -IFLA_BR_STP_STATE = 5, -IFLA_BR_PRIORITY = 6, -IFLA_BR_VLAN_FILTERING = 7, -IFLA_BR_VLAN_PROTOCOL = 8, -IFLA_BR_GROUP_FWD_MASK = 9, -IFLA_BR_ROOT_ID = 10, -IFLA_BR_BRIDGE_ID = 11, -IFLA_BR_ROOT_PORT = 12, -IFLA_BR_ROOT_PATH_COST = 13, -IFLA_BR_TOPOLOGY_CHANGE = 14, -IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, -IFLA_BR_HELLO_TIMER = 16, -IFLA_BR_TCN_TIMER = 17, -IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, -IFLA_BR_GC_TIMER = 19, -IFLA_BR_GROUP_ADDR = 20, -IFLA_BR_FDB_FLUSH = 21, -IFLA_BR_MCAST_ROUTER = 22, -IFLA_BR_MCAST_SNOOPING = 23, -IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, -IFLA_BR_MCAST_QUERIER = 25, -IFLA_BR_MCAST_HASH_ELASTICITY = 26, -IFLA_BR_MCAST_HASH_MAX = 27, -IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, -IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, -IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, -IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, -IFLA_BR_MCAST_QUERIER_INTVL = 32, -IFLA_BR_MCAST_QUERY_INTVL = 33, -IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, -IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, -IFLA_BR_NF_CALL_IPTABLES = 36, -IFLA_BR_NF_CALL_IP6TABLES = 37, -IFLA_BR_NF_CALL_ARPTABLES = 38, -IFLA_BR_VLAN_DEFAULT_PVID = 39, -IFLA_BR_PAD = 40, -IFLA_BR_VLAN_STATS_ENABLED = 41, -IFLA_BR_MCAST_STATS_ENABLED = 42, -IFLA_BR_MCAST_IGMP_VERSION = 43, -IFLA_BR_MCAST_MLD_VERSION = 44, -IFLA_BR_VLAN_STATS_PER_PORT = 45, -IFLA_BR_MULTI_BOOLOPT = 46, -IFLA_BR_MCAST_QUERIER_STATE = 47, -__IFLA_BR_MAX = 48, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_7 { -BRIDGE_MODE_UNSPEC = 0, -BRIDGE_MODE_HAIRPIN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_8 { -IFLA_BRPORT_UNSPEC = 0, -IFLA_BRPORT_STATE = 1, -IFLA_BRPORT_PRIORITY = 2, -IFLA_BRPORT_COST = 3, -IFLA_BRPORT_MODE = 4, -IFLA_BRPORT_GUARD = 5, -IFLA_BRPORT_PROTECT = 6, -IFLA_BRPORT_FAST_LEAVE = 7, -IFLA_BRPORT_LEARNING = 8, -IFLA_BRPORT_UNICAST_FLOOD = 9, -IFLA_BRPORT_PROXYARP = 10, -IFLA_BRPORT_LEARNING_SYNC = 11, -IFLA_BRPORT_PROXYARP_WIFI = 12, -IFLA_BRPORT_ROOT_ID = 13, -IFLA_BRPORT_BRIDGE_ID = 14, -IFLA_BRPORT_DESIGNATED_PORT = 15, -IFLA_BRPORT_DESIGNATED_COST = 16, -IFLA_BRPORT_ID = 17, -IFLA_BRPORT_NO = 18, -IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, -IFLA_BRPORT_CONFIG_PENDING = 20, -IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, -IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, -IFLA_BRPORT_HOLD_TIMER = 23, -IFLA_BRPORT_FLUSH = 24, -IFLA_BRPORT_MULTICAST_ROUTER = 25, -IFLA_BRPORT_PAD = 26, -IFLA_BRPORT_MCAST_FLOOD = 27, -IFLA_BRPORT_MCAST_TO_UCAST = 28, -IFLA_BRPORT_VLAN_TUNNEL = 29, -IFLA_BRPORT_BCAST_FLOOD = 30, -IFLA_BRPORT_GROUP_FWD_MASK = 31, -IFLA_BRPORT_NEIGH_SUPPRESS = 32, -IFLA_BRPORT_ISOLATED = 33, -IFLA_BRPORT_BACKUP_PORT = 34, -IFLA_BRPORT_MRP_RING_OPEN = 35, -IFLA_BRPORT_MRP_IN_OPEN = 36, -IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, -IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, -IFLA_BRPORT_LOCKED = 39, -IFLA_BRPORT_MAB = 40, -IFLA_BRPORT_MCAST_N_GROUPS = 41, -IFLA_BRPORT_MCAST_MAX_GROUPS = 42, -__IFLA_BRPORT_MAX = 43, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_9 { -IFLA_INFO_UNSPEC = 0, -IFLA_INFO_KIND = 1, -IFLA_INFO_DATA = 2, -IFLA_INFO_XSTATS = 3, -IFLA_INFO_SLAVE_KIND = 4, -IFLA_INFO_SLAVE_DATA = 5, -__IFLA_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_10 { -IFLA_VLAN_UNSPEC = 0, -IFLA_VLAN_ID = 1, -IFLA_VLAN_FLAGS = 2, -IFLA_VLAN_EGRESS_QOS = 3, -IFLA_VLAN_INGRESS_QOS = 4, -IFLA_VLAN_PROTOCOL = 5, -__IFLA_VLAN_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_11 { -IFLA_VLAN_QOS_UNSPEC = 0, -IFLA_VLAN_QOS_MAPPING = 1, -__IFLA_VLAN_QOS_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_12 { -IFLA_MACVLAN_UNSPEC = 0, -IFLA_MACVLAN_MODE = 1, -IFLA_MACVLAN_FLAGS = 2, -IFLA_MACVLAN_MACADDR_MODE = 3, -IFLA_MACVLAN_MACADDR = 4, -IFLA_MACVLAN_MACADDR_DATA = 5, -IFLA_MACVLAN_MACADDR_COUNT = 6, -IFLA_MACVLAN_BC_QUEUE_LEN = 7, -IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, -__IFLA_MACVLAN_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_mode { -MACVLAN_MODE_PRIVATE = 1, -MACVLAN_MODE_VEPA = 2, -MACVLAN_MODE_BRIDGE = 4, -MACVLAN_MODE_PASSTHRU = 8, -MACVLAN_MODE_SOURCE = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macvlan_macaddr_mode { -MACVLAN_MACADDR_ADD = 0, -MACVLAN_MACADDR_DEL = 1, -MACVLAN_MACADDR_FLUSH = 2, -MACVLAN_MACADDR_SET = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_13 { -IFLA_VRF_UNSPEC = 0, -IFLA_VRF_TABLE = 1, -__IFLA_VRF_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_14 { -IFLA_VRF_PORT_UNSPEC = 0, -IFLA_VRF_PORT_TABLE = 1, -__IFLA_VRF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_15 { -IFLA_MACSEC_UNSPEC = 0, -IFLA_MACSEC_SCI = 1, -IFLA_MACSEC_PORT = 2, -IFLA_MACSEC_ICV_LEN = 3, -IFLA_MACSEC_CIPHER_SUITE = 4, -IFLA_MACSEC_WINDOW = 5, -IFLA_MACSEC_ENCODING_SA = 6, -IFLA_MACSEC_ENCRYPT = 7, -IFLA_MACSEC_PROTECT = 8, -IFLA_MACSEC_INC_SCI = 9, -IFLA_MACSEC_ES = 10, -IFLA_MACSEC_SCB = 11, -IFLA_MACSEC_REPLAY_PROTECT = 12, -IFLA_MACSEC_VALIDATION = 13, -IFLA_MACSEC_PAD = 14, -IFLA_MACSEC_OFFLOAD = 15, -__IFLA_MACSEC_MAX = 16, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_16 { -IFLA_XFRM_UNSPEC = 0, -IFLA_XFRM_LINK = 1, -IFLA_XFRM_IF_ID = 2, -IFLA_XFRM_COLLECT_METADATA = 3, -__IFLA_XFRM_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_validation_type { -MACSEC_VALIDATE_DISABLED = 0, -MACSEC_VALIDATE_CHECK = 1, -MACSEC_VALIDATE_STRICT = 2, -__MACSEC_VALIDATE_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum macsec_offload { -MACSEC_OFFLOAD_OFF = 0, -MACSEC_OFFLOAD_PHY = 1, -MACSEC_OFFLOAD_MAC = 2, -__MACSEC_OFFLOAD_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_17 { -IFLA_IPVLAN_UNSPEC = 0, -IFLA_IPVLAN_MODE = 1, -IFLA_IPVLAN_FLAGS = 2, -__IFLA_IPVLAN_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ipvlan_mode { -IPVLAN_MODE_L2 = 0, -IPVLAN_MODE_L3 = 1, -IPVLAN_MODE_L3S = 2, -IPVLAN_MODE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_18 { -VNIFILTER_ENTRY_STATS_UNSPEC = 0, -VNIFILTER_ENTRY_STATS_RX_BYTES = 1, -VNIFILTER_ENTRY_STATS_RX_PKTS = 2, -VNIFILTER_ENTRY_STATS_RX_DROPS = 3, -VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, -VNIFILTER_ENTRY_STATS_TX_BYTES = 5, -VNIFILTER_ENTRY_STATS_TX_PKTS = 6, -VNIFILTER_ENTRY_STATS_TX_DROPS = 7, -VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, -VNIFILTER_ENTRY_STATS_PAD = 9, -__VNIFILTER_ENTRY_STATS_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_19 { -VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY_START = 1, -VXLAN_VNIFILTER_ENTRY_END = 2, -VXLAN_VNIFILTER_ENTRY_GROUP = 3, -VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, -VXLAN_VNIFILTER_ENTRY_STATS = 5, -__VXLAN_VNIFILTER_ENTRY_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_20 { -VXLAN_VNIFILTER_UNSPEC = 0, -VXLAN_VNIFILTER_ENTRY = 1, -__VXLAN_VNIFILTER_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_21 { -IFLA_VXLAN_UNSPEC = 0, -IFLA_VXLAN_ID = 1, -IFLA_VXLAN_GROUP = 2, -IFLA_VXLAN_LINK = 3, -IFLA_VXLAN_LOCAL = 4, -IFLA_VXLAN_TTL = 5, -IFLA_VXLAN_TOS = 6, -IFLA_VXLAN_LEARNING = 7, -IFLA_VXLAN_AGEING = 8, -IFLA_VXLAN_LIMIT = 9, -IFLA_VXLAN_PORT_RANGE = 10, -IFLA_VXLAN_PROXY = 11, -IFLA_VXLAN_RSC = 12, -IFLA_VXLAN_L2MISS = 13, -IFLA_VXLAN_L3MISS = 14, -IFLA_VXLAN_PORT = 15, -IFLA_VXLAN_GROUP6 = 16, -IFLA_VXLAN_LOCAL6 = 17, -IFLA_VXLAN_UDP_CSUM = 18, -IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, -IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, -IFLA_VXLAN_REMCSUM_TX = 21, -IFLA_VXLAN_REMCSUM_RX = 22, -IFLA_VXLAN_GBP = 23, -IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, -IFLA_VXLAN_COLLECT_METADATA = 25, -IFLA_VXLAN_LABEL = 26, -IFLA_VXLAN_GPE = 27, -IFLA_VXLAN_TTL_INHERIT = 28, -IFLA_VXLAN_DF = 29, -IFLA_VXLAN_VNIFILTER = 30, -__IFLA_VXLAN_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_vxlan_df { -VXLAN_DF_UNSET = 0, -VXLAN_DF_SET = 1, -VXLAN_DF_INHERIT = 2, -__VXLAN_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_22 { -IFLA_GENEVE_UNSPEC = 0, -IFLA_GENEVE_ID = 1, -IFLA_GENEVE_REMOTE = 2, -IFLA_GENEVE_TTL = 3, -IFLA_GENEVE_TOS = 4, -IFLA_GENEVE_PORT = 5, -IFLA_GENEVE_COLLECT_METADATA = 6, -IFLA_GENEVE_REMOTE6 = 7, -IFLA_GENEVE_UDP_CSUM = 8, -IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, -IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, -IFLA_GENEVE_LABEL = 11, -IFLA_GENEVE_TTL_INHERIT = 12, -IFLA_GENEVE_DF = 13, -IFLA_GENEVE_INNER_PROTO_INHERIT = 14, -__IFLA_GENEVE_MAX = 15, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_geneve_df { -GENEVE_DF_UNSET = 0, -GENEVE_DF_SET = 1, -GENEVE_DF_INHERIT = 2, -__GENEVE_DF_END = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_23 { -IFLA_BAREUDP_UNSPEC = 0, -IFLA_BAREUDP_PORT = 1, -IFLA_BAREUDP_ETHERTYPE = 2, -IFLA_BAREUDP_SRCPORT_MIN = 3, -IFLA_BAREUDP_MULTIPROTO_MODE = 4, -__IFLA_BAREUDP_MAX = 5, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_24 { -IFLA_PPP_UNSPEC = 0, -IFLA_PPP_DEV_FD = 1, -__IFLA_PPP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum ifla_gtp_role { -GTP_ROLE_GGSN = 0, -GTP_ROLE_SGSN = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_25 { -IFLA_GTP_UNSPEC = 0, -IFLA_GTP_FD0 = 1, -IFLA_GTP_FD1 = 2, -IFLA_GTP_PDP_HASHSIZE = 3, -IFLA_GTP_ROLE = 4, -IFLA_GTP_CREATE_SOCKETS = 5, -IFLA_GTP_RESTART_COUNT = 6, -__IFLA_GTP_MAX = 7, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_26 { -IFLA_BOND_UNSPEC = 0, -IFLA_BOND_MODE = 1, -IFLA_BOND_ACTIVE_SLAVE = 2, -IFLA_BOND_MIIMON = 3, -IFLA_BOND_UPDELAY = 4, -IFLA_BOND_DOWNDELAY = 5, -IFLA_BOND_USE_CARRIER = 6, -IFLA_BOND_ARP_INTERVAL = 7, -IFLA_BOND_ARP_IP_TARGET = 8, -IFLA_BOND_ARP_VALIDATE = 9, -IFLA_BOND_ARP_ALL_TARGETS = 10, -IFLA_BOND_PRIMARY = 11, -IFLA_BOND_PRIMARY_RESELECT = 12, -IFLA_BOND_FAIL_OVER_MAC = 13, -IFLA_BOND_XMIT_HASH_POLICY = 14, -IFLA_BOND_RESEND_IGMP = 15, -IFLA_BOND_NUM_PEER_NOTIF = 16, -IFLA_BOND_ALL_SLAVES_ACTIVE = 17, -IFLA_BOND_MIN_LINKS = 18, -IFLA_BOND_LP_INTERVAL = 19, -IFLA_BOND_PACKETS_PER_SLAVE = 20, -IFLA_BOND_AD_LACP_RATE = 21, -IFLA_BOND_AD_SELECT = 22, -IFLA_BOND_AD_INFO = 23, -IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, -IFLA_BOND_AD_USER_PORT_KEY = 25, -IFLA_BOND_AD_ACTOR_SYSTEM = 26, -IFLA_BOND_TLB_DYNAMIC_LB = 27, -IFLA_BOND_PEER_NOTIF_DELAY = 28, -IFLA_BOND_AD_LACP_ACTIVE = 29, -IFLA_BOND_MISSED_MAX = 30, -IFLA_BOND_NS_IP6_TARGET = 31, -__IFLA_BOND_MAX = 32, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_27 { -IFLA_BOND_AD_INFO_UNSPEC = 0, -IFLA_BOND_AD_INFO_AGGREGATOR = 1, -IFLA_BOND_AD_INFO_NUM_PORTS = 2, -IFLA_BOND_AD_INFO_ACTOR_KEY = 3, -IFLA_BOND_AD_INFO_PARTNER_KEY = 4, -IFLA_BOND_AD_INFO_PARTNER_MAC = 5, -__IFLA_BOND_AD_INFO_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_28 { -IFLA_BOND_SLAVE_UNSPEC = 0, -IFLA_BOND_SLAVE_STATE = 1, -IFLA_BOND_SLAVE_MII_STATUS = 2, -IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, -IFLA_BOND_SLAVE_PERM_HWADDR = 4, -IFLA_BOND_SLAVE_QUEUE_ID = 5, -IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, -IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, -IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, -IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_29 { -IFLA_VF_INFO_UNSPEC = 0, -IFLA_VF_INFO = 1, -__IFLA_VF_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_30 { -IFLA_VF_UNSPEC = 0, -IFLA_VF_MAC = 1, -IFLA_VF_VLAN = 2, -IFLA_VF_TX_RATE = 3, -IFLA_VF_SPOOFCHK = 4, -IFLA_VF_LINK_STATE = 5, -IFLA_VF_RATE = 6, -IFLA_VF_RSS_QUERY_EN = 7, -IFLA_VF_STATS = 8, -IFLA_VF_TRUST = 9, -IFLA_VF_IB_NODE_GUID = 10, -IFLA_VF_IB_PORT_GUID = 11, -IFLA_VF_VLAN_LIST = 12, -IFLA_VF_BROADCAST = 13, -__IFLA_VF_MAX = 14, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_31 { -IFLA_VF_VLAN_INFO_UNSPEC = 0, -IFLA_VF_VLAN_INFO = 1, -__IFLA_VF_VLAN_INFO_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_32 { -IFLA_VF_LINK_STATE_AUTO = 0, -IFLA_VF_LINK_STATE_ENABLE = 1, -IFLA_VF_LINK_STATE_DISABLE = 2, -__IFLA_VF_LINK_STATE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_33 { -IFLA_VF_STATS_RX_PACKETS = 0, -IFLA_VF_STATS_TX_PACKETS = 1, -IFLA_VF_STATS_RX_BYTES = 2, -IFLA_VF_STATS_TX_BYTES = 3, -IFLA_VF_STATS_BROADCAST = 4, -IFLA_VF_STATS_MULTICAST = 5, -IFLA_VF_STATS_PAD = 6, -IFLA_VF_STATS_RX_DROPPED = 7, -IFLA_VF_STATS_TX_DROPPED = 8, -__IFLA_VF_STATS_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_34 { -IFLA_VF_PORT_UNSPEC = 0, -IFLA_VF_PORT = 1, -__IFLA_VF_PORT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_35 { -IFLA_PORT_UNSPEC = 0, -IFLA_PORT_VF = 1, -IFLA_PORT_PROFILE = 2, -IFLA_PORT_VSI_TYPE = 3, -IFLA_PORT_INSTANCE_UUID = 4, -IFLA_PORT_HOST_UUID = 5, -IFLA_PORT_REQUEST = 6, -IFLA_PORT_RESPONSE = 7, -__IFLA_PORT_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_36 { -PORT_REQUEST_PREASSOCIATE = 0, -PORT_REQUEST_PREASSOCIATE_RR = 1, -PORT_REQUEST_ASSOCIATE = 2, -PORT_REQUEST_DISASSOCIATE = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_37 { -PORT_VDP_RESPONSE_SUCCESS = 0, -PORT_VDP_RESPONSE_INVALID_FORMAT = 1, -PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, -PORT_VDP_RESPONSE_UNUSED_VTID = 3, -PORT_VDP_RESPONSE_VTID_VIOLATION = 4, -PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, -PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, -PORT_PROFILE_RESPONSE_SUCCESS = 256, -PORT_PROFILE_RESPONSE_INPROGRESS = 257, -PORT_PROFILE_RESPONSE_INVALID = 258, -PORT_PROFILE_RESPONSE_BADSTATE = 259, -PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, -PORT_PROFILE_RESPONSE_ERROR = 261, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_38 { -IFLA_IPOIB_UNSPEC = 0, -IFLA_IPOIB_PKEY = 1, -IFLA_IPOIB_MODE = 2, -IFLA_IPOIB_UMCAST = 3, -__IFLA_IPOIB_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_39 { -IPOIB_MODE_DATAGRAM = 0, -IPOIB_MODE_CONNECTED = 1, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_40 { -HSR_PROTOCOL_HSR = 0, -HSR_PROTOCOL_PRP = 1, -HSR_PROTOCOL_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_41 { -IFLA_HSR_UNSPEC = 0, -IFLA_HSR_SLAVE1 = 1, -IFLA_HSR_SLAVE2 = 2, -IFLA_HSR_MULTICAST_SPEC = 3, -IFLA_HSR_SUPERVISION_ADDR = 4, -IFLA_HSR_SEQ_NR = 5, -IFLA_HSR_VERSION = 6, -IFLA_HSR_PROTOCOL = 7, -__IFLA_HSR_MAX = 8, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_42 { -IFLA_STATS_UNSPEC = 0, -IFLA_STATS_LINK_64 = 1, -IFLA_STATS_LINK_XSTATS = 2, -IFLA_STATS_LINK_XSTATS_SLAVE = 3, -IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, -IFLA_STATS_AF_SPEC = 5, -__IFLA_STATS_MAX = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_43 { -IFLA_STATS_GETSET_UNSPEC = 0, -IFLA_STATS_GET_FILTERS = 1, -IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, -__IFLA_STATS_GETSET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_44 { -LINK_XSTATS_TYPE_UNSPEC = 0, -LINK_XSTATS_TYPE_BRIDGE = 1, -LINK_XSTATS_TYPE_BOND = 2, -__LINK_XSTATS_TYPE_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_45 { -IFLA_OFFLOAD_XSTATS_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, -IFLA_OFFLOAD_XSTATS_L3_STATS = 3, -__IFLA_OFFLOAD_XSTATS_MAX = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_46 { -IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, -IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, -__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_47 { -XDP_ATTACHED_NONE = 0, -XDP_ATTACHED_DRV = 1, -XDP_ATTACHED_SKB = 2, -XDP_ATTACHED_HW = 3, -XDP_ATTACHED_MULTI = 4, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_48 { -IFLA_XDP_UNSPEC = 0, -IFLA_XDP_FD = 1, -IFLA_XDP_ATTACHED = 2, -IFLA_XDP_FLAGS = 3, -IFLA_XDP_PROG_ID = 4, -IFLA_XDP_DRV_PROG_ID = 5, -IFLA_XDP_SKB_PROG_ID = 6, -IFLA_XDP_HW_PROG_ID = 7, -IFLA_XDP_EXPECTED_FD = 8, -__IFLA_XDP_MAX = 9, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_49 { -IFLA_EVENT_NONE = 0, -IFLA_EVENT_REBOOT = 1, -IFLA_EVENT_FEATURES = 2, -IFLA_EVENT_BONDING_FAILOVER = 3, -IFLA_EVENT_NOTIFY_PEERS = 4, -IFLA_EVENT_IGMP_RESEND = 5, -IFLA_EVENT_BONDING_OPTIONS = 6, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_50 { -IFLA_TUN_UNSPEC = 0, -IFLA_TUN_OWNER = 1, -IFLA_TUN_GROUP = 2, -IFLA_TUN_TYPE = 3, -IFLA_TUN_PI = 4, -IFLA_TUN_VNET_HDR = 5, -IFLA_TUN_PERSIST = 6, -IFLA_TUN_MULTI_QUEUE = 7, -IFLA_TUN_NUM_QUEUES = 8, -IFLA_TUN_NUM_DISABLED_QUEUES = 9, -__IFLA_TUN_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_51 { -IFLA_RMNET_UNSPEC = 0, -IFLA_RMNET_MUX_ID = 1, -IFLA_RMNET_FLAGS = 2, -__IFLA_RMNET_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_52 { -IFLA_MCTP_UNSPEC = 0, -IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_53 { -IFLA_DSA_UNSPEC = 0, -IFLA_DSA_MASTER = 1, -__IFLA_DSA_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_54 { -IFA_UNSPEC = 0, -IFA_ADDRESS = 1, -IFA_LOCAL = 2, -IFA_LABEL = 3, -IFA_BROADCAST = 4, -IFA_ANYCAST = 5, -IFA_CACHEINFO = 6, -IFA_MULTICAST = 7, -IFA_FLAGS = 8, -IFA_RT_PRIORITY = 9, -IFA_TARGET_NETNSID = 10, -IFA_PROTO = 11, -__IFA_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_55 { -NDA_UNSPEC = 0, -NDA_DST = 1, -NDA_LLADDR = 2, -NDA_CACHEINFO = 3, -NDA_PROBES = 4, -NDA_VLAN = 5, -NDA_PORT = 6, -NDA_VNI = 7, -NDA_IFINDEX = 8, -NDA_MASTER = 9, -NDA_LINK_NETNSID = 10, -NDA_SRC_VNI = 11, -NDA_PROTOCOL = 12, -NDA_NH_ID = 13, -NDA_FDB_EXT_ATTRS = 14, -NDA_FLAGS_EXT = 15, -NDA_NDM_STATE_MASK = 16, -NDA_NDM_FLAGS_MASK = 17, -__NDA_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_56 { -NDTPA_UNSPEC = 0, -NDTPA_IFINDEX = 1, -NDTPA_REFCNT = 2, -NDTPA_REACHABLE_TIME = 3, -NDTPA_BASE_REACHABLE_TIME = 4, -NDTPA_RETRANS_TIME = 5, -NDTPA_GC_STALETIME = 6, -NDTPA_DELAY_PROBE_TIME = 7, -NDTPA_QUEUE_LEN = 8, -NDTPA_APP_PROBES = 9, -NDTPA_UCAST_PROBES = 10, -NDTPA_MCAST_PROBES = 11, -NDTPA_ANYCAST_DELAY = 12, -NDTPA_PROXY_DELAY = 13, -NDTPA_PROXY_QLEN = 14, -NDTPA_LOCKTIME = 15, -NDTPA_QUEUE_LENBYTES = 16, -NDTPA_MCAST_REPROBES = 17, -NDTPA_PAD = 18, -NDTPA_INTERVAL_PROBE_TIME_MS = 19, -__NDTPA_MAX = 20, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_57 { -NDTA_UNSPEC = 0, -NDTA_NAME = 1, -NDTA_THRESH1 = 2, -NDTA_THRESH2 = 3, -NDTA_THRESH3 = 4, -NDTA_CONFIG = 5, -NDTA_PARMS = 6, -NDTA_STATS = 7, -NDTA_GC_INTERVAL = 8, -NDTA_PAD = 9, -__NDTA_MAX = 10, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_58 { -FDB_NOTIFY_BIT = 1, -FDB_NOTIFY_INACTIVE_BIT = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_59 { -NFEA_UNSPEC = 0, -NFEA_ACTIVITY_NOTIFY = 1, -NFEA_DONT_REFRESH = 2, -__NFEA_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_60 { -RTM_BASE = 16, -RTM_DELLINK = 17, -RTM_GETLINK = 18, -RTM_SETLINK = 19, -RTM_NEWADDR = 20, -RTM_DELADDR = 21, -RTM_GETADDR = 22, -RTM_NEWROUTE = 24, -RTM_DELROUTE = 25, -RTM_GETROUTE = 26, -RTM_NEWNEIGH = 28, -RTM_DELNEIGH = 29, -RTM_GETNEIGH = 30, -RTM_NEWRULE = 32, -RTM_DELRULE = 33, -RTM_GETRULE = 34, -RTM_NEWQDISC = 36, -RTM_DELQDISC = 37, -RTM_GETQDISC = 38, -RTM_NEWTCLASS = 40, -RTM_DELTCLASS = 41, -RTM_GETTCLASS = 42, -RTM_NEWTFILTER = 44, -RTM_DELTFILTER = 45, -RTM_GETTFILTER = 46, -RTM_NEWACTION = 48, -RTM_DELACTION = 49, -RTM_GETACTION = 50, -RTM_NEWPREFIX = 52, -RTM_GETMULTICAST = 58, -RTM_GETANYCAST = 62, -RTM_NEWNEIGHTBL = 64, -RTM_GETNEIGHTBL = 66, -RTM_SETNEIGHTBL = 67, -RTM_NEWNDUSEROPT = 68, -RTM_NEWADDRLABEL = 72, -RTM_DELADDRLABEL = 73, -RTM_GETADDRLABEL = 74, -RTM_GETDCB = 78, -RTM_SETDCB = 79, -RTM_NEWNETCONF = 80, -RTM_DELNETCONF = 81, -RTM_GETNETCONF = 82, -RTM_NEWMDB = 84, -RTM_DELMDB = 85, -RTM_GETMDB = 86, -RTM_NEWNSID = 88, -RTM_DELNSID = 89, -RTM_GETNSID = 90, -RTM_NEWSTATS = 92, -RTM_GETSTATS = 94, -RTM_SETSTATS = 95, -RTM_NEWCACHEREPORT = 96, -RTM_NEWCHAIN = 100, -RTM_DELCHAIN = 101, -RTM_GETCHAIN = 102, -RTM_NEWNEXTHOP = 104, -RTM_DELNEXTHOP = 105, -RTM_GETNEXTHOP = 106, -RTM_NEWLINKPROP = 108, -RTM_DELLINKPROP = 109, -RTM_GETLINKPROP = 110, -RTM_NEWVLAN = 112, -RTM_DELVLAN = 113, -RTM_GETVLAN = 114, -RTM_NEWNEXTHOPBUCKET = 116, -RTM_DELNEXTHOPBUCKET = 117, -RTM_GETNEXTHOPBUCKET = 118, -RTM_NEWTUNNEL = 120, -RTM_DELTUNNEL = 121, -RTM_GETTUNNEL = 122, -__RTM_MAX = 123, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_61 { -RTN_UNSPEC = 0, -RTN_UNICAST = 1, -RTN_LOCAL = 2, -RTN_BROADCAST = 3, -RTN_ANYCAST = 4, -RTN_MULTICAST = 5, -RTN_BLACKHOLE = 6, -RTN_UNREACHABLE = 7, -RTN_PROHIBIT = 8, -RTN_THROW = 9, -RTN_NAT = 10, -RTN_XRESOLVE = 11, -__RTN_MAX = 12, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_scope_t { -RT_SCOPE_UNIVERSE = 0, -RT_SCOPE_SITE = 200, -RT_SCOPE_LINK = 253, -RT_SCOPE_HOST = 254, -RT_SCOPE_NOWHERE = 255, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rt_class_t { -RT_TABLE_UNSPEC = 0, -RT_TABLE_COMPAT = 252, -RT_TABLE_DEFAULT = 253, -RT_TABLE_MAIN = 254, -RT_TABLE_LOCAL = 255, -RT_TABLE_MAX = 4294967295, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtattr_type_t { -RTA_UNSPEC = 0, -RTA_DST = 1, -RTA_SRC = 2, -RTA_IIF = 3, -RTA_OIF = 4, -RTA_GATEWAY = 5, -RTA_PRIORITY = 6, -RTA_PREFSRC = 7, -RTA_METRICS = 8, -RTA_MULTIPATH = 9, -RTA_PROTOINFO = 10, -RTA_FLOW = 11, -RTA_CACHEINFO = 12, -RTA_SESSION = 13, -RTA_MP_ALGO = 14, -RTA_TABLE = 15, -RTA_MARK = 16, -RTA_MFC_STATS = 17, -RTA_VIA = 18, -RTA_NEWDST = 19, -RTA_PREF = 20, -RTA_ENCAP_TYPE = 21, -RTA_ENCAP = 22, -RTA_EXPIRES = 23, -RTA_PAD = 24, -RTA_UID = 25, -RTA_TTL_PROPAGATE = 26, -RTA_IP_PROTO = 27, -RTA_SPORT = 28, -RTA_DPORT = 29, -RTA_NH_ID = 30, -__RTA_MAX = 31, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_62 { -RTAX_UNSPEC = 0, -RTAX_LOCK = 1, -RTAX_MTU = 2, -RTAX_WINDOW = 3, -RTAX_RTT = 4, -RTAX_RTTVAR = 5, -RTAX_SSTHRESH = 6, -RTAX_CWND = 7, -RTAX_ADVMSS = 8, -RTAX_REORDERING = 9, -RTAX_HOPLIMIT = 10, -RTAX_INITCWND = 11, -RTAX_FEATURES = 12, -RTAX_RTO_MIN = 13, -RTAX_INITRWND = 14, -RTAX_QUICKACK = 15, -RTAX_CC_ALGO = 16, -RTAX_FASTOPEN_NO_COOKIE = 17, -__RTAX_MAX = 18, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_63 { -PREFIX_UNSPEC = 0, -PREFIX_ADDRESS = 1, -PREFIX_CACHEINFO = 2, -__PREFIX_MAX = 3, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_64 { -TCA_UNSPEC = 0, -TCA_KIND = 1, -TCA_OPTIONS = 2, -TCA_STATS = 3, -TCA_XSTATS = 4, -TCA_RATE = 5, -TCA_FCNT = 6, -TCA_STATS2 = 7, -TCA_STAB = 8, -TCA_PAD = 9, -TCA_DUMP_INVISIBLE = 10, -TCA_CHAIN = 11, -TCA_HW_OFFLOAD = 12, -TCA_INGRESS_BLOCK = 13, -TCA_EGRESS_BLOCK = 14, -TCA_DUMP_FLAGS = 15, -TCA_EXT_WARN_MSG = 16, -__TCA_MAX = 17, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_65 { -NDUSEROPT_UNSPEC = 0, -NDUSEROPT_SRCADDR = 1, -__NDUSEROPT_MAX = 2, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum rtnetlink_groups { -RTNLGRP_NONE = 0, -RTNLGRP_LINK = 1, -RTNLGRP_NOTIFY = 2, -RTNLGRP_NEIGH = 3, -RTNLGRP_TC = 4, -RTNLGRP_IPV4_IFADDR = 5, -RTNLGRP_IPV4_MROUTE = 6, -RTNLGRP_IPV4_ROUTE = 7, -RTNLGRP_IPV4_RULE = 8, -RTNLGRP_IPV6_IFADDR = 9, -RTNLGRP_IPV6_MROUTE = 10, -RTNLGRP_IPV6_ROUTE = 11, -RTNLGRP_IPV6_IFINFO = 12, -RTNLGRP_DECnet_IFADDR = 13, -RTNLGRP_NOP2 = 14, -RTNLGRP_DECnet_ROUTE = 15, -RTNLGRP_DECnet_RULE = 16, -RTNLGRP_NOP4 = 17, -RTNLGRP_IPV6_PREFIX = 18, -RTNLGRP_IPV6_RULE = 19, -RTNLGRP_ND_USEROPT = 20, -RTNLGRP_PHONET_IFADDR = 21, -RTNLGRP_PHONET_ROUTE = 22, -RTNLGRP_DCB = 23, -RTNLGRP_IPV4_NETCONF = 24, -RTNLGRP_IPV6_NETCONF = 25, -RTNLGRP_MDB = 26, -RTNLGRP_MPLS_ROUTE = 27, -RTNLGRP_NSID = 28, -RTNLGRP_MPLS_NETCONF = 29, -RTNLGRP_IPV4_MROUTE_R = 30, -RTNLGRP_IPV6_MROUTE_R = 31, -RTNLGRP_NEXTHOP = 32, -RTNLGRP_BRVLAN = 33, -RTNLGRP_MCTP_IFADDR = 34, -RTNLGRP_TUNNEL = 35, -RTNLGRP_STATS = 36, -__RTNLGRP_MAX = 37, -} -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum _bindgen_ty_66 { -TCA_ROOT_UNSPEC = 0, -TCA_ROOT_TAB = 1, -TCA_ROOT_FLAGS = 2, -TCA_ROOT_COUNT = 3, -TCA_ROOT_TIME_DELTA = 4, -TCA_ROOT_EXT_WARN_MSG = 5, -__TCA_ROOT_MAX = 6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __kernel_sockaddr_storage__bindgen_ty_1 { -pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, -pub __align: *mut crate::ctypes::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union rta_session__bindgen_ty_1 { -pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, -pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, -pub spi: __u32, -} -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} -impl nlmsgerr_attrs { -pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; -} -impl netlink_policy_type_attr { -pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; -} -impl macsec_validation_type { -pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; -} -impl macsec_offload { -pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; -} -impl ifla_vxlan_df { -pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; -} -impl ifla_geneve_df { -pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; -} diff --git a/third_party/rust/linux-raw-sys/src/x86_64/prctl.rs b/third_party/rust/linux-raw-sys/src/x86_64/prctl.rs deleted file mode 100644 index d52df61ad75f..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/prctl.rs +++ /dev/null @@ -1,221 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct prctl_mm_map { -pub start_code: __u64, -pub end_code: __u64, -pub start_data: __u64, -pub end_data: __u64, -pub start_brk: __u64, -pub brk: __u64, -pub start_stack: __u64, -pub arg_start: __u64, -pub arg_end: __u64, -pub env_start: __u64, -pub env_end: __u64, -pub auxv: *mut __u64, -pub auxv_size: __u32, -pub exe_fd: __u32, -} -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_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 SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; -pub const SYSCALL_DISPATCH_FILTER_BLOCK: 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_GET_MDWE: u32 = 66; -pub const PR_SET_VMA: u32 = 1398164801; -pub const PR_SET_VMA_ANON_NAME: u32 = 0; diff --git a/third_party/rust/linux-raw-sys/src/x86_64/system.rs b/third_party/rust/linux-raw-sys/src/x86_64/system.rs deleted file mode 100644 index c4a9e11f1299..000000000000 --- a/third_party/rust/linux-raw-sys/src/x86_64/system.rs +++ /dev/null @@ -1,129 +0,0 @@ -/* automatically generated by rust-bindgen 0.66.1 */ - -pub type __s8 = crate::ctypes::c_schar; -pub type __u8 = crate::ctypes::c_uchar; -pub type __s16 = crate::ctypes::c_short; -pub type __u16 = crate::ctypes::c_ushort; -pub type __s32 = crate::ctypes::c_int; -pub type __u32 = crate::ctypes::c_uint; -pub type __s64 = crate::ctypes::c_longlong; -pub type __u64 = crate::ctypes::c_ulonglong; -pub type __kernel_key_t = crate::ctypes::c_int; -pub type __kernel_mqd_t = crate::ctypes::c_int; -pub type __kernel_old_uid_t = crate::ctypes::c_ushort; -pub type __kernel_old_gid_t = crate::ctypes::c_ushort; -pub type __kernel_old_dev_t = crate::ctypes::c_ulong; -pub type __kernel_long_t = crate::ctypes::c_long; -pub type __kernel_ulong_t = crate::ctypes::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = crate::ctypes::c_uint; -pub type __kernel_pid_t = crate::ctypes::c_int; -pub type __kernel_ipc_pid_t = crate::ctypes::c_int; -pub type __kernel_uid_t = crate::ctypes::c_uint; -pub type __kernel_gid_t = crate::ctypes::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = crate::ctypes::c_int; -pub type __kernel_uid32_t = crate::ctypes::c_uint; -pub type __kernel_gid32_t = crate::ctypes::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = crate::ctypes::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = crate::ctypes::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = crate::ctypes::c_int; -pub type __kernel_clockid_t = crate::ctypes::c_int; -pub type __kernel_caddr_t = *mut crate::ctypes::c_char; -pub type __kernel_uid16_t = crate::ctypes::c_ushort; -pub type __kernel_gid16_t = crate::ctypes::c_ushort; -pub type __le16 = __u16; -pub type __be16 = __u16; -pub type __le32 = __u32; -pub type __be32 = __u32; -pub type __le64 = __u64; -pub type __be64 = __u64; -pub type __sum16 = __u16; -pub type __wsum = __u32; -pub type __poll_t = crate::ctypes::c_uint; -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); -#[repr(C)] -#[derive(Debug)] -pub struct sysinfo { -pub uptime: __kernel_long_t, -pub loads: [__kernel_ulong_t; 3usize], -pub totalram: __kernel_ulong_t, -pub freeram: __kernel_ulong_t, -pub sharedram: __kernel_ulong_t, -pub bufferram: __kernel_ulong_t, -pub totalswap: __kernel_ulong_t, -pub freeswap: __kernel_ulong_t, -pub procs: __u16, -pub pad: __u16, -pub totalhigh: __kernel_ulong_t, -pub freehigh: __kernel_ulong_t, -pub mem_unit: __u32, -pub _f: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct oldold_utsname { -pub sysname: [crate::ctypes::c_char; 9usize], -pub nodename: [crate::ctypes::c_char; 9usize], -pub release: [crate::ctypes::c_char; 9usize], -pub version: [crate::ctypes::c_char; 9usize], -pub machine: [crate::ctypes::c_char; 9usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct old_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct new_utsname { -pub sysname: [crate::ctypes::c_char; 65usize], -pub nodename: [crate::ctypes::c_char; 65usize], -pub release: [crate::ctypes::c_char; 65usize], -pub version: [crate::ctypes::c_char; 65usize], -pub machine: [crate::ctypes::c_char; 65usize], -pub domainname: [crate::ctypes::c_char; 65usize], -} -pub const SI_LOAD_SHIFT: u32 = 16; -pub const __OLD_UTS_LEN: u32 = 8; -pub const __NEW_UTS_LEN: u32 = 64; -impl __IncompleteArrayField { -#[inline] -pub const fn new() -> Self { -__IncompleteArrayField(::core::marker::PhantomData, []) -} -#[inline] -pub fn as_ptr(&self) -> *const T { -self as *const _ as *const T -} -#[inline] -pub fn as_mut_ptr(&mut self) -> *mut T { -self as *mut _ as *mut T -} -#[inline] -pub unsafe fn as_slice(&self, len: usize) -> &[T] { -::core::slice::from_raw_parts(self.as_ptr(), len) -} -#[inline] -pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { -::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) -} -} -impl ::core::fmt::Debug for __IncompleteArrayField { -fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { -fmt.write_str("__IncompleteArrayField") -} -} diff --git a/third_party/rust/rustix/.cargo-checksum.json b/third_party/rust/rustix/.cargo-checksum.json deleted file mode 100644 index 63ca9835e2f1..000000000000 --- a/third_party/rust/rustix/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"CODE_OF_CONDUCT.md":"f210602311e3f74b32f46237fd55f4ce36d798e85e3db1432ec667f63a7ffc44","CONTRIBUTING.md":"fb570c76cf924cd75b77bed52b0dbe1e87ce224dc3428c48d98301710dcc331e","COPYRIGHT":"377c2e7c53250cc5905c0b0532d35973392af16ffb9596a41d99d202cf3617c9","Cargo.toml":"c5bbf1064d90deec5a672066214d89750dbaac359a3c970b009f2351fc38f0ee","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-Apache-2.0_WITH_LLVM-exception":"268872b9816f90fd8e85db5a28d33f8150ebb8dd016653fb39ef1f94f2686bc5","LICENSE-MIT":"23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3","ORG_CODE_OF_CONDUCT.md":"a62b69bf86e605ee1bcbb2f0a12ba79e4cebb6983a7b6491949750aecc4f2178","README.md":"9291609593ea2a85de82829826ded617f3b37178fb13840fa029d8d8dbddfb35","SECURITY.md":"4d75afb09dd28eb5982e3a1f768ee398d90204669ceef3240a16b31dcf04148a","benches/mod.rs":"7abf49bced798168a4f57916654305a6c5d048d12e0ad43d30ab14f24b5e527a","build.rs":"15fa8ef2de968e5efba61f6017dfb2bbe2c14e5a647014c0b57d0de860af3e5c","src/backend/libc/c.rs":"81ea5e00f0cfb172ee2c8e494720e01fa19014ff75bc185153d9cd0270fcad29","src/backend/libc/conv.rs":"c4b4a6fdcf2f9295ab0498229a780942b031a2847ddf2466f90884bfb30255f8","src/backend/libc/event/epoll.rs":"b74f268a6c189f6617abb7683a0c8b40834fd80de9b60efca4b6823887f396b7","src/backend/libc/event/mod.rs":"4514349e9b409aaa0cdc5a6485507eb03f531a065a6fe142c6dc07b538541532","src/backend/libc/event/poll_fd.rs":"06e2ce2fb30a45b90279ae753a67085e9f818a1b16d99cc92c525e2c46d61d51","src/backend/libc/event/syscalls.rs":"295a930521b345192caaf916b39189299f81f5f7c9f1aaed235baf3bf6f2f5fa","src/backend/libc/event/types.rs":"09e813690f44752708485e5a5ee59a43834a4a3e9577f2739b310c3ea8b4b64e","src/backend/libc/event/windows_syscalls.rs":"ebfac665c6676c4b803134ab8806be8aa2e96bdbc7799a19c544cd9069b35787","src/backend/libc/fs/dir.rs":"4ff9b5f3b6fad06cfb641cf74511c4b80186b426e8c2d67a1b6cba08466b5d4f","src/backend/libc/fs/inotify.rs":"5f56d6a98fbba82369d392680f2e4750f2985b44979aa6356b906ad21e828619","src/backend/libc/fs/makedev.rs":"89c679a0ef18dd41b3c6223bce0f329ad35bf6cadbf16e47b33fad3f312ba4a6","src/backend/libc/fs/mod.rs":"576b6fcce723fcd5fc76637abd3b3565b00ca0bac309b63aecd6b8ee005fa81d","src/backend/libc/fs/syscalls.rs":"78dd3311043e4099f7294230b12610f9e24eaa175c9a1e419a76721c4f15720d","src/backend/libc/fs/types.rs":"4cb23ac26b288a675b79abef2303b2d4488e7c018e4778d33c5c6b8276c0d44e","src/backend/libc/io/errno.rs":"eb907b2bda80f95c7e7a2abc100a27b17ec9230d170e0aad54fa624160a54da1","src/backend/libc/io/mod.rs":"746647bd864e4ec7717925b6d176cebdb392b7d015070244cc48d92780351dd6","src/backend/libc/io/syscalls.rs":"380d9be17ec7e46fdc24682aeae6410dcd8b10fd129090b479bb8ee405d9b5c6","src/backend/libc/io/types.rs":"8df53d41d72a39f334ed124707cb501e83b3624b769c80b78c62bd45179bc04a","src/backend/libc/io/windows_syscalls.rs":"fab3fa099aa89cea56a6edc651dd37750e581534f4f45b04a7e425f130b08468","src/backend/libc/io_uring/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/libc/io_uring/syscalls.rs":"5af8146d5971c833e6fd657f652c618b31f854e1b0811864fba9b658cb633e19","src/backend/libc/mm/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/libc/mm/syscalls.rs":"858e5bb3bc850b6a2d5ce69b3c8e40ab7cf75d392fe3a022119e5edd0c538db5","src/backend/libc/mm/types.rs":"118d7febf1dd559fccbb1275fc450216f2b7c8901fc393a4684a2a86b554af26","src/backend/libc/mod.rs":"e572b4461d4fe9a399b5db9c8395d6559ffe69586c76506d53d5d7fb37bb87cf","src/backend/libc/mount/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/libc/mount/syscalls.rs":"1bc87501a078616d0190d2e85de55f3f968b8cb79d49bd9eb839a350eed26089","src/backend/libc/mount/types.rs":"8e2b66822cd1148e5fe4023f5608f36afb0d47bad454db9560fbca4b0dbd2b6f","src/backend/libc/net/addr.rs":"b6644e0169c6681084704e9ca231863364d81e3d3cb5d3689e0df8acf7b4ec16","src/backend/libc/net/ext.rs":"0ec74196ace553c9bff355e2e35ad3b70cab46e32f8f7194715e4528fe1f54bc","src/backend/libc/net/mod.rs":"605b818c6f4c536c96e052d9b843eeca79dccd1d3cf1c8b87e60c8539b8122b4","src/backend/libc/net/msghdr.rs":"f82825d40d8872e2e804cde32bbcc68bef43a5f48ad857fb1030550c4eb44838","src/backend/libc/net/read_sockaddr.rs":"4f9998daed06db74ddd25148c56b0a2b0636e0cfe457e19279f7f044b8b8bbdc","src/backend/libc/net/send_recv.rs":"1487ddff61de085915d9ac2e721a15a39307110b3008acffd2653810f00474a3","src/backend/libc/net/syscalls.rs":"c7b8741608e1804d2dd132418fd7bceee1b5f2c04317885ca9be607d01bb5536","src/backend/libc/net/write_sockaddr.rs":"14e941b5a11e4d7a17182860c47b1ee972b56ff7f0aadbcc6ab2c8740b13cea9","src/backend/libc/param/auxv.rs":"fdc85b7c33bcd05a16471e42eb4228c48c98c642443635ba5fc3e9a45438d6d3","src/backend/libc/param/mod.rs":"5234b8f1bcb886cca6ea003d411d75eaeebe58deedd80e3441354bf46ed85d4d","src/backend/libc/pid/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/libc/pid/syscalls.rs":"49ea679b96c0741d048e82964038f9a931bc3cf3a0b59c7db3df89629b9c49e6","src/backend/libc/pipe/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/libc/pipe/syscalls.rs":"8affde100f6a9dfc762b79d1e48be5c1039be414f8ef7d5a6acaba882a68d259","src/backend/libc/pipe/types.rs":"1e797beb383bb2e4038f1de21bea204caec4a4922b25a6ef84dbbe6e953e78b0","src/backend/libc/prctl/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/libc/prctl/syscalls.rs":"8a2684f444a7555098dce2b92270d81cefdae902716c6e5d59bd7b0657e8a29d","src/backend/libc/process/cpu_set.rs":"b3d36b01b53b0b6c61a20ed8a69d48eccdd90cc17f82f2926ef1e844f002d0b7","src/backend/libc/process/mod.rs":"d7dc401255bad2e55ffff365339cdc3aad306861d269ad727a817d3cd7763166","src/backend/libc/process/syscalls.rs":"b0b66f4ab88bf92fa906a2691de932fcc5ca6d29052e8cc782ba293318845c24","src/backend/libc/process/types.rs":"5b2d6ba1ba1e5f0db9dc07335df140f957fbe8ce9db5ddb74d2341fc986fe962","src/backend/libc/process/wait.rs":"0cc556aed976b4bbb3965f74fd76b8216c755fce25043b7b21ce54afa07c9773","src/backend/libc/pty/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/libc/pty/syscalls.rs":"ff7068696e23103bbb75fc7e32db09941b864f132e9fbab407e7a5216d0059c4","src/backend/libc/rand/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/libc/rand/syscalls.rs":"78c7201e6bcb75e9cab9486d1878861319f865de2b2c46437be68690bd17bf13","src/backend/libc/rand/types.rs":"7763e6b40e4b9df825fdd2aa5ba1770da999137d04776561167116c58f8fa618","src/backend/libc/system/mod.rs":"38563ea68829ca5a4b1b0695ac8a5c05718e85bdc88a36dc805efdfce45d3909","src/backend/libc/system/syscalls.rs":"846dfb59afe40bbfc78e57afa76f0616d62d25da2daadcd872aea6fa32aafc3b","src/backend/libc/system/types.rs":"6871e16aee14fe2ae03cea798c3e509ffe44778a9c0e5608fd73e2e015876d7e","src/backend/libc/termios/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/libc/termios/syscalls.rs":"94ac755d74b93fd2904a25862e74585848713770d15038c6b29ed743f565b0ab","src/backend/libc/thread/futex.rs":"b666828653b12634bbd7fd709acf69641b648ec40962a1d4f904c5db14d2eff5","src/backend/libc/thread/mod.rs":"fa710053974d7f16a6c49242ee6c10a3b9e1143452b9daeaed8837302a679fff","src/backend/libc/thread/syscalls.rs":"120cb13fe7ffdef7a52ca1d141d31bf189176e9f5862f87bb171d54370a682a9","src/backend/libc/time/mod.rs":"38563ea68829ca5a4b1b0695ac8a5c05718e85bdc88a36dc805efdfce45d3909","src/backend/libc/time/syscalls.rs":"f82e0725c5af8a52e61ee83aad2c77694f2f7a72ac1e6eb284109a70ac6edc38","src/backend/libc/time/types.rs":"d4e55d2b9fb8de772c8bf5bba157472c49a12c25502e62a9c599a2e6d3196a5b","src/backend/libc/ugid/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/libc/ugid/syscalls.rs":"8edf91b8790add23902c9f5418da6b0723a371677f29f490e0c8af852f0f1a0c","src/backend/libc/winsock_c.rs":"3bf3884fd250eca806ffdf96da68e29c133a697810b78b333ea449e523e58562","src/backend/linux_raw/arch/aarch64.rs":"2a255c9135bc8a321c180f52b88eb2b158bc9170cd222149caeae63c24587d44","src/backend/linux_raw/arch/arm.rs":"165bccb5883d0136e55d42091183765f83d86e9d37a7cb2cec9ae8af32774db6","src/backend/linux_raw/arch/mips.rs":"24af364aa93fd4b9917639d473336490a143f0d1723b09f388e72d534160ee51","src/backend/linux_raw/arch/mips32r6.rs":"e436a2ade34f2f7c58b8924462b07a2499dfc951e1e1318d51759444fb8b658e","src/backend/linux_raw/arch/mips64.rs":"897da9ddc877963ad59464d7f81dc59df8a7e91251e6adea14cfd946e2740a1c","src/backend/linux_raw/arch/mips64r6.rs":"3c08aea13c1139fb0dfbe74ca3d0147f007c3aa2eda641afb82c46f6aa4f6cd1","src/backend/linux_raw/arch/mod.rs":"37eaeea601d39be00d170856a31a8ec6a27b0d3ac22ab3ee642ab0e45dee237d","src/backend/linux_raw/arch/powerpc64.rs":"dfb001f8636a5e46d728900b0804fe6c374e5e18a6f0e76d7d62e0c07da74477","src/backend/linux_raw/arch/riscv64.rs":"41d33242d941030f46077dc2b1bc4c7913fe7630d693a5a7eef966bcf38f9d8b","src/backend/linux_raw/arch/thumb.rs":"2fd979ab421248c0a4c592bc0cefee63edc26528f469b71b63eaed35356e42e8","src/backend/linux_raw/arch/x86.rs":"ed355e7c8491f06c02767d6226a8eea479ebe78ab25645a961148bfadca6e2c3","src/backend/linux_raw/arch/x86_64.rs":"e929036a1f3cf93ba538f4523b241605cc7b5e61f84ffe6d9d5cdbcb6f73e543","src/backend/linux_raw/c.rs":"c196998806a7353905c5aec8d2f26ae5e444ae7ae71b744aa864a2023f2c064f","src/backend/linux_raw/conv.rs":"bd1a3254b0d540536443fe73c2be2d2b4f955a282026bd028de3dfc387e7821e","src/backend/linux_raw/event/epoll.rs":"9a53e7e0fdb3c1ece8b1fae75e7a11578fd3495122a7e00dc6debd67f4dfa2f4","src/backend/linux_raw/event/mod.rs":"8ae516c22aa6c1a8a7f568a3c95329d6a4b4fe26ba19aa5cf075a92ffdee9d75","src/backend/linux_raw/event/poll_fd.rs":"78d040f7ce0574fc18cebf6b7766c210a3254abdbafe175f51c6b460fa19c514","src/backend/linux_raw/event/syscalls.rs":"7e55f4b2a6d9644ef9fe06d7975b9701f2738abf49d5028ad574a433a0671415","src/backend/linux_raw/event/types.rs":"2ffdcb728587dbc25d302527f4a52296b96013d5199c946291b059ba4f7d466f","src/backend/linux_raw/fs/dir.rs":"d871468c08ea22868f308ce53feb1dbab8740d577441a4f3aadd358baa843d27","src/backend/linux_raw/fs/inotify.rs":"d1c79249e2faddff46ac1c2c460f6e00032d7629c17e294acb00d5914fa09ffc","src/backend/linux_raw/fs/makedev.rs":"c6b4505c4bcbbc2460e80f3097eb15e2c8ef38d6c6e7abd78e39c53c372139e2","src/backend/linux_raw/fs/mod.rs":"8689e46f9c4c3e1190ae5fe39176c573cccac10b3739472128ca237f41e2686a","src/backend/linux_raw/fs/syscalls.rs":"7fbc27cec34dd6087713d83af88ab479f6686ca91f97a05518a66630a934061d","src/backend/linux_raw/fs/types.rs":"0012ca496df786dc0e53f31d29e7c5505702aa89effe8d614a6299f707fbdd1f","src/backend/linux_raw/io/errno.rs":"b3313f1798de97ee82e7369c79423dba180be6a184e980a218f63699becc475b","src/backend/linux_raw/io/mod.rs":"7ae2324427892cca6f5ab53858d847b165f790a72ec25f3d99fb15f0506c9f27","src/backend/linux_raw/io/syscalls.rs":"026f99b397ae521ac4b2ba41acec6547018073a9da5fa355aa8f9ac61298c172","src/backend/linux_raw/io/types.rs":"0cfffdc2fc9c33faa4055f9686db5922676f17d5c069362bae3745f39da3594a","src/backend/linux_raw/io_uring/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/linux_raw/io_uring/syscalls.rs":"b87fa95c16b2d3ca8fd5d72368bda37b8b8ddbb19df3a884efc6eeec393c86d1","src/backend/linux_raw/mm/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/linux_raw/mm/syscalls.rs":"369abe984aa972d8083fee20d764a8d57df242c66f897066367416f2fcc832a3","src/backend/linux_raw/mm/types.rs":"9aca15c809df0322bd7a3e7b47b63220bb2727a34b38ce599d69e684d867da68","src/backend/linux_raw/mod.rs":"a0a14bac204a57ea0bb2937f74f22f5bd5992288287727cea7c7c7c4d930f2ca","src/backend/linux_raw/mount/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/linux_raw/mount/syscalls.rs":"3947261b5d46b9737f02dc5352c3a3a35c63c461fd75bcd8ae6619dfc0bfb54d","src/backend/linux_raw/mount/types.rs":"8d39c4d6e555c88de5da3115a301562fafdcb3942aa69a0e01d42de8edb1c78f","src/backend/linux_raw/net/addr.rs":"fbb6c071a8ebc2c557c7013d36d4b540c1ff6ed63103d0a8abcacd8977fbf5c8","src/backend/linux_raw/net/mod.rs":"bc9c9c4a8c06b1fb8c57555261176dfb1f3e858a1d89cd2f88e1f31fc126c001","src/backend/linux_raw/net/msghdr.rs":"3198339ccd00224aefdba74e9144818fe387222066a387a9dfd95fd8c48cf9d9","src/backend/linux_raw/net/read_sockaddr.rs":"24075ac4c05fab5fe44aae4445cdd12ec7e474f047150baa9b768741d6b9693d","src/backend/linux_raw/net/send_recv.rs":"0ae37eac8b545cc1cdc149c601ed831d5c9acc3d229f9436029f3ba443a880f8","src/backend/linux_raw/net/syscalls.rs":"51aec29c95646fec2b3da00a461f14f823759d5af67ce5bb9dab76b1dc43540a","src/backend/linux_raw/net/write_sockaddr.rs":"0eeeb7ec8dadf95503a2f89fdc933b8f9c7e45e03fdb343ce490b6cc8eec0f96","src/backend/linux_raw/param/auxv.rs":"ed9e040cc3fbdd39862ab7388d33d6598e1ac72ba3350d1356d4c09e3e641c7e","src/backend/linux_raw/param/init.rs":"8616665e4db7d8b44fe8f8552c4ef16164bbdc0354e285f72372cabb90fe47a3","src/backend/linux_raw/param/libc_auxv.rs":"6f6aa41d463554a6fba09aa7b32e328c3ce70b74739fca0c8437610f1d923362","src/backend/linux_raw/param/mod.rs":"2e6a1a1c00351b9c88bd615aa923f71d76208df5626dd9bea03067f28f81dc31","src/backend/linux_raw/pid/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/linux_raw/pid/syscalls.rs":"ce3ca4c72096479340364d16f09918e192ffd3a0436a26eb61aad7e7dac3cdcd","src/backend/linux_raw/pipe/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/linux_raw/pipe/syscalls.rs":"4fb5fa8935cdfca0edb0b8dc9f4b7ba66c5c3903eeb7b20ad1cc08bc80944cd9","src/backend/linux_raw/pipe/types.rs":"9d4bd3da7cd078d42574ad7d6b7554e301a1a7e97b292a77993a6d263726ef1e","src/backend/linux_raw/prctl/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/linux_raw/prctl/syscalls.rs":"01aa9cd77341dcd1efab9f3ac28447d0fbc41ed44d65e52301b347fdd1627e50","src/backend/linux_raw/process/cpu_set.rs":"dfdcbdf35aff6a3e08e7d38193bf18c12ca8aa64eb0dc417667be82dcc0f7c55","src/backend/linux_raw/process/mod.rs":"fb393c70a9c63ef9a6bf1fb5a2dc94f07d6b0b6987cc5231c15c607015dafd68","src/backend/linux_raw/process/syscalls.rs":"20648f5debfbe23d163068ea2cf8f276ee038b32ace87480cc473a01ebd923f0","src/backend/linux_raw/process/types.rs":"6811ba822bc12a1a6336649151b4adb1f5d3365684a31c07f01953ea9547743d","src/backend/linux_raw/process/wait.rs":"921aee4b0048746087f52615a98edc2aa0fb4b53d6df44be4533098df55d1b05","src/backend/linux_raw/pty/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/linux_raw/pty/syscalls.rs":"8f24e46518beba6de8943fed4afe247bea748f31c705dba78549a06a3dd20bbd","src/backend/linux_raw/rand/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/linux_raw/rand/syscalls.rs":"fb401466368de62ec4ff76bc230f9246623b003fe7452912e1365f443d3eeeb3","src/backend/linux_raw/rand/types.rs":"b7217c98f2da4ecf89225f36eb52c396ba2a73debdeca739ba864a9030b6a23d","src/backend/linux_raw/reg.rs":"39b6234971122d247054bda8c2dc3b44493be30482635baa9e2fcbe048e78cbd","src/backend/linux_raw/runtime/mod.rs":"b2cae8cce3822c3c92942f06ea0b68464040dcac33c6f0f7ee392c6269993347","src/backend/linux_raw/runtime/syscalls.rs":"eff6508bd5f0c3680a39e828996498fc33c10a3fdf5ac21a755738addf15c0c3","src/backend/linux_raw/runtime/tls.rs":"8d3c5c1e84fce4e3808997176fd40110afd9ce7589f5291ef682caa81549210f","src/backend/linux_raw/system/mod.rs":"8aa966faf3853d1a93d0ed91f7e5f4a53539b0287b25a5bfe489fa1d07f7cfd7","src/backend/linux_raw/system/syscalls.rs":"a9bec6662f122b1ec310d417bd9ddc16df13b50de6526d2170aa4d72292c2b14","src/backend/linux_raw/system/types.rs":"1ceab8d738a71043473b26e97fa3fd79d588a86d4774cbc9b9e1d4f1447a016e","src/backend/linux_raw/termios/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/linux_raw/termios/syscalls.rs":"28561a23105fd662d72d341990516ece063ad6052a04f5d7aa89036774b00c84","src/backend/linux_raw/thread/futex.rs":"0aa0f9f5be6a79de81e82c9f11f1bf8831f682a4b2f6cb29669e1591636f084e","src/backend/linux_raw/thread/mod.rs":"6ad4a4b90b9234e79900b27ebbe8837e3a7a36aec532912e3e253edce5225067","src/backend/linux_raw/thread/syscalls.rs":"b2a6e5e41c714401c8887d9b7c0b317491ee6f44389ff19ff9105c5c5e943d9b","src/backend/linux_raw/time/mod.rs":"672724f55b7b7be6a7452bb1cc2d28b5f0aaa840a2856fe363acce624e1beefc","src/backend/linux_raw/time/syscalls.rs":"a7870ef9daaf3fb2ac50f853df6dbcd935a3b2d70e720b80184208f602a918e6","src/backend/linux_raw/time/types.rs":"56cb936dc36af759e06d0b7bcfa7db02818dff6084c1d1d9a538a6d5945032d5","src/backend/linux_raw/ugid/mod.rs":"2c6478857a0751625edabd61acb841819bfba1093b1faeded15693c805d84952","src/backend/linux_raw/ugid/syscalls.rs":"844b2bed42b9a3c06845dbae1d020bbab5757d23ea3ad7a440e3cd87ff993f72","src/backend/linux_raw/vdso.rs":"b9afd6d842903e268a4b5e516c461e08de61ce49699090f0bf10199285e6d5f0","src/backend/linux_raw/vdso_wrappers.rs":"60bbde4bed863e067e7c6804b03f2620d06d7459fb3cd1560d4ab1a0cd99df69","src/bitcast.rs":"fe6bdc7fc31fa3b360c44a841c9a0f143629172729c6aaeae76841c74c122ff3","src/check_types.rs":"bc31f9b293bfbf272284ed4d0da24e941206a1ac3f18d3abb0b1a61f1ede1dae","src/clockid.rs":"26ee517de4d820baa2951fa9cd0134841d745515820d6624a31d1b10780bd605","src/cstr.rs":"9e3fcd57d6af382a9a4f24b97a29eeb05a3ccd5c8fefd666884f6e4438b3c4a3","src/event/eventfd.rs":"81cbd08f7bdf40a6ce1ca692b63da1dc8ba925282990668d9d68f1203e839fa1","src/event/kqueue.rs":"f13f40b97c4413902115408fc2f340e7c82bba42d2468015b007e8ac6ef23132","src/event/mod.rs":"c581952b280963c685473ea36cbf156d5c0c0b74eab80a6ce4f1de42bda4f9be","src/event/poll.rs":"0ee583dbd457a573a82a06c04a2a24bd2c76e751d27a435507d55338e2871327","src/event/port.rs":"4e51ff150e5d17cbd44aa64a38b99c15e26eaaf2e350768b5dcacdfde4fa5212","src/ffi.rs":"c2b8b38c02d72749aceb715c496726caba1f1fa989ad3856d0103a2fafed89ed","src/fs/abs.rs":"34b6fcc9dfcc5732b8d5f814bdb117b557f35ac16b0f83933ef1016ec3043730","src/fs/at.rs":"470d9492f0d8025b64288e223fa81276d5d870d14be3de4fd11d83d24bce5cc5","src/fs/constants.rs":"24076a01f8bfc126b0905e9bc0521d2c3a3abc6c3b8c86ddb1e545070d097127","src/fs/copy_file_range.rs":"d3b644374390d482b2ff749a2459458872b57d0dcf9670368739b7833509a7c2","src/fs/cwd.rs":"9f429a79ace6e17455634da09216ee0ad3d067a4541518b3193ae6a8d9ff1e26","src/fs/dir.rs":"347a52f4ca9ac6321c52e802e97ec90d1b4c62ec955c8996fc17f8f5aed69966","src/fs/fadvise.rs":"beef66ebe1310fb92628240b2cde68f744c78e50f6ff61bb1404bd4868d9cae8","src/fs/fcntl.rs":"2085102d05d0ba963e100ab3e3f19dac4ff27d142fbf798626d20a2a596ba96d","src/fs/fcntl_apple.rs":"e2f23f038083621bcdecc98d02ce1023508afaecdb2ed0fba5c8b70f955301e5","src/fs/fcopyfile.rs":"ec95929cbbe02cf49233a785e5238931bb107b7903cc5bc95e4231de960995f2","src/fs/fd.rs":"6b64b27b4727e00ae1a44cf04f9627326679ecc2d7ea274195e1204aa60c2d50","src/fs/file_type.rs":"fefd865f91011f66126213b0994773d99e373b468c31e866002228c98c64ad85","src/fs/getpath.rs":"28f6970fc1bbc37bb35c84724b59eac436ea7407a4522e18c2bdacb1fdd2edd9","src/fs/id.rs":"1b5c8a8baf9a9bb1f895f97189cea4e5982a0d35b192afeec6340a6c6222e0cb","src/fs/ioctl.rs":"e798eb41bbc201c375bc295ad2928c2467b45b4fbbff3c82236dccbc0d6391a5","src/fs/makedev.rs":"85520b484cb7c15ab71ea1c368578ea3b7e484d82f8510db92b6ce9f7ca341ae","src/fs/memfd_create.rs":"15a8f28e040cffd8c24c7903483440f88853b2e538ad48d80f3c00b4b2befdea","src/fs/mod.rs":"ecd20bf01d651b1866b198c4fc0dc8e7d681eb581e28708c8a0abd062de137ce","src/fs/mount.rs":"c96cacbe65aff4c43fc2f5be03baf2b523bda151ade1828b691de1d040d3b2e6","src/fs/openat2.rs":"4a95c15dab533a41201b5fa25c8a212956b7571d58cad696bdaf45af8aef96db","src/fs/raw_dir.rs":"c24d1f963a753397a52fb2f8c49650e067dfc3a297988c0737e458f33a454b3a","src/fs/seek_from.rs":"a9efa0feb9ac789cf47667e91efee2e3f2dcde16cb3b7a928c99da640fa0e0d6","src/fs/sendfile.rs":"e3b2058741cf4b1698f34d84bb37130cf2b72806d522a16fe541e832cde136cb","src/fs/statx.rs":"239d447477f8ac368c8ddf9975c71509c47881f647f59cd941ac07954d8a77f9","src/fs/sync.rs":"a3b23543834281f347b0f873bd38154d31d404871188ac08f2b20b9196234cfd","src/fs/xattr.rs":"b976eece822f69e768d91e61d86ee990ea18097b20f7ebeedaaf718c61b48962","src/io/close.rs":"0aa3cd05a8fed8e5244f97b8b6c2e7f65ed93a4e5435c6329852bb3da7514440","src/io/dup.rs":"a8a59c5d345dc54c57ded890720c33eb78c4d53917c71e8bb6317f7ed122cb87","src/io/errno.rs":"58a4d20ba0924e4d514e3c876fbe08982f1623187642ae14780815e65989c8c8","src/io/fcntl.rs":"c0f7bd7fce1119b0c1d0085b7ab77d5df02470ae3e06035428a2452dacbec296","src/io/ioctl.rs":"a47a5ec14607142f2c2ffcb93d016b8e86c8b15ba94b56b35382b545db62ea34","src/io/is_read_write.rs":"1bfb9ee5d58e0b29b44af12fe2668c7bccc841358698dcde47f1519ff9bb73b4","src/io/mod.rs":"75f1d0646be1d4c7c08b5887d8119b0103be8c25c43ccd4e0e97015508c0bb8f","src/io/read_write.rs":"54ba528b11601af1338bb0c71a41b256a0033076d30b3946c3fd0bdfa61dd021","src/io_uring.rs":"981cbeb7e9aea98745e498cdd8725b9b5d33a07ef3bbfac89b0883a9c417a252","src/ioctl/bsd.rs":"e33772530b1b2d1e7d61ce53d9267e68d88f7f5df13301f90412d89a46c6faaa","src/ioctl/linux.rs":"2c62a94762c7f4accf8c29aa31498703faeaa0b8fc34d2ab13c24f04a8d76558","src/ioctl/mod.rs":"a89774b1b4b13cca3b98bdee1eebcd86398f4199c1f977946065e9ee15b589a6","src/ioctl/patterns.rs":"9cc001f289bf517b26066ed6c1da0540513beaeaf6164f033a3edaa5398626fb","src/lib.rs":"357cb48e41d26831afb924623222495320329e22e3dd8daef24b98d540483a5e","src/maybe_polyfill/no_std/io/mod.rs":"77889bb5c5a4f2e50e38379cdaa5d0fef4b0cafc3da056735df01f6deae75747","src/maybe_polyfill/no_std/mod.rs":"ec94a4aab4bc475785e469d10fd6bc95667e1d47d958e9cff3a19049d88c8c80","src/maybe_polyfill/no_std/net/ip_addr.rs":"046327ee244f758f2bc31d3be305d8cd0dfd8342aac1add8259e999b4b46c4a7","src/maybe_polyfill/no_std/net/mod.rs":"b0ee611c454679226a15bf647e7779995f3fe9c8e0507930a0d0613eb414b7c2","src/maybe_polyfill/no_std/net/socket_addr.rs":"bfeb32d32c176cde76323abcffebfc47e9898fb8d7ce3668c602dc8451086a2d","src/maybe_polyfill/no_std/os/fd/mod.rs":"d9dfe2a2c25be727847bcdfe6f4898685af2521850298178ca8d46a8e2ceee88","src/maybe_polyfill/no_std/os/fd/owned.rs":"283c656a4d40b60d137c9412a04d22878e9849056311a7464061af8523c81c08","src/maybe_polyfill/no_std/os/fd/raw.rs":"9cedb353580b932879ddc4dee9936212fefb6d42530dc5cec519a0779d5dee33","src/maybe_polyfill/no_std/os/mod.rs":"27dab639a765827644005d5f2fcc7c825310606b889cc8dd83f54c9528350dc0","src/maybe_polyfill/no_std/os/windows/io/mod.rs":"5bbcc05c83fee5026dd744a994e0458469466d5be39081baa62df07753b92fd2","src/maybe_polyfill/no_std/os/windows/io/raw.rs":"4c32609a489dd938a49328b5637cb3bafb96437f2f9f269ab66d7d3cb90247f6","src/maybe_polyfill/no_std/os/windows/io/socket.rs":"c658f42f24eff44a661f2adfd24a11af80fe9897f3e2af4dc5d2c64808308d65","src/maybe_polyfill/no_std/os/windows/mod.rs":"fdb416f8f231a4e778b5f985b9ae712ece5e1a1402963ad1a5f6a8b9843795f4","src/maybe_polyfill/std/mod.rs":"7c16c86cc73e226e65ead598e4018238b22000a345040b706bf1e1b3eba115fc","src/mm/madvise.rs":"3c262b3713a73fafcedf1b04bb12c048bb11d47ca43c959e5dfa48c27651f4f0","src/mm/mmap.rs":"fc32e308a24c6f351d74306943d67a68093a0b6555b4bdf6cd755bf43795f406","src/mm/mod.rs":"b3a6cb838986d45825b912355cedead761211a494ca6f89b2367a2d2157e340e","src/mm/msync.rs":"9dcfe5f54235e9314a595edb8d548ac79d222bbcc58bb3263cf7e96d603b23ad","src/mm/userfaultfd.rs":"8073443bd181ff0b3ba4d0b1ae67370b4864035a0c8b4898cd709dc47c518ae7","src/mount/fsopen.rs":"160e384e9175fd98669cda1cf3590bb195c2ba7e1c724e9ea06e692595e58ba1","src/mount/mod.rs":"5f0c9df4727592695deb1cd63ae1de021b03dcd9d0d1b68e1f34d12a7136cb19","src/mount/mount_unmount.rs":"8ad11675e5d762d33fbefbed06a6a9f9e52a9b689bd06662446152614321ab77","src/mount/types.rs":"601ae3e10b7dc496fed7f3b40a80e81c6edd7bf13189d7be45c3212d4c684c39","src/net/mod.rs":"a6bc55f9e086caf46a7c00783498d73a328a66f2a991f1ec65d5f13931377b0f","src/net/send_recv/mod.rs":"f33e39c7b228cd8109823b0a0a1aa397cddad504d49e69b36f74c5b84e5070e5","src/net/send_recv/msg.rs":"19caae23209c8de1939687055c230d832a3e45c1dc92cc4fc785edcd7789e849","src/net/socket.rs":"bc825a94831557bf4c2cabd8ef5ae21ffe0986c24f9ada564eefa66270f69ae9","src/net/socket_addr_any.rs":"d07f9e9ef8873aa5bfd85f669952299286ef6f2cc5b9fea383856432e61b850f","src/net/socketpair.rs":"56f4885c31d2664cd16e18a9a88792a4912fedd953cec36dba67e8581fd57921","src/net/sockopt.rs":"84009083444772ad09f2167f7113d2aed4a8bfb1090b97504d19875dfa7c6a72","src/net/types.rs":"cd2e0fdc9b3336c6788a1f7ab498c3fe3ffa04f28c604e85a1251d5c92d6e211","src/net/wsa.rs":"6e546b42f50a851fc833c57cda76cfb347203ed4b0dea574a3d325bf5a2ebf80","src/param/auxv.rs":"988872f9bec2e12f35765ae8963cbb9535d4acaedd4c9a4d07ced6feb70e0aaa","src/param/init.rs":"a31c0e5cea61a1a999767fe74f87c0d59eeb6bce66578b842fe0e0c32be27a55","src/param/mod.rs":"25b10acd5b1da8faa6f5204e6b0379b38bfab667916e886cca64bea01a42dec2","src/path/arg.rs":"ca42e3283e52461b048923f527473847094d61c8f900a090cdef8a220d04e3d5","src/path/dec_int.rs":"fad9793b89eac526953b994cbed6b614f01c25108f9763e19fb98029feda93a4","src/path/mod.rs":"6b1b949c94bcc47e0f08a3f8e8db5b61ff497d0dfd3e0655f51c01d3e4b7dfd6","src/pid.rs":"26bddad73b279de3e496d2ae8d3304e652a0072da82558f688a702c8b05e5c95","src/pipe.rs":"84b90fc1c7f657738c40ffe10715054b69b6f5294015e49a9bb31afa6975e137","src/prctl.rs":"c9daa9397460a27ed6e31fc454fc40dff83720312a002b66f4c178fc005379ec","src/process/chdir.rs":"2c1ebf9bcf8141a98fca814fa88a659674b54f3b6325276fdd52e4f97746b0b0","src/process/chroot.rs":"2b5f6124eb19f26ad2705174f7ad50cdc0a5d15abd59ffcf55421228d82130b4","src/process/exit.rs":"48de66e5504a00cb375d8f415ce63b6225a3f5204268d40726a7d0fbba43f587","src/process/id.rs":"c9159334bfdd63febb6888784ee722eda2ffd728e59dabec153650eb2758ee11","src/process/ioctl.rs":"5b920ab0a7c9e7b5d50235ce4065304ee272f4edb3252bd7d625f1c0d9d78a10","src/process/kill.rs":"7b879e5cff8a064acd0e7488f4e21bd4e4a8506ce380688b72cc48d283ff9c89","src/process/membarrier.rs":"d6c8821ec73019040c926f4e1018f399c286e87074ab9c6692370c88772af044","src/process/mod.rs":"21e5e4f55e81c447d76970442473678f6345d12a61b3227caf09460cfb82e0e4","src/process/pidfd.rs":"4be2fba21430ba84244e11c636c91201bc1d1dffff3e63a4da84cc96f501786b","src/process/pidfd_getfd.rs":"cbc42a1548280ae76c3c66e851fd53cc2a3d4c089cb5798c17a2cdf654f0e229","src/process/prctl.rs":"818c7512af581e933d0136b5034966be790fef1bd007c0f0519ebab360ea8da7","src/process/priority.rs":"f135482e71ea8aa0daf92b9f238051178a4c904070fa8409622f94155df3c544","src/process/procctl.rs":"3a1c705ea6405dd1d653f6fec374167c3228ff85cbf8de38629ac32b1e9babbb","src/process/rlimit.rs":"10b79de3ced0e64059a94c879742d46a35a6176c776d8eed75031d5e6340283d","src/process/sched.rs":"7c3bfc5be624e7d7f5e043c3ee0b0566fcab3d684d61c272e7b4233410ab1c42","src/process/sched_yield.rs":"6565faa3928b66ddc74a65e893e15edfa4b9be4f7e5f5f68527501a7f6bc3350","src/process/umask.rs":"1a0f31a842303c978e3f05ec191e2b5e96104c09c6596473b42b1fac34898a50","src/process/wait.rs":"776cc0d881e40cd1a90b015ea0f376fdec33f8d78d65767285d6fb1c2492272d","src/procfs.rs":"be94a10adf18c57b555f89814471f598426d2c1be09aad3b4bafc95330ebf174","src/pty.rs":"b68e7420b993c2c454a1b965e9852fc546c6f1b6e63f9cfecf81be50935d502c","src/rand/getrandom.rs":"1c8166a02a74f5593bb4673ef907524df04cbc1568020a5ab2ff7f4aa1283f8b","src/rand/mod.rs":"cab59332aadd9b679f5b22cbb222d48ee028af5eb9fd4a4d43922da659b895d7","src/runtime.rs":"6977f873604553f8cf48c6255dc372a1fd462b779254a972c12c91382c0619cc","src/signal.rs":"c071b4f011deef19a679d7a832d5408a3cd68627161d6510008d6312266a2611","src/static_assertions.rs":"39986672f489949be1d6469f0c30fb7d2eaa21bdaa2702a8c150b2b150bf5535","src/stdio.rs":"a5de2d7d9c3c5a901f88b6acf4754687c958a2f3a93c7945c2b8fcb948d468af","src/system.rs":"714bcc2a26ea19ac3f019198d7a25e455aaeaec850c1d173706a082fed3ee031","src/termios/ioctl.rs":"a1ac967f7811a482f8bb53847c37c8359f518cd26da9df7b816ba678a0139623","src/termios/mod.rs":"b44b7caa60b6f458657ed58a0e0eca41bb4e6d6be4b0f042bbb8ab7056cebe4b","src/termios/tc.rs":"e41312d15464b83b2457c2502fc3f3b9998cfb02ba68739026dd4285cc7130ac","src/termios/tty.rs":"838b2b5426631b1406cfca3a8e255d94cc662bb3d8d9339e24b6cbf4638ede00","src/termios/types.rs":"8b76a0eeecdd36f2f2056b73d4ecd9ddc22da205d8c87b85e8a4f957c37e511e","src/thread/clock.rs":"469326c822dfb63405ee8537552cedde0b344978280e6645bbadd47dedc71e18","src/thread/futex.rs":"985f9a0dce1e2a4892ae7f26bd1bf119ceae3f9fa6b4707e166624fc1cee76d4","src/thread/id.rs":"ad72db4fea9fccb728310bbfd01ef8c00f6cc60fa2a750f6349646a134f7009b","src/thread/libcap.rs":"a3e316e6d0f58b075125fa939b9b824e1595de20a23d341a36999416b0d10d36","src/thread/mod.rs":"98634ece0b882f123ad887017692f2a4d94a23a1dec278ed660b3497cac5cceb","src/thread/prctl.rs":"ebb271914bcf4f9bf4251434e283e4f06c52a3a38628462dadf02bec84a81b99","src/thread/setns.rs":"730badd8db8ce7b905767b341211f1226eeeb38019727bf994eb64f2531b7b7f","src/time/clock.rs":"e59a29f1bed8c31c3d5b6fad60f2d4fa6cab8dd8e86148bb3693a5e3a1ce735f","src/time/mod.rs":"43afee938c80d124d04d4ba190c03f4d21d1e3bfc154fff309211e4f6eabe940","src/time/timerfd.rs":"f17092b84553741aa2d2b44c6992b5d2c8c96cc2c2007fc9a2c6b2064485e53f","src/timespec.rs":"79c7af1bfb12b56fd482b778dd783d82c6f3233b26bb11ae3dceb454036b1da7","src/ugid.rs":"6616c6e35b7e43aee5b150f1efae7a50711e0947943c9a96833dbe214ad9e85f","src/utils.rs":"9ae76f8a41d6cc350cdd58c9084b5c3a5a708eeecd769783debdbcbaef442182","src/weak.rs":"c7cf03bf2aeba494b1999ab32183fa8c603ab72e254c0e312a67f168877e410d"},"package":"d7db8590df6dfcd144d22afd1b83b36c21a18d7cbc1dc4bb5295a8712e9eb662"} \ No newline at end of file diff --git a/third_party/rust/rustix/CODE_OF_CONDUCT.md b/third_party/rust/rustix/CODE_OF_CONDUCT.md deleted file mode 100644 index 32ff0288e8e3..000000000000 --- a/third_party/rust/rustix/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,49 +0,0 @@ -# Contributor Covenant Code of Conduct - -*Note*: this Code of Conduct pertains to individuals' behavior. Please also see the [Organizational Code of Conduct][OCoC]. - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Bytecode Alliance CoC team at [report@bytecodealliance.org](mailto:report@bytecodealliance.org). The CoC team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The CoC team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the Bytecode Alliance's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[OCoC]: https://github.com/bytecodealliance/rustix/blob/main/ORG_CODE_OF_CONDUCT.md -[homepage]: https://www.contributor-covenant.org -[version]: https://www.contributor-covenant.org/version/1/4/ diff --git a/third_party/rust/rustix/CONTRIBUTING.md b/third_party/rust/rustix/CONTRIBUTING.md deleted file mode 100644 index c3c48521d996..000000000000 --- a/third_party/rust/rustix/CONTRIBUTING.md +++ /dev/null @@ -1,27 +0,0 @@ -# Contributing to rustix - -Rustix is a [Bytecode Alliance] project. It follows the Bytecode Alliance's -[Code of Conduct] and [Organizational Code of Conduct]. - -## Testing - -To keep compile times low, most features in rustix's API are behind cargo -features. A special feature, `all-apis` enables all APIs, which is useful -for testing. - -``` -cargo test --features=all-apis -``` - -And, rustix has two backends, linux_raw and libc, and only one is used in -any given build. To test with the libc backend explicitly, additionally -enable the `use-libc` feature: - -``` -cargo test --features=all-apis,use-libc -``` - -Beyond that, rustix's CI tests many targets and configurations. Asking for -help is always welcome, and it's especially encouraged when the issue is -getting all the `cfg`s lined up to get everything compiling on all the -configurations on CI. diff --git a/third_party/rust/rustix/COPYRIGHT b/third_party/rust/rustix/COPYRIGHT deleted file mode 100644 index a841525eff99..000000000000 --- a/third_party/rust/rustix/COPYRIGHT +++ /dev/null @@ -1,29 +0,0 @@ -Short version for non-lawyers: - -`rustix` is triple-licensed under Apache 2.0 with the LLVM Exception, -Apache 2.0, and MIT terms. - - -Longer version: - -Copyrights in the `rustix` project are retained by their contributors. -No copyright assignment is required to contribute to the `rustix` -project. - -Some files include code derived from Rust's `libstd`; see the comments in -the code for details. - -Except as otherwise noted (below and/or in individual files), `rustix` -is licensed under: - - - the Apache License, Version 2.0, with the LLVM Exception - or - - - the Apache License, Version 2.0 - or - , - - or the MIT license - or - , - -at your option. diff --git a/third_party/rust/rustix/Cargo.toml b/third_party/rust/rustix/Cargo.toml deleted file mode 100644 index b7c0a61229eb..000000000000 --- a/third_party/rust/rustix/Cargo.toml +++ /dev/null @@ -1,268 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - -[package] -edition = "2021" -rust-version = "1.63" -name = "rustix" -version = "0.38.13" -authors = [ - "Dan Gohman ", - "Jakub Konka ", -] -include = [ - "src", - "build.rs", - "Cargo.toml", - "COPYRIGHT", - "LICENSE*", - "/*.md", - "benches", -] -description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls" -documentation = "https://docs.rs/rustix" -readme = "README.md" -keywords = [ - "api", - "file", - "network", - "safe", - "syscall", -] -categories = [ - "os::unix-apis", - "date-and-time", - "filesystem", - "network-programming", -] -license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" -repository = "https://github.com/bytecodealliance/rustix" - -[package.metadata.docs.rs] -features = ["all-apis"] -rustdoc-args = [ - "--cfg", - "doc_cfg", -] -targets = [ - "x86_64-unknown-linux-gnu", - "i686-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-freebsd", - "x86_64-unknown-openbsd", - "x86_64-unknown-netbsd", - "x86_64-unknown-dragonfly", - "x86_64-unknown-illumos", - "x86_64-unknown-redox", - "x86_64-unknown-haiku", - "wasm32-unknown-emscripten", - "wasm32-wasi", -] - -[[bench]] -name = "mod" -harness = false - -[dependencies.alloc] -version = "1.0.0" -optional = true -package = "rustc-std-workspace-alloc" - -[dependencies.bitflags] -version = "2.4.0" -default-features = false - -[dependencies.compiler_builtins] -version = "0.1.49" -optional = true - -[dependencies.core] -version = "1.0.0" -optional = true -package = "rustc-std-workspace-core" - -[dependencies.itoa] -version = "1.0.1" -optional = true -default-features = false - -[dev-dependencies.flate2] -version = "1.0" - -[dev-dependencies.libc] -version = "0.2.147" - -[dev-dependencies.libc_errno] -version = "0.3.1" -default-features = false -package = "errno" - -[dev-dependencies.memoffset] -version = "0.9.0" - -[dev-dependencies.serial_test] -version = "2.0.0" - -[dev-dependencies.static_assertions] -version = "1.1.0" - -[dev-dependencies.tempfile] -version = "3.5.0" - -[features] -all-apis = [ - "event", - "fs", - "io_uring", - "mm", - "mount", - "net", - "param", - "pipe", - "process", - "procfs", - "pty", - "rand", - "runtime", - "system", - "stdio", - "termios", - "thread", - "time", -] -alloc = [] -cc = [] -default = [ - "std", - "use-libc-auxv", -] -event = [] -fs = [] -io_uring = [ - "fs", - "net", - "linux-raw-sys/io_uring", -] -linux_4_11 = [] -linux_latest = ["linux_4_11"] -mm = [] -mount = [] -net = [ - "linux-raw-sys/net", - "linux-raw-sys/netlink", - "linux-raw-sys/if_ether", -] -param = ["fs"] -pipe = [] -process = ["linux-raw-sys/prctl"] -procfs = [ - "once_cell", - "itoa", - "fs", -] -pty = [ - "itoa", - "fs", -] -rand = [] -runtime = ["linux-raw-sys/prctl"] -rustc-dep-of-std = [ - "dep:core", - "dep:alloc", - "dep:compiler_builtins", - "linux-raw-sys/rustc-dep-of-std", - "bitflags/rustc-dep-of-std", - "compiler_builtins?/rustc-dep-of-std", -] -std = [ - "bitflags/std", - "alloc", - "libc?/std", - "libc_errno?/std", -] -stdio = [] -system = ["linux-raw-sys/system"] -termios = [] -thread = ["linux-raw-sys/prctl"] -time = [] -use-explicitly-provided-auxv = [] -use-libc = [ - "libc_errno", - "libc", -] -use-libc-auxv = [] - -[target."cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))".dependencies.linux-raw-sys] -version = "0.4.3" -features = [ - "general", - "ioctl", - "no_std", -] -default-features = false - -[target."cfg(all(criterion, not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.criterion] -version = "0.4" - -[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))".dependencies.libc] -version = "0.2.147" -features = ["extra_traits"] -optional = true -default-features = false - -[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))".dependencies.libc_errno] -version = "0.3.1" -optional = true -default-features = false -package = "errno" - -[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))".dependencies.linux-raw-sys] -version = "0.4.7" -features = [ - "general", - "errno", - "ioctl", - "no_std", - "elf", -] -default-features = false - -[target."cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))".dependencies.libc] -version = "0.2.147" -features = ["extra_traits"] -default-features = false - -[target."cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))".dependencies.libc_errno] -version = "0.3.1" -default-features = false -package = "errno" - -[target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dependencies.once_cell] -version = "1.5.2" -optional = true - -[target."cfg(windows)".dependencies.libc_errno] -version = "0.3.1" -default-features = false -package = "errno" - -[target."cfg(windows)".dependencies.windows-sys] -version = "0.48.0" -features = [ - "Win32_Foundation", - "Win32_Networking_WinSock", - "Win32_NetworkManagement_IpHelper", - "Win32_System_Threading", -] - -[target."cfg(windows)".dev-dependencies.ctor] -version = "0.2.0" diff --git a/third_party/rust/rustix/LICENSE-APACHE b/third_party/rust/rustix/LICENSE-APACHE deleted file mode 100644 index 16fe87b06e80..000000000000 --- a/third_party/rust/rustix/LICENSE-APACHE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/third_party/rust/rustix/LICENSE-Apache-2.0_WITH_LLVM-exception b/third_party/rust/rustix/LICENSE-Apache-2.0_WITH_LLVM-exception deleted file mode 100644 index f9d81955f4bc..000000000000 --- a/third_party/rust/rustix/LICENSE-Apache-2.0_WITH_LLVM-exception +++ /dev/null @@ -1,220 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ---- LLVM Exceptions to the Apache 2.0 License ---- - -As an exception, if, as a result of your compiling your source code, portions -of this Software are embedded into an Object form of such source code, you -may redistribute such embedded portions in such Object form without complying -with the conditions of Sections 4(a), 4(b) and 4(d) of the License. - -In addition, if you combine or link compiled forms of this Software with -software that is licensed under the GPLv2 ("Combined Software") and if a -court of competent jurisdiction determines that the patent provision (Section -3), the indemnity provision (Section 9) or other Section of the License -conflicts with the conditions of the GPLv2, you may retroactively and -prospectively choose to deem waived or otherwise exclude such Section(s) of -the License, but only in their entirety and only with respect to the Combined -Software. - diff --git a/third_party/rust/rustix/LICENSE-MIT b/third_party/rust/rustix/LICENSE-MIT deleted file mode 100644 index 31aa79387f27..000000000000 --- a/third_party/rust/rustix/LICENSE-MIT +++ /dev/null @@ -1,23 +0,0 @@ -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/third_party/rust/rustix/ORG_CODE_OF_CONDUCT.md b/third_party/rust/rustix/ORG_CODE_OF_CONDUCT.md deleted file mode 100644 index 6f4fb3f537d1..000000000000 --- a/third_party/rust/rustix/ORG_CODE_OF_CONDUCT.md +++ /dev/null @@ -1,143 +0,0 @@ -# Bytecode Alliance Organizational Code of Conduct (OCoC) - -*Note*: this Code of Conduct pertains to organizations' behavior. Please also see the [Individual Code of Conduct](CODE_OF_CONDUCT.md). - -## Preamble - -The Bytecode Alliance (BA) welcomes involvement from organizations, -including commercial organizations. This document is an -*organizational* code of conduct, intended particularly to provide -guidance to commercial organizations. It is distinct from the -[Individual Code of Conduct (ICoC)](CODE_OF_CONDUCT.md), and does not -replace the ICoC. This OCoC applies to any group of people acting in -concert as a BA member or as a participant in BA activities, whether -or not that group is formally incorporated in some jurisdiction. - -The code of conduct described below is not a set of rigid rules, and -we did not write it to encompass every conceivable scenario that might -arise. For example, it is theoretically possible there would be times -when asserting patents is in the best interest of the BA community as -a whole. In such instances, consult with the BA, strive for -consensus, and interpret these rules with an intent that is generous -to the community the BA serves. - -While we may revise these guidelines from time to time based on -real-world experience, overall they are based on a simple principle: - -*Bytecode Alliance members should observe the distinction between - public community functions and private functions — especially - commercial ones — and should ensure that the latter support, or at - least do not harm, the former.* - -## Guidelines - - * **Do not cause confusion about Wasm standards or interoperability.** - - Having an interoperable WebAssembly core is a high priority for - the BA, and members should strive to preserve that core. It is fine - to develop additional non-standard features or APIs, but they - should always be clearly distinguished from the core interoperable - Wasm. - - Treat the WebAssembly name and any BA-associated names with - respect, and follow BA trademark and branding guidelines. If you - distribute a customized version of software originally produced by - the BA, or if you build a product or service using BA-derived - software, use names that clearly distinguish your work from the - original. (You should still provide proper attribution to the - original, of course, wherever such attribution would normally be - given.) - - Further, do not use the WebAssembly name or BA-associated names in - other public namespaces in ways that could cause confusion, e.g., - in company names, names of commercial service offerings, domain - names, publicly-visible social media accounts or online service - accounts, etc. It may sometimes be reasonable, however, to - register such a name in a new namespace and then immediately donate - control of that account to the BA, because that would help the project - maintain its identity. - - For further guidance, see the BA Trademark and Branding Policy - [TODO: create policy, then insert link]. - - * **Do not restrict contributors.** If your company requires - employees or contractors to sign non-compete agreements, those - agreements must not prevent people from participating in the BA or - contributing to related projects. - - This does not mean that all non-compete agreements are incompatible - with this code of conduct. For example, a company may restrict an - employee's ability to solicit the company's customers. However, an - agreement must not block any form of technical or social - participation in BA activities, including but not limited to the - implementation of particular features. - - The accumulation of experience and expertise in individual persons, - who are ultimately free to direct their energy and attention as - they decide, is one of the most important drivers of progress in - open source projects. A company that limits this freedom may hinder - the success of the BA's efforts. - - * **Do not use patents as offensive weapons.** If any BA participant - prevents the adoption or development of BA technologies by - asserting its patents, that undermines the purpose of the - coalition. The collaboration fostered by the BA cannot include - members who act to undermine its work. - - * **Practice responsible disclosure** for security vulnerabilities. - Use designated, non-public reporting channels to disclose technical - vulnerabilities, and give the project a reasonable period to - respond, remediate, and patch. [TODO: optionally include the - security vulnerability reporting URL here.] - - Vulnerability reporters may patch their company's own offerings, as - long as that patching does not significantly delay the reporting of - the vulnerability. Vulnerability information should never be used - for unilateral commercial advantage. Vendors may legitimately - compete on the speed and reliability with which they deploy - security fixes, but withholding vulnerability information damages - everyone in the long run by risking harm to the BA project's - reputation and to the security of all users. - - * **Respect the letter and spirit of open source practice.** While - there is not space to list here all possible aspects of standard - open source practice, some examples will help show what we mean: - - * Abide by all applicable open source license terms. Do not engage - in copyright violation or misattribution of any kind. - - * Do not claim others' ideas or designs as your own. - - * When others engage in publicly visible work (e.g., an upcoming - demo that is coordinated in a public issue tracker), do not - unilaterally announce early releases or early demonstrations of - that work ahead of their schedule in order to secure private - advantage (such as marketplace advantage) for yourself. - - The BA reserves the right to determine what constitutes good open - source practices and to take action as it deems appropriate to - encourage, and if necessary enforce, such practices. - -## Enforcement - -Instances of organizational behavior in violation of the OCoC may -be reported by contacting the Bytecode Alliance CoC team at -[report@bytecodealliance.org](mailto:report@bytecodealliance.org). The -CoC team will review and investigate all complaints, and will respond -in a way that it deems appropriate to the circumstances. The CoC team -is obligated to maintain confidentiality with regard to the reporter of -an incident. Further details of specific enforcement policies may be -posted separately. - -When the BA deems an organization in violation of this OCoC, the BA -will, at its sole discretion, determine what action to take. The BA -will decide what type, degree, and duration of corrective action is -needed, if any, before a violating organization can be considered for -membership (if it was not already a member) or can have its membership -reinstated (if it was a member and the BA canceled its membership due -to the violation). - -In practice, the BA's first approach will be to start a conversation, -with punitive enforcement used only as a last resort. Violations -often turn out to be unintentional and swiftly correctable with all -parties acting in good faith. diff --git a/third_party/rust/rustix/README.md b/third_party/rust/rustix/README.md deleted file mode 100644 index 443287d8d05d..000000000000 --- a/third_party/rust/rustix/README.md +++ /dev/null @@ -1,180 +0,0 @@ -
-

rustix

- -

- Safe Rust bindings to POSIX/Unix/Linux/Winsock2 syscalls -

- - A Bytecode Alliance project - -

- Github Actions CI Status - zulip chat - crates.io page - docs.rs docs -

-
- -`rustix` provides efficient memory-safe and [I/O-safe] wrappers to POSIX-like, -Unix-like, Linux, and Winsock2 syscall-like APIs, with configurable backends. -It uses Rust references, slices, and return values instead of raw pointers, and -[I/O safety types] instead of raw file descriptors, providing memory safety, -[I/O safety], and [provenance]. It uses `Result`s for reporting errors, -[`bitflags`] instead of bare integer flags, an [`Arg`] trait with optimizations -to efficiently accept any Rust string type, and several other efficient -conveniences. - -`rustix` is low-level and, and while the `net` API supports Winsock2 on -Windows, the rest of the APIs do not support Windows; for higher-level and more -portable APIs built on this functionality, see the [`cap-std`], [`memfd`], -[`timerfd`], and [`io-streams`] crates, for example. - -`rustix` currently has two backends available: - - * linux_raw, which uses raw Linux system calls and vDSO calls, and is - supported on Linux on x86-64, x86, aarch64, riscv64gc, powerpc64le, - arm (v5 onwards), mipsel, and mips64el, with stable, nightly, and 1.63 Rust. - - By being implemented entirely in Rust, avoiding `libc`, `errno`, and pthread - cancellation, and employing some specialized optimizations, most functions - compile down to very efficient code, which can often be fully inlined into - user code. - - Most functions in `linux_raw` preserve memory, I/O safety, and pointer - provenance all the way down to the syscalls. - - * libc, which uses the [`libc`] crate which provides bindings to native `libc` - libraries on Unix-family platforms, and [`windows-sys`] for Winsock2 on - Windows, and is portable to many OS's. - -The linux_raw backend is enabled by default on platforms which support it. To -enable the libc backend instead, either enable the "use-libc" cargo feature, -or set the `RUSTFLAGS` environment variable to `--cfg=rustix_use_libc` when -building. - -## Cargo features - -The modules [`rustix::io`], [`rustix::fd`], and [`rustix::ffi`] are enabled -by default. The rest of the API is conditional with cargo feature flags: - -| Name | Description -| ---------- | --------------------- -| `event` | [`rustix::event`]—Polling and event operations. -| `fs` | [`rustix::fs`]—Filesystem operations. -| `io_uring` | [`rustix::io_uring`]—Linux io_uring. -| `mm` | [`rustix::mm`]—Memory map operations. -| `mount` | [`rustix::mount`]—Linux mount API. -| `net` | [`rustix::net`]—Network-related operations. -| `param` | [`rustix::param`]—Process parameters. -| `pipe` | [`rustix::pipe`]—Pipe operations. -| `process` | [`rustix::process`]—Process-associated operations. -| `procfs` | [`rustix::procfs`]—Utilities for reading `/proc` on Linux. -| `pty` | [`rustix::pty`]—Pseudoterminal operations. -| `rand` | [`rustix::rand`]—Random-related operations. -| `stdio` | [`rustix::stdio`]—Stdio-related operations. -| `system` | [`rustix::system`]—System-related operations. -| `termios` | [`rustix::termios`]—Terminal I/O stream operations. -| `thread` | [`rustix::thread`]—Thread-associated operations. -| `time` | [`rustix::time`]—Time-related operations. -| | -| `use-libc` | Enable the libc backend. - -[`rustix::event`]: https://docs.rs/rustix/*/rustix/fs/index.html -[`rustix::fs`]: https://docs.rs/rustix/*/rustix/fs/index.html -[`rustix::io_uring`]: https://docs.rs/rustix/*/rustix/io_uring/index.html -[`rustix::mm`]: https://docs.rs/rustix/*/rustix/mm/index.html -[`rustix::mount`]: https://docs.rs/rustix/*/rustix/mount/index.html -[`rustix::net`]: https://docs.rs/rustix/*/rustix/net/index.html -[`rustix::param`]: https://docs.rs/rustix/*/rustix/param/index.html -[`rustix::pipe`]: https://docs.rs/rustix/*/rustix/pipe/index.html -[`rustix::process`]: https://docs.rs/rustix/*/rustix/process/index.html -[`rustix::procfs`]: https://docs.rs/rustix/*/rustix/procfs/index.html -[`rustix::pty`]: https://docs.rs/rustix/*/rustix/pty/index.html -[`rustix::rand`]: https://docs.rs/rustix/*/rustix/rand/index.html -[`rustix::stdio`]: https://docs.rs/rustix/*/rustix/stdio/index.html -[`rustix::system`]: https://docs.rs/rustix/*/rustix/system/index.html -[`rustix::termios`]: https://docs.rs/rustix/*/rustix/termios/index.html -[`rustix::thread`]: https://docs.rs/rustix/*/rustix/thread/index.html -[`rustix::time`]: https://docs.rs/rustix/*/rustix/time/index.html -[`rustix::io`]: https://docs.rs/rustix/*/rustix/io/index.html -[`rustix::fd`]: https://docs.rs/rustix/*/rustix/fd/index.html -[`rustix::ffi`]: https://docs.rs/rustix/*/rustix/ffi/index.html - -## 64-bit Large File Support (LFS) and Year 2038 (y2038) support - -`rustix` automatically uses 64-bit APIs when available, and avoids exposing -32-bit APIs that would have the year-2038 problem or fail to support large -files. For instance, `rustix::fstatvfs` calls `fstatvfs64`, and returns a -struct that's 64-bit even on 32-bit platforms. - -## Similar crates - -`rustix` is similar to [`nix`], [`simple_libc`], [`unix`], [`nc`], [`uapi`], -and [`rusl`]. `rustix` is architected for [I/O safety] with most APIs using -[`OwnedFd`] and [`AsFd`] to manipulate file descriptors rather than `File` or -even `c_int`, and supporting multiple backends so that it can use direct -syscalls while still being usable on all platforms `libc` supports. Like `nix`, -`rustix` has an optimized and flexible filename argument mechanism that allows -users to use a variety of string types, including non-UTF-8 string types. - -[`relibc`] is a similar project which aims to be a full "libc", including -C-compatible interfaces and higher-level C/POSIX standard-library -functionality; `rustix` just aims to provide safe and idiomatic Rust interfaces -to low-level syscalls. `relibc` also doesn't tend to support features not -supported on Redox, such as `*at` functions like `openat`, which are important -features for `rustix`. - -`rustix` has its own code for making direct syscalls, similar to the -[`syscall`], [`sc`], and [`scall`] crates, using the Rust `asm!` macro. -`rustix` can also use Linux's vDSO mechanism to optimize Linux `clock_gettime` -on all architectures, and all Linux system calls on x86. And `rustix`'s -syscalls report errors using an optimized `Errno` type. - -`rustix`'s `*at` functions are similar to the [`openat`] crate, but `rustix` -provides them as free functions rather than associated functions of a `Dir` -type. `rustix`'s `CWD` constant exposes the special `AT_FDCWD` value in a safe -way, so users don't need to open `.` to get a current-directory handle. - -`rustix`'s `openat2` function is similar to the [`openat2`] crate, but uses I/O -safety types rather than `RawFd`. `rustix` does not provide dynamic feature -detection, so users must handle the [`NOSYS`] error themselves. - -`rustix`'s `termios` module is similar to the [`termios`] crate, but uses I/O -safety types rather than `RawFd`, and the flags parameters to functions such as -`tcsetattr` are `enum`s rather than bare integers. And, rustix calls its -`tcgetattr` function `tcgetattr`, rather than `Termios::from_fd`. - -## Minimum Supported Rust Version (MSRV) - -This crate currently works on the version of [Rust on Debian stable], which is -currently Rust 1.63. This policy may change in the future, in minor version -releases, so users using a fixed version of Rust should pin to a specific -version of this crate. - -[Rust on Debian stable]: https://packages.debian.org/stable/rust/rustc -[`nix`]: https://crates.io/crates/nix -[`unix`]: https://crates.io/crates/unix -[`nc`]: https://crates.io/crates/nc -[`simple_libc`]: https://crates.io/crates/simple_libc -[`uapi`]: https://crates.io/crates/uapi -[`rusl`]: https://lib.rs/crates/rusl -[`relibc`]: https://github.com/redox-os/relibc -[`syscall`]: https://crates.io/crates/syscall -[`sc`]: https://crates.io/crates/sc -[`scall`]: https://crates.io/crates/scall -[`openat`]: https://crates.io/crates/openat -[`openat2`]: https://crates.io/crates/openat2 -[I/O safety types]: https://doc.rust-lang.org/stable/std/os/fd/index.html#structs -[`termios`]: https://crates.io/crates/termios -[`libc`]: https://crates.io/crates/libc -[`windows-sys`]: https://crates.io/crates/windows-sys -[`cap-std`]: https://crates.io/crates/cap-std -[`memfd`]: https://crates.io/crates/memfd -[`timerfd`]: https://crates.io/crates/timerfd -[`io-streams`]: https://crates.io/crates/io-streams -[`bitflags`]: https://crates.io/crates/bitflags -[`Arg`]: https://docs.rs/rustix/*/rustix/path/trait.Arg.html -[I/O-safe]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md -[I/O safety]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md -[provenance]: https://github.com/rust-lang/rust/issues/95228 -[`OwnedFd`]: https://doc.rust-lang.org/stable/std/os/fd/struct.OwnedFd.html -[`AsFd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.AsFd.html -[`NOSYS`]: https://docs.rs/rustix/*/rustix/io/struct.Errno.html#associatedconstant.NOSYS diff --git a/third_party/rust/rustix/SECURITY.md b/third_party/rust/rustix/SECURITY.md deleted file mode 100644 index 3513b9cb3573..000000000000 --- a/third_party/rust/rustix/SECURITY.md +++ /dev/null @@ -1,29 +0,0 @@ -# Security Policy - -Building secure foundations for software development is at the core of what we do in the Bytecode Alliance. Contributions of external security researchers are a vital part of that. - -## Scope - -If you believe you've found a security issue in any website, service, or software owned or operated by the Bytecode Alliance, we encourage you to notify us. - -## How to Submit a Report - -To submit a vulnerability report to the Bytecode Alliance, please contact us at [security@bytecodealliance.org](mailto:security@bytecodealliance.org). Your submission will be reviewed and validated by a member of our security team. - -## Safe Harbor - -The Bytecode Alliance supports safe harbor for security researchers who: - -* Make a good faith effort to avoid privacy violations, destruction of data, and interruption or degradation of our services. -* Only interact with accounts you own or with explicit permission of the account holder. If you do encounter Personally Identifiable Information (PII) contact us immediately, do not proceed with access, and immediately purge any local information. -* Provide us with a reasonable amount of time to resolve vulnerabilities prior to any disclosure to the public or a third-party. - -We will consider activities conducted consistent with this policy to constitute "authorized" conduct and will not pursue civil action or initiate a complaint to law enforcement. We will help to the extent we can if legal action is initiated by a third party against you. - -Please submit a report to us before engaging in conduct that may be inconsistent with or unaddressed by this policy. - -## Preferences - -* Please provide detailed reports with reproducible steps and a clearly defined impact. -* Submit one vulnerability per report. -* Social engineering (e.g. phishing, vishing, smishing) is prohibited. diff --git a/third_party/rust/rustix/benches/mod.rs b/third_party/rust/rustix/benches/mod.rs deleted file mode 100644 index 97828d43179c..000000000000 --- a/third_party/rust/rustix/benches/mod.rs +++ /dev/null @@ -1,189 +0,0 @@ -//! Benchmarks for rustix. -//! -//! To enable these benchmarks, add `--cfg=criterion` to RUSTFLAGS and enable -//! the "fs", "time", and "process" cargo features. -//! -//! ```sh -//! RUSTFLAGS=--cfg=criterion cargo bench --features=fs,time,process -//! ``` - -#[cfg(any( - not(criterion), - not(feature = "fs"), - not(feature = "process"), - not(feature = "time"), - windows, - target_os = "emscripten", - target_os = "redox", - target_os = "wasi", -))] -fn main() { - unimplemented!( - "Add --cfg=criterion to RUSTFLAGS and enable the \"fs\", \"time\", and \"process\" cargo \ - features." - ) -} - -#[cfg(not(any( - not(criterion), - not(feature = "fs"), - not(feature = "process"), - not(feature = "time"), - windows, - target_os = "emscripten", - target_os = "redox", - target_os = "wasi", -)))] -use criterion::{criterion_group, criterion_main}; - -#[cfg(not(any( - not(criterion), - not(feature = "fs"), - not(feature = "process"), - not(feature = "time"), - windows, - target_os = "emscripten", - target_os = "redox", - target_os = "wasi", -)))] -mod suite { - use criterion::Criterion; - - pub(super) fn simple_statat(c: &mut Criterion) { - use rustix::fs::{statat, AtFlags, CWD}; - - c.bench_function("simple statat", |b| { - b.iter(|| { - statat(CWD, "/", AtFlags::empty()).unwrap(); - }) - }); - } - - pub(super) fn simple_statat_libc(c: &mut Criterion) { - c.bench_function("simple statat libc", |b| { - b.iter(|| { - let mut s = std::mem::MaybeUninit::::uninit(); - unsafe { - assert_eq!( - libc::fstatat( - libc::AT_FDCWD, - std::ffi::CString::new("/").unwrap().as_c_str().as_ptr() as _, - s.as_mut_ptr(), - 0 - ), - 0 - ); - } - }) - }); - } - - pub(super) fn simple_statat_libc_cstr(c: &mut Criterion) { - c.bench_function("simple statat libc cstr", |b| { - b.iter(|| { - let mut s = std::mem::MaybeUninit::::uninit(); - unsafe { - assert_eq!( - libc::fstatat( - libc::AT_FDCWD, - rustix::cstr!("/").as_ptr() as _, - s.as_mut_ptr(), - 0 - ), - 0 - ); - } - }) - }); - } - - pub(super) fn simple_statat_cstr(c: &mut Criterion) { - use rustix::fs::{statat, AtFlags, CWD}; - - c.bench_function("simple statat cstr", |b| { - b.iter(|| { - statat(CWD, rustix::cstr!("/"), AtFlags::empty()).unwrap(); - }) - }); - } - - #[cfg(not(target_os = "wasi"))] - pub(super) fn simple_clock_gettime(c: &mut Criterion) { - use rustix::time::{clock_gettime, ClockId}; - - c.bench_function("simple clock_gettime", |b| { - b.iter(|| { - let _ = clock_gettime(ClockId::Monotonic); - }) - }); - } - - #[cfg(not(target_os = "wasi"))] - pub(super) fn simple_clock_gettime_libc(c: &mut Criterion) { - c.bench_function("simple clock_gettime libc", |b| { - b.iter(|| { - let mut s = std::mem::MaybeUninit::::uninit(); - unsafe { - assert_eq!( - libc::clock_gettime(libc::CLOCK_MONOTONIC, s.as_mut_ptr()), - 0 - ); - let _ = s.assume_init(); - } - }) - }); - } - - #[cfg(not(target_os = "wasi"))] - pub(super) fn simple_getpid(c: &mut Criterion) { - use rustix::process::getpid; - - c.bench_function("simple getpid", |b| { - b.iter(|| { - let _ = getpid(); - }) - }); - } - - #[cfg(not(target_os = "wasi"))] - pub(super) fn simple_getpid_libc(c: &mut Criterion) { - c.bench_function("simple getpid libc", |b| { - b.iter(|| unsafe { - let _ = libc::getpid(); - }) - }); - } -} - -#[cfg(not(any( - not(criterion), - not(feature = "fs"), - not(feature = "process"), - not(feature = "time"), - windows, - target_os = "emscripten", - target_os = "redox", - target_os = "wasi", -)))] -criterion_group!( - benches, - suite::simple_statat, - suite::simple_statat_libc, - suite::simple_statat_libc_cstr, - suite::simple_statat_cstr, - suite::simple_clock_gettime, - suite::simple_clock_gettime_libc, - suite::simple_getpid, - suite::simple_getpid_libc -); -#[cfg(not(any( - not(criterion), - not(feature = "fs"), - not(feature = "process"), - not(feature = "time"), - windows, - target_os = "emscripten", - target_os = "redox", - target_os = "wasi", -)))] -criterion_main!(benches); diff --git a/third_party/rust/rustix/build.rs b/third_party/rust/rustix/build.rs deleted file mode 100644 index 28891caeafab..000000000000 --- a/third_party/rust/rustix/build.rs +++ /dev/null @@ -1,251 +0,0 @@ -use std::env::var; -use std::io::Write; - -/// The directory for inline asm. -const ASM_PATH: &str = "src/backend/linux_raw/arch"; - -fn main() { - // Don't rerun this on changes other than build.rs, as we only depend on - // the rustc version. - println!("cargo:rerun-if-changed=build.rs"); - - // Gather target information. - let arch = var("CARGO_CFG_TARGET_ARCH").unwrap(); - let env = var("CARGO_CFG_TARGET_ENV").unwrap(); - let inline_asm_name = format!("{}/{}.rs", ASM_PATH, arch); - let inline_asm_name_present = std::fs::metadata(inline_asm_name).is_ok(); - let os = var("CARGO_CFG_TARGET_OS").unwrap(); - let pointer_width = var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap(); - let endian = var("CARGO_CFG_TARGET_ENDIAN").unwrap(); - - // Check for special target variants. - let is_x32 = arch == "x86_64" && pointer_width == "32"; - let is_arm64_ilp32 = arch == "aarch64" && pointer_width == "32"; - let is_powerpc64be = arch == "powerpc64" && endian == "big"; - let is_mipseb = (arch == "mips" || arch == "mips32r6") && endian == "big"; - let is_mips64eb = arch.contains("mips64") && endian == "big"; - let is_unsupported_abi = is_x32 || is_arm64_ilp32 || is_powerpc64be || is_mipseb || is_mips64eb; - - // Check for `--features=use-libc`. This allows crate users to enable the - // libc backend. - let feature_use_libc = var("CARGO_FEATURE_USE_LIBC").is_ok(); - - // Check for `RUSTFLAGS=--cfg=rustix_use_libc`. This allows end users to - // enable the libc backend even if rustix is depended on transitively. - let cfg_use_libc = var("CARGO_CFG_RUSTIX_USE_LIBC").is_ok(); - - // Check for `--features=rustc-dep-of-std`. - let rustc_dep_of_std = var("CARGO_FEATURE_RUSTC_DEP_OF_STD").is_ok(); - - // Check for eg. `RUSTFLAGS=--cfg=rustix_use_experimental_features`. This - // is a rustc flag rather than a cargo feature flag because it's - // experimental and not something we want accidentally enabled via - // `--all-features`. - let rustix_use_experimental_features = - var("CARGO_CFG_RUSTIX_USE_EXPERIMENTAL_FEATURES").is_ok(); - - // Check for eg. `RUSTFLAGS=--cfg=rustix_use_experimental_asm`. This is a - // rustc flag rather than a cargo feature flag because it's experimental - // and not something we want accidentally enabled via `--all-features`. - let rustix_use_experimental_asm = var("CARGO_CFG_RUSTIX_USE_EXPERIMENTAL_ASM").is_ok(); - - // Miri doesn't support inline asm, and has builtin support for recognizing - // libc FFI calls, so if we're running under miri, use the libc backend. - let miri = var("CARGO_CFG_MIRI").is_ok(); - - // If experimental features are enabled, auto-detect and use available - // features. - if rustc_dep_of_std { - use_feature("rustc_attrs"); - use_feature("core_intrinsics"); - } else if rustix_use_experimental_features { - use_feature_or_nothing("rustc_attrs"); - use_feature_or_nothing("core_intrinsics"); - } - - // Features needed only in no-std configurations. - #[cfg(not(feature = "std"))] - { - use_feature_or_nothing("core_c_str"); - use_feature_or_nothing("core_ffi_c"); - use_feature_or_nothing("alloc_c_string"); - use_feature_or_nothing("alloc_ffi"); - } - - // Feature needed for testing. - if use_static_assertions() { - use_feature("static_assertions"); - } - - // WASI support can utilize wasi_ext if present. - if os == "wasi" { - use_feature_or_nothing("wasi_ext"); - } - - // If the libc backend is requested, or if we're not on a platform for - // which we have linux_raw support, use the libc backend. - // - // For now Android uses the libc backend; in theory it could use the - // linux_raw backend, but to do that we'll need to figure out how to - // install the toolchain for it. - let libc = feature_use_libc - || cfg_use_libc - || os != "linux" - || !inline_asm_name_present - || is_unsupported_abi - || miri - || ((arch == "powerpc64" || arch == "mips" || arch == "mips64" || arch == "mips64r6") - && !rustix_use_experimental_asm); - if libc { - // Use the libc backend. - use_feature("libc"); - } else { - // Use the linux_raw backend. - use_feature("linux_raw"); - if rustix_use_experimental_asm { - use_feature("asm_experimental_arch"); - } - } - - // Detect whether the compiler requires us to use thumb mode on ARM. - if arch == "arm" && use_thumb_mode() { - use_feature("thumb_mode"); - } - - // Rust's libc crate groups some OS's together which have similar APIs; - // create similarly-named features to make `cfg` tests more concise. - let freebsdlike = os == "freebsd" || os == "dragonfly"; - if freebsdlike { - use_feature("freebsdlike"); - } - let netbsdlike = os == "openbsd" || os == "netbsd"; - if netbsdlike { - use_feature("netbsdlike"); - } - let apple = os == "macos" || os == "ios" || os == "tvos" || os == "watchos"; - if apple { - use_feature("apple"); - } - if os == "linux" || os == "l4re" || os == "android" || os == "emscripten" { - use_feature("linux_like"); - } - if os == "solaris" || os == "illumos" { - use_feature("solarish"); - } - if apple || freebsdlike || netbsdlike { - use_feature("bsd"); - } - - // Add some additional common target combinations. - - // Android and "regular" Linux both use the Linux kernel. - if os == "android" || os == "linux" { - use_feature("linux_kernel"); - } - - // These platforms have a 32-bit `time_t`. - if libc - && (arch == "arm" - || arch == "mips" - || arch == "sparc" - || arch == "x86" - || (arch == "wasm32" && os == "emscripten")) - && (apple - || os == "android" - || os == "emscripten" - || os == "haiku" - || env == "gnu" - || (env == "musl" && arch == "x86")) - { - use_feature("fix_y2038"); - } - - println!("cargo:rerun-if-env-changed=CARGO_CFG_RUSTIX_USE_EXPERIMENTAL_ASM"); - println!("cargo:rerun-if-env-changed=CARGO_CFG_RUSTIX_USE_LIBC"); - - // Rerun this script if any of our features or configuration flags change, - // or if the toolchain we used for feature detection changes. - println!("cargo:rerun-if-env-changed=CARGO_FEATURE_USE_LIBC"); - println!("cargo:rerun-if-env-changed=CARGO_FEATURE_RUSTC_DEP_OF_STD"); - println!("cargo:rerun-if-env-changed=CARGO_CFG_MIRI"); -} - -fn use_static_assertions() -> bool { - // `offset_from` was made const in Rust 1.65. - can_compile("const unsafe fn foo(p: *const u8) -> isize { p.offset_from(p) }") -} - -fn use_thumb_mode() -> bool { - // In thumb mode, r7 is reserved. - !can_compile("pub unsafe fn f() { core::arch::asm!(\"udf #16\", in(\"r7\") 0); }") -} - -fn use_feature_or_nothing(feature: &str) { - if has_feature(feature) { - use_feature(feature); - } -} - -fn use_feature(feature: &str) { - println!("cargo:rustc-cfg={}", feature); -} - -/// Test whether the rustc at `var("RUSTC")` supports the given feature. -fn has_feature(feature: &str) -> bool { - can_compile(format!( - "#![allow(stable_features)]\n#![feature({})]", - feature - )) -} - -/// Test whether the rustc at `var("RUSTC")` can compile the given code. -fn can_compile>(test: T) -> bool { - use std::process::Stdio; - - let out_dir = var("OUT_DIR").unwrap(); - let rustc = var("RUSTC").unwrap(); - let target = var("TARGET").unwrap(); - - // Use `RUSTC_WRAPPER` if it's set, unless it's set to an empty string, as - // documented [here]. - // [here]: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-reads - let wrapper = var("RUSTC_WRAPPER") - .ok() - .and_then(|w| if w.is_empty() { None } else { Some(w) }); - - let mut cmd = if let Some(wrapper) = wrapper { - let mut cmd = std::process::Command::new(wrapper); - // The wrapper's first argument is supposed to be the path to rustc. - cmd.arg(rustc); - cmd - } else { - std::process::Command::new(rustc) - }; - - cmd.arg("--crate-type=rlib") // Don't require `main`. - .arg("--emit=metadata") // Do as little as possible but still parse. - .arg("--target") - .arg(target) - .arg("--out-dir") - .arg(out_dir); // Put the output somewhere inconsequential. - - // If Cargo wants to set RUSTFLAGS, use that. - if let Ok(rustflags) = var("CARGO_ENCODED_RUSTFLAGS") { - if !rustflags.is_empty() { - for arg in rustflags.split('\x1f') { - cmd.arg(arg); - } - } - } - - let mut child = cmd - .arg("-") // Read from stdin. - .stdin(Stdio::piped()) // Stdin is a pipe. - .stderr(Stdio::null()) // Errors from feature detection aren't interesting and can be confusing. - .spawn() - .unwrap(); - - writeln!(child.stdin.take().unwrap(), "{}", test.as_ref()).unwrap(); - - child.wait().unwrap().success() -} diff --git a/third_party/rust/rustix/src/backend/libc/c.rs b/third_party/rust/rustix/src/backend/libc/c.rs deleted file mode 100644 index 0391dba48941..000000000000 --- a/third_party/rust/rustix/src/backend/libc/c.rs +++ /dev/null @@ -1,524 +0,0 @@ -//! Libc and supplemental types and constants. - -#![allow(unused_imports)] - -// Import everything from libc, but we'll add some stuff and override some -// things below. -pub(crate) use libc::*; - -/// `PROC_SUPER_MAGIC`—The magic number for the procfs filesystem. -#[cfg(all(linux_kernel, target_env = "musl"))] -pub(crate) const PROC_SUPER_MAGIC: u32 = 0x0000_9fa0; - -/// `NFS_SUPER_MAGIC`—The magic number for the NFS filesystem. -#[cfg(all(linux_kernel, target_env = "musl"))] -pub(crate) const NFS_SUPER_MAGIC: u32 = 0x0000_6969; - -#[cfg(feature = "process")] -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) const EXIT_SIGNALED_SIGABRT: c_int = 128 + SIGABRT as c_int; - -// TODO: Upstream these. -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_TSN: c_int = linux_raw_sys::if_ether::ETH_P_TSN as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_ERSPAN2: c_int = linux_raw_sys::if_ether::ETH_P_ERSPAN2 as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_ERSPAN: c_int = linux_raw_sys::if_ether::ETH_P_ERSPAN as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_PROFINET: c_int = linux_raw_sys::if_ether::ETH_P_PROFINET as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_REALTEK: c_int = linux_raw_sys::if_ether::ETH_P_REALTEK as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_ETHERCAT: c_int = linux_raw_sys::if_ether::ETH_P_ETHERCAT as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_PREAUTH: c_int = linux_raw_sys::if_ether::ETH_P_PREAUTH as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_LLDP: c_int = linux_raw_sys::if_ether::ETH_P_LLDP as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_MRP: c_int = linux_raw_sys::if_ether::ETH_P_MRP as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_NCSI: c_int = linux_raw_sys::if_ether::ETH_P_NCSI as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_CFM: c_int = linux_raw_sys::if_ether::ETH_P_CFM as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_IBOE: c_int = linux_raw_sys::if_ether::ETH_P_IBOE as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_HSR: c_int = linux_raw_sys::if_ether::ETH_P_HSR as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_NSH: c_int = linux_raw_sys::if_ether::ETH_P_NSH as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_DSA_8021Q: c_int = linux_raw_sys::if_ether::ETH_P_DSA_8021Q as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_DSA_A5PSW: c_int = linux_raw_sys::if_ether::ETH_P_DSA_A5PSW as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_IFE: c_int = linux_raw_sys::if_ether::ETH_P_IFE as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_CAN: c_int = linux_raw_sys::if_ether::ETH_P_CAN as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_CANXL: c_int = linux_raw_sys::if_ether::ETH_P_CANXL as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_XDSA: c_int = linux_raw_sys::if_ether::ETH_P_XDSA as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_MAP: c_int = linux_raw_sys::if_ether::ETH_P_MAP as _; -#[cfg(all(linux_kernel, feature = "net"))] -pub(crate) const ETH_P_MCTP: c_int = linux_raw_sys::if_ether::ETH_P_MCTP as _; - -#[cfg(all( - linux_kernel, - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" - ) -))] -pub(crate) const SIGEMT: c_int = linux_raw_sys::general::SIGEMT as _; - -// TODO: Upstream these. -#[cfg(all(linux_kernel, feature = "termios"))] -pub(crate) const IUCLC: tcflag_t = linux_raw_sys::general::IUCLC as _; -#[cfg(all(linux_kernel, feature = "termios"))] -pub(crate) const XCASE: tcflag_t = linux_raw_sys::general::XCASE as _; - -#[cfg(target_os = "aix")] -pub(crate) const MSG_DONTWAIT: c_int = libc::MSG_NONBLOCK; - -// On PowerPC, the regular `termios` has the `termios2` fields and there is no -// `termios2`. linux-raw-sys has aliases `termios2` to `termios` to cover this -// difference, but we still need to manually import it since `libc` doesn't -// have this. -#[cfg(all( - linux_kernel, - feature = "termios", - any(target_arch = "powerpc", target_arch = "powerpc64") -))] -pub(crate) use { - linux_raw_sys::general::{termios2, CIBAUD}, - linux_raw_sys::ioctl::{TCGETS2, TCSETS2, TCSETSF2, TCSETSW2}, -}; - -// Automatically enable “large file” support (LFS) features. - -#[cfg(target_os = "vxworks")] -pub(super) use libc::_Vx_ticks64_t as _Vx_ticks_t; -#[cfg(linux_kernel)] -pub(super) use libc::fallocate64 as fallocate; -#[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] -#[cfg(any(linux_like, target_os = "aix"))] -pub(super) use libc::open64 as open; -#[cfg(any(linux_kernel, target_os = "aix", target_os = "l4re"))] -pub(super) use libc::posix_fallocate64 as posix_fallocate; -#[cfg(any(all(linux_like, not(target_os = "android")), target_os = "aix"))] -pub(super) use libc::{blkcnt64_t as blkcnt_t, rlim64_t as rlim_t}; -#[cfg(target_os = "aix")] -pub(super) use libc::{ - blksize64_t as blksize_t, fstat64 as fstat, fstatfs64 as fstatfs, fstatvfs64 as fstatvfs, - ftruncate64 as ftruncate, getrlimit64 as getrlimit, ino_t, lseek64 as lseek, mmap, - off64_t as off_t, openat, posix_fadvise64 as posix_fadvise, preadv, pwritev, - rlimit64 as rlimit, setrlimit64 as setrlimit, stat64at as fstatat, statfs64 as statfs, - statvfs64 as statvfs, RLIM_INFINITY, -}; -#[cfg(linux_like)] -pub(super) use libc::{ - fstat64 as fstat, fstatat64 as fstatat, fstatfs64 as fstatfs, fstatvfs64 as fstatvfs, - ftruncate64 as ftruncate, getrlimit64 as getrlimit, ino64_t as ino_t, lseek64 as lseek, - mmap64 as mmap, off64_t as off_t, openat64 as openat, posix_fadvise64 as posix_fadvise, - rlimit64 as rlimit, setrlimit64 as setrlimit, statfs64 as statfs, statvfs64 as statvfs, - RLIM64_INFINITY as RLIM_INFINITY, -}; -#[cfg(apple)] -pub(super) use libc::{ - host_info64_t as host_info_t, host_statistics64 as host_statistics, - vm_statistics64_t as vm_statistics_t, -}; -#[cfg(not(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) -)))] -#[cfg(any(linux_like, target_os = "aix"))] -pub(super) use libc::{lstat64 as lstat, stat64 as stat}; -#[cfg(any(linux_kernel, target_os = "aix", target_os = "emscripten"))] -pub(super) use libc::{pread64 as pread, pwrite64 as pwrite}; -#[cfg(any(target_os = "linux", target_os = "emscripten"))] -pub(super) use libc::{preadv64 as preadv, pwritev64 as pwritev}; - -#[cfg(all(target_os = "linux", target_env = "gnu"))] -pub(super) unsafe fn prlimit( - pid: libc::pid_t, - resource: libc::__rlimit_resource_t, - new_limit: *const libc::rlimit64, - old_limit: *mut libc::rlimit64, -) -> libc::c_int { - // `prlimit64` wasn't supported in glibc until 2.13. - weak_or_syscall! { - fn prlimit64( - pid: libc::pid_t, - resource: libc::__rlimit_resource_t, - new_limit: *const libc::rlimit64, - old_limit: *mut libc::rlimit64 - ) via SYS_prlimit64 -> libc::c_int - } - - prlimit64(pid, resource, new_limit, old_limit) -} - -#[cfg(all(target_os = "linux", target_env = "musl"))] -pub(super) unsafe fn prlimit( - pid: libc::pid_t, - resource: libc::c_int, - new_limit: *const libc::rlimit64, - old_limit: *mut libc::rlimit64, -) -> libc::c_int { - weak_or_syscall! { - fn prlimit64( - pid: libc::pid_t, - resource: libc::c_int, - new_limit: *const libc::rlimit64, - old_limit: *mut libc::rlimit64 - ) via SYS_prlimit64 -> libc::c_int - } - - prlimit64(pid, resource, new_limit, old_limit) -} - -#[cfg(target_os = "android")] -pub(super) unsafe fn prlimit( - pid: libc::pid_t, - resource: libc::c_int, - new_limit: *const libc::rlimit64, - old_limit: *mut libc::rlimit64, -) -> libc::c_int { - weak_or_syscall! { - fn prlimit64( - pid: libc::pid_t, - resource: libc::c_int, - new_limit: *const libc::rlimit64, - old_limit: *mut libc::rlimit64 - ) via SYS_prlimit64 -> libc::c_int - } - - prlimit64(pid, resource, new_limit, old_limit) -} - -// 64-bit offsets on 32-bit platforms are passed in endianness-specific -// lo/hi pairs. See src/backend/linux_raw/conv.rs for details. -#[cfg(all(linux_kernel, target_endian = "little", target_pointer_width = "32"))] -fn lo(x: i64) -> usize { - (x >> 32) as usize -} -#[cfg(all(linux_kernel, target_endian = "little", target_pointer_width = "32"))] -fn hi(x: i64) -> usize { - x as usize -} -#[cfg(all(linux_kernel, target_endian = "big", target_pointer_width = "32"))] -fn lo(x: i64) -> usize { - x as usize -} -#[cfg(all(linux_kernel, target_endian = "big", target_pointer_width = "32"))] -fn hi(x: i64) -> usize { - (x >> 32) as usize -} - -#[cfg(target_os = "android")] -mod readwrite_pv64 { - use super::*; - - pub(in super::super) unsafe fn preadv64( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off64_t, - ) -> libc::ssize_t { - // Older Android libc lacks `preadv64`, so use the `weak!` mechanism to - // test for it, and call back to `libc::syscall`. We don't use - // `weak_or_syscall` here because we need to pass the 64-bit offset - // specially. - weak! { - fn preadv64(libc::c_int, *const libc::iovec, libc::c_int, libc::off64_t) -> libc::ssize_t - } - if let Some(fun) = preadv64.get() { - fun(fd, iov, iovcnt, offset) - } else { - #[cfg(target_pointer_width = "32")] - { - syscall! { - fn preadv( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset_hi: usize, - offset_lo: usize - ) via SYS_preadv -> libc::ssize_t - } - preadv(fd, iov, iovcnt, hi(offset), lo(offset)) - } - #[cfg(target_pointer_width = "64")] - { - syscall! { - fn preadv( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off_t - ) via SYS_preadv -> libc::ssize_t - } - preadv(fd, iov, iovcnt, offset) - } - } - } - pub(in super::super) unsafe fn pwritev64( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off64_t, - ) -> libc::ssize_t { - // See the comments in `preadv64`. - weak! { - fn pwritev64(libc::c_int, *const libc::iovec, libc::c_int, libc::off64_t) -> libc::ssize_t - } - if let Some(fun) = pwritev64.get() { - fun(fd, iov, iovcnt, offset) - } else { - #[cfg(target_pointer_width = "32")] - { - syscall! { - fn pwritev( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset_hi: usize, - offset_lo: usize - ) via SYS_pwritev -> libc::ssize_t - } - pwritev(fd, iov, iovcnt, hi(offset), lo(offset)) - } - #[cfg(target_pointer_width = "64")] - { - syscall! { - fn pwritev( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off_t - ) via SYS_pwritev -> libc::ssize_t - } - pwritev(fd, iov, iovcnt, offset) - } - } - } -} -#[cfg(target_os = "android")] -pub(super) use readwrite_pv64::{preadv64 as preadv, pwritev64 as pwritev}; - -// macOS added preadv and pwritev in version 11.0 -#[cfg(apple)] -mod readwrite_pv { - weakcall! { - pub(in super::super) fn preadv( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off_t - ) -> libc::ssize_t - } - weakcall! { - pub(in super::super) fn pwritev( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, offset: libc::off_t - ) -> libc::ssize_t - } -} -#[cfg(apple)] -pub(super) use readwrite_pv::{preadv, pwritev}; - -// glibc added `preadv64v2` and `pwritev64v2` in version 2.26. -#[cfg(all(target_os = "linux", target_env = "gnu"))] -mod readwrite_pv64v2 { - use super::*; - - pub(in super::super) unsafe fn preadv64v2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off64_t, - flags: libc::c_int, - ) -> libc::ssize_t { - // Older glibc lacks `preadv64v2`, so use the `weak!` mechanism to - // test for it, and call back to `libc::syscall`. We don't use - // `weak_or_syscall` here because we need to pass the 64-bit offset - // specially. - weak! { - fn preadv64v2(libc::c_int, *const libc::iovec, libc::c_int, libc::off64_t, libc::c_int) -> libc::ssize_t - } - if let Some(fun) = preadv64v2.get() { - fun(fd, iov, iovcnt, offset, flags) - } else { - #[cfg(target_pointer_width = "32")] - { - syscall! { - fn preadv2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset_hi: usize, - offset_lo: usize, - flags: libc::c_int - ) via SYS_preadv2 -> libc::ssize_t - } - preadv2(fd, iov, iovcnt, hi(offset), lo(offset), flags) - } - #[cfg(target_pointer_width = "64")] - { - syscall! { - fn preadv2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off_t, - flags: libc::c_int - ) via SYS_preadv2 -> libc::ssize_t - } - preadv2(fd, iov, iovcnt, offset, flags) - } - } - } - pub(in super::super) unsafe fn pwritev64v2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off64_t, - flags: libc::c_int, - ) -> libc::ssize_t { - // See the comments in `preadv64v2`. - weak! { - fn pwritev64v2(libc::c_int, *const libc::iovec, libc::c_int, libc::off64_t, libc::c_int) -> libc::ssize_t - } - if let Some(fun) = pwritev64v2.get() { - fun(fd, iov, iovcnt, offset, flags) - } else { - #[cfg(target_pointer_width = "32")] - { - syscall! { - fn pwritev2( - fd: libc::c_int, - iov: *const libc::iovec, - iovec: libc::c_int, - offset_hi: usize, - offset_lo: usize, - flags: libc::c_int - ) via SYS_pwritev2 -> libc::ssize_t - } - pwritev2(fd, iov, iovcnt, hi(offset), lo(offset), flags) - } - #[cfg(target_pointer_width = "64")] - { - syscall! { - fn pwritev2( - fd: libc::c_int, - iov:*const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off_t, - flags: libc::c_int - ) via SYS_pwritev2 -> libc::ssize_t - } - pwritev2(fd, iov, iovcnt, offset, flags) - } - } - } -} -#[cfg(all(target_os = "linux", target_env = "gnu"))] -pub(super) use readwrite_pv64v2::{preadv64v2 as preadv2, pwritev64v2 as pwritev2}; - -// On non-glibc, assume we don't have `pwritev2`/`preadv2` in libc and use -// `c::syscall` instead. -#[cfg(any( - target_os = "android", - all(target_os = "linux", not(target_env = "gnu")), -))] -mod readwrite_pv64v2 { - use super::*; - - pub(in super::super) unsafe fn preadv64v2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off64_t, - flags: libc::c_int, - ) -> libc::ssize_t { - #[cfg(target_pointer_width = "32")] - { - syscall! { - fn preadv2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset_hi: usize, - offset_lo: usize, - flags: libc::c_int - ) via SYS_preadv2 -> libc::ssize_t - } - preadv2(fd, iov, iovcnt, hi(offset), lo(offset), flags) - } - #[cfg(target_pointer_width = "64")] - { - syscall! { - fn preadv2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off_t, - flags: libc::c_int - ) via SYS_preadv2 -> libc::ssize_t - } - preadv2(fd, iov, iovcnt, offset, flags) - } - } - pub(in super::super) unsafe fn pwritev64v2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off64_t, - flags: libc::c_int, - ) -> libc::ssize_t { - #[cfg(target_pointer_width = "32")] - { - syscall! { - fn pwritev2( - fd: libc::c_int, - iov: *const libc::iovec, - iovcnt: libc::c_int, - offset_hi: usize, - offset_lo: usize, - flags: libc::c_int - ) via SYS_pwritev2 -> libc::ssize_t - } - pwritev2(fd, iov, iovcnt, hi(offset), lo(offset), flags) - } - #[cfg(target_pointer_width = "64")] - { - syscall! { - fn pwritev2( - fd: libc::c_int, - iov:*const libc::iovec, - iovcnt: libc::c_int, - offset: libc::off_t, - flags: libc::c_int - ) via SYS_pwritev2 -> libc::ssize_t - } - pwritev2(fd, iov, iovcnt, offset, flags) - } - } -} -#[cfg(any( - target_os = "android", - all(target_os = "linux", not(target_env = "gnu")), -))] -pub(super) use readwrite_pv64v2::{preadv64v2 as preadv2, pwritev64v2 as pwritev2}; diff --git a/third_party/rust/rustix/src/backend/libc/conv.rs b/third_party/rust/rustix/src/backend/libc/conv.rs deleted file mode 100644 index 19bf0a7db35c..000000000000 --- a/third_party/rust/rustix/src/backend/libc/conv.rs +++ /dev/null @@ -1,240 +0,0 @@ -//! Libc call arguments and return values are often things like `c_int`, -//! `c_uint`, or libc-specific pointer types. This module provides functions -//! for converting between rustix's types and libc types. - -use super::c; -#[cfg(all(feature = "alloc", not(any(windows, target_os = "espidf"))))] -use super::fd::IntoRawFd; -use super::fd::{AsRawFd, BorrowedFd, FromRawFd, LibcFd, OwnedFd, RawFd}; -#[cfg(not(windows))] -use crate::ffi::CStr; -use crate::io; - -#[cfg(not(windows))] -#[inline] -pub(super) fn c_str(c: &CStr) -> *const c::c_char { - c.as_ptr() -} - -#[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(super) fn no_fd() -> LibcFd { - -1 -} - -#[inline] -pub(super) fn borrowed_fd(fd: BorrowedFd<'_>) -> LibcFd { - fd.as_raw_fd() as LibcFd -} - -#[cfg(all( - feature = "alloc", - not(any(windows, target_os = "espidf", target_os = "redox")) -))] -#[inline] -pub(super) fn owned_fd(fd: OwnedFd) -> LibcFd { - fd.into_raw_fd() as LibcFd -} - -#[inline] -pub(super) fn ret(raw: c::c_int) -> io::Result<()> { - if raw == 0 { - Ok(()) - } else { - Err(io::Errno::last_os_error()) - } -} - -#[cfg(apple)] -#[inline] -pub(super) fn nonnegative_ret(raw: c::c_int) -> io::Result<()> { - if raw >= 0 { - Ok(()) - } else { - Err(io::Errno::last_os_error()) - } -} - -#[cfg(not(any(windows, target_os = "wasi")))] -#[inline] -pub(super) unsafe fn ret_infallible(raw: c::c_int) { - debug_assert_eq!(raw, 0, "unexpected error: {:?}", io::Errno::last_os_error()); -} - -#[inline] -pub(super) fn ret_c_int(raw: c::c_int) -> io::Result { - if raw == -1 { - Err(io::Errno::last_os_error()) - } else { - Ok(raw) - } -} - -#[cfg(linux_kernel)] -#[inline] -pub(super) fn ret_u32(raw: c::c_int) -> io::Result { - if raw == -1 { - Err(io::Errno::last_os_error()) - } else { - Ok(raw as u32) - } -} - -#[inline] -pub(super) fn ret_usize(raw: c::ssize_t) -> io::Result { - if raw == -1 { - Err(io::Errno::last_os_error()) - } else { - debug_assert!(raw >= 0); - Ok(raw as usize) - } -} - -#[cfg(not(windows))] -#[cfg(feature = "fs")] -#[inline] -pub(super) fn ret_off_t(raw: c::off_t) -> io::Result { - if raw == -1 { - Err(io::Errno::last_os_error()) - } else { - Ok(raw) - } -} - -#[cfg(not(any(windows, target_os = "wasi")))] -#[inline] -pub(super) fn ret_pid_t(raw: c::pid_t) -> io::Result { - if raw == -1 { - Err(io::Errno::last_os_error()) - } else { - Ok(raw) - } -} - -/// Convert a `c_int` returned from a libc function to an `OwnedFd`, if valid. -/// -/// # Safety -/// -/// The caller must ensure that this is the return value of a libc function -/// which returns an owned file descriptor. -#[inline] -pub(super) unsafe fn ret_owned_fd(raw: LibcFd) -> io::Result { - if raw == !0 { - Err(io::Errno::last_os_error()) - } else { - Ok(OwnedFd::from_raw_fd(raw as RawFd)) - } -} - -#[cfg(not(any(windows, target_os = "wasi")))] -#[inline] -pub(super) fn ret_discarded_fd(raw: LibcFd) -> io::Result<()> { - if raw == !0 { - Err(io::Errno::last_os_error()) - } else { - Ok(()) - } -} - -#[cfg(all(feature = "alloc", not(any(windows, target_os = "wasi"))))] -#[inline] -pub(super) fn ret_discarded_char_ptr(raw: *mut c::c_char) -> io::Result<()> { - if raw.is_null() { - Err(io::Errno::last_os_error()) - } else { - Ok(()) - } -} - -/// Convert the buffer-length argument value of a `send` or `recv` call. -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -#[inline] -pub(super) fn send_recv_len(len: usize) -> usize { - len -} - -/// Convert the buffer-length argument value of a `send` or `recv` call. -#[cfg(windows)] -#[inline] -pub(super) fn send_recv_len(len: usize) -> i32 { - // On Windows, the length argument has type `i32`; saturate the length, - // since `send` and `recv` are allowed to send and recv less data than - // requested. - len.try_into().unwrap_or(i32::MAX) -} - -/// Convert the return value of a `send` or `recv` call. -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -#[inline] -pub(super) fn ret_send_recv(len: isize) -> io::Result { - ret_usize(len) -} - -/// Convert the return value of a `send` or `recv` call. -#[cfg(windows)] -#[inline] -pub(super) fn ret_send_recv(len: i32) -> io::Result { - ret_usize(len as isize) -} - -/// Convert the value to the `msg_iovlen` field of a `msghdr` struct. -#[cfg(all( - not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")), - any( - target_os = "android", - all(target_os = "linux", not(target_env = "musl")) - ) -))] -#[inline] -pub(super) fn msg_iov_len(len: usize) -> c::size_t { - len -} - -/// Convert the value to the `msg_iovlen` field of a `msghdr` struct. -#[cfg(all( - not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")), - not(any( - target_os = "android", - all(target_os = "linux", not(target_env = "musl")) - )) -))] -#[inline] -pub(crate) fn msg_iov_len(len: usize) -> c::c_int { - len.try_into().unwrap_or(c::c_int::MAX) -} - -/// Convert the value to a `socklen_t`. -#[cfg(any( - bsd, - solarish, - target_env = "musl", - target_os = "aix", - target_os = "emscripten", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", -))] -#[inline] -pub(crate) fn msg_control_len(len: usize) -> c::socklen_t { - len.try_into().unwrap_or(c::socklen_t::MAX) -} - -/// Convert the value to a `size_t`. -#[cfg(not(any( - bsd, - solarish, - windows, - target_env = "musl", - target_os = "aix", - target_os = "emscripten", - target_os = "espidf", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub(crate) fn msg_control_len(len: usize) -> c::size_t { - len -} diff --git a/third_party/rust/rustix/src/backend/libc/event/epoll.rs b/third_party/rust/rustix/src/backend/libc/event/epoll.rs deleted file mode 100644 index a6087a167131..000000000000 --- a/third_party/rust/rustix/src/backend/libc/event/epoll.rs +++ /dev/null @@ -1,492 +0,0 @@ -//! epoll support. -//! -//! This is an experiment, and it isn't yet clear whether epoll is the right -//! level of abstraction at which to introduce safety. But it works fairly well -//! in simple examples 🙂. -//! -//! # Examples -//! -//! ```no_run -//! # #[cfg(feature = "net")] -//! # fn main() -> std::io::Result<()> { -//! use rustix::event::epoll; -//! use rustix::fd::AsFd; -//! use rustix::io::{ioctl_fionbio, read, write}; -//! use rustix::net::{ -//! accept, bind_v4, listen, socket, AddressFamily, Ipv4Addr, SocketAddrV4, SocketType, -//! }; -//! use std::collections::HashMap; -//! use std::os::unix::io::AsRawFd; -//! -//! // Create a socket and listen on it. -//! let listen_sock = socket(AddressFamily::INET, SocketType::STREAM, None)?; -//! bind_v4(&listen_sock, &SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0))?; -//! listen(&listen_sock, 1)?; -//! -//! // Create an epoll object. Using `Owning` here means the epoll object will -//! // take ownership of the file descriptors registered with it. -//! let epoll = epoll::create(epoll::CreateFlags::CLOEXEC)?; -//! -//! // Register the socket with the epoll object. -//! epoll::add( -//! &epoll, -//! &listen_sock, -//! epoll::EventData::new_u64(1), -//! epoll::EventFlags::IN, -//! )?; -//! -//! // Keep track of the sockets we've opened. -//! let mut next_id = epoll::EventData::new_u64(2); -//! let mut sockets = HashMap::new(); -//! -//! // Process events. -//! let mut event_list = epoll::EventVec::with_capacity(4); -//! loop { -//! epoll::wait(&epoll, &mut event_list, -1)?; -//! for event in &event_list { -//! let target = event.data; -//! if target.u64() == 1 { -//! // Accept a new connection, set it to non-blocking, and -//! // register to be notified when it's ready to write to. -//! let conn_sock = accept(&listen_sock)?; -//! ioctl_fionbio(&conn_sock, true)?; -//! epoll::add( -//! &epoll, -//! &conn_sock, -//! next_id, -//! epoll::EventFlags::OUT | epoll::EventFlags::ET, -//! )?; -//! -//! // Keep track of the socket. -//! sockets.insert(next_id, conn_sock); -//! next_id = epoll::EventData::new_u64(next_id.u64() + 1); -//! } else { -//! // Write a message to the stream and then unregister it. -//! let target = sockets.remove(&target).unwrap(); -//! write(&target, b"hello\n")?; -//! let _ = epoll::delete(&epoll, &target)?; -//! } -//! } -//! } -//! # } -//! # #[cfg(not(feature = "net"))] -//! # fn main() {} -//! ``` - -use crate::backend::c; -use crate::backend::conv::{ret, ret_owned_fd, ret_u32}; -use crate::fd::{AsFd, AsRawFd, OwnedFd}; -use crate::io; -use crate::utils::as_mut_ptr; -use alloc::vec::Vec; -use bitflags::bitflags; -use core::ffi::c_void; -use core::hash::{Hash, Hasher}; -use core::ptr::null_mut; -use core::slice; - -bitflags! { - /// `EPOLL_*` for use with [`new`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CreateFlags: u32 { - /// `EPOLL_CLOEXEC` - const CLOEXEC = bitcast!(c::EPOLL_CLOEXEC); - - /// - const _ = !0; - } -} - -bitflags! { - /// `EPOLL*` for use with [`add`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct EventFlags: u32 { - /// `EPOLLIN` - const IN = bitcast!(c::EPOLLIN); - - /// `EPOLLOUT` - const OUT = bitcast!(c::EPOLLOUT); - - /// `EPOLLPRI` - const PRI = bitcast!(c::EPOLLPRI); - - /// `EPOLLERR` - const ERR = bitcast!(c::EPOLLERR); - - /// `EPOLLHUP` - const HUP = bitcast!(c::EPOLLHUP); - - /// `EPOLLRDNORM` - const RDNORM = bitcast!(c::EPOLLRDNORM); - - /// `EPOLLRDBAND` - const RDBAND = bitcast!(c::EPOLLRDBAND); - - /// `EPOLLWRNORM` - const WRNORM = bitcast!(c::EPOLLWRNORM); - - /// `EPOLLWRBAND` - const WRBAND = bitcast!(c::EPOLLWRBAND); - - /// `EPOLLMSG` - const MSG = bitcast!(c::EPOLLMSG); - - /// `EPOLLRDHUP` - const RDHUP = bitcast!(c::EPOLLRDHUP); - - /// `EPOLLET` - const ET = bitcast!(c::EPOLLET); - - /// `EPOLLONESHOT` - const ONESHOT = bitcast!(c::EPOLLONESHOT); - - /// `EPOLLWAKEUP` - const WAKEUP = bitcast!(c::EPOLLWAKEUP); - - /// `EPOLLEXCLUSIVE` - #[cfg(not(target_os = "android"))] - const EXCLUSIVE = bitcast!(c::EPOLLEXCLUSIVE); - - /// - const _ = !0; - } -} - -/// `epoll_create1(flags)`—Creates a new epoll object. -/// -/// Use the [`CreateFlags::CLOEXEC`] flag to prevent the resulting file -/// descriptor from being implicitly passed across `exec` boundaries. -#[inline] -#[doc(alias = "epoll_create1")] -pub fn create(flags: CreateFlags) -> io::Result { - // SAFETY: We're calling `epoll_create1` via FFI and we know how it - // behaves. - unsafe { ret_owned_fd(c::epoll_create1(bitflags_bits!(flags))) } -} - -/// `epoll_ctl(self, EPOLL_CTL_ADD, data, event)`—Adds an element to an epoll -/// object. -/// -/// This registers interest in any of the events set in `events` occurring on -/// the file descriptor associated with `data`. -/// -/// If [`delete`] is not called on the I/O source passed into this function -/// before the I/O source is `close`d, then the `epoll` will act as if the I/O -/// source is still registered with it. This can lead to spurious events being -/// returned from [`wait`]. If a file descriptor is an -/// `Arc`, then `epoll` can be thought to maintain a -/// `Weak` to the file descriptor. -#[doc(alias = "epoll_ctl")] -pub fn add( - epoll: impl AsFd, - source: impl AsFd, - data: EventData, - event_flags: EventFlags, -) -> io::Result<()> { - // SAFETY: We're calling `epoll_ctl` via FFI and we know how it - // behaves. We use our own `Event` struct instead of libc's because - // ours preserves pointer provenance instead of just using a `u64`, - // and we have tests elsehwere for layout equivalence. - unsafe { - let raw_fd = source.as_fd().as_raw_fd(); - ret(c::epoll_ctl( - epoll.as_fd().as_raw_fd(), - c::EPOLL_CTL_ADD, - raw_fd, - as_mut_ptr(&mut Event { - flags: event_flags, - data, - }) - .cast(), - )) - } -} - -/// `epoll_ctl(self, EPOLL_CTL_MOD, target, event)`—Modifies an element in a -/// given epoll object. -/// -/// This sets the events of interest with `target` to `events`. -#[doc(alias = "epoll_ctl")] -pub fn modify( - epoll: impl AsFd, - source: impl AsFd, - data: EventData, - event_flags: EventFlags, -) -> io::Result<()> { - let raw_fd = source.as_fd().as_raw_fd(); - - // SAFETY: We're calling `epoll_ctl` via FFI and we know how it - // behaves. We use our own `Event` struct instead of libc's because - // ours preserves pointer provenance instead of just using a `u64`, - // and we have tests elsehwere for layout equivalence. - unsafe { - ret(c::epoll_ctl( - epoll.as_fd().as_raw_fd(), - c::EPOLL_CTL_MOD, - raw_fd, - as_mut_ptr(&mut Event { - flags: event_flags, - data, - }) - .cast(), - )) - } -} - -/// `epoll_ctl(self, EPOLL_CTL_DEL, target, NULL)`—Removes an element in a -/// given epoll object. -#[doc(alias = "epoll_ctl")] -pub fn delete(epoll: impl AsFd, source: impl AsFd) -> io::Result<()> { - // SAFETY: We're calling `epoll_ctl` via FFI and we know how it - // behaves. - unsafe { - let raw_fd = source.as_fd().as_raw_fd(); - ret(c::epoll_ctl( - epoll.as_fd().as_raw_fd(), - c::EPOLL_CTL_DEL, - raw_fd, - null_mut(), - )) - } -} - -/// `epoll_wait(self, events, timeout)`—Waits for registered events of -/// interest. -/// -/// For each event of interest, an element is written to `events`. On -/// success, this returns the number of written elements. -pub fn wait(epoll: impl AsFd, event_list: &mut EventVec, timeout: c::c_int) -> io::Result<()> { - // SAFETY: We're calling `epoll_wait` via FFI and we know how it - // behaves. - unsafe { - event_list.events.set_len(0); - let nfds = ret_u32(c::epoll_wait( - epoll.as_fd().as_raw_fd(), - event_list.events.as_mut_ptr().cast::(), - event_list.events.capacity().try_into().unwrap_or(i32::MAX), - timeout, - ))?; - event_list.events.set_len(nfds as usize); - } - - Ok(()) -} - -/// An iterator over the `Event`s in an `EventVec`. -pub struct Iter<'a> { - /// Use `Copied` to copy the struct, since `Event` is `packed` on some - /// platforms, and it's common for users to directly destructure it, - /// which would lead to errors about forming references to packed fields. - iter: core::iter::Copied>, -} - -impl<'a> Iterator for Iter<'a> { - type Item = Event; - - #[inline] - fn next(&mut self) -> Option { - self.iter.next() - } -} - -/// A record of an event that occurred. -#[repr(C)] -#[cfg_attr( - any( - all( - target_arch = "x86", - not(target_env = "musl"), - not(target_os = "android"), - ), - target_arch = "x86_64", - ), - repr(packed) -)] -#[derive(Copy, Clone, Eq, PartialEq, Hash)] -pub struct Event { - /// Which specific event(s) occurred. - pub flags: EventFlags, - /// User data. - pub data: EventData, -} - -/// Data assocated with an [`Event`]. This can either be a 64-bit integer value -/// or a pointer which preserves pointer provenance. -#[repr(C)] -#[derive(Copy, Clone)] -pub union EventData { - /// A 64-bit integer value. - as_u64: u64, - - /// A `*mut c_void` which preserves pointer provenance, extended to be - /// 64-bit so that if we read the value as a `u64` union field, we don't - /// get uninitialized memory. - sixty_four_bit_pointer: SixtyFourBitPointer, -} - -impl EventData { - /// Construct a new value containing a `u64`. - #[inline] - pub const fn new_u64(value: u64) -> Self { - Self { as_u64: value } - } - - /// Construct a new value containing a `*mut c_void`. - #[inline] - pub const fn new_ptr(value: *mut c_void) -> Self { - Self { - sixty_four_bit_pointer: SixtyFourBitPointer { - pointer: value, - #[cfg(target_pointer_width = "32")] - _padding: 0, - }, - } - } - - /// Return the value as a `u64`. - /// - /// If the stored value was a pointer, the pointer is zero-extended to a - /// `u64`. - #[inline] - pub fn u64(self) -> u64 { - unsafe { self.as_u64 } - } - - /// Return the value as a `*mut c_void`. - /// - /// If the stored value was a `u64`, the least-significant bits of the - /// `u64` are returned as a pointer value. - #[inline] - pub fn ptr(self) -> *mut c_void { - unsafe { self.sixty_four_bit_pointer.pointer } - } -} - -impl PartialEq for EventData { - #[inline] - fn eq(&self, other: &Self) -> bool { - self.u64() == other.u64() - } -} - -impl Eq for EventData {} - -impl Hash for EventData { - #[inline] - fn hash(&self, state: &mut H) { - self.u64().hash(state) - } -} - -#[repr(C)] -#[derive(Copy, Clone)] -struct SixtyFourBitPointer { - #[cfg(target_endian = "big")] - #[cfg(target_pointer_width = "32")] - _padding: u32, - - pointer: *mut c_void, - - #[cfg(target_endian = "little")] - #[cfg(target_pointer_width = "32")] - _padding: u32, -} - -/// A vector of `Event`s, plus context for interpreting them. -pub struct EventVec { - events: Vec, -} - -impl EventVec { - /// Constructs an `EventVec` from raw pointer, length, and capacity. - /// - /// # Safety - /// - /// This function calls [`Vec::from_raw_parts`] with its arguments. - /// - /// [`Vec::from_raw_parts`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.from_raw_parts - #[inline] - pub unsafe fn from_raw_parts(ptr: *mut Event, len: usize, capacity: usize) -> Self { - Self { - events: Vec::from_raw_parts(ptr, len, capacity), - } - } - - /// Constructs an `EventVec` with memory for `capacity` `Event`s. - #[inline] - pub fn with_capacity(capacity: usize) -> Self { - Self { - events: Vec::with_capacity(capacity), - } - } - - /// Returns the current `Event` capacity of this `EventVec`. - #[inline] - pub fn capacity(&self) -> usize { - self.events.capacity() - } - - /// Reserves enough memory for at least `additional` more `Event`s. - #[inline] - pub fn reserve(&mut self, additional: usize) { - self.events.reserve(additional); - } - - /// Reserves enough memory for exactly `additional` more `Event`s. - #[inline] - pub fn reserve_exact(&mut self, additional: usize) { - self.events.reserve_exact(additional); - } - - /// Clears all the `Events` out of this `EventVec`. - #[inline] - pub fn clear(&mut self) { - self.events.clear(); - } - - /// Shrinks the capacity of this `EventVec` as much as possible. - #[inline] - pub fn shrink_to_fit(&mut self) { - self.events.shrink_to_fit(); - } - - /// Returns an iterator over the `Event`s in this `EventVec`. - #[inline] - pub fn iter(&self) -> Iter<'_> { - Iter { - iter: self.events.iter().copied(), - } - } - - /// Returns the number of `Event`s logically contained in this `EventVec`. - #[inline] - pub fn len(&mut self) -> usize { - self.events.len() - } - - /// Tests whether this `EventVec` is logically empty. - #[inline] - pub fn is_empty(&mut self) -> bool { - self.events.is_empty() - } -} - -impl<'a> IntoIterator for &'a EventVec { - type IntoIter = Iter<'a>; - type Item = Event; - - #[inline] - fn into_iter(self) -> Self::IntoIter { - self.iter() - } -} - -#[test] -fn test_epoll_layouts() { - check_renamed_type!(Event, epoll_event); - check_renamed_type!(Event, epoll_event); - check_renamed_struct_renamed_field!(Event, epoll_event, flags, events); - check_renamed_struct_renamed_field!(Event, epoll_event, data, u64); -} diff --git a/third_party/rust/rustix/src/backend/libc/event/mod.rs b/third_party/rust/rustix/src/backend/libc/event/mod.rs deleted file mode 100644 index 44e8a090add8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/event/mod.rs +++ /dev/null @@ -1,9 +0,0 @@ -pub(crate) mod poll_fd; -#[cfg(not(windows))] -pub(crate) mod types; - -#[cfg_attr(windows, path = "windows_syscalls.rs")] -pub(crate) mod syscalls; - -#[cfg(all(feature = "alloc", linux_kernel))] -pub mod epoll; diff --git a/third_party/rust/rustix/src/backend/libc/event/poll_fd.rs b/third_party/rust/rustix/src/backend/libc/event/poll_fd.rs deleted file mode 100644 index 3f795d5aaa7e..000000000000 --- a/third_party/rust/rustix/src/backend/libc/event/poll_fd.rs +++ /dev/null @@ -1,142 +0,0 @@ -use crate::backend::c; -use crate::backend::conv::borrowed_fd; -use crate::backend::fd::{AsFd, AsRawFd, BorrowedFd, LibcFd}; -use bitflags::bitflags; -use core::marker::PhantomData; -#[cfg(windows)] -use { - crate::backend::fd::{AsSocket, RawFd}, - core::fmt, -}; - -bitflags! { - /// `POLL*` flags for use with [`poll`]. - /// - /// [`poll`]: crate::io::poll - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PollFlags: c::c_short { - /// `POLLIN` - const IN = c::POLLIN; - /// `POLLPRI` - #[cfg(not(target_os = "wasi"))] - const PRI = c::POLLPRI; - /// `POLLOUT` - const OUT = c::POLLOUT; - /// `POLLRDNORM` - const RDNORM = c::POLLRDNORM; - /// `POLLWRNORM` - #[cfg(not(target_os = "l4re"))] - const WRNORM = c::POLLWRNORM; - /// `POLLRDBAND` - #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] - const RDBAND = c::POLLRDBAND; - /// `POLLWRBAND` - #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] - const WRBAND = c::POLLWRBAND; - /// `POLLERR` - const ERR = c::POLLERR; - /// `POLLHUP` - const HUP = c::POLLHUP; - /// `POLLNVAL` - #[cfg(not(target_os = "espidf"))] - const NVAL = c::POLLNVAL; - /// `POLLRDHUP` - #[cfg(all( - linux_kernel, - not(any(target_arch = "sparc", target_arch = "sparc64"))), - )] - const RDHUP = c::POLLRDHUP; - - /// - const _ = !0; - } -} - -/// `struct pollfd`—File descriptor and flags for use with [`poll`]. -/// -/// [`poll`]: crate::event::poll -#[doc(alias = "pollfd")] -#[derive(Clone)] -#[cfg_attr(not(windows), derive(Debug))] -#[repr(transparent)] -pub struct PollFd<'fd> { - pollfd: c::pollfd, - _phantom: PhantomData>, -} - -#[cfg(windows)] -impl<'fd> fmt::Debug for PollFd<'fd> { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - fmt.debug_struct("pollfd") - .field("fd", &self.pollfd.fd) - .field("events", &self.pollfd.events) - .field("revents", &self.pollfd.revents) - .finish() - } -} - -impl<'fd> PollFd<'fd> { - /// Constructs a new `PollFd` holding `fd` and `events`. - #[inline] - pub fn new(fd: &'fd Fd, events: PollFlags) -> Self { - Self::from_borrowed_fd(fd.as_fd(), events) - } - - /// Sets the contained file descriptor to `fd`. - #[inline] - pub fn set_fd(&mut self, fd: &'fd Fd) { - self.pollfd.fd = fd.as_fd().as_raw_fd() as LibcFd; - } - - /// Clears the ready events. - #[inline] - pub fn clear_revents(&mut self) { - self.pollfd.revents = 0; - } - - /// Constructs a new `PollFd` holding `fd` and `events`. - /// - /// This is the same as `new`, but can be used to avoid borrowing the - /// `BorrowedFd`, which can be tricky in situations where the `BorrowedFd` - /// is a temporary. - #[inline] - pub fn from_borrowed_fd(fd: BorrowedFd<'fd>, events: PollFlags) -> Self { - Self { - pollfd: c::pollfd { - fd: borrowed_fd(fd), - events: events.bits(), - revents: 0, - }, - _phantom: PhantomData, - } - } - - /// Returns the ready events. - #[inline] - pub fn revents(&self) -> PollFlags { - // Use `.unwrap()` here because in theory we know we know all the bits - // the OS might set here, but OS's have added extensions in the past. - PollFlags::from_bits(self.pollfd.revents).unwrap() - } -} - -#[cfg(not(windows))] -impl<'fd> AsFd for PollFd<'fd> { - #[inline] - fn as_fd(&self) -> BorrowedFd<'_> { - // SAFETY: Our constructors and `set_fd` require `pollfd.fd` to be - // valid for the `'fd` lifetime. - unsafe { BorrowedFd::borrow_raw(self.pollfd.fd) } - } -} - -#[cfg(windows)] -impl<'fd> AsSocket for PollFd<'fd> { - #[inline] - fn as_socket(&self) -> BorrowedFd<'_> { - // SAFETY: Our constructors and `set_fd` require `pollfd.fd` to be - // valid for the `'fd` lifetime. - unsafe { BorrowedFd::borrow_raw(self.pollfd.fd as RawFd) } - } -} diff --git a/third_party/rust/rustix/src/backend/libc/event/syscalls.rs b/third_party/rust/rustix/src/backend/libc/event/syscalls.rs deleted file mode 100644 index f2dcdf5ad2cd..000000000000 --- a/third_party/rust/rustix/src/backend/libc/event/syscalls.rs +++ /dev/null @@ -1,183 +0,0 @@ -//! libc syscalls supporting `rustix::event`. - -use crate::backend::c; -use crate::backend::conv::ret_c_int; -#[cfg(any(apple, netbsdlike, target_os = "dragonfly", target_os = "solaris"))] -use crate::backend::conv::ret_owned_fd; -use crate::event::PollFd; -#[cfg(any(linux_kernel, bsd, solarish, target_os = "espidf"))] -use crate::fd::OwnedFd; -use crate::io; -#[cfg(any(bsd, solarish))] -use {crate::backend::conv::borrowed_fd, crate::fd::BorrowedFd, core::mem::MaybeUninit}; -#[cfg(solarish)] -use { - crate::backend::conv::ret, crate::event::port::Event, crate::utils::as_mut_ptr, - core::ptr::null_mut, -}; -#[cfg(any( - linux_kernel, - target_os = "freebsd", - target_os = "illumos", - target_os = "espidf" -))] -use {crate::backend::conv::ret_owned_fd, crate::event::EventfdFlags}; -#[cfg(all(feature = "alloc", bsd))] -use {crate::event::kqueue::Event, crate::utils::as_ptr, core::ptr::null}; - -#[cfg(any( - linux_kernel, - target_os = "freebsd", - target_os = "illumos", - target_os = "espidf" -))] -pub(crate) fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result { - #[cfg(linux_kernel)] - unsafe { - syscall! { - fn eventfd2( - initval: c::c_uint, - flags: c::c_int - ) via SYS_eventfd2 -> c::c_int - } - ret_owned_fd(eventfd2(initval, bitflags_bits!(flags))) - } - - // `eventfd` was added in FreeBSD 13, so it isn't available on FreeBSD 12. - #[cfg(target_os = "freebsd")] - unsafe { - weakcall! { - fn eventfd( - initval: c::c_uint, - flags: c::c_int - ) -> c::c_int - } - ret_owned_fd(eventfd(initval, bitflags_bits!(flags))) - } - - #[cfg(any(target_os = "illumos", target_os = "espidf"))] - unsafe { - ret_owned_fd(c::eventfd(initval, bitflags_bits!(flags))) - } -} - -#[cfg(all(feature = "alloc", bsd))] -pub(crate) fn kqueue() -> io::Result { - unsafe { ret_owned_fd(c::kqueue()) } -} - -#[cfg(all(feature = "alloc", bsd))] -pub(crate) unsafe fn kevent( - kq: BorrowedFd<'_>, - changelist: &[Event], - eventlist: &mut [MaybeUninit], - timeout: Option<&c::timespec>, -) -> io::Result { - ret_c_int(c::kevent( - borrowed_fd(kq), - changelist.as_ptr().cast(), - changelist - .len() - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - eventlist.as_mut_ptr().cast(), - eventlist - .len() - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - timeout.map_or(null(), as_ptr), - )) -} - -#[inline] -pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: c::c_int) -> io::Result { - let nfds = fds - .len() - .try_into() - .map_err(|_convert_err| io::Errno::INVAL)?; - - ret_c_int(unsafe { c::poll(fds.as_mut_ptr().cast(), nfds, timeout) }) - .map(|nready| nready as usize) -} - -#[cfg(solarish)] -pub(crate) fn port_create() -> io::Result { - unsafe { ret_owned_fd(c::port_create()) } -} - -#[cfg(solarish)] -pub(crate) unsafe fn port_associate( - port: BorrowedFd<'_>, - source: c::c_int, - object: c::uintptr_t, - events: c::c_int, - user: *mut c::c_void, -) -> io::Result<()> { - ret(c::port_associate( - borrowed_fd(port), - source, - object, - events, - user, - )) -} - -#[cfg(solarish)] -pub(crate) unsafe fn port_dissociate( - port: BorrowedFd<'_>, - source: c::c_int, - object: c::uintptr_t, -) -> io::Result<()> { - ret(c::port_dissociate(borrowed_fd(port), source, object)) -} - -#[cfg(solarish)] -pub(crate) fn port_get( - port: BorrowedFd<'_>, - timeout: Option<&mut c::timespec>, -) -> io::Result { - let mut event = MaybeUninit::::uninit(); - let timeout = timeout.map_or(null_mut(), as_mut_ptr); - - unsafe { - ret(c::port_get(borrowed_fd(port), event.as_mut_ptr(), timeout))?; - } - - // If we're done, initialize the event and return it. - Ok(Event(unsafe { event.assume_init() })) -} - -#[cfg(all(feature = "alloc", solarish))] -pub(crate) fn port_getn( - port: BorrowedFd<'_>, - timeout: Option<&mut c::timespec>, - events: &mut Vec, - mut nget: u32, -) -> io::Result<()> { - let timeout = timeout.map_or(null_mut(), as_mut_ptr); - unsafe { - ret(c::port_getn( - borrowed_fd(port), - events.as_mut_ptr().cast(), - events.len().try_into().unwrap(), - &mut nget, - timeout, - ))?; - } - - // Update the vector length. - unsafe { - events.set_len(nget.try_into().unwrap()); - } - - Ok(()) -} - -#[cfg(solarish)] -pub(crate) fn port_send( - port: BorrowedFd<'_>, - events: c::c_int, - userdata: *mut c::c_void, -) -> io::Result<()> { - unsafe { ret(c::port_send(borrowed_fd(port), events, userdata)) } -} diff --git a/third_party/rust/rustix/src/backend/libc/event/types.rs b/third_party/rust/rustix/src/backend/libc/event/types.rs deleted file mode 100644 index af052a434190..000000000000 --- a/third_party/rust/rustix/src/backend/libc/event/types.rs +++ /dev/null @@ -1,37 +0,0 @@ -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "illumos"))] -use crate::backend::c; -#[cfg(any( - linux_kernel, - target_os = "freebsd", - target_os = "illumos", - target_os = "espidf" -))] -use bitflags::bitflags; - -#[cfg(any( - linux_kernel, - target_os = "freebsd", - target_os = "illumos", - target_os = "espidf" -))] -bitflags! { - /// `EFD_*` flags for use with [`eventfd`]. - /// - /// [`eventfd`]: crate::io::eventfd - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct EventfdFlags: u32 { - /// `EFD_CLOEXEC` - #[cfg(not(target_os = "espidf"))] - const CLOEXEC = bitcast!(c::EFD_CLOEXEC); - /// `EFD_NONBLOCK` - #[cfg(not(target_os = "espidf"))] - const NONBLOCK = bitcast!(c::EFD_NONBLOCK); - /// `EFD_SEMAPHORE` - #[cfg(not(target_os = "espidf"))] - const SEMAPHORE = bitcast!(c::EFD_SEMAPHORE); - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/libc/event/windows_syscalls.rs b/third_party/rust/rustix/src/backend/libc/event/windows_syscalls.rs deleted file mode 100644 index 8ccad4794568..000000000000 --- a/third_party/rust/rustix/src/backend/libc/event/windows_syscalls.rs +++ /dev/null @@ -1,16 +0,0 @@ -//! Windows system calls in the `event` module. - -use crate::backend::c; -use crate::backend::conv::ret_c_int; -use crate::event::PollFd; -use crate::io; - -pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: c::c_int) -> io::Result { - let nfds = fds - .len() - .try_into() - .map_err(|_convert_err| io::Errno::INVAL)?; - - ret_c_int(unsafe { c::poll(fds.as_mut_ptr().cast(), nfds, timeout) }) - .map(|nready| nready as usize) -} diff --git a/third_party/rust/rustix/src/backend/libc/fs/dir.rs b/third_party/rust/rustix/src/backend/libc/fs/dir.rs deleted file mode 100644 index 6cfeb242b36d..000000000000 --- a/third_party/rust/rustix/src/backend/libc/fs/dir.rs +++ /dev/null @@ -1,295 +0,0 @@ -#[cfg(not(any(solarish, target_os = "haiku", target_os = "nto")))] -use super::types::FileType; -use crate::backend::c; -use crate::backend::conv::owned_fd; -use crate::fd::{AsFd, BorrowedFd}; -use crate::ffi::{CStr, CString}; -use crate::fs::{fcntl_getfl, fstat, openat, Mode, OFlags, Stat}; -#[cfg(not(any( - solarish, - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -use crate::fs::{fstatfs, StatFs}; -#[cfg(not(any(solarish, target_os = "haiku", target_os = "redox", target_os = "wasi")))] -use crate::fs::{fstatvfs, StatVfs}; -use crate::io; -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -#[cfg(feature = "process")] -use crate::process::fchdir; -use alloc::borrow::ToOwned; -#[cfg(not(linux_like))] -use c::readdir as libc_readdir; -#[cfg(linux_like)] -use c::readdir64 as libc_readdir; -use core::fmt; -use core::ptr::NonNull; -use libc_errno::{errno, set_errno, Errno}; - -/// `DIR*` -#[repr(transparent)] -pub struct Dir(NonNull); - -impl Dir { - /// Construct a `Dir` that reads entries from the given directory - /// file descriptor. - #[inline] - pub fn read_from(fd: Fd) -> io::Result { - Self::_read_from(fd.as_fd()) - } - - #[inline] - fn _read_from(fd: BorrowedFd<'_>) -> io::Result { - // Given an arbitrary `OwnedFd`, it's impossible to know whether the - // user holds a `dup`'d copy which could continue to modify the - // file description state, which would cause Undefined Behavior after - // our call to `fdopendir`. To prevent this, we obtain an independent - // `OwnedFd`. - let flags = fcntl_getfl(fd)?; - let fd_for_dir = openat(fd, cstr!("."), flags | OFlags::CLOEXEC, Mode::empty())?; - - let raw = owned_fd(fd_for_dir); - unsafe { - let libc_dir = c::fdopendir(raw); - - if let Some(libc_dir) = NonNull::new(libc_dir) { - Ok(Self(libc_dir)) - } else { - let err = io::Errno::last_os_error(); - let _ = c::close(raw); - Err(err) - } - } - } - - /// `rewinddir(self)` - #[inline] - pub fn rewind(&mut self) { - unsafe { c::rewinddir(self.0.as_ptr()) } - } - - /// `readdir(self)`, where `None` means the end of the directory. - pub fn read(&mut self) -> Option> { - set_errno(Errno(0)); - let dirent_ptr = unsafe { libc_readdir(self.0.as_ptr()) }; - if dirent_ptr.is_null() { - let curr_errno = errno().0; - if curr_errno == 0 { - // We successfully reached the end of the stream. - None - } else { - // `errno` is unknown or non-zero, so an error occurred. - Some(Err(io::Errno(curr_errno))) - } - } else { - // We successfully read an entry. - unsafe { - let dirent = &*dirent_ptr; - - // We have our own copy of OpenBSD's dirent; check that the - // layout minimally matches libc's. - #[cfg(target_os = "openbsd")] - check_dirent_layout(dirent); - - let result = DirEntry { - #[cfg(not(any( - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - d_type: dirent.d_type, - - #[cfg(not(any(freebsdlike, netbsdlike)))] - d_ino: dirent.d_ino, - - #[cfg(any(freebsdlike, netbsdlike))] - d_fileno: dirent.d_fileno, - - name: CStr::from_ptr(dirent.d_name.as_ptr()).to_owned(), - }; - - Some(Ok(result)) - } - } - } - - /// `fstat(self)` - #[inline] - pub fn stat(&self) -> io::Result { - fstat(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.0.as_ptr())) }) - } - - /// `fstatfs(self)` - #[cfg(not(any( - solarish, - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", - )))] - #[inline] - pub fn statfs(&self) -> io::Result { - fstatfs(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.0.as_ptr())) }) - } - - /// `fstatvfs(self)` - #[cfg(not(any(solarish, target_os = "haiku", target_os = "redox", target_os = "wasi")))] - #[inline] - pub fn statvfs(&self) -> io::Result { - fstatvfs(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.0.as_ptr())) }) - } - - /// `fchdir(self)` - #[cfg(feature = "process")] - #[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] - #[cfg_attr(doc_cfg, doc(cfg(feature = "process")))] - #[inline] - pub fn chdir(&self) -> io::Result<()> { - fchdir(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.0.as_ptr())) }) - } -} - -/// `Dir` implements `Send` but not `Sync`, because we use `readdir` which is -/// not guaranteed to be thread-safe. Users can wrap this in a `Mutex` if they -/// need `Sync`, which is effectively what'd need to do to implement `Sync` -/// ourselves. -unsafe impl Send for Dir {} - -impl Drop for Dir { - #[inline] - fn drop(&mut self) { - unsafe { c::closedir(self.0.as_ptr()) }; - } -} - -impl Iterator for Dir { - type Item = io::Result; - - #[inline] - fn next(&mut self) -> Option { - Self::read(self) - } -} - -impl fmt::Debug for Dir { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Dir") - .field("fd", unsafe { &c::dirfd(self.0.as_ptr()) }) - .finish() - } -} - -/// `struct dirent` -#[derive(Debug)] -pub struct DirEntry { - #[cfg(not(any(solarish, target_os = "aix", target_os = "haiku", target_os = "nto")))] - d_type: u8, - - #[cfg(not(any(freebsdlike, netbsdlike)))] - d_ino: c::ino_t, - - #[cfg(any(freebsdlike, netbsdlike))] - d_fileno: c::ino_t, - - name: CString, -} - -impl DirEntry { - /// Returns the file name of this directory entry. - #[inline] - pub fn file_name(&self) -> &CStr { - &self.name - } - - /// Returns the type of this directory entry. - #[cfg(not(any(solarish, target_os = "aix", target_os = "haiku", target_os = "nto")))] - #[inline] - pub fn file_type(&self) -> FileType { - FileType::from_dirent_d_type(self.d_type) - } - - /// Return the inode number of this directory entry. - #[cfg(not(any(freebsdlike, netbsdlike)))] - #[inline] - pub fn ino(&self) -> u64 { - self.d_ino as u64 - } - - /// Return the inode number of this directory entry. - #[cfg(any(freebsdlike, netbsdlike))] - #[inline] - pub fn ino(&self) -> u64 { - #[allow(clippy::useless_conversion)] - self.d_fileno.into() - } -} - -/// libc's OpenBSD `dirent` has a private field so we can't construct it -/// directly, so we declare it ourselves to make all fields accessible. -#[cfg(target_os = "openbsd")] -#[repr(C)] -#[derive(Debug)] -struct libc_dirent { - d_fileno: c::ino_t, - d_off: c::off_t, - d_reclen: u16, - d_type: u8, - d_namlen: u8, - __d_padding: [u8; 4], - d_name: [c::c_char; 256], -} - -/// We have our own copy of OpenBSD's dirent; check that the layout -/// minimally matches libc's. -#[cfg(target_os = "openbsd")] -fn check_dirent_layout(dirent: &c::dirent) { - use crate::utils::as_ptr; - - // Check that the basic layouts match. - #[cfg(test)] - { - assert_eq_size!(libc_dirent, c::dirent); - assert_eq_size!(libc_dirent, c::dirent); - } - - // Check that the field offsets match. - assert_eq!( - { - let z = libc_dirent { - d_fileno: 0_u64, - d_off: 0_i64, - d_reclen: 0_u16, - d_type: 0_u8, - d_namlen: 0_u8, - __d_padding: [0_u8; 4], - d_name: [0 as c::c_char; 256], - }; - let base = as_ptr(&z) as usize; - ( - (as_ptr(&z.d_fileno) as usize) - base, - (as_ptr(&z.d_off) as usize) - base, - (as_ptr(&z.d_reclen) as usize) - base, - (as_ptr(&z.d_type) as usize) - base, - (as_ptr(&z.d_namlen) as usize) - base, - (as_ptr(&z.d_name) as usize) - base, - ) - }, - { - let z = dirent; - let base = as_ptr(z) as usize; - ( - (as_ptr(&z.d_fileno) as usize) - base, - (as_ptr(&z.d_off) as usize) - base, - (as_ptr(&z.d_reclen) as usize) - base, - (as_ptr(&z.d_type) as usize) - base, - (as_ptr(&z.d_namlen) as usize) - base, - (as_ptr(&z.d_name) as usize) - base, - ) - } - ); -} diff --git a/third_party/rust/rustix/src/backend/libc/fs/inotify.rs b/third_party/rust/rustix/src/backend/libc/fs/inotify.rs deleted file mode 100644 index fea2fad0625e..000000000000 --- a/third_party/rust/rustix/src/backend/libc/fs/inotify.rs +++ /dev/null @@ -1,132 +0,0 @@ -//! inotify support for working with inotifies - -use crate::backend::c; -use crate::backend::conv::{borrowed_fd, c_str, ret, ret_c_int, ret_owned_fd}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io; -use bitflags::bitflags; - -bitflags! { - /// `IN_*` for use with [`inotify_init`]. - /// - /// [`inotify_init`]: crate::fs::inotify::inotify_init - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CreateFlags: u32 { - /// `IN_CLOEXEC` - const CLOEXEC = bitcast!(c::IN_CLOEXEC); - /// `IN_NONBLOCK` - const NONBLOCK = bitcast!(c::IN_NONBLOCK); - - /// - const _ = !0; - } -} - -bitflags! { - /// `IN*` for use with [`inotify_add_watch`]. - /// - /// [`inotify_add_watch`]: crate::fs::inotify::inotify_add_watch - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct WatchFlags: u32 { - /// `IN_ACCESS` - const ACCESS = c::IN_ACCESS; - /// `IN_ATTRIB` - const ATTRIB = c::IN_ATTRIB; - /// `IN_CLOSE_NOWRITE` - const CLOSE_NOWRITE = c::IN_CLOSE_NOWRITE; - /// `IN_CLOSE_WRITE` - const CLOSE_WRITE = c::IN_CLOSE_WRITE; - /// `IN_CREATE ` - const CREATE = c::IN_CREATE; - /// `IN_DELETE` - const DELETE = c::IN_DELETE; - /// `IN_DELETE_SELF` - const DELETE_SELF = c::IN_DELETE_SELF; - /// `IN_MODIFY` - const MODIFY = c::IN_MODIFY; - /// `IN_MOVE_SELF` - const MOVE_SELF = c::IN_MOVE_SELF; - /// `IN_MOVED_FROM` - const MOVED_FROM = c::IN_MOVED_FROM; - /// `IN_MOVED_TO` - const MOVED_TO = c::IN_MOVED_TO; - /// `IN_OPEN` - const OPEN = c::IN_OPEN; - - /// `IN_CLOSE` - const CLOSE = c::IN_CLOSE; - /// `IN_MOVE` - const MOVE = c::IN_MOVE; - /// `IN_ALL_EVENTS` - const ALL_EVENTS = c::IN_ALL_EVENTS; - - /// `IN_DONT_FOLLOW` - const DONT_FOLLOW = c::IN_DONT_FOLLOW; - /// `IN_EXCL_UNLINK` - const EXCL_UNLINK = 1; - /// `IN_MASK_ADD` - const MASK_ADD = 1; - /// `IN_MASK_CREATE` - const MASK_CREATE = 1; - /// `IN_ONESHOT` - const ONESHOT = c::IN_ONESHOT; - /// `IN_ONLYDIR` - const ONLYDIR = c::IN_ONLYDIR; - - /// - const _ = !0; - } -} - -/// `inotify_init1(flags)`—Creates a new inotify object. -/// -/// Use the [`CreateFlags::CLOEXEC`] flag to prevent the resulting file -/// descriptor from being implicitly passed across `exec` boundaries. -#[doc(alias = "inotify_init1")] -pub fn inotify_init(flags: CreateFlags) -> io::Result { - // SAFETY: `inotify_init1` has no safety preconditions. - unsafe { ret_owned_fd(c::inotify_init1(bitflags_bits!(flags))) } -} - -/// `inotify_add_watch(self, path, flags)`—Adds a watch to inotify -/// -/// This registers or updates a watch for the filesystem path `path` -/// and returns a watch descriptor corresponding to this watch. -/// -/// Note: Due to the existence of hardlinks, providing two -/// different paths to this method may result in it returning -/// the same watch descriptor. An application should keep track of this -/// externally to avoid logic errors. -pub fn inotify_add_watch( - inot: BorrowedFd<'_>, - path: P, - flags: WatchFlags, -) -> io::Result { - path.into_with_c_str(|path| { - // SAFETY: The fd and path we are passing is guaranteed valid by the type - // system. - unsafe { - ret_c_int(c::inotify_add_watch( - borrowed_fd(inot), - c_str(path), - flags.bits(), - )) - } - }) -} - -/// `inotify_rm_watch(self, wd)`—Removes a watch from this inotify -/// -/// The watch descriptor provided should have previously been returned by -/// [`inotify_add_watch`] and not previously have been removed. -#[doc(alias = "inotify_rm_watch")] -pub fn inotify_remove_watch(inot: BorrowedFd<'_>, wd: i32) -> io::Result<()> { - // Android's `inotify_rm_watch` takes `u32` despite that - // `inotify_add_watch` expects a `i32`. - #[cfg(target_os = "android")] - let wd = wd as u32; - // SAFETY: The fd is valid and closing an arbitrary wd is valid. - unsafe { ret(c::inotify_rm_watch(borrowed_fd(inot), wd)) } -} diff --git a/third_party/rust/rustix/src/backend/libc/fs/makedev.rs b/third_party/rust/rustix/src/backend/libc/fs/makedev.rs deleted file mode 100644 index aa12102832d4..000000000000 --- a/third_party/rust/rustix/src/backend/libc/fs/makedev.rs +++ /dev/null @@ -1,138 +0,0 @@ -#[cfg(not(all(target_os = "android", target_pointer_width = "32")))] -use crate::backend::c; -use crate::fs::Dev; - -#[cfg(not(any( - apple, - solarish, - target_os = "aix", - target_os = "android", - target_os = "emscripten", -)))] -#[inline] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - c::makedev(maj, min) -} - -#[cfg(solarish)] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - // SAFETY: Solarish's `makedev` is marked unsafe but it isn't doing - // anything unsafe. - unsafe { c::makedev(maj, min) } -} - -#[cfg(all(target_os = "android", not(target_pointer_width = "32")))] -#[inline] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - c::makedev(maj, min) -} - -#[cfg(all(target_os = "android", target_pointer_width = "32"))] -#[inline] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - // 32-bit Android's `dev_t` is 32-bit, but its `st_dev` is 64-bit, so we do - // it ourselves. - ((u64::from(maj) & 0xffff_f000_u64) << 32) - | ((u64::from(maj) & 0x0000_0fff_u64) << 8) - | ((u64::from(min) & 0xffff_ff00_u64) << 12) - | (u64::from(min) & 0x0000_00ff_u64) -} - -#[cfg(target_os = "emscripten")] -#[inline] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - // Emscripten's `makedev` has a 32-bit return value. - Dev::from(c::makedev(maj, min)) -} - -#[cfg(apple)] -#[inline] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - // Apple's `makedev` oddly has signed argument types and is `unsafe`. - unsafe { c::makedev(maj as i32, min as i32) } -} - -#[cfg(target_os = "aix")] -#[inline] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - // AIX's `makedev` oddly is `unsafe`. - unsafe { c::makedev(maj, min) } -} - -#[cfg(not(any( - apple, - freebsdlike, - target_os = "android", - target_os = "emscripten", - target_os = "netbsd" -)))] -#[inline] -pub(crate) fn major(dev: Dev) -> u32 { - unsafe { c::major(dev) } -} - -#[cfg(any( - apple, - freebsdlike, - target_os = "netbsd", - all(target_os = "android", not(target_pointer_width = "32")), -))] -#[inline] -pub(crate) fn major(dev: Dev) -> u32 { - // On some platforms `major` oddly has signed return types. - (unsafe { c::major(dev) }) as u32 -} - -#[cfg(all(target_os = "android", target_pointer_width = "32"))] -#[inline] -pub(crate) fn major(dev: Dev) -> u32 { - // 32-bit Android's `dev_t` is 32-bit, but its `st_dev` is 64-bit, so we do - // it ourselves. - (((dev >> 31 >> 1) & 0xffff_f000) | ((dev >> 8) & 0x0000_0fff)) as u32 -} - -#[cfg(target_os = "emscripten")] -#[inline] -pub(crate) fn major(dev: Dev) -> u32 { - // Emscripten's `major` has a 32-bit argument value. - unsafe { c::major(dev as u32) } -} - -#[cfg(not(any( - apple, - freebsdlike, - target_os = "android", - target_os = "emscripten", - target_os = "netbsd" -)))] -#[inline] -pub(crate) fn minor(dev: Dev) -> u32 { - unsafe { c::minor(dev) } -} - -#[cfg(any( - apple, - freebsdlike, - target_os = "netbsd", - all(target_os = "android", not(target_pointer_width = "32")) -))] -#[inline] -pub(crate) fn minor(dev: Dev) -> u32 { - // On some platforms, `minor` oddly has signed return types. - (unsafe { c::minor(dev) }) as u32 -} - -#[cfg(all(target_os = "android", target_pointer_width = "32"))] -#[inline] -pub(crate) fn minor(dev: Dev) -> u32 { - // 32-bit Android's `dev_t` is 32-bit, but its `st_dev` is 64-bit, so we do - // it ourselves. - (((dev >> 12) & 0xffff_ff00) | (dev & 0x0000_00ff)) as u32 -} - -#[cfg(target_os = "emscripten")] -#[inline] -pub(crate) fn minor(dev: Dev) -> u32 { - // Emscripten's `minor` has a 32-bit argument value. - unsafe { c::minor(dev as u32) } -} diff --git a/third_party/rust/rustix/src/backend/libc/fs/mod.rs b/third_party/rust/rustix/src/backend/libc/fs/mod.rs deleted file mode 100644 index 9a0b1d3e52e8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/fs/mod.rs +++ /dev/null @@ -1,22 +0,0 @@ -#[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))] -pub(crate) mod dir; -#[cfg(linux_kernel)] -pub mod inotify; -#[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "redox", - target_os = "wasi" -)))] -pub(crate) mod makedev; -#[cfg(not(windows))] -pub(crate) mod syscalls; -pub(crate) mod types; - -// TODO: Fix linux-raw-sys to define ioctl codes for sparc. -#[cfg(all(linux_kernel, any(target_arch = "sparc", target_arch = "sparc64")))] -pub(crate) const EXT4_IOC_RESIZE_FS: crate::ioctl::RawOpcode = 0x8008_6610; - -#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] -pub(crate) const EXT4_IOC_RESIZE_FS: crate::ioctl::RawOpcode = - linux_raw_sys::ioctl::EXT4_IOC_RESIZE_FS as crate::ioctl::RawOpcode; diff --git a/third_party/rust/rustix/src/backend/libc/fs/syscalls.rs b/third_party/rust/rustix/src/backend/libc/fs/syscalls.rs deleted file mode 100644 index ca5a11df7979..000000000000 --- a/third_party/rust/rustix/src/backend/libc/fs/syscalls.rs +++ /dev/null @@ -1,2425 +0,0 @@ -//! libc syscalls supporting `rustix::fs`. - -use crate::backend::c; -#[cfg(any(apple, linux_kernel, feature = "alloc"))] -use crate::backend::conv::ret_usize; -use crate::backend::conv::{borrowed_fd, c_str, ret, ret_c_int, ret_off_t, ret_owned_fd}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::ffi::CStr; -#[cfg(apple)] -use crate::ffi::CString; -#[cfg(not(any( - apple, - netbsdlike, - solarish, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", -)))] -use crate::fs::Advice; -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -use crate::fs::AtFlags; -#[cfg(not(any( - netbsdlike, - solarish, - target_os = "aix", - target_os = "dragonfly", - target_os = "espidf", - target_os = "nto", - target_os = "redox", -)))] -use crate::fs::FallocateFlags; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -use crate::fs::FlockOperation; -#[cfg(any(linux_kernel, target_os = "freebsd"))] -use crate::fs::MemfdFlags; -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] -use crate::fs::SealFlags; -#[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -use crate::fs::StatFs; -#[cfg(not(target_os = "espidf"))] -use crate::fs::{Access, Timestamps}; -#[cfg(not(any(apple, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -use crate::fs::{Dev, FileType}; -use crate::fs::{Mode, OFlags, SeekFrom, Stat}; -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -use crate::fs::{StatVfs, StatVfsMountFlags}; -use crate::io; -#[cfg(all(target_env = "gnu", fix_y2038))] -use crate::timespec::LibcTimespec; -#[cfg(not(target_os = "wasi"))] -use crate::ugid::{Gid, Uid}; -#[cfg(apple)] -use alloc::vec; -use core::mem::MaybeUninit; -#[cfg(apple)] -use { - crate::backend::conv::nonnegative_ret, - crate::fs::{copyfile_state_t, CloneFlags, CopyfileFlags}, -}; -#[cfg(any(apple, linux_kernel))] -use {crate::fs::XattrFlags, core::mem::size_of, core::ptr::null_mut}; -#[cfg(linux_kernel)] -use { - crate::fs::{RenameFlags, ResolveFlags, Statx, StatxFlags, CWD}, - core::ptr::null, -}; - -#[cfg(all(target_env = "gnu", fix_y2038))] -weak!(fn __utimensat64(c::c_int, *const c::c_char, *const LibcTimespec, c::c_int) -> c::c_int); -#[cfg(all(target_env = "gnu", fix_y2038))] -weak!(fn __futimens64(c::c_int, *const LibcTimespec) -> c::c_int); - -/// Use a direct syscall (via libc) for `open`. -/// -/// This is only currently necessary as a workaround for old glibc; see below. -#[cfg(all(unix, target_env = "gnu"))] -fn open_via_syscall(path: &CStr, oflags: OFlags, mode: Mode) -> io::Result { - // Linux on aarch64, loongarch64 and riscv64 has no `open` syscall so use - // `openat`. - #[cfg(any( - target_arch = "aarch64", - target_arch = "riscv32", - target_arch = "riscv64", - target_arch = "csky", - target_arch = "loongarch64" - ))] - { - openat_via_syscall(CWD, path, oflags, mode) - } - - // Use the `open` syscall. - #[cfg(not(any( - target_arch = "aarch64", - target_arch = "riscv32", - target_arch = "riscv64", - target_arch = "csky", - target_arch = "loongarch64" - )))] - unsafe { - syscall! { - fn open( - pathname: *const c::c_char, - oflags: c::c_int, - mode: c::mode_t - ) via SYS_open -> c::c_int - } - - ret_owned_fd(open( - c_str(path), - bitflags_bits!(oflags), - bitflags_bits!(mode), - )) - } -} - -pub(crate) fn open(path: &CStr, oflags: OFlags, mode: Mode) -> io::Result { - // Work around . - // glibc versions before 2.25 don't handle `O_TMPFILE` correctly. - #[cfg(all(unix, target_env = "gnu"))] - if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() { - return open_via_syscall(path, oflags, mode); - } - - // On these platforms, `mode_t` is `u16` and can't be passed directly to a - // variadic function. - #[cfg(any( - apple, - freebsdlike, - all(target_os = "android", target_pointer_width = "32") - ))] - let mode: c::c_uint = mode.bits().into(); - - // Otherwise, cast to `mode_t` as that's what `open` is documented to take. - #[cfg(not(any( - apple, - freebsdlike, - all(target_os = "android", target_pointer_width = "32") - )))] - let mode: c::mode_t = mode.bits() as _; - - unsafe { ret_owned_fd(c::open(c_str(path), bitflags_bits!(oflags), mode)) } -} - -/// Use a direct syscall (via libc) for `openat`. -/// -/// This is only currently necessary as a workaround for old glibc; see below. -#[cfg(all(unix, target_env = "gnu"))] -fn openat_via_syscall( - dirfd: BorrowedFd<'_>, - path: &CStr, - oflags: OFlags, - mode: Mode, -) -> io::Result { - syscall! { - fn openat( - base_dirfd: c::c_int, - pathname: *const c::c_char, - oflags: c::c_int, - mode: c::mode_t - ) via SYS_openat -> c::c_int - } - - unsafe { - ret_owned_fd(openat( - borrowed_fd(dirfd), - c_str(path), - bitflags_bits!(oflags), - bitflags_bits!(mode), - )) - } -} - -#[cfg(not(target_os = "redox"))] -pub(crate) fn openat( - dirfd: BorrowedFd<'_>, - path: &CStr, - oflags: OFlags, - mode: Mode, -) -> io::Result { - // Work around . - // glibc versions before 2.25 don't handle `O_TMPFILE` correctly. - #[cfg(all(unix, target_env = "gnu"))] - if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() { - return openat_via_syscall(dirfd, path, oflags, mode); - } - - // On these platforms, `mode_t` is `u16` and can't be passed directly to a - // variadic function. - #[cfg(any( - apple, - freebsdlike, - all(target_os = "android", target_pointer_width = "32") - ))] - let mode: c::c_uint = mode.bits().into(); - - // Otherwise, cast to `mode_t` as that's what `open` is documented to take. - #[cfg(not(any( - apple, - freebsdlike, - all(target_os = "android", target_pointer_width = "32") - )))] - let mode: c::mode_t = mode.bits() as _; - - unsafe { - ret_owned_fd(c::openat( - borrowed_fd(dirfd), - c_str(path), - bitflags_bits!(oflags), - mode, - )) - } -} - -#[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub(crate) fn statfs(filename: &CStr) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(c::statfs(c_str(filename), result.as_mut_ptr()))?; - Ok(result.assume_init()) - } -} - -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -#[inline] -pub(crate) fn statvfs(filename: &CStr) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(c::statvfs(c_str(filename), result.as_mut_ptr()))?; - Ok(libc_statvfs_to_statvfs(result.assume_init())) - } -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn readlink(path: &CStr, buf: &mut [u8]) -> io::Result { - unsafe { - ret_usize( - c::readlink(c_str(path), buf.as_mut_ptr().cast::(), buf.len()) as isize, - ) - } -} - -#[cfg(all(feature = "alloc", not(target_os = "redox")))] -#[inline] -pub(crate) fn readlinkat( - dirfd: BorrowedFd<'_>, - path: &CStr, - buf: &mut [MaybeUninit], -) -> io::Result { - unsafe { - ret_usize(c::readlinkat( - borrowed_fd(dirfd), - c_str(path), - buf.as_mut_ptr().cast::(), - buf.len(), - ) as isize) - } -} - -pub(crate) fn mkdir(path: &CStr, mode: Mode) -> io::Result<()> { - unsafe { ret(c::mkdir(c_str(path), mode.bits() as c::mode_t)) } -} - -#[cfg(not(target_os = "redox"))] -pub(crate) fn mkdirat(dirfd: BorrowedFd<'_>, path: &CStr, mode: Mode) -> io::Result<()> { - unsafe { - ret(c::mkdirat( - borrowed_fd(dirfd), - c_str(path), - mode.bits() as c::mode_t, - )) - } -} - -#[cfg(linux_kernel)] -pub(crate) fn getdents_uninit( - fd: BorrowedFd<'_>, - buf: &mut [MaybeUninit], -) -> io::Result { - syscall! { - fn getdents64( - fd: c::c_int, - dirp: *mut c::c_void, - count: usize - ) via SYS_getdents64 -> c::ssize_t - } - unsafe { - ret_usize(getdents64( - borrowed_fd(fd), - buf.as_mut_ptr().cast::(), - buf.len(), - )) - } -} - -pub(crate) fn link(old_path: &CStr, new_path: &CStr) -> io::Result<()> { - unsafe { ret(c::link(c_str(old_path), c_str(new_path))) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -pub(crate) fn linkat( - old_dirfd: BorrowedFd<'_>, - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, - flags: AtFlags, -) -> io::Result<()> { - // macOS <= 10.9 lacks `linkat`. - #[cfg(target_os = "macos")] - unsafe { - weak! { - fn linkat( - c::c_int, - *const c::c_char, - c::c_int, - *const c::c_char, - c::c_int - ) -> c::c_int - } - // If we have `linkat`, use it. - if let Some(libc_linkat) = linkat.get() { - return ret(libc_linkat( - borrowed_fd(old_dirfd), - c_str(old_path), - borrowed_fd(new_dirfd), - c_str(new_path), - bitflags_bits!(flags), - )); - } - // Otherwise, see if we can emulate the `AT_FDCWD` case. - if borrowed_fd(old_dirfd) != c::AT_FDCWD || borrowed_fd(new_dirfd) != c::AT_FDCWD { - return Err(io::Errno::NOSYS); - } - if flags.intersects(!AtFlags::SYMLINK_FOLLOW) { - return Err(io::Errno::INVAL); - } - if !flags.is_empty() { - return Err(io::Errno::OPNOTSUPP); - } - ret(c::link(c_str(old_path), c_str(new_path))) - } - - #[cfg(not(target_os = "macos"))] - unsafe { - ret(c::linkat( - borrowed_fd(old_dirfd), - c_str(old_path), - borrowed_fd(new_dirfd), - c_str(new_path), - bitflags_bits!(flags), - )) - } -} - -pub(crate) fn rmdir(path: &CStr) -> io::Result<()> { - unsafe { ret(c::rmdir(c_str(path))) } -} - -pub(crate) fn unlink(path: &CStr) -> io::Result<()> { - unsafe { ret(c::unlink(c_str(path))) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -pub(crate) fn unlinkat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<()> { - // macOS <= 10.9 lacks `unlinkat`. - #[cfg(target_os = "macos")] - unsafe { - weak! { - fn unlinkat( - c::c_int, - *const c::c_char, - c::c_int - ) -> c::c_int - } - // If we have `unlinkat`, use it. - if let Some(libc_unlinkat) = unlinkat.get() { - return ret(libc_unlinkat( - borrowed_fd(dirfd), - c_str(path), - bitflags_bits!(flags), - )); - } - // Otherwise, see if we can emulate the `AT_FDCWD` case. - if borrowed_fd(dirfd) != c::AT_FDCWD { - return Err(io::Errno::NOSYS); - } - if flags.intersects(!AtFlags::REMOVEDIR) { - return Err(io::Errno::INVAL); - } - if flags.contains(AtFlags::REMOVEDIR) { - ret(c::rmdir(c_str(path))) - } else { - ret(c::unlink(c_str(path))) - } - } - - #[cfg(not(target_os = "macos"))] - unsafe { - ret(c::unlinkat( - borrowed_fd(dirfd), - c_str(path), - bitflags_bits!(flags), - )) - } -} - -pub(crate) fn rename(old_path: &CStr, new_path: &CStr) -> io::Result<()> { - unsafe { ret(c::rename(c_str(old_path), c_str(new_path))) } -} - -#[cfg(not(target_os = "redox"))] -pub(crate) fn renameat( - old_dirfd: BorrowedFd<'_>, - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, -) -> io::Result<()> { - // macOS <= 10.9 lacks `renameat`. - #[cfg(target_os = "macos")] - unsafe { - weak! { - fn renameat( - c::c_int, - *const c::c_char, - c::c_int, - *const c::c_char - ) -> c::c_int - } - // If we have `renameat`, use it. - if let Some(libc_renameat) = renameat.get() { - return ret(libc_renameat( - borrowed_fd(old_dirfd), - c_str(old_path), - borrowed_fd(new_dirfd), - c_str(new_path), - )); - } - // Otherwise, see if we can emulate the `AT_FDCWD` case. - if borrowed_fd(old_dirfd) != c::AT_FDCWD || borrowed_fd(new_dirfd) != c::AT_FDCWD { - return Err(io::Errno::NOSYS); - } - ret(c::rename(c_str(old_path), c_str(new_path))) - } - - #[cfg(not(target_os = "macos"))] - unsafe { - ret(c::renameat( - borrowed_fd(old_dirfd), - c_str(old_path), - borrowed_fd(new_dirfd), - c_str(new_path), - )) - } -} - -#[cfg(all(target_os = "linux", target_env = "gnu"))] -pub(crate) fn renameat2( - old_dirfd: BorrowedFd<'_>, - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, - flags: RenameFlags, -) -> io::Result<()> { - // `renameat2` wasn't supported in glibc until 2.28. - weak_or_syscall! { - fn renameat2( - olddirfd: c::c_int, - oldpath: *const c::c_char, - newdirfd: c::c_int, - newpath: *const c::c_char, - flags: c::c_uint - ) via SYS_renameat2 -> c::c_int - } - - unsafe { - ret(renameat2( - borrowed_fd(old_dirfd), - c_str(old_path), - borrowed_fd(new_dirfd), - c_str(new_path), - flags.bits(), - )) - } -} - -/// At present, `libc` only has `renameat2` defined for glibc. On other -/// ABIs, `RenameFlags` has no flags defined, and we use plain `renameat`. -#[cfg(any( - target_os = "android", - all(target_os = "linux", not(target_env = "gnu")), -))] -#[inline] -pub(crate) fn renameat2( - old_dirfd: BorrowedFd<'_>, - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, - flags: RenameFlags, -) -> io::Result<()> { - assert!(flags.is_empty()); - renameat(old_dirfd, old_path, new_dirfd, new_path) -} - -pub(crate) fn symlink(old_path: &CStr, new_path: &CStr) -> io::Result<()> { - unsafe { ret(c::symlink(c_str(old_path), c_str(new_path))) } -} - -#[cfg(not(target_os = "redox"))] -pub(crate) fn symlinkat( - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, -) -> io::Result<()> { - unsafe { - ret(c::symlinkat( - c_str(old_path), - borrowed_fd(new_dirfd), - c_str(new_path), - )) - } -} - -pub(crate) fn stat(path: &CStr) -> io::Result { - // See the comments in `fstat` about using `crate::fs::statx` here. - #[cfg(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - ))] - { - match crate::fs::statx( - crate::fs::CWD, - path, - AtFlags::empty(), - StatxFlags::BASIC_STATS, - ) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => statat_old(crate::fs::CWD, path, AtFlags::empty()), - Err(err) => Err(err), - } - } - - // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and - // there's nothing practical we can do. - #[cfg(not(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - )))] - unsafe { - let mut stat = MaybeUninit::::uninit(); - ret(c::stat(c_str(path), stat.as_mut_ptr()))?; - Ok(stat.assume_init()) - } -} - -pub(crate) fn lstat(path: &CStr) -> io::Result { - // See the comments in `fstat` about using `crate::fs::statx` here. - #[cfg(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - ))] - { - match crate::fs::statx( - crate::fs::CWD, - path, - AtFlags::SYMLINK_NOFOLLOW, - StatxFlags::BASIC_STATS, - ) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => statat_old(crate::fs::CWD, path, AtFlags::SYMLINK_NOFOLLOW), - Err(err) => Err(err), - } - } - - // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and - // there's nothing practical we can do. - #[cfg(not(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - )))] - unsafe { - let mut stat = MaybeUninit::::uninit(); - ret(c::lstat(c_str(path), stat.as_mut_ptr()))?; - Ok(stat.assume_init()) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { - // See the comments in `fstat` about using `crate::fs::statx` here. - #[cfg(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - ))] - { - match crate::fs::statx(dirfd, path, flags, StatxFlags::BASIC_STATS) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => statat_old(dirfd, path, flags), - Err(err) => Err(err), - } - } - - // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and - // there's nothing practical we can do. - #[cfg(not(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - )))] - unsafe { - let mut stat = MaybeUninit::::uninit(); - ret(c::fstatat( - borrowed_fd(dirfd), - c_str(path), - stat.as_mut_ptr(), - bitflags_bits!(flags), - ))?; - Ok(stat.assume_init()) - } -} - -#[cfg(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) -))] -fn statat_old(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(c::fstatat( - borrowed_fd(dirfd), - c_str(path), - result.as_mut_ptr(), - bitflags_bits!(flags), - ))?; - stat64_to_stat(result.assume_init()) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "emscripten")))] -pub(crate) fn access(path: &CStr, access: Access) -> io::Result<()> { - unsafe { ret(c::access(c_str(path), access.bits())) } -} - -#[cfg(not(any(target_os = "emscripten", target_os = "espidf", target_os = "redox")))] -pub(crate) fn accessat( - dirfd: BorrowedFd<'_>, - path: &CStr, - access: Access, - flags: AtFlags, -) -> io::Result<()> { - // macOS <= 10.9 lacks `faccessat`. - #[cfg(target_os = "macos")] - unsafe { - weak! { - fn faccessat( - c::c_int, - *const c::c_char, - c::c_int, - c::c_int - ) -> c::c_int - } - // If we have `faccessat`, use it. - if let Some(libc_faccessat) = faccessat.get() { - return ret(libc_faccessat( - borrowed_fd(dirfd), - c_str(path), - bitflags_bits!(access), - bitflags_bits!(flags), - )); - } - // Otherwise, see if we can emulate the `AT_FDCWD` case. - if borrowed_fd(dirfd) != c::AT_FDCWD { - return Err(io::Errno::NOSYS); - } - if flags.intersects(!(AtFlags::EACCESS | AtFlags::SYMLINK_NOFOLLOW)) { - return Err(io::Errno::INVAL); - } - if !flags.is_empty() { - return Err(io::Errno::OPNOTSUPP); - } - ret(c::access(c_str(path), bitflags_bits!(access))) - } - - #[cfg(not(target_os = "macos"))] - unsafe { - ret(c::faccessat( - borrowed_fd(dirfd), - c_str(path), - bitflags_bits!(access), - bitflags_bits!(flags), - )) - } -} - -#[cfg(target_os = "emscripten")] -pub(crate) fn access(_path: &CStr, _access: Access) -> io::Result<()> { - Ok(()) -} - -#[cfg(target_os = "emscripten")] -pub(crate) fn accessat( - _dirfd: BorrowedFd<'_>, - _path: &CStr, - _access: Access, - _flags: AtFlags, -) -> io::Result<()> { - Ok(()) -} - -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -pub(crate) fn utimensat( - dirfd: BorrowedFd<'_>, - path: &CStr, - times: &Timestamps, - flags: AtFlags, -) -> io::Result<()> { - // Old 32-bit version: libc has `utimensat` but it is not y2038 safe by - // default. But there may be a `__utimensat16` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_utimensat) = __utimensat64.get() { - let libc_times: [LibcTimespec; 2] = [ - times.last_access.clone().into(), - times.last_modification.clone().into(), - ]; - - unsafe { - return ret(libc_utimensat( - borrowed_fd(dirfd), - c_str(path), - libc_times.as_ptr(), - bitflags_bits!(flags), - )); - } - } - - utimensat_old(dirfd, path, times, flags) - } - - // Main version: libc is y2038 safe and has `utimensat`. Or, the platform - // is not y2038 safe and there's nothing practical we can do. - #[cfg(not(any(apple, fix_y2038)))] - unsafe { - use crate::utils::as_ptr; - - ret(c::utimensat( - borrowed_fd(dirfd), - c_str(path), - as_ptr(times).cast(), - bitflags_bits!(flags), - )) - } - - // Apple version: `utimensat` was introduced in macOS 10.13. - #[cfg(apple)] - unsafe { - use crate::utils::as_ptr; - - // ABI details - weak! { - fn utimensat( - c::c_int, - *const c::c_char, - *const c::timespec, - c::c_int - ) -> c::c_int - } - extern "C" { - fn setattrlist( - path: *const c::c_char, - attr_list: *const Attrlist, - attr_buf: *const c::c_void, - attr_buf_size: c::size_t, - options: c::c_ulong, - ) -> c::c_int; - } - const FSOPT_NOFOLLOW: c::c_ulong = 0x0000_0001; - - // If we have `utimensat`, use it. - if let Some(have_utimensat) = utimensat.get() { - return ret(have_utimensat( - borrowed_fd(dirfd), - c_str(path), - as_ptr(times).cast(), - bitflags_bits!(flags), - )); - } - - // `setattrlistat` was introduced in 10.13 along with `utimensat`, so if - // we don't have `utimensat`, we don't have `setattrlistat` either. - // Emulate it using `fork`, and `fchdir` and [`setattrlist`]. - // - // [`setattrlist`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setattrlist.2.html - match c::fork() { - -1 => Err(io::Errno::IO), - 0 => { - if c::fchdir(borrowed_fd(dirfd)) != 0 { - let code = match libc_errno::errno().0 { - c::EACCES => 2, - c::ENOTDIR => 3, - _ => 1, - }; - c::_exit(code); - } - - let mut flags_arg = 0; - if flags.contains(AtFlags::SYMLINK_NOFOLLOW) { - flags_arg |= FSOPT_NOFOLLOW; - } - - let (attrbuf_size, times, attrs) = times_to_attrlist(times); - - if setattrlist( - c_str(path), - &attrs, - as_ptr(×).cast(), - attrbuf_size, - flags_arg, - ) != 0 - { - // Translate expected `errno` codes into ad-hoc integer - // values suitable for exit statuses. - let code = match libc_errno::errno().0 { - c::EACCES => 2, - c::ENOTDIR => 3, - c::EPERM => 4, - c::EROFS => 5, - c::ELOOP => 6, - c::ENOENT => 7, - c::ENAMETOOLONG => 8, - c::EINVAL => 9, - c::ESRCH => 10, - c::ENOTSUP => 11, - _ => 1, - }; - c::_exit(code); - } - - c::_exit(0); - } - child_pid => { - let mut wstatus = 0; - let _ = ret_c_int(c::waitpid(child_pid, &mut wstatus, 0))?; - if c::WIFEXITED(wstatus) { - // Translate our ad-hoc exit statuses back to `errno` - // codes. - match c::WEXITSTATUS(wstatus) { - 0 => Ok(()), - 2 => Err(io::Errno::ACCESS), - 3 => Err(io::Errno::NOTDIR), - 4 => Err(io::Errno::PERM), - 5 => Err(io::Errno::ROFS), - 6 => Err(io::Errno::LOOP), - 7 => Err(io::Errno::NOENT), - 8 => Err(io::Errno::NAMETOOLONG), - 9 => Err(io::Errno::INVAL), - 10 => Err(io::Errno::SRCH), - 11 => Err(io::Errno::NOTSUP), - _ => Err(io::Errno::IO), - } - } else { - Err(io::Errno::IO) - } - } - } - } -} - -#[cfg(fix_y2038)] -fn utimensat_old( - dirfd: BorrowedFd<'_>, - path: &CStr, - times: &Timestamps, - flags: AtFlags, -) -> io::Result<()> { - let old_times = [ - c::timespec { - tv_sec: times - .last_access - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: times.last_access.tv_nsec, - }, - c::timespec { - tv_sec: times - .last_modification - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: times.last_modification.tv_nsec, - }, - ]; - unsafe { - ret(c::utimensat( - borrowed_fd(dirfd), - c_str(path), - old_times.as_ptr(), - bitflags_bits!(flags), - )) - } -} - -#[cfg(not(target_os = "wasi"))] -pub(crate) fn chmod(path: &CStr, mode: Mode) -> io::Result<()> { - unsafe { ret(c::chmod(c_str(path), mode.bits() as c::mode_t)) } -} - -#[cfg(not(any( - linux_kernel, - target_os = "espidf", - target_os = "redox", - target_os = "wasi" -)))] -pub(crate) fn chmodat( - dirfd: BorrowedFd<'_>, - path: &CStr, - mode: Mode, - flags: AtFlags, -) -> io::Result<()> { - unsafe { - ret(c::fchmodat( - borrowed_fd(dirfd), - c_str(path), - mode.bits() as c::mode_t, - bitflags_bits!(flags), - )) - } -} - -#[cfg(linux_kernel)] -pub(crate) fn chmodat( - dirfd: BorrowedFd<'_>, - path: &CStr, - mode: Mode, - flags: AtFlags, -) -> io::Result<()> { - // Linux's `fchmodat` does not have a flags argument. - // - // Use `c::syscall` rather than `c::fchmodat` because some libc - // implementations, such as musl, add extra logic to `fchmod` to emulate - // support for `AT_SYMLINK_NOFOLLOW`, which uses `/proc` outside our - // control. - syscall! { - fn fchmodat( - base_dirfd: c::c_int, - pathname: *const c::c_char, - mode: c::mode_t - ) via SYS_fchmodat -> c::c_int - } - if flags == AtFlags::SYMLINK_NOFOLLOW { - return Err(io::Errno::OPNOTSUPP); - } - if !flags.is_empty() { - return Err(io::Errno::INVAL); - } - unsafe { - ret(fchmodat( - borrowed_fd(dirfd), - c_str(path), - mode.bits() as c::mode_t, - )) - } -} - -#[cfg(apple)] -pub(crate) fn fclonefileat( - srcfd: BorrowedFd<'_>, - dst_dirfd: BorrowedFd<'_>, - dst: &CStr, - flags: CloneFlags, -) -> io::Result<()> { - syscall! { - fn fclonefileat( - srcfd: BorrowedFd<'_>, - dst_dirfd: BorrowedFd<'_>, - dst: *const c::c_char, - flags: c::c_int - ) via SYS_fclonefileat -> c::c_int - } - - unsafe { - ret(fclonefileat( - srcfd, - dst_dirfd, - c_str(dst), - bitflags_bits!(flags), - )) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) fn chownat( - dirfd: BorrowedFd<'_>, - path: &CStr, - owner: Option, - group: Option, - flags: AtFlags, -) -> io::Result<()> { - unsafe { - let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); - ret(c::fchownat( - borrowed_fd(dirfd), - c_str(path), - ow, - gr, - bitflags_bits!(flags), - )) - } -} - -#[cfg(not(any(apple, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) fn mknodat( - dirfd: BorrowedFd<'_>, - path: &CStr, - file_type: FileType, - mode: Mode, - dev: Dev, -) -> io::Result<()> { - unsafe { - ret(c::mknodat( - borrowed_fd(dirfd), - c_str(path), - (mode.bits() | file_type.as_raw_mode()) as c::mode_t, - dev.try_into().map_err(|_e| io::Errno::PERM)?, - )) - } -} - -#[cfg(linux_kernel)] -pub(crate) fn copy_file_range( - fd_in: BorrowedFd<'_>, - off_in: Option<&mut u64>, - fd_out: BorrowedFd<'_>, - off_out: Option<&mut u64>, - len: usize, -) -> io::Result { - syscall! { - fn copy_file_range( - fd_in: c::c_int, - off_in: *mut c::loff_t, - fd_out: c::c_int, - off_out: *mut c::loff_t, - len: usize, - flags: c::c_uint - ) via SYS_copy_file_range -> c::ssize_t - } - - let mut off_in_val: c::loff_t = 0; - let mut off_out_val: c::loff_t = 0; - // Silently cast; we'll get `EINVAL` if the value is negative. - let off_in_ptr = if let Some(off_in) = &off_in { - off_in_val = **off_in as i64; - &mut off_in_val - } else { - null_mut() - }; - let off_out_ptr = if let Some(off_out) = &off_out { - off_out_val = **off_out as i64; - &mut off_out_val - } else { - null_mut() - }; - let copied = unsafe { - ret_usize(copy_file_range( - borrowed_fd(fd_in), - off_in_ptr, - borrowed_fd(fd_out), - off_out_ptr, - len, - 0, // no flags are defined yet - ))? - }; - if let Some(off_in) = off_in { - *off_in = off_in_val as u64; - } - if let Some(off_out) = off_out { - *off_out = off_out_val as u64; - } - Ok(copied) -} - -#[cfg(not(any( - apple, - netbsdlike, - solarish, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", -)))] -pub(crate) fn fadvise(fd: BorrowedFd<'_>, offset: u64, len: u64, advice: Advice) -> io::Result<()> { - let offset = offset as i64; - let len = len as i64; - - // FreeBSD returns `EINVAL` on invalid offsets; emulate the POSIX behavior. - #[cfg(target_os = "freebsd")] - let offset = if (offset as i64) < 0 { - i64::MAX - } else { - offset - }; - - // FreeBSD returns `EINVAL` on overflow; emulate the POSIX behavior. - #[cfg(target_os = "freebsd")] - let len = if len > 0 && offset.checked_add(len).is_none() { - i64::MAX - offset - } else { - len - }; - - let err = unsafe { c::posix_fadvise(borrowed_fd(fd), offset, len, advice as c::c_int) }; - - // `posix_fadvise` returns its error status rather than using `errno`. - if err == 0 { - Ok(()) - } else { - Err(io::Errno(err)) - } -} - -pub(crate) fn fcntl_getfl(fd: BorrowedFd<'_>) -> io::Result { - let flags = unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GETFL))? }; - Ok(OFlags::from_bits_retain(bitcast!(flags))) -} - -pub(crate) fn fcntl_setfl(fd: BorrowedFd<'_>, flags: OFlags) -> io::Result<()> { - unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_SETFL, flags.bits())) } -} - -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] -pub(crate) fn fcntl_get_seals(fd: BorrowedFd<'_>) -> io::Result { - let flags = unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GET_SEALS))? }; - Ok(SealFlags::from_bits_retain(bitcast!(flags))) -} - -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] -pub(crate) fn fcntl_add_seals(fd: BorrowedFd<'_>, seals: SealFlags) -> io::Result<()> { - unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_ADD_SEALS, seals.bits())) } -} - -#[cfg(not(any( - target_os = "emscripten", - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -#[inline] -pub(crate) fn fcntl_lock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { - use c::{flock, F_RDLCK, F_SETLK, F_SETLKW, F_UNLCK, F_WRLCK, SEEK_SET}; - - let (cmd, l_type) = match operation { - FlockOperation::LockShared => (F_SETLKW, F_RDLCK), - FlockOperation::LockExclusive => (F_SETLKW, F_WRLCK), - FlockOperation::Unlock => (F_SETLKW, F_UNLCK), - FlockOperation::NonBlockingLockShared => (F_SETLK, F_RDLCK), - FlockOperation::NonBlockingLockExclusive => (F_SETLK, F_WRLCK), - FlockOperation::NonBlockingUnlock => (F_SETLK, F_UNLCK), - }; - - unsafe { - let mut lock: flock = core::mem::zeroed(); - lock.l_type = l_type as _; - - // When `l_len` is zero, this locks all the bytes from - // `l_whence`/`l_start` to the end of the file, even as the - // file grows dynamically. - lock.l_whence = SEEK_SET as _; - lock.l_start = 0; - lock.l_len = 0; - - ret(c::fcntl(borrowed_fd(fd), cmd, &lock)) - } -} - -pub(crate) fn seek(fd: BorrowedFd<'_>, pos: SeekFrom) -> io::Result { - let (whence, offset) = match pos { - SeekFrom::Start(pos) => { - let pos: u64 = pos; - // Silently cast; we'll get `EINVAL` if the value is negative. - (c::SEEK_SET, pos as i64) - } - SeekFrom::End(offset) => (c::SEEK_END, offset), - SeekFrom::Current(offset) => (c::SEEK_CUR, offset), - #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] - SeekFrom::Data(offset) => (c::SEEK_DATA, offset), - #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] - SeekFrom::Hole(offset) => (c::SEEK_HOLE, offset), - }; - - // ESP-IDF doesn't support 64-bit offsets. - #[cfg(target_os = "espidf")] - let offset: i32 = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; - - let offset = unsafe { ret_off_t(c::lseek(borrowed_fd(fd), offset, whence))? }; - Ok(offset as u64) -} - -pub(crate) fn tell(fd: BorrowedFd<'_>) -> io::Result { - let offset = unsafe { ret_off_t(c::lseek(borrowed_fd(fd), 0, c::SEEK_CUR))? }; - Ok(offset as u64) -} - -#[cfg(not(any(linux_kernel, target_os = "wasi")))] -pub(crate) fn fchmod(fd: BorrowedFd<'_>, mode: Mode) -> io::Result<()> { - unsafe { ret(c::fchmod(borrowed_fd(fd), bitflags_bits!(mode))) } -} - -#[cfg(linux_kernel)] -pub(crate) fn fchmod(fd: BorrowedFd<'_>, mode: Mode) -> io::Result<()> { - // Use `c::syscall` rather than `c::fchmod` because some libc - // implementations, such as musl, add extra logic to `fchmod` to emulate - // support for `O_PATH`, which uses `/proc` outside our control and - // interferes with our own use of `O_PATH`. - syscall! { - fn fchmod( - fd: c::c_int, - mode: c::mode_t - ) via SYS_fchmod -> c::c_int - } - unsafe { ret(fchmod(borrowed_fd(fd), mode.bits() as c::mode_t)) } -} - -#[cfg(linux_kernel)] -pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option, group: Option) -> io::Result<()> { - // Use `c::syscall` rather than `c::fchown` because some libc - // implementations, such as musl, add extra logic to `fchown` to emulate - // support for `O_PATH`, which uses `/proc` outside our control and - // interferes with our own use of `O_PATH`. - syscall! { - fn fchown( - fd: c::c_int, - owner: c::uid_t, - group: c::gid_t - ) via SYS_fchown -> c::c_int - } - unsafe { - let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); - ret(fchown(borrowed_fd(fd), ow, gr)) - } -} - -#[cfg(not(any(linux_kernel, target_os = "wasi")))] -pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option, group: Option) -> io::Result<()> { - unsafe { - let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); - ret(c::fchown(borrowed_fd(fd), ow, gr)) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "solaris", target_os = "wasi")))] -pub(crate) fn flock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { - unsafe { ret(c::flock(borrowed_fd(fd), operation as c::c_int)) } -} - -#[cfg(linux_kernel)] -pub(crate) fn syncfs(fd: BorrowedFd<'_>) -> io::Result<()> { - // Some versions of Android libc lack a `syncfs` function. - #[cfg(target_os = "android")] - syscall! { - fn syncfs(fd: c::c_int) via SYS_syncfs -> c::c_int - } - - // `syncfs` was added to glibc in 2.20. - #[cfg(not(target_os = "android"))] - weak_or_syscall! { - fn syncfs(fd: c::c_int) via SYS_syncfs -> c::c_int - } - - unsafe { ret(syncfs(borrowed_fd(fd))) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) fn sync() { - unsafe { c::sync() } -} - -pub(crate) fn fstat(fd: BorrowedFd<'_>) -> io::Result { - // 32-bit and mips64 Linux: `struct stat64` is not y2038 compatible; use - // `statx`. - // - // And, some old platforms don't support `statx`, and some fail with a - // confusing error code, so we call `crate::fs::statx` to handle that. If - // `statx` isn't available, fall back to the buggy system call. - #[cfg(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - ))] - { - match crate::fs::statx(fd, cstr!(""), AtFlags::EMPTY_PATH, StatxFlags::BASIC_STATS) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => fstat_old(fd), - Err(err) => Err(err), - } - } - - // Main version: libc is y2038 safe. Or, the platform is not y2038 safe and - // there's nothing practical we can do. - #[cfg(not(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) - )))] - unsafe { - let mut stat = MaybeUninit::::uninit(); - ret(c::fstat(borrowed_fd(fd), stat.as_mut_ptr()))?; - Ok(stat.assume_init()) - } -} - -#[cfg(all( - linux_kernel, - any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ) -))] -fn fstat_old(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(c::fstat(borrowed_fd(fd), result.as_mut_ptr()))?; - stat64_to_stat(result.assume_init()) - } -} - -#[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -pub(crate) fn fstatfs(fd: BorrowedFd<'_>) -> io::Result { - let mut statfs = MaybeUninit::::uninit(); - unsafe { - ret(c::fstatfs(borrowed_fd(fd), statfs.as_mut_ptr()))?; - Ok(statfs.assume_init()) - } -} - -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -pub(crate) fn fstatvfs(fd: BorrowedFd<'_>) -> io::Result { - let mut statvfs = MaybeUninit::::uninit(); - unsafe { - ret(c::fstatvfs(borrowed_fd(fd), statvfs.as_mut_ptr()))?; - Ok(libc_statvfs_to_statvfs(statvfs.assume_init())) - } -} - -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -fn libc_statvfs_to_statvfs(from: c::statvfs) -> StatVfs { - StatVfs { - f_bsize: from.f_bsize as u64, - f_frsize: from.f_frsize as u64, - f_blocks: from.f_blocks as u64, - f_bfree: from.f_bfree as u64, - f_bavail: from.f_bavail as u64, - f_files: from.f_files as u64, - f_ffree: from.f_ffree as u64, - f_favail: from.f_ffree as u64, - #[cfg(not(target_os = "aix"))] - f_fsid: from.f_fsid as u64, - #[cfg(target_os = "aix")] - f_fsid: ((from.f_fsid.val[0] as u64) << 32) | from.f_fsid.val[1], - f_flag: StatVfsMountFlags::from_bits_retain(from.f_flag as u64), - f_namemax: from.f_namemax as u64, - } -} - -#[cfg(not(target_os = "espidf"))] -pub(crate) fn futimens(fd: BorrowedFd<'_>, times: &Timestamps) -> io::Result<()> { - // Old 32-bit version: libc has `futimens` but it is not y2038 safe by - // default. But there may be a `__futimens64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_futimens) = __futimens64.get() { - let libc_times: [LibcTimespec; 2] = [ - times.last_access.clone().into(), - times.last_modification.clone().into(), - ]; - - unsafe { - return ret(libc_futimens(borrowed_fd(fd), libc_times.as_ptr())); - } - } - - futimens_old(fd, times) - } - - // Main version: libc is y2038 safe and has `futimens`. Or, the platform - // is not y2038 safe and there's nothing practical we can do. - #[cfg(not(any(apple, fix_y2038)))] - unsafe { - use crate::utils::as_ptr; - - ret(c::futimens(borrowed_fd(fd), as_ptr(times).cast())) - } - - // Apple version: `futimens` was introduced in macOS 10.13. - #[cfg(apple)] - unsafe { - use crate::utils::as_ptr; - - // ABI details. - weak! { - fn futimens(c::c_int, *const c::timespec) -> c::c_int - } - extern "C" { - fn fsetattrlist( - fd: c::c_int, - attr_list: *const Attrlist, - attr_buf: *const c::c_void, - attr_buf_size: c::size_t, - options: c::c_ulong, - ) -> c::c_int; - } - - // If we have `futimens`, use it. - if let Some(have_futimens) = futimens.get() { - return ret(have_futimens(borrowed_fd(fd), as_ptr(times).cast())); - } - - // Otherwise use `fsetattrlist`. - let (attrbuf_size, times, attrs) = times_to_attrlist(times); - - ret(fsetattrlist( - borrowed_fd(fd), - &attrs, - as_ptr(×).cast(), - attrbuf_size, - 0, - )) - } -} - -#[cfg(fix_y2038)] -fn futimens_old(fd: BorrowedFd<'_>, times: &Timestamps) -> io::Result<()> { - let old_times = [ - c::timespec { - tv_sec: times - .last_access - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: times.last_access.tv_nsec, - }, - c::timespec { - tv_sec: times - .last_modification - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: times.last_modification.tv_nsec, - }, - ]; - - unsafe { ret(c::futimens(borrowed_fd(fd), old_times.as_ptr())) } -} - -#[cfg(not(any( - apple, - netbsdlike, - solarish, - target_os = "aix", - target_os = "dragonfly", - target_os = "espidf", - target_os = "nto", - target_os = "redox", -)))] -pub(crate) fn fallocate( - fd: BorrowedFd<'_>, - mode: FallocateFlags, - offset: u64, - len: u64, -) -> io::Result<()> { - // Silently cast; we'll get `EINVAL` if the value is negative. - let offset = offset as i64; - let len = len as i64; - - #[cfg(any(linux_kernel, target_os = "fuchsia"))] - unsafe { - ret(c::fallocate( - borrowed_fd(fd), - bitflags_bits!(mode), - offset, - len, - )) - } - - #[cfg(not(any(linux_kernel, target_os = "fuchsia")))] - { - assert!(mode.is_empty()); - let err = unsafe { c::posix_fallocate(borrowed_fd(fd), offset, len) }; - - // `posix_fallocate` returns its error status rather than using `errno`. - if err == 0 { - Ok(()) - } else { - Err(io::Errno(err)) - } - } -} - -#[cfg(apple)] -pub(crate) fn fallocate( - fd: BorrowedFd<'_>, - mode: FallocateFlags, - offset: u64, - len: u64, -) -> io::Result<()> { - let offset: i64 = offset.try_into().map_err(|_e| io::Errno::INVAL)?; - let len = len as i64; - - assert!(mode.is_empty()); - - let new_len = offset.checked_add(len).ok_or(io::Errno::FBIG)?; - let mut store = c::fstore_t { - fst_flags: c::F_ALLOCATECONTIG, - fst_posmode: c::F_PEOFPOSMODE, - fst_offset: 0, - fst_length: new_len, - fst_bytesalloc: 0, - }; - unsafe { - if c::fcntl(borrowed_fd(fd), c::F_PREALLOCATE, &store) == -1 { - // Unable to allocate contiguous disk space; attempt to allocate - // non-contiguously. - store.fst_flags = c::F_ALLOCATEALL; - let _ = ret_c_int(c::fcntl(borrowed_fd(fd), c::F_PREALLOCATE, &store))?; - } - ret(c::ftruncate(borrowed_fd(fd), new_len)) - } -} - -pub(crate) fn fsync(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::fsync(borrowed_fd(fd))) } -} - -#[cfg(not(any( - apple, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", -)))] -pub(crate) fn fdatasync(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::fdatasync(borrowed_fd(fd))) } -} - -pub(crate) fn ftruncate(fd: BorrowedFd<'_>, length: u64) -> io::Result<()> { - let length = length.try_into().map_err(|_overflow_err| io::Errno::FBIG)?; - unsafe { ret(c::ftruncate(borrowed_fd(fd), length)) } -} - -#[cfg(any(linux_kernel, target_os = "freebsd"))] -pub(crate) fn memfd_create(path: &CStr, flags: MemfdFlags) -> io::Result { - #[cfg(target_os = "freebsd")] - weakcall! { - fn memfd_create( - name: *const c::c_char, - flags: c::c_uint - ) -> c::c_int - } - - #[cfg(linux_kernel)] - weak_or_syscall! { - fn memfd_create( - name: *const c::c_char, - flags: c::c_uint - ) via SYS_memfd_create -> c::c_int - } - - unsafe { ret_owned_fd(memfd_create(c_str(path), bitflags_bits!(flags))) } -} - -#[cfg(linux_kernel)] -pub(crate) fn openat2( - dirfd: BorrowedFd<'_>, - path: &CStr, - oflags: OFlags, - mode: Mode, - resolve: ResolveFlags, -) -> io::Result { - use linux_raw_sys::general::open_how; - - syscall! { - fn openat2( - base_dirfd: c::c_int, - pathname: *const c::c_char, - how: *mut open_how, - size: usize - ) via SYS_OPENAT2 -> c::c_int - } - - let oflags = oflags.bits(); - let mut open_how = open_how { - flags: u64::from(oflags), - mode: u64::from(mode.bits()), - resolve: resolve.bits(), - }; - - unsafe { - ret_owned_fd(openat2( - borrowed_fd(dirfd), - c_str(path), - &mut open_how, - size_of::(), - )) - } -} -#[cfg(all(linux_kernel, target_pointer_width = "32"))] -const SYS_OPENAT2: i32 = 437; -#[cfg(all(linux_kernel, target_pointer_width = "64"))] -const SYS_OPENAT2: i64 = 437; - -#[cfg(target_os = "linux")] -pub(crate) fn sendfile( - out_fd: BorrowedFd<'_>, - in_fd: BorrowedFd<'_>, - offset: Option<&mut u64>, - count: usize, -) -> io::Result { - unsafe { - ret_usize(c::sendfile64( - borrowed_fd(out_fd), - borrowed_fd(in_fd), - offset.map_or(null_mut(), crate::utils::as_mut_ptr).cast(), - count, - )) - } -} - -/// Convert from a Linux `statx` value to rustix's `Stat`. -#[cfg(all(linux_kernel, target_pointer_width = "32"))] -fn statx_to_stat(x: crate::fs::Statx) -> io::Result { - Ok(Stat { - st_dev: crate::fs::makedev(x.stx_dev_major, x.stx_dev_minor).into(), - st_mode: x.stx_mode.into(), - st_nlink: x.stx_nlink.into(), - st_uid: x.stx_uid.into(), - st_gid: x.stx_gid.into(), - st_rdev: crate::fs::makedev(x.stx_rdev_major, x.stx_rdev_minor).into(), - st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blksize: x.stx_blksize.into(), - st_blocks: x.stx_blocks.into(), - st_atime: x - .stx_atime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_atime_nsec: x.stx_atime.tv_nsec as _, - st_mtime: x - .stx_mtime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_mtime_nsec: x.stx_mtime.tv_nsec as _, - st_ctime: x - .stx_ctime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ctime_nsec: x.stx_ctime.tv_nsec as _, - st_ino: x.stx_ino.into(), - }) -} - -/// Convert from a Linux `statx` value to rustix's `Stat`. -/// -/// mips64' `struct stat64` in libc has private fields, and `stx_blocks` -#[cfg(all(linux_kernel, any(target_arch = "mips64", target_arch = "mips64r6")))] -fn statx_to_stat(x: crate::fs::Statx) -> io::Result { - let mut result: Stat = unsafe { core::mem::zeroed() }; - - result.st_dev = crate::fs::makedev(x.stx_dev_major, x.stx_dev_minor); - result.st_mode = x.stx_mode.into(); - result.st_nlink = x.stx_nlink.into(); - result.st_uid = x.stx_uid.into(); - result.st_gid = x.stx_gid.into(); - result.st_rdev = crate::fs::makedev(x.stx_rdev_major, x.stx_rdev_minor); - result.st_size = x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_blksize = x.stx_blksize.into(); - result.st_blocks = x.stx_blocks.try_into().map_err(|_e| io::Errno::OVERFLOW)?; - result.st_atime = x - .stx_atime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?; - result.st_atime_nsec = x.stx_atime.tv_nsec as _; - result.st_mtime = x - .stx_mtime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?; - result.st_mtime_nsec = x.stx_mtime.tv_nsec as _; - result.st_ctime = x - .stx_ctime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?; - result.st_ctime_nsec = x.stx_ctime.tv_nsec as _; - result.st_ino = x.stx_ino.into(); - - Ok(result) -} - -/// Convert from a Linux `stat64` value to rustix's `Stat`. -#[cfg(all(linux_kernel, target_pointer_width = "32"))] -fn stat64_to_stat(s64: c::stat64) -> io::Result { - Ok(Stat { - st_dev: s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_mode: s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_nlink: s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_uid: s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_gid: s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_rdev: s64.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_size: s64.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blksize: s64.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blocks: s64.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_atime: s64.st_atime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_atime_nsec: s64 - .st_atime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_mtime: s64.st_mtime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_mtime_nsec: s64 - .st_mtime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ctime: s64.st_ctime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_ctime_nsec: s64 - .st_ctime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ino: s64.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?, - }) -} - -/// Convert from a Linux `stat64` value to rustix's `Stat`. -/// -/// mips64' `struct stat64` in libc has private fields, and `st_blocks` has -/// type `i64`. -#[cfg(all(linux_kernel, any(target_arch = "mips64", target_arch = "mips64r6")))] -fn stat64_to_stat(s64: c::stat64) -> io::Result { - let mut result: Stat = unsafe { core::mem::zeroed() }; - - result.st_dev = s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_mode = s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_nlink = s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_uid = s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_gid = s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_rdev = s64.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_size = s64.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_blksize = s64.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_blocks = s64.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_atime = s64.st_atime.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_atime_nsec = s64 - .st_atime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?; - result.st_mtime = s64.st_mtime.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_mtime_nsec = s64 - .st_mtime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?; - result.st_ctime = s64.st_ctime.try_into().map_err(|_| io::Errno::OVERFLOW)?; - result.st_ctime_nsec = s64 - .st_ctime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?; - result.st_ino = s64.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?; - - Ok(result) -} - -#[cfg(linux_kernel)] -#[allow(non_upper_case_globals)] -mod sys { - use super::{c, BorrowedFd, Statx}; - - weak_or_syscall! { - pub(super) fn statx( - dirfd_: BorrowedFd<'_>, - path: *const c::c_char, - flags: c::c_int, - mask: c::c_uint, - buf: *mut Statx - ) via SYS_statx -> c::c_int - } -} - -#[cfg(linux_kernel)] -#[allow(non_upper_case_globals)] -pub(crate) fn statx( - dirfd: BorrowedFd<'_>, - path: &CStr, - flags: AtFlags, - mask: StatxFlags, -) -> io::Result { - // If a future Linux kernel adds more fields to `struct statx` and users - // passing flags unknown to rustix in `StatxFlags`, we could end up - // writing outside of the buffer. To prevent this possibility, we mask off - // any flags that we don't know about. - // - // This includes `STATX__RESERVED`, which has a value that we know, but - // which could take on arbitrary new meaning in the future. Linux currently - // rejects this flag with `EINVAL`, so we do the same. - // - // This doesn't rely on `STATX_ALL` because [it's deprecated] and already - // doesn't represent all the known flags. - // - // [it's deprecated]: https://patchwork.kernel.org/project/linux-fsdevel/patch/20200505095915.11275-7-mszeredi@redhat.com/ - #[cfg(not(any(target_os = "android", target_env = "musl")))] - const STATX__RESERVED: u32 = c::STATX__RESERVED as u32; - #[cfg(any(target_os = "android", target_env = "musl"))] - const STATX__RESERVED: u32 = linux_raw_sys::general::STATX__RESERVED; - if (mask.bits() & STATX__RESERVED) == STATX__RESERVED { - return Err(io::Errno::INVAL); - } - let mask = mask & StatxFlags::all(); - - let mut statx_buf = MaybeUninit::::uninit(); - unsafe { - ret(sys::statx( - dirfd, - c_str(path), - bitflags_bits!(flags), - mask.bits(), - statx_buf.as_mut_ptr(), - ))?; - Ok(statx_buf.assume_init()) - } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn is_statx_available() -> bool { - unsafe { - // Call `statx` with null pointers so that if it fails for any reason - // other than `EFAULT`, we know it's not supported. - matches!( - ret(sys::statx(CWD, null(), 0, 0, null_mut())), - Err(io::Errno::FAULT) - ) - } -} - -#[cfg(apple)] -pub(crate) unsafe fn fcopyfile( - from: BorrowedFd<'_>, - to: BorrowedFd<'_>, - state: copyfile_state_t, - flags: CopyfileFlags, -) -> io::Result<()> { - extern "C" { - fn fcopyfile( - from: c::c_int, - to: c::c_int, - state: copyfile_state_t, - flags: c::c_uint, - ) -> c::c_int; - } - - nonnegative_ret(fcopyfile( - borrowed_fd(from), - borrowed_fd(to), - state, - bitflags_bits!(flags), - )) -} - -#[cfg(apple)] -pub(crate) fn copyfile_state_alloc() -> io::Result { - extern "C" { - fn copyfile_state_alloc() -> copyfile_state_t; - } - - let result = unsafe { copyfile_state_alloc() }; - if result.0.is_null() { - Err(io::Errno::last_os_error()) - } else { - Ok(result) - } -} - -#[cfg(apple)] -pub(crate) unsafe fn copyfile_state_free(state: copyfile_state_t) -> io::Result<()> { - extern "C" { - fn copyfile_state_free(state: copyfile_state_t) -> c::c_int; - } - - nonnegative_ret(copyfile_state_free(state)) -} - -#[cfg(apple)] -const COPYFILE_STATE_COPIED: u32 = 8; - -#[cfg(apple)] -pub(crate) unsafe fn copyfile_state_get_copied(state: copyfile_state_t) -> io::Result { - let mut copied = MaybeUninit::::uninit(); - copyfile_state_get(state, COPYFILE_STATE_COPIED, copied.as_mut_ptr().cast())?; - Ok(copied.assume_init()) -} - -#[cfg(apple)] -pub(crate) unsafe fn copyfile_state_get( - state: copyfile_state_t, - flag: u32, - dst: *mut c::c_void, -) -> io::Result<()> { - extern "C" { - fn copyfile_state_get(state: copyfile_state_t, flag: u32, dst: *mut c::c_void) -> c::c_int; - } - - nonnegative_ret(copyfile_state_get(state, flag, dst)) -} - -#[cfg(apple)] -pub(crate) fn getpath(fd: BorrowedFd<'_>) -> io::Result { - // The use of `PATH_MAX` is generally not encouraged, but it - // is inevitable in this case because macOS defines `fcntl` with - // `F_GETPATH` in terms of `MAXPATHLEN`, and there are no - // alternatives. If a better method is invented, it should be used - // instead. - let mut buf = vec![0; c::PATH_MAX as usize]; - - // From the [macOS `fcntl` manual page]: - // `F_GETPATH` - Get the path of the file descriptor `Fildes`. The argument - // must be a buffer of size `MAXPATHLEN` or greater. - // - // [macOS `fcntl` manual page]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html - unsafe { - ret(c::fcntl(borrowed_fd(fd), c::F_GETPATH, buf.as_mut_ptr()))?; - } - - let l = buf.iter().position(|&c| c == 0).unwrap(); - buf.truncate(l); - buf.shrink_to_fit(); - - Ok(CString::new(buf).unwrap()) -} - -#[cfg(apple)] -pub(crate) fn fcntl_rdadvise(fd: BorrowedFd<'_>, offset: u64, len: u64) -> io::Result<()> { - // From the [macOS `fcntl` manual page]: - // `F_RDADVISE` - Issue an advisory read async with no copy to user. - // - // The `F_RDADVISE` command operates on the following structure which holds - // information passed from the user to the system: - // - // ```c - // struct radvisory { - // off_t ra_offset; /* offset into the file */ - // int ra_count; /* size of the read */ - // }; - // ``` - // - // [macOS `fcntl` manual page]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html - let ra_offset = match offset.try_into() { - Ok(len) => len, - // If this conversion fails, the user is providing an offset outside - // any possible file extent, so just ignore it. - Err(_) => return Ok(()), - }; - let ra_count = match len.try_into() { - Ok(len) => len, - // If this conversion fails, the user is providing a dubiously large - // hint which is unlikely to improve performance. - Err(_) => return Ok(()), - }; - unsafe { - let radvisory = c::radvisory { - ra_offset, - ra_count, - }; - ret(c::fcntl(borrowed_fd(fd), c::F_RDADVISE, &radvisory)) - } -} - -#[cfg(apple)] -pub(crate) fn fcntl_fullfsync(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_FULLFSYNC)) } -} - -#[cfg(apple)] -pub(crate) fn fcntl_nocache(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { - unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_NOCACHE, value as c::c_int)) } -} - -#[cfg(apple)] -pub(crate) fn fcntl_global_nocache(fd: BorrowedFd<'_>, value: bool) -> io::Result<()> { - unsafe { - ret(c::fcntl( - borrowed_fd(fd), - c::F_GLOBAL_NOCACHE, - value as c::c_int, - )) - } -} - -/// Convert `times` from a `futimens`/`utimensat` argument into `setattrlist` -/// arguments. -#[cfg(apple)] -fn times_to_attrlist(times: &Timestamps) -> (c::size_t, [c::timespec; 2], Attrlist) { - // ABI details. - const ATTR_CMN_MODTIME: u32 = 0x0000_0400; - const ATTR_CMN_ACCTIME: u32 = 0x0000_1000; - const ATTR_BIT_MAP_COUNT: u16 = 5; - - let mut times = times.clone(); - - // If we have any `UTIME_NOW` elements, replace them with the current time. - if times.last_access.tv_nsec == c::UTIME_NOW || times.last_modification.tv_nsec == c::UTIME_NOW - { - let now = { - let mut tv = c::timeval { - tv_sec: 0, - tv_usec: 0, - }; - unsafe { - let r = c::gettimeofday(&mut tv, null_mut()); - assert_eq!(r, 0); - } - c::timespec { - tv_sec: tv.tv_sec, - tv_nsec: (tv.tv_usec * 1000) as _, - } - }; - if times.last_access.tv_nsec == c::UTIME_NOW { - times.last_access = now; - } - if times.last_modification.tv_nsec == c::UTIME_NOW { - times.last_modification = now; - } - } - - // Pack the return values following the rules for [`getattrlist`]. - // - // [`getattrlist`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getattrlist.2.html - let mut times_size = 0; - let mut attrs = Attrlist { - bitmapcount: ATTR_BIT_MAP_COUNT, - reserved: 0, - commonattr: 0, - volattr: 0, - dirattr: 0, - fileattr: 0, - forkattr: 0, - }; - let mut return_times = [c::timespec { - tv_sec: 0, - tv_nsec: 0, - }; 2]; - let mut times_index = 0; - if times.last_modification.tv_nsec != c::UTIME_OMIT { - attrs.commonattr |= ATTR_CMN_MODTIME; - return_times[times_index] = times.last_modification; - times_index += 1; - times_size += size_of::(); - } - if times.last_access.tv_nsec != c::UTIME_OMIT { - attrs.commonattr |= ATTR_CMN_ACCTIME; - return_times[times_index] = times.last_access; - times_size += size_of::(); - } - - (times_size, return_times, attrs) -} - -/// Support type for `Attrlist`. -#[cfg(apple)] -type Attrgroup = u32; - -/// Attribute list for use with `setattrlist`. -#[cfg(apple)] -#[repr(C)] -struct Attrlist { - bitmapcount: u16, - reserved: u16, - commonattr: Attrgroup, - volattr: Attrgroup, - dirattr: Attrgroup, - fileattr: Attrgroup, - forkattr: Attrgroup, -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn getxattr(path: &CStr, name: &CStr, value: &mut [u8]) -> io::Result { - let value_ptr = value.as_mut_ptr(); - - #[cfg(not(apple))] - unsafe { - ret_usize(c::getxattr( - path.as_ptr(), - name.as_ptr(), - value_ptr.cast::(), - value.len(), - )) - } - - #[cfg(apple)] - unsafe { - ret_usize(c::getxattr( - path.as_ptr(), - name.as_ptr(), - value_ptr.cast::(), - value.len(), - 0, - 0, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn lgetxattr(path: &CStr, name: &CStr, value: &mut [u8]) -> io::Result { - let value_ptr = value.as_mut_ptr(); - - #[cfg(not(apple))] - unsafe { - ret_usize(c::lgetxattr( - path.as_ptr(), - name.as_ptr(), - value_ptr.cast::(), - value.len(), - )) - } - - #[cfg(apple)] - unsafe { - ret_usize(c::getxattr( - path.as_ptr(), - name.as_ptr(), - value_ptr.cast::(), - value.len(), - 0, - c::XATTR_NOFOLLOW, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn fgetxattr(fd: BorrowedFd<'_>, name: &CStr, value: &mut [u8]) -> io::Result { - let value_ptr = value.as_mut_ptr(); - - #[cfg(not(apple))] - unsafe { - ret_usize(c::fgetxattr( - borrowed_fd(fd), - name.as_ptr(), - value_ptr.cast::(), - value.len(), - )) - } - - #[cfg(apple)] - unsafe { - ret_usize(c::fgetxattr( - borrowed_fd(fd), - name.as_ptr(), - value_ptr.cast::(), - value.len(), - 0, - 0, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn setxattr( - path: &CStr, - name: &CStr, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - #[cfg(not(apple))] - unsafe { - ret(c::setxattr( - path.as_ptr(), - name.as_ptr(), - value.as_ptr().cast::(), - value.len(), - flags.bits() as i32, - )) - } - - #[cfg(apple)] - unsafe { - ret(c::setxattr( - path.as_ptr(), - name.as_ptr(), - value.as_ptr().cast::(), - value.len(), - 0, - flags.bits() as i32, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn lsetxattr( - path: &CStr, - name: &CStr, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - #[cfg(not(apple))] - unsafe { - ret(c::lsetxattr( - path.as_ptr(), - name.as_ptr(), - value.as_ptr().cast::(), - value.len(), - flags.bits() as i32, - )) - } - - #[cfg(apple)] - unsafe { - ret(c::setxattr( - path.as_ptr(), - name.as_ptr(), - value.as_ptr().cast::(), - value.len(), - 0, - flags.bits() as i32 | c::XATTR_NOFOLLOW, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn fsetxattr( - fd: BorrowedFd<'_>, - name: &CStr, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - #[cfg(not(apple))] - unsafe { - ret(c::fsetxattr( - borrowed_fd(fd), - name.as_ptr(), - value.as_ptr().cast::(), - value.len(), - flags.bits() as i32, - )) - } - - #[cfg(apple)] - unsafe { - ret(c::fsetxattr( - borrowed_fd(fd), - name.as_ptr(), - value.as_ptr().cast::(), - value.len(), - 0, - flags.bits() as i32, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn listxattr(path: &CStr, list: &mut [c::c_char]) -> io::Result { - #[cfg(not(apple))] - unsafe { - ret_usize(c::listxattr(path.as_ptr(), list.as_mut_ptr(), list.len())) - } - - #[cfg(apple)] - unsafe { - ret_usize(c::listxattr( - path.as_ptr(), - list.as_mut_ptr(), - list.len(), - 0, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn llistxattr(path: &CStr, list: &mut [c::c_char]) -> io::Result { - #[cfg(not(apple))] - unsafe { - ret_usize(c::llistxattr(path.as_ptr(), list.as_mut_ptr(), list.len())) - } - - #[cfg(apple)] - unsafe { - ret_usize(c::listxattr( - path.as_ptr(), - list.as_mut_ptr(), - list.len(), - c::XATTR_NOFOLLOW, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn flistxattr(fd: BorrowedFd<'_>, list: &mut [c::c_char]) -> io::Result { - let fd = borrowed_fd(fd); - - #[cfg(not(apple))] - unsafe { - ret_usize(c::flistxattr(fd, list.as_mut_ptr(), list.len())) - } - - #[cfg(apple)] - unsafe { - ret_usize(c::flistxattr(fd, list.as_mut_ptr(), list.len(), 0)) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn removexattr(path: &CStr, name: &CStr) -> io::Result<()> { - #[cfg(not(apple))] - unsafe { - ret(c::removexattr(path.as_ptr(), name.as_ptr())) - } - - #[cfg(apple)] - unsafe { - ret(c::removexattr(path.as_ptr(), name.as_ptr(), 0)) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn lremovexattr(path: &CStr, name: &CStr) -> io::Result<()> { - #[cfg(not(apple))] - unsafe { - ret(c::lremovexattr(path.as_ptr(), name.as_ptr())) - } - - #[cfg(apple)] - unsafe { - ret(c::removexattr( - path.as_ptr(), - name.as_ptr(), - c::XATTR_NOFOLLOW, - )) - } -} - -#[cfg(any(apple, linux_kernel))] -pub(crate) fn fremovexattr(fd: BorrowedFd<'_>, name: &CStr) -> io::Result<()> { - let fd = borrowed_fd(fd); - - #[cfg(not(apple))] - unsafe { - ret(c::fremovexattr(fd, name.as_ptr())) - } - - #[cfg(apple)] - unsafe { - ret(c::fremovexattr(fd, name.as_ptr(), 0)) - } -} - -#[test] -fn test_sizes() { - #[cfg(linux_kernel)] - assert_eq_size!(c::loff_t, u64); - - // Assert that `Timestamps` has the expected layout. If we're not fixing - // y2038, libc's type should match ours. If we are, it's smaller. - #[cfg(not(fix_y2038))] - assert_eq_size!([c::timespec; 2], Timestamps); - #[cfg(fix_y2038)] - assert!(core::mem::size_of::<[c::timespec; 2]>() < core::mem::size_of::()); -} diff --git a/third_party/rust/rustix/src/backend/libc/fs/types.rs b/third_party/rust/rustix/src/backend/libc/fs/types.rs deleted file mode 100644 index 7b55166bf04a..000000000000 --- a/third_party/rust/rustix/src/backend/libc/fs/types.rs +++ /dev/null @@ -1,1151 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -#[cfg(not(target_os = "espidf"))] -bitflags! { - /// `*_OK` constants for use with [`accessat`]. - /// - /// [`accessat`]: fn.accessat.html - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct Access: c::c_int { - /// `R_OK` - const READ_OK = c::R_OK; - - /// `W_OK` - const WRITE_OK = c::W_OK; - - /// `X_OK` - const EXEC_OK = c::X_OK; - - /// `F_OK` - const EXISTS = c::F_OK; - - /// - const _ = !0; - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -bitflags! { - /// `AT_*` constants for use with [`openat`], [`statat`], and other `*at` - /// functions. - /// - /// [`openat`]: crate::fs::openat - /// [`statat`]: crate::fs::statat - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct AtFlags: u32 { - /// `AT_SYMLINK_NOFOLLOW` - const SYMLINK_NOFOLLOW = bitcast!(c::AT_SYMLINK_NOFOLLOW); - - /// `AT_EACCESS` - #[cfg(not(any(target_os = "emscripten", target_os = "android")))] - const EACCESS = bitcast!(c::AT_EACCESS); - - /// `AT_REMOVEDIR` - const REMOVEDIR = bitcast!(c::AT_REMOVEDIR); - - /// `AT_SYMLINK_FOLLOW` - const SYMLINK_FOLLOW = bitcast!(c::AT_SYMLINK_FOLLOW); - - /// `AT_NO_AUTOMOUNT` - #[cfg(any(linux_like, target_os = "fuchsia"))] - const NO_AUTOMOUNT = bitcast!(c::AT_NO_AUTOMOUNT); - - /// `AT_EMPTY_PATH` - #[cfg(any( - linux_kernel, - target_os = "freebsd", - target_os = "fuchsia", - ))] - const EMPTY_PATH = bitcast!(c::AT_EMPTY_PATH); - - /// `AT_RESOLVE_BENEATH` - #[cfg(target_os = "freebsd")] - const RESOLVE_BENEATH = bitcast!(c::AT_RESOLVE_BENEATH); - - /// `AT_STATX_SYNC_AS_STAT` - #[cfg(all(target_os = "linux", target_env = "gnu"))] - const STATX_SYNC_AS_STAT = bitcast!(c::AT_STATX_SYNC_AS_STAT); - - /// `AT_STATX_FORCE_SYNC` - #[cfg(all(target_os = "linux", target_env = "gnu"))] - const STATX_FORCE_SYNC = bitcast!(c::AT_STATX_FORCE_SYNC); - - /// `AT_STATX_DONT_SYNC` - #[cfg(all(target_os = "linux", target_env = "gnu"))] - const STATX_DONT_SYNC = bitcast!(c::AT_STATX_DONT_SYNC); - - /// - const _ = !0; - } -} - -bitflags! { - /// `S_I*` constants for use with [`openat`], [`chmodat`], and [`fchmod`]. - /// - /// [`openat`]: crate::fs::openat - /// [`chmodat`]: crate::fs::chmodat - /// [`fchmod`]: crate::fs::fchmod - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct Mode: RawMode { - /// `S_IRWXU` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const RWXU = c::S_IRWXU as RawMode; - - /// `S_IRUSR` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const RUSR = c::S_IRUSR as RawMode; - - /// `S_IWUSR` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const WUSR = c::S_IWUSR as RawMode; - - /// `S_IXUSR` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const XUSR = c::S_IXUSR as RawMode; - - /// `S_IRWXG` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const RWXG = c::S_IRWXG as RawMode; - - /// `S_IRGRP` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const RGRP = c::S_IRGRP as RawMode; - - /// `S_IWGRP` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const WGRP = c::S_IWGRP as RawMode; - - /// `S_IXGRP` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const XGRP = c::S_IXGRP as RawMode; - - /// `S_IRWXO` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const RWXO = c::S_IRWXO as RawMode; - - /// `S_IROTH` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const ROTH = c::S_IROTH as RawMode; - - /// `S_IWOTH` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const WOTH = c::S_IWOTH as RawMode; - - /// `S_IXOTH` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const XOTH = c::S_IXOTH as RawMode; - - /// `S_ISUID` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const SUID = c::S_ISUID as RawMode; - - /// `S_ISGID` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const SGID = c::S_ISGID as RawMode; - - /// `S_ISVTX` - #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] // WASI doesn't have Unix-style mode flags. - const SVTX = c::S_ISVTX as RawMode; - - /// - const _ = !0; - } -} - -#[cfg(not(target_os = "espidf"))] -impl Mode { - /// Construct a `Mode` from the mode bits of the `st_mode` field of a - /// `Stat`. - #[inline] - pub const fn from_raw_mode(st_mode: RawMode) -> Self { - Self::from_bits_truncate(st_mode) - } - - /// Construct an `st_mode` value from `Stat`. - #[inline] - pub const fn as_raw_mode(self) -> RawMode { - self.bits() - } -} - -#[cfg(not(target_os = "espidf"))] -impl From for Mode { - /// Support conversions from raw mode values to `Mode`. - /// - /// ``` - /// use rustix::fs::{Mode, RawMode}; - /// assert_eq!(Mode::from(0o700), Mode::RWXU); - /// ``` - #[inline] - fn from(st_mode: RawMode) -> Self { - Self::from_raw_mode(st_mode) - } -} - -#[cfg(not(target_os = "espidf"))] -impl From for RawMode { - /// Support conversions from `Mode` to raw mode values. - /// - /// ``` - /// use rustix::fs::{Mode, RawMode}; - /// assert_eq!(RawMode::from(Mode::RWXU), 0o700); - /// ``` - #[inline] - fn from(mode: Mode) -> Self { - mode.as_raw_mode() - } -} - -bitflags! { - /// `O_*` constants for use with [`openat`]. - /// - /// [`openat`]: crate::fs::openat - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct OFlags: u32 { - /// `O_ACCMODE` - const ACCMODE = bitcast!(c::O_ACCMODE); - - /// Similar to `ACCMODE`, but just includes the read/write flags, and - /// no other flags. - /// - /// Some implementations include `O_PATH` in `O_ACCMODE`, when - /// sometimes we really just want the read/write bits. Caution is - /// indicated, as the presence of `O_PATH` may mean that the read/write - /// bits don't have their usual meaning. - const RWMODE = bitcast!(c::O_RDONLY | c::O_WRONLY | c::O_RDWR); - - /// `O_APPEND` - const APPEND = bitcast!(c::O_APPEND); - - /// `O_CREAT` - #[doc(alias = "CREAT")] - const CREATE = bitcast!(c::O_CREAT); - - /// `O_DIRECTORY` - #[cfg(not(target_os = "espidf"))] - const DIRECTORY = bitcast!(c::O_DIRECTORY); - - /// `O_DSYNC` - #[cfg(not(any(target_os = "dragonfly", target_os = "espidf", target_os = "l4re", target_os = "redox")))] - const DSYNC = bitcast!(c::O_DSYNC); - - /// `O_EXCL` - const EXCL = bitcast!(c::O_EXCL); - - /// `O_FSYNC` - #[cfg(any( - bsd, - all(target_os = "linux", not(target_env = "musl")), - ))] - const FSYNC = bitcast!(c::O_FSYNC); - - /// `O_NOFOLLOW` - #[cfg(not(target_os = "espidf"))] - const NOFOLLOW = bitcast!(c::O_NOFOLLOW); - - /// `O_NONBLOCK` - const NONBLOCK = bitcast!(c::O_NONBLOCK); - - /// `O_RDONLY` - const RDONLY = bitcast!(c::O_RDONLY); - - /// `O_WRONLY` - const WRONLY = bitcast!(c::O_WRONLY); - - /// `O_RDWR` - /// - /// This is not equal to `RDONLY | WRONLY`. It's a distinct flag. - const RDWR = bitcast!(c::O_RDWR); - - /// `O_NOCTTY` - #[cfg(not(any(target_os = "espidf", target_os = "l4re", target_os = "redox")))] - const NOCTTY = bitcast!(c::O_NOCTTY); - - /// `O_RSYNC` - #[cfg(any( - linux_kernel, - netbsdlike, - target_os = "emscripten", - target_os = "wasi", - ))] - const RSYNC = bitcast!(c::O_RSYNC); - - /// `O_SYNC` - #[cfg(not(any(target_os = "l4re", target_os = "redox")))] - const SYNC = bitcast!(c::O_SYNC); - - /// `O_TRUNC` - const TRUNC = bitcast!(c::O_TRUNC); - - /// `O_PATH` - #[cfg(any( - linux_kernel, - target_os = "emscripten", - target_os = "freebsd", - target_os = "fuchsia", - target_os = "redox", - ))] - const PATH = bitcast!(c::O_PATH); - - /// `O_CLOEXEC` - const CLOEXEC = bitcast!(c::O_CLOEXEC); - - /// `O_TMPFILE` - #[cfg(any( - linux_kernel, - target_os = "emscripten", - target_os = "fuchsia", - ))] - const TMPFILE = bitcast!(c::O_TMPFILE); - - /// `O_NOATIME` - #[cfg(any( - linux_kernel, - target_os = "fuchsia", - ))] - const NOATIME = bitcast!(c::O_NOATIME); - - /// `O_DIRECT` - #[cfg(any( - linux_kernel, - target_os = "emscripten", - target_os = "freebsd", - target_os = "fuchsia", - target_os = "netbsd", - ))] - const DIRECT = bitcast!(c::O_DIRECT); - - /// `O_RESOLVE_BENEATH` - #[cfg(target_os = "freebsd")] - const RESOLVE_BENEATH = bitcast!(c::O_RESOLVE_BENEATH); - - /// `O_EMPTY_PATH` - #[cfg(target_os = "freebsd")] - const EMPTY_PATH = bitcast!(c::O_EMPTY_PATH); - - /// - const _ = !0; - } -} - -#[cfg(apple)] -bitflags! { - /// `CLONE_*` constants for use with [`fclonefileat`]. - /// - /// [`fclonefileat`]: crate::fs::fclonefileat - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CloneFlags: u32 { - /// `CLONE_NOFOLLOW` - const NOFOLLOW = 1; - - /// `CLONE_NOOWNERCOPY` - const NOOWNERCOPY = 2; - - /// - const _ = !0; - } -} - -#[cfg(apple)] -mod copyfile { - pub(super) const ACL: u32 = 1 << 0; - pub(super) const STAT: u32 = 1 << 1; - pub(super) const XATTR: u32 = 1 << 2; - pub(super) const DATA: u32 = 1 << 3; - pub(super) const SECURITY: u32 = STAT | ACL; - pub(super) const METADATA: u32 = SECURITY | XATTR; - pub(super) const ALL: u32 = METADATA | DATA; -} - -#[cfg(apple)] -bitflags! { - /// `COPYFILE_*` constants for use with [`fcopyfile`]. - /// - /// [`fcopyfile`]: crate::fs::fcopyfile - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CopyfileFlags: c::c_uint { - /// `COPYFILE_ACL` - const ACL = copyfile::ACL; - - /// `COPYFILE_STAT` - const STAT = copyfile::STAT; - - /// `COPYFILE_XATTR` - const XATTR = copyfile::XATTR; - - /// `COPYFILE_DATA` - const DATA = copyfile::DATA; - - /// `COPYFILE_SECURITY` - const SECURITY = copyfile::SECURITY; - - /// `COPYFILE_METADATA` - const METADATA = copyfile::METADATA; - - /// `COPYFILE_ALL` - const ALL = copyfile::ALL; - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - /// `RESOLVE_*` constants for use with [`openat2`]. - /// - /// [`openat2`]: crate::fs::openat2 - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ResolveFlags: u64 { - /// `RESOLVE_NO_XDEV` - const NO_XDEV = 0x01; - - /// `RESOLVE_NO_MAGICLINKS` - const NO_MAGICLINKS = 0x02; - - /// `RESOLVE_NO_SYMLINKS` - const NO_SYMLINKS = 0x04; - - /// `RESOLVE_BENEATH` - const BENEATH = 0x08; - - /// `RESOLVE_IN_ROOT` - const IN_ROOT = 0x10; - - /// `RESOLVE_CACHED` (since Linux 5.12) - const CACHED = 0x20; - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - /// `RENAME_*` constants for use with [`renameat_with`]. - /// - /// [`renameat_with`]: crate::fs::renameat_with - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct RenameFlags: c::c_uint { - /// `RENAME_EXCHANGE` - const EXCHANGE = bitcast!(c::RENAME_EXCHANGE); - - /// `RENAME_NOREPLACE` - const NOREPLACE = bitcast!(c::RENAME_NOREPLACE); - - /// `RENAME_WHITEOUT` - const WHITEOUT = bitcast!(c::RENAME_WHITEOUT); - - /// - const _ = !0; - } -} - -/// `S_IF*` constants for use with [`mknodat`] and [`Stat`]'s `st_mode` field. -/// -/// [`mknodat`]: crate::fs::mknodat -/// [`Stat`]: crate::fs::Stat -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub enum FileType { - /// `S_IFREG` - RegularFile = c::S_IFREG as isize, - - /// `S_IFDIR` - Directory = c::S_IFDIR as isize, - - /// `S_IFLNK` - Symlink = c::S_IFLNK as isize, - - /// `S_IFIFO` - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFIFO`. - #[doc(alias = "IFO")] - Fifo = c::S_IFIFO as isize, - - /// `S_IFSOCK` - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFSOCK`. - Socket = c::S_IFSOCK as isize, - - /// `S_IFCHR` - CharacterDevice = c::S_IFCHR as isize, - - /// `S_IFBLK` - BlockDevice = c::S_IFBLK as isize, - - /// An unknown filesystem object. - Unknown, -} - -impl FileType { - /// Construct a `FileType` from the `S_IFMT` bits of the `st_mode` field of - /// a `Stat`. - #[inline] - pub const fn from_raw_mode(st_mode: RawMode) -> Self { - match (st_mode as c::mode_t) & c::S_IFMT { - c::S_IFREG => Self::RegularFile, - c::S_IFDIR => Self::Directory, - c::S_IFLNK => Self::Symlink, - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFIFO`. - c::S_IFIFO => Self::Fifo, - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFSOCK`. - c::S_IFSOCK => Self::Socket, - c::S_IFCHR => Self::CharacterDevice, - c::S_IFBLK => Self::BlockDevice, - _ => Self::Unknown, - } - } - - /// Construct an `st_mode` value from `Stat`. - #[inline] - pub const fn as_raw_mode(self) -> RawMode { - match self { - Self::RegularFile => c::S_IFREG as RawMode, - Self::Directory => c::S_IFDIR as RawMode, - Self::Symlink => c::S_IFLNK as RawMode, - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFIFO`. - Self::Fifo => c::S_IFIFO as RawMode, - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `S_IFSOCK`. - Self::Socket => c::S_IFSOCK as RawMode, - Self::CharacterDevice => c::S_IFCHR as RawMode, - Self::BlockDevice => c::S_IFBLK as RawMode, - Self::Unknown => c::S_IFMT as RawMode, - } - } - - /// Construct a `FileType` from the `d_type` field of a `c::dirent`. - #[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "redox" - )))] - #[inline] - pub(crate) const fn from_dirent_d_type(d_type: u8) -> Self { - match d_type { - c::DT_REG => Self::RegularFile, - c::DT_DIR => Self::Directory, - c::DT_LNK => Self::Symlink, - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `DT_SOCK`. - c::DT_SOCK => Self::Socket, - #[cfg(not(target_os = "wasi"))] // TODO: Use WASI's `DT_FIFO`. - c::DT_FIFO => Self::Fifo, - c::DT_CHR => Self::CharacterDevice, - c::DT_BLK => Self::BlockDevice, - // c::DT_UNKNOWN | - _ => Self::Unknown, - } - } -} - -/// `POSIX_FADV_*` constants for use with [`fadvise`]. -/// -/// [`fadvise`]: crate::fs::fadvise -#[cfg(not(any( - apple, - netbsdlike, - solarish, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", -)))] -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -pub enum Advice { - /// `POSIX_FADV_NORMAL` - Normal = c::POSIX_FADV_NORMAL as c::c_uint, - - /// `POSIX_FADV_SEQUENTIAL` - Sequential = c::POSIX_FADV_SEQUENTIAL as c::c_uint, - - /// `POSIX_FADV_RANDOM` - Random = c::POSIX_FADV_RANDOM as c::c_uint, - - /// `POSIX_FADV_NOREUSE` - NoReuse = c::POSIX_FADV_NOREUSE as c::c_uint, - - /// `POSIX_FADV_WILLNEED` - WillNeed = c::POSIX_FADV_WILLNEED as c::c_uint, - - /// `POSIX_FADV_DONTNEED` - DontNeed = c::POSIX_FADV_DONTNEED as c::c_uint, -} - -#[cfg(any(linux_kernel, target_os = "freebsd"))] -bitflags! { - /// `MFD_*` constants for use with [`memfd_create`]. - /// - /// [`memfd_create`]: crate::fs::memfd_create - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MemfdFlags: c::c_uint { - /// `MFD_CLOEXEC` - const CLOEXEC = c::MFD_CLOEXEC; - - /// `MFD_ALLOW_SEALING` - const ALLOW_SEALING = c::MFD_ALLOW_SEALING; - - /// `MFD_HUGETLB` (since Linux 4.14) - const HUGETLB = c::MFD_HUGETLB; - - /// `MFD_HUGE_64KB` - const HUGE_64KB = c::MFD_HUGE_64KB; - /// `MFD_HUGE_512JB` - const HUGE_512KB = c::MFD_HUGE_512KB; - /// `MFD_HUGE_1MB` - const HUGE_1MB = c::MFD_HUGE_1MB; - /// `MFD_HUGE_2MB` - const HUGE_2MB = c::MFD_HUGE_2MB; - /// `MFD_HUGE_8MB` - const HUGE_8MB = c::MFD_HUGE_8MB; - /// `MFD_HUGE_16MB` - const HUGE_16MB = c::MFD_HUGE_16MB; - /// `MFD_HUGE_32MB` - const HUGE_32MB = c::MFD_HUGE_32MB; - /// `MFD_HUGE_256MB` - const HUGE_256MB = c::MFD_HUGE_256MB; - /// `MFD_HUGE_512MB` - const HUGE_512MB = c::MFD_HUGE_512MB; - /// `MFD_HUGE_1GB` - const HUGE_1GB = c::MFD_HUGE_1GB; - /// `MFD_HUGE_2GB` - const HUGE_2GB = c::MFD_HUGE_2GB; - /// `MFD_HUGE_16GB` - const HUGE_16GB = c::MFD_HUGE_16GB; - - /// - const _ = !0; - } -} - -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] -bitflags! { - /// `F_SEAL_*` constants for use with [`fcntl_add_seals`] and - /// [`fcntl_get_seals`]. - /// - /// [`fcntl_add_seals`]: crate::fs::fcntl_add_seals - /// [`fcntl_get_seals`]: crate::fs::fcntl_get_seals - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SealFlags: u32 { - /// `F_SEAL_SEAL`. - const SEAL = bitcast!(c::F_SEAL_SEAL); - /// `F_SEAL_SHRINK`. - const SHRINK = bitcast!(c::F_SEAL_SHRINK); - /// `F_SEAL_GROW`. - const GROW = bitcast!(c::F_SEAL_GROW); - /// `F_SEAL_WRITE`. - const WRITE = bitcast!(c::F_SEAL_WRITE); - /// `F_SEAL_FUTURE_WRITE` (since Linux 5.1) - #[cfg(linux_kernel)] - const FUTURE_WRITE = bitcast!(c::F_SEAL_FUTURE_WRITE); - - /// - const _ = !0; - } -} - -#[cfg(all(target_os = "linux", target_env = "gnu"))] -bitflags! { - /// `STATX_*` constants for use with [`statx`]. - /// - /// [`statx`]: crate::fs::statx - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct StatxFlags: u32 { - /// `STATX_TYPE` - const TYPE = c::STATX_TYPE; - - /// `STATX_MODE` - const MODE = c::STATX_MODE; - - /// `STATX_NLINK` - const NLINK = c::STATX_NLINK; - - /// `STATX_UID` - const UID = c::STATX_UID; - - /// `STATX_GID` - const GID = c::STATX_GID; - - /// `STATX_ATIME` - const ATIME = c::STATX_ATIME; - - /// `STATX_MTIME` - const MTIME = c::STATX_MTIME; - - /// `STATX_CTIME` - const CTIME = c::STATX_CTIME; - - /// `STATX_INO` - const INO = c::STATX_INO; - - /// `STATX_SIZE` - const SIZE = c::STATX_SIZE; - - /// `STATX_BLOCKS` - const BLOCKS = c::STATX_BLOCKS; - - /// `STATX_BASIC_STATS` - const BASIC_STATS = c::STATX_BASIC_STATS; - - /// `STATX_BTIME` - const BTIME = c::STATX_BTIME; - - /// `STATX_MNT_ID` (since Linux 5.8) - const MNT_ID = c::STATX_MNT_ID; - - /// `STATX_DIOALIGN` (since Linux 6.1) - const DIOALIGN = c::STATX_DIOALIGN; - - /// `STATX_ALL` - const ALL = c::STATX_ALL; - - /// - const _ = !0; - } -} - -#[cfg(any( - target_os = "android", - all(target_os = "linux", not(target_env = "gnu")), -))] -bitflags! { - /// `STATX_*` constants for use with [`statx`]. - /// - /// [`statx`]: crate::fs::statx - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct StatxFlags: u32 { - /// `STATX_TYPE` - const TYPE = 0x0001; - - /// `STATX_MODE` - const MODE = 0x0002; - - /// `STATX_NLINK` - const NLINK = 0x0004; - - /// `STATX_UID` - const UID = 0x0008; - - /// `STATX_GID` - const GID = 0x0010; - - /// `STATX_ATIME` - const ATIME = 0x0020; - - /// `STATX_MTIME` - const MTIME = 0x0040; - - /// `STATX_CTIME` - const CTIME = 0x0080; - - /// `STATX_INO` - const INO = 0x0100; - - /// `STATX_SIZE` - const SIZE = 0x0200; - - /// `STATX_BLOCKS` - const BLOCKS = 0x0400; - - /// `STATX_BASIC_STATS` - const BASIC_STATS = 0x07ff; - - /// `STATX_BTIME` - const BTIME = 0x800; - - /// `STATX_MNT_ID` (since Linux 5.8) - const MNT_ID = 0x1000; - - /// `STATX_ALL` - const ALL = 0xfff; - - /// - const _ = !0; - } -} - -#[cfg(not(any( - netbsdlike, - solarish, - target_os = "aix", - target_os = "espidf", - target_os = "nto", - target_os = "redox" -)))] -bitflags! { - /// `FALLOC_FL_*` constants for use with [`fallocate`]. - /// - /// [`fallocate`]: crate::fs::fallocate - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FallocateFlags: u32 { - /// `FALLOC_FL_KEEP_SIZE` - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "wasi", - )))] - const KEEP_SIZE = bitcast!(c::FALLOC_FL_KEEP_SIZE); - /// `FALLOC_FL_PUNCH_HOLE` - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "wasi", - )))] - const PUNCH_HOLE = bitcast!(c::FALLOC_FL_PUNCH_HOLE); - /// `FALLOC_FL_NO_HIDE_STALE` - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "emscripten", - target_os = "fuchsia", - target_os = "haiku", - target_os = "l4re", - target_os = "linux", - target_os = "wasi", - )))] - const NO_HIDE_STALE = bitcast!(c::FALLOC_FL_NO_HIDE_STALE); - /// `FALLOC_FL_COLLAPSE_RANGE` - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "emscripten", - target_os = "wasi", - )))] - const COLLAPSE_RANGE = bitcast!(c::FALLOC_FL_COLLAPSE_RANGE); - /// `FALLOC_FL_ZERO_RANGE` - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "emscripten", - target_os = "wasi", - )))] - const ZERO_RANGE = bitcast!(c::FALLOC_FL_ZERO_RANGE); - /// `FALLOC_FL_INSERT_RANGE` - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "emscripten", - target_os = "wasi", - )))] - const INSERT_RANGE = bitcast!(c::FALLOC_FL_INSERT_RANGE); - /// `FALLOC_FL_UNSHARE_RANGE` - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "emscripten", - target_os = "wasi", - )))] - const UNSHARE_RANGE = bitcast!(c::FALLOC_FL_UNSHARE_RANGE); - - /// - const _ = !0; - } -} - -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -bitflags! { - /// `ST_*` constants for use with [`StatVfs`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct StatVfsMountFlags: u64 { - /// `ST_MANDLOCK` - #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] - const MANDLOCK = c::ST_MANDLOCK as u64; - - /// `ST_NOATIME` - #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] - const NOATIME = c::ST_NOATIME as u64; - - /// `ST_NODEV` - #[cfg(any( - linux_kernel, - target_os = "aix", - target_os = "emscripten", - target_os = "fuchsia" - ))] - const NODEV = c::ST_NODEV as u64; - - /// `ST_NODIRATIME` - #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] - const NODIRATIME = c::ST_NODIRATIME as u64; - - /// `ST_NOEXEC` - #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] - const NOEXEC = c::ST_NOEXEC as u64; - - /// `ST_NOSUID` - #[cfg(not(target_os = "espidf"))] - const NOSUID = c::ST_NOSUID as u64; - - /// `ST_RDONLY` - #[cfg(not(target_os = "espidf"))] - const RDONLY = c::ST_RDONLY as u64; - - /// `ST_RELATIME` - #[cfg(any(target_os = "android", all(target_os = "linux", target_env = "gnu")))] - const RELATIME = c::ST_RELATIME as u64; - - /// `ST_SYNCHRONOUS` - #[cfg(any(linux_kernel, target_os = "emscripten", target_os = "fuchsia"))] - const SYNCHRONOUS = c::ST_SYNCHRONOUS as u64; - - /// - const _ = !0; - } -} - -/// `LOCK_*` constants for use with [`flock`] and [`fcntl_lock`]. -/// -/// [`flock`]: crate::fs::flock -/// [`fcntl_lock`]: crate::fs::fcntl_lock -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -#[repr(u32)] -pub enum FlockOperation { - /// `LOCK_SH` - LockShared = bitcast!(c::LOCK_SH), - /// `LOCK_EX` - LockExclusive = bitcast!(c::LOCK_EX), - /// `LOCK_UN` - Unlock = bitcast!(c::LOCK_UN), - /// `LOCK_SH | LOCK_NB` - NonBlockingLockShared = bitcast!(c::LOCK_SH | c::LOCK_NB), - /// `LOCK_EX | LOCK_NB` - NonBlockingLockExclusive = bitcast!(c::LOCK_EX | c::LOCK_NB), - /// `LOCK_UN | LOCK_NB` - NonBlockingUnlock = bitcast!(c::LOCK_UN | c::LOCK_NB), -} - -/// `struct stat` for use with [`statat`] and [`fstat`]. -/// -/// [`statat`]: crate::fs::statat -/// [`fstat`]: crate::fs::fstat -#[cfg(not(linux_like))] -pub type Stat = c::stat; - -/// `struct stat` for use with [`statat`] and [`fstat`]. -/// -/// [`statat`]: crate::fs::statat -/// [`fstat`]: crate::fs::fstat -#[cfg(any( - all(linux_kernel, target_pointer_width = "64"), - target_os = "emscripten", - target_os = "l4re", -))] -pub type Stat = c::stat64; - -/// `struct stat` for use with [`statat`] and [`fstat`]. -/// -/// [`statat`]: crate::fs::statat -/// [`fstat`]: crate::fs::fstat -// On 32-bit, Linux's `struct stat64` has a 32-bit `st_mtime` and friends, so -// we use our own struct, populated from `statx` where possible, to avoid the -// y2038 bug. -#[cfg(all(linux_kernel, target_pointer_width = "32"))] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -#[allow(missing_docs)] -pub struct Stat { - pub st_dev: u64, - pub st_mode: u32, - pub st_nlink: u32, - pub st_uid: u32, - pub st_gid: u32, - pub st_rdev: u64, - pub st_size: i64, - pub st_blksize: u32, - pub st_blocks: u64, - pub st_atime: u64, - pub st_atime_nsec: u32, - pub st_mtime: u64, - pub st_mtime_nsec: u32, - pub st_ctime: u64, - pub st_ctime_nsec: u32, - pub st_ino: u64, -} - -/// `struct statfs` for use with [`statfs`] and [`fstatfs`]. -/// -/// [`statfs`]: crate::fs::statfs -/// [`fstatfs`]: crate::fs::fstatfs -#[cfg(not(any( - linux_like, - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -#[allow(clippy::module_name_repetitions)] -pub type StatFs = c::statfs; - -/// `struct statfs` for use with [`statfs`] and [`fstatfs`]. -/// -/// [`statfs`]: crate::fs::statfs -/// [`fstatfs`]: crate::fs::fstatfs -#[cfg(linux_like)] -pub type StatFs = c::statfs64; - -/// `struct statvfs` for use with [`statvfs`] and [`fstatvfs`]. -/// -/// [`statvfs`]: crate::fs::statvfs -/// [`fstatvfs`]: crate::fs::fstatvfs -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -#[allow(missing_docs)] -pub struct StatVfs { - pub f_bsize: u64, - pub f_frsize: u64, - pub f_blocks: u64, - pub f_bfree: u64, - pub f_bavail: u64, - pub f_files: u64, - pub f_ffree: u64, - pub f_favail: u64, - pub f_fsid: u64, - pub f_flag: StatVfsMountFlags, - pub f_namemax: u64, -} - -/// `struct statx` for use with [`statx`]. -/// -/// [`statx`]: crate::fs::statx -#[cfg(all(target_os = "linux", target_env = "gnu"))] -// Use the glibc `struct statx`. -pub type Statx = c::statx; - -/// `struct statx_timestamp` for use with [`Statx`]. -#[cfg(all(target_os = "linux", target_env = "gnu"))] -// Use the glibc `struct statx_timestamp`. -pub type StatxTimestamp = c::statx; - -/// `struct statx` for use with [`statx`]. -/// -/// [`statx`]: crate::fs::statx -// Non-glibc ABIs don't currently declare a `struct statx`, so we declare it -// ourselves. -#[cfg(any( - target_os = "android", - all(target_os = "linux", not(target_env = "gnu")), -))] -#[repr(C)] -#[allow(missing_docs)] -pub struct Statx { - pub stx_mask: u32, - pub stx_blksize: u32, - pub stx_attributes: u64, - pub stx_nlink: u32, - pub stx_uid: u32, - pub stx_gid: u32, - pub stx_mode: u16, - __statx_pad1: [u16; 1], - pub stx_ino: u64, - pub stx_size: u64, - pub stx_blocks: u64, - pub stx_attributes_mask: u64, - pub stx_atime: StatxTimestamp, - pub stx_btime: StatxTimestamp, - pub stx_ctime: StatxTimestamp, - pub stx_mtime: StatxTimestamp, - pub stx_rdev_major: u32, - pub stx_rdev_minor: u32, - pub stx_dev_major: u32, - pub stx_dev_minor: u32, - pub stx_mnt_id: u64, - __statx_pad2: u64, - __statx_pad3: [u64; 12], -} - -/// `struct statx_timestamp` for use with [`Statx`]. -// Non-glibc ABIs don't currently declare a `struct statx_timestamp`, so we -// declare it ourselves. -#[cfg(any( - target_os = "android", - all(target_os = "linux", not(target_env = "gnu")), -))] -#[repr(C)] -#[allow(missing_docs)] -pub struct StatxTimestamp { - pub tv_sec: i64, - pub tv_nsec: u32, - pub __statx_timestamp_pad1: [i32; 1], -} - -/// `mode_t` -#[cfg(not(all(target_os = "android", target_pointer_width = "32")))] -pub type RawMode = c::mode_t; - -/// `mode_t` -#[cfg(all(target_os = "android", target_pointer_width = "32"))] -pub type RawMode = c::c_uint; - -/// `dev_t` -#[cfg(not(all(target_os = "android", target_pointer_width = "32")))] -pub type Dev = c::dev_t; - -/// `dev_t` -#[cfg(all(target_os = "android", target_pointer_width = "32"))] -pub type Dev = c::c_ulonglong; - -/// `__fsword_t` -#[cfg(all( - target_os = "linux", - not(target_env = "musl"), - not(target_arch = "s390x"), -))] -pub type FsWord = c::__fsword_t; - -/// `__fsword_t` -#[cfg(all( - any(target_os = "android", all(target_os = "linux", target_env = "musl")), - target_pointer_width = "32", -))] -pub type FsWord = u32; - -/// `__fsword_t` -#[cfg(all( - any(target_os = "android", all(target_os = "linux", target_env = "musl")), - not(target_arch = "s390x"), - target_pointer_width = "64", -))] -pub type FsWord = u64; - -/// `__fsword_t` -// s390x uses `u32` for `statfs` entries on glibc, even though `__fsword_t` is -// `u64`. -#[cfg(all(target_os = "linux", target_arch = "s390x", target_env = "gnu"))] -pub type FsWord = u32; - -/// `__fsword_t` -// s390x uses `u64` for `statfs` entries on musl. -#[cfg(all(target_os = "linux", target_arch = "s390x", target_env = "musl"))] -pub type FsWord = u64; - -/// `copyfile_state_t`—State for use with [`fcopyfile`]. -/// -/// [`fcopyfile`]: crate::fs::fcopyfile -#[cfg(apple)] -#[allow(non_camel_case_types)] -#[repr(transparent)] -#[derive(Copy, Clone)] -pub struct copyfile_state_t(pub(crate) *mut c::c_void); diff --git a/third_party/rust/rustix/src/backend/libc/io/errno.rs b/third_party/rust/rustix/src/backend/libc/io/errno.rs deleted file mode 100644 index af128f94b857..000000000000 --- a/third_party/rust/rustix/src/backend/libc/io/errno.rs +++ /dev/null @@ -1,949 +0,0 @@ -//! The `rustix` `Errno` type. -//! -//! This type holds an OS error code, which conceptually corresponds to an -//! `errno` value. - -use crate::backend::c; -use libc_errno::errno; - -/// `errno`—An error code. -/// -/// The error type for `rustix` APIs. This is similar to [`std::io::Error`], -//// but only holds an OS error code, and no extra error value. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html -/// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html -/// [Winsock2]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno -/// [NetBSD]: https://man.netbsd.org/errno.2 -/// [OpenBSD]: https://man.openbsd.org/errno.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=errno§ion=2 -/// [illumos]: https://illumos.org/man/3C/errno -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html -/// [`std::io::Error`]: Result -#[repr(transparent)] -#[doc(alias = "errno")] -#[derive(Eq, PartialEq, Hash, Copy, Clone)] -pub struct Errno(pub(crate) c::c_int); - -impl Errno { - /// `EACCES` - #[doc(alias = "ACCES")] - pub const ACCESS: Self = Self(c::EACCES); - /// `EADDRINUSE` - pub const ADDRINUSE: Self = Self(c::EADDRINUSE); - /// `EADDRNOTAVAIL` - pub const ADDRNOTAVAIL: Self = Self(c::EADDRNOTAVAIL); - /// `EADV` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const ADV: Self = Self(c::EADV); - /// `EAFNOSUPPORT` - #[cfg(not(target_os = "l4re"))] - pub const AFNOSUPPORT: Self = Self(c::EAFNOSUPPORT); - /// `EAGAIN` - pub const AGAIN: Self = Self(c::EAGAIN); - /// `EALREADY` - #[cfg(not(target_os = "l4re"))] - pub const ALREADY: Self = Self(c::EALREADY); - /// `EAUTH` - #[cfg(bsd)] - pub const AUTH: Self = Self(c::EAUTH); - /// `EBADE` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const BADE: Self = Self(c::EBADE); - /// `EBADF` - pub const BADF: Self = Self(c::EBADF); - /// `EBADFD` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const BADFD: Self = Self(c::EBADFD); - /// `EBADMSG` - #[cfg(not(any(windows, target_os = "l4re")))] - pub const BADMSG: Self = Self(c::EBADMSG); - /// `EBADR` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const BADR: Self = Self(c::EBADR); - /// `EBADRPC` - #[cfg(bsd)] - pub const BADRPC: Self = Self(c::EBADRPC); - /// `EBADRQC` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const BADRQC: Self = Self(c::EBADRQC); - /// `EBADSLT` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const BADSLT: Self = Self(c::EBADSLT); - /// `EBFONT` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const BFONT: Self = Self(c::EBFONT); - /// `EBUSY` - #[cfg(not(windows))] - pub const BUSY: Self = Self(c::EBUSY); - /// `ECANCELED` - #[cfg(not(target_os = "l4re"))] - pub const CANCELED: Self = Self(c::ECANCELED); - /// `ECAPMODE` - #[cfg(target_os = "freebsd")] - pub const CAPMODE: Self = Self(c::ECAPMODE); - /// `ECHILD` - #[cfg(not(windows))] - pub const CHILD: Self = Self(c::ECHILD); - /// `ECHRNG` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const CHRNG: Self = Self(c::ECHRNG); - /// `ECOMM` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const COMM: Self = Self(c::ECOMM); - /// `ECONNABORTED` - pub const CONNABORTED: Self = Self(c::ECONNABORTED); - /// `ECONNREFUSED` - pub const CONNREFUSED: Self = Self(c::ECONNREFUSED); - /// `ECONNRESET` - pub const CONNRESET: Self = Self(c::ECONNRESET); - /// `EDEADLK` - #[cfg(not(windows))] - pub const DEADLK: Self = Self(c::EDEADLK); - /// `EDEADLOCK` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "android", - target_os = "espidf", - target_os = "haiku", - target_os = "wasi", - )))] - pub const DEADLOCK: Self = Self(c::EDEADLOCK); - /// `EDESTADDRREQ` - #[cfg(not(target_os = "l4re"))] - pub const DESTADDRREQ: Self = Self(c::EDESTADDRREQ); - /// `EDISCON` - #[cfg(windows)] - pub const DISCON: Self = Self(c::EDISCON); - /// `EDOM` - #[cfg(not(windows))] - pub const DOM: Self = Self(c::EDOM); - /// `EDOOFUS` - #[cfg(freebsdlike)] - pub const DOOFUS: Self = Self(c::EDOOFUS); - /// `EDOTDOT` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const DOTDOT: Self = Self(c::EDOTDOT); - /// `EDQUOT` - pub const DQUOT: Self = Self(c::EDQUOT); - /// `EEXIST` - #[cfg(not(windows))] - pub const EXIST: Self = Self(c::EEXIST); - /// `EFAULT` - pub const FAULT: Self = Self(c::EFAULT); - /// `EFBIG` - #[cfg(not(windows))] - pub const FBIG: Self = Self(c::EFBIG); - /// `EFTYPE` - #[cfg(any(bsd, target_env = "newlib"))] - pub const FTYPE: Self = Self(c::EFTYPE); - /// `EHOSTDOWN` - #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] - pub const HOSTDOWN: Self = Self(c::EHOSTDOWN); - /// `EHOSTUNREACH` - pub const HOSTUNREACH: Self = Self(c::EHOSTUNREACH); - /// `EHWPOISON` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "android", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "redox", - target_os = "wasi", - )))] - pub const HWPOISON: Self = Self(c::EHWPOISON); - /// `EIDRM` - #[cfg(not(any(windows, target_os = "l4re")))] - pub const IDRM: Self = Self(c::EIDRM); - /// `EILSEQ` - #[cfg(not(any(windows, target_os = "l4re")))] - pub const ILSEQ: Self = Self(c::EILSEQ); - /// `EINPROGRESS` - #[cfg(not(target_os = "l4re"))] - pub const INPROGRESS: Self = Self(c::EINPROGRESS); - /// `EINTR` - /// - /// For a convenient way to retry system calls that exit with `INTR`, use - /// [`retry_on_intr`]. - /// - /// [`retry_on_intr`]: crate::io::retry_on_intr - pub const INTR: Self = Self(c::EINTR); - /// `EINVAL` - pub const INVAL: Self = Self(c::EINVAL); - /// `EINVALIDPROCTABLE` - #[cfg(windows)] - pub const INVALIDPROCTABLE: Self = Self(c::EINVALIDPROCTABLE); - /// `EINVALIDPROVIDER` - #[cfg(windows)] - pub const INVALIDPROVIDER: Self = Self(c::EINVALIDPROVIDER); - /// `EIO` - #[cfg(not(windows))] - pub const IO: Self = Self(c::EIO); - /// `EISCONN` - #[cfg(not(target_os = "l4re"))] - pub const ISCONN: Self = Self(c::EISCONN); - /// `EISDIR` - #[cfg(not(windows))] - pub const ISDIR: Self = Self(c::EISDIR); - /// `EISNAM` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const ISNAM: Self = Self(c::EISNAM); - /// `EKEYEXPIRED` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const KEYEXPIRED: Self = Self(c::EKEYEXPIRED); - /// `EKEYREJECTED` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const KEYREJECTED: Self = Self(c::EKEYREJECTED); - /// `EKEYREVOKED` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const KEYREVOKED: Self = Self(c::EKEYREVOKED); - /// `EL2HLT` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const L2HLT: Self = Self(c::EL2HLT); - /// `EL2NSYNC` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const L2NSYNC: Self = Self(c::EL2NSYNC); - /// `EL3HLT` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const L3HLT: Self = Self(c::EL3HLT); - /// `EL3RST` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const L3RST: Self = Self(c::EL3RST); - /// `ELIBACC` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const LIBACC: Self = Self(c::ELIBACC); - /// `ELIBBAD` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const LIBBAD: Self = Self(c::ELIBBAD); - /// `ELIBEXEC` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const LIBEXEC: Self = Self(c::ELIBEXEC); - /// `ELIBMAX` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const LIBMAX: Self = Self(c::ELIBMAX); - /// `ELIBSCN` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const LIBSCN: Self = Self(c::ELIBSCN); - /// `ELNRNG` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const LNRNG: Self = Self(c::ELNRNG); - /// `ELOOP` - pub const LOOP: Self = Self(c::ELOOP); - /// `EMEDIUMTYPE` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const MEDIUMTYPE: Self = Self(c::EMEDIUMTYPE); - /// `EMFILE` - pub const MFILE: Self = Self(c::EMFILE); - /// `EMLINK` - #[cfg(not(windows))] - pub const MLINK: Self = Self(c::EMLINK); - /// `EMSGSIZE` - #[cfg(not(target_os = "l4re"))] - pub const MSGSIZE: Self = Self(c::EMSGSIZE); - /// `EMULTIHOP` - #[cfg(not(any(windows, target_os = "l4re", target_os = "openbsd")))] - pub const MULTIHOP: Self = Self(c::EMULTIHOP); - /// `ENAMETOOLONG` - pub const NAMETOOLONG: Self = Self(c::ENAMETOOLONG); - /// `ENAVAIL` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const NAVAIL: Self = Self(c::ENAVAIL); - /// `ENEEDAUTH` - #[cfg(bsd)] - pub const NEEDAUTH: Self = Self(c::ENEEDAUTH); - /// `ENETDOWN` - pub const NETDOWN: Self = Self(c::ENETDOWN); - /// `ENETRESET` - #[cfg(not(target_os = "l4re"))] - pub const NETRESET: Self = Self(c::ENETRESET); - /// `ENETUNREACH` - pub const NETUNREACH: Self = Self(c::ENETUNREACH); - /// `ENFILE` - #[cfg(not(windows))] - pub const NFILE: Self = Self(c::ENFILE); - /// `ENOANO` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const NOANO: Self = Self(c::ENOANO); - /// `ENOATTR` - #[cfg(any(bsd, target_os = "haiku"))] - pub const NOATTR: Self = Self(c::ENOATTR); - /// `ENOBUFS` - #[cfg(not(target_os = "l4re"))] - pub const NOBUFS: Self = Self(c::ENOBUFS); - /// `ENOCSI` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const NOCSI: Self = Self(c::ENOCSI); - /// `ENODATA` - #[cfg(not(any( - freebsdlike, - windows, - target_os = "haiku", - target_os = "openbsd", - target_os = "wasi", - )))] - pub const NODATA: Self = Self(c::ENODATA); - /// `ENODEV` - #[cfg(not(windows))] - pub const NODEV: Self = Self(c::ENODEV); - /// `ENOENT` - #[cfg(not(windows))] - pub const NOENT: Self = Self(c::ENOENT); - /// `ENOEXEC` - #[cfg(not(windows))] - pub const NOEXEC: Self = Self(c::ENOEXEC); - /// `ENOKEY` - #[cfg(not(any( - solarish, - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const NOKEY: Self = Self(c::ENOKEY); - /// `ENOLCK` - #[cfg(not(any(windows, target_os = "l4re")))] - pub const NOLCK: Self = Self(c::ENOLCK); - /// `ENOLINK` - #[cfg(not(any(windows, target_os = "l4re", target_os = "openbsd")))] - pub const NOLINK: Self = Self(c::ENOLINK); - /// `ENOMEDIUM` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const NOMEDIUM: Self = Self(c::ENOMEDIUM); - /// `ENOMEM` - #[cfg(not(windows))] - pub const NOMEM: Self = Self(c::ENOMEM); - /// `ENOMORE` - #[cfg(windows)] - pub const NOMORE: Self = Self(c::ENOMORE); - /// `ENOMSG` - #[cfg(not(any(windows, target_os = "l4re")))] - pub const NOMSG: Self = Self(c::ENOMSG); - /// `ENONET` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const NONET: Self = Self(c::ENONET); - /// `ENOPKG` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const NOPKG: Self = Self(c::ENOPKG); - /// `ENOPROTOOPT` - #[cfg(not(target_os = "l4re"))] - pub const NOPROTOOPT: Self = Self(c::ENOPROTOOPT); - /// `ENOSPC` - #[cfg(not(windows))] - pub const NOSPC: Self = Self(c::ENOSPC); - /// `ENOSR` - #[cfg(not(any( - freebsdlike, - windows, - target_os = "haiku", - target_os = "l4re", - target_os = "openbsd", - target_os = "wasi", - )))] - pub const NOSR: Self = Self(c::ENOSR); - /// `ENOSTR` - #[cfg(not(any( - freebsdlike, - windows, - target_os = "haiku", - target_os = "l4re", - target_os = "openbsd", - target_os = "wasi", - )))] - pub const NOSTR: Self = Self(c::ENOSTR); - /// `ENOSYS` - #[cfg(not(windows))] - pub const NOSYS: Self = Self(c::ENOSYS); - /// `ENOTBLK` - #[cfg(not(any(windows, target_os = "espidf", target_os = "haiku", target_os = "wasi")))] - pub const NOTBLK: Self = Self(c::ENOTBLK); - /// `ENOTCAPABLE` - #[cfg(any(target_os = "freebsd", target_os = "wasi"))] - pub const NOTCAPABLE: Self = Self(c::ENOTCAPABLE); - /// `ENOTCONN` - pub const NOTCONN: Self = Self(c::ENOTCONN); - /// `ENOTDIR` - #[cfg(not(windows))] - pub const NOTDIR: Self = Self(c::ENOTDIR); - /// `ENOTEMPTY` - pub const NOTEMPTY: Self = Self(c::ENOTEMPTY); - /// `ENOTNAM` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const NOTNAM: Self = Self(c::ENOTNAM); - /// `ENOTRECOVERABLE` - #[cfg(not(any( - freebsdlike, - netbsdlike, - windows, - target_os = "haiku", - target_os = "l4re" - )))] - pub const NOTRECOVERABLE: Self = Self(c::ENOTRECOVERABLE); - /// `ENOTSOCK` - #[cfg(not(target_os = "l4re"))] - pub const NOTSOCK: Self = Self(c::ENOTSOCK); - /// `ENOTSUP` - #[cfg(not(any(windows, target_os = "haiku", target_os = "redox")))] - pub const NOTSUP: Self = Self(c::ENOTSUP); - /// `ENOTTY` - #[cfg(not(windows))] - pub const NOTTY: Self = Self(c::ENOTTY); - /// `ENOTUNIQ` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const NOTUNIQ: Self = Self(c::ENOTUNIQ); - /// `ENXIO` - #[cfg(not(windows))] - pub const NXIO: Self = Self(c::ENXIO); - /// `EOPNOTSUPP` - pub const OPNOTSUPP: Self = Self(c::EOPNOTSUPP); - /// `EOVERFLOW` - #[cfg(not(any(windows, target_os = "l4re")))] - pub const OVERFLOW: Self = Self(c::EOVERFLOW); - /// `EOWNERDEAD` - #[cfg(not(any( - freebsdlike, - netbsdlike, - windows, - target_os = "haiku", - target_os = "l4re" - )))] - pub const OWNERDEAD: Self = Self(c::EOWNERDEAD); - /// `EPERM` - #[cfg(not(windows))] - pub const PERM: Self = Self(c::EPERM); - /// `EPFNOSUPPORT` - #[cfg(not(any(target_os = "l4re", target_os = "wasi")))] - pub const PFNOSUPPORT: Self = Self(c::EPFNOSUPPORT); - /// `EPIPE` - #[cfg(not(windows))] - pub const PIPE: Self = Self(c::EPIPE); - /// `EPROCLIM` - #[cfg(bsd)] - pub const PROCLIM: Self = Self(c::EPROCLIM); - /// `EPROCUNAVAIL` - #[cfg(bsd)] - pub const PROCUNAVAIL: Self = Self(c::EPROCUNAVAIL); - /// `EPROGMISMATCH` - #[cfg(bsd)] - pub const PROGMISMATCH: Self = Self(c::EPROGMISMATCH); - /// `EPROGUNAVAIL` - #[cfg(bsd)] - pub const PROGUNAVAIL: Self = Self(c::EPROGUNAVAIL); - /// `EPROTO` - #[cfg(not(any(windows, target_os = "l4re")))] - pub const PROTO: Self = Self(c::EPROTO); - /// `EPROTONOSUPPORT` - #[cfg(not(target_os = "l4re"))] - pub const PROTONOSUPPORT: Self = Self(c::EPROTONOSUPPORT); - /// `EPROTOTYPE` - #[cfg(not(target_os = "l4re"))] - pub const PROTOTYPE: Self = Self(c::EPROTOTYPE); - /// `EPROVIDERFAILEDINIT` - #[cfg(windows)] - pub const PROVIDERFAILEDINIT: Self = Self(c::EPROVIDERFAILEDINIT); - /// `ERANGE` - #[cfg(not(windows))] - pub const RANGE: Self = Self(c::ERANGE); - /// `EREFUSED` - #[cfg(windows)] - pub const REFUSED: Self = Self(c::EREFUSED); - /// `EREMCHG` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const REMCHG: Self = Self(c::EREMCHG); - /// `EREMOTE` - #[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const REMOTE: Self = Self(c::EREMOTE); - /// `EREMOTEIO` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const REMOTEIO: Self = Self(c::EREMOTEIO); - /// `ERESTART` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const RESTART: Self = Self(c::ERESTART); - /// `ERFKILL` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "android", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "redox", - target_os = "wasi", - )))] - pub const RFKILL: Self = Self(c::ERFKILL); - /// `EROFS` - #[cfg(not(windows))] - pub const ROFS: Self = Self(c::EROFS); - /// `ERPCMISMATCH` - #[cfg(bsd)] - pub const RPCMISMATCH: Self = Self(c::ERPCMISMATCH); - /// `ESHUTDOWN` - #[cfg(not(any(target_os = "espidf", target_os = "l4re", target_os = "wasi")))] - pub const SHUTDOWN: Self = Self(c::ESHUTDOWN); - /// `ESOCKTNOSUPPORT` - #[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const SOCKTNOSUPPORT: Self = Self(c::ESOCKTNOSUPPORT); - /// `ESPIPE` - #[cfg(not(windows))] - pub const SPIPE: Self = Self(c::ESPIPE); - /// `ESRCH` - #[cfg(not(windows))] - pub const SRCH: Self = Self(c::ESRCH); - /// `ESRMNT` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const SRMNT: Self = Self(c::ESRMNT); - /// `ESTALE` - pub const STALE: Self = Self(c::ESTALE); - /// `ESTRPIPE` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const STRPIPE: Self = Self(c::ESTRPIPE); - /// `ETIME` - #[cfg(not(any( - freebsdlike, - windows, - target_os = "l4re", - target_os = "openbsd", - target_os = "wasi" - )))] - pub const TIME: Self = Self(c::ETIME); - /// `ETIMEDOUT` - pub const TIMEDOUT: Self = Self(c::ETIMEDOUT); - /// `E2BIG` - #[cfg(not(windows))] - #[doc(alias = "2BIG")] - pub const TOOBIG: Self = Self(c::E2BIG); - /// `ETOOMANYREFS` - #[cfg(not(any(target_os = "haiku", target_os = "l4re", target_os = "wasi")))] - pub const TOOMANYREFS: Self = Self(c::ETOOMANYREFS); - /// `ETXTBSY` - #[cfg(not(windows))] - pub const TXTBSY: Self = Self(c::ETXTBSY); - /// `EUCLEAN` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "nto", - target_os = "wasi", - )))] - pub const UCLEAN: Self = Self(c::EUCLEAN); - /// `EUNATCH` - #[cfg(not(any( - bsd, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const UNATCH: Self = Self(c::EUNATCH); - /// `EUSERS` - #[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi" - )))] - pub const USERS: Self = Self(c::EUSERS); - /// `EWOULDBLOCK` - pub const WOULDBLOCK: Self = Self(c::EWOULDBLOCK); - /// `EXDEV` - #[cfg(not(windows))] - pub const XDEV: Self = Self(c::EXDEV); - /// `EXFULL` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "l4re", - target_os = "wasi", - )))] - pub const XFULL: Self = Self(c::EXFULL); -} - -impl Errno { - /// Extract an `Errno` value from a `std::io::Error`. - /// - /// This isn't a `From` conversion because it's expected to be relatively - /// uncommon. - #[cfg(feature = "std")] - #[inline] - pub fn from_io_error(io_err: &std::io::Error) -> Option { - io_err - .raw_os_error() - .and_then(|raw| if raw != 0 { Some(Self(raw)) } else { None }) - } - - /// Extract the raw OS error number from this error. - #[inline] - pub const fn raw_os_error(self) -> i32 { - self.0 - } - - /// Construct an `Errno` from a raw OS error number. - #[inline] - pub const fn from_raw_os_error(raw: i32) -> Self { - Self(raw) - } - - pub(crate) fn last_os_error() -> Self { - Self(errno().0) - } -} diff --git a/third_party/rust/rustix/src/backend/libc/io/mod.rs b/third_party/rust/rustix/src/backend/libc/io/mod.rs deleted file mode 100644 index 4873885760d4..000000000000 --- a/third_party/rust/rustix/src/backend/libc/io/mod.rs +++ /dev/null @@ -1,6 +0,0 @@ -pub(crate) mod errno; -#[cfg(not(windows))] -pub(crate) mod types; - -#[cfg_attr(windows, path = "windows_syscalls.rs")] -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/io/syscalls.rs b/third_party/rust/rustix/src/backend/libc/io/syscalls.rs deleted file mode 100644 index 19ecfa9b6ec9..000000000000 --- a/third_party/rust/rustix/src/backend/libc/io/syscalls.rs +++ /dev/null @@ -1,344 +0,0 @@ -//! libc syscalls supporting `rustix::io`. - -use crate::backend::c; -#[cfg(not(target_os = "wasi"))] -use crate::backend::conv::ret_discarded_fd; -use crate::backend::conv::{borrowed_fd, ret, ret_c_int, ret_owned_fd, ret_usize}; -use crate::fd::{AsFd, BorrowedFd, OwnedFd, RawFd}; -#[cfg(not(any( - target_os = "aix", - target_os = "espidf", - target_os = "nto", - target_os = "wasi" -)))] -use crate::io::DupFlags; -#[cfg(linux_kernel)] -use crate::io::ReadWriteFlags; -use crate::io::{self, FdFlags}; -use crate::ioctl::{IoctlOutput, RawOpcode}; -use core::cmp::min; -#[cfg(all(feature = "fs", feature = "net"))] -use libc_errno::errno; -#[cfg(not(target_os = "espidf"))] -use { - crate::backend::MAX_IOV, - crate::io::{IoSlice, IoSliceMut}, -}; - -pub(crate) fn read(fd: BorrowedFd<'_>, buf: &mut [u8]) -> io::Result { - unsafe { - ret_usize(c::read( - borrowed_fd(fd), - buf.as_mut_ptr().cast(), - min(buf.len(), READ_LIMIT), - )) - } -} - -pub(crate) fn write(fd: BorrowedFd<'_>, buf: &[u8]) -> io::Result { - unsafe { - ret_usize(c::write( - borrowed_fd(fd), - buf.as_ptr().cast(), - min(buf.len(), READ_LIMIT), - )) - } -} - -pub(crate) fn pread(fd: BorrowedFd<'_>, buf: &mut [u8], offset: u64) -> io::Result { - let len = min(buf.len(), READ_LIMIT); - - // Silently cast; we'll get `EINVAL` if the value is negative. - let offset = offset as i64; - - // ESP-IDF doesn't support 64-bit offsets. - #[cfg(target_os = "espidf")] - let offset: i32 = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; - - unsafe { - ret_usize(c::pread( - borrowed_fd(fd), - buf.as_mut_ptr().cast(), - len, - offset, - )) - } -} - -pub(crate) fn pwrite(fd: BorrowedFd<'_>, buf: &[u8], offset: u64) -> io::Result { - let len = min(buf.len(), READ_LIMIT); - - // Silently cast; we'll get `EINVAL` if the value is negative. - let offset = offset as i64; - - // ESP-IDF doesn't support 64-bit offsets. - #[cfg(target_os = "espidf")] - let offset: i32 = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?; - - unsafe { ret_usize(c::pwrite(borrowed_fd(fd), buf.as_ptr().cast(), len, offset)) } -} - -#[cfg(not(target_os = "espidf"))] -pub(crate) fn readv(fd: BorrowedFd<'_>, bufs: &mut [IoSliceMut<'_>]) -> io::Result { - unsafe { - ret_usize(c::readv( - borrowed_fd(fd), - bufs.as_ptr().cast::(), - min(bufs.len(), MAX_IOV) as c::c_int, - )) - } -} - -#[cfg(not(target_os = "espidf"))] -pub(crate) fn writev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>]) -> io::Result { - unsafe { - ret_usize(c::writev( - borrowed_fd(fd), - bufs.as_ptr().cast::(), - min(bufs.len(), MAX_IOV) as c::c_int, - )) - } -} - -#[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - target_os = "solaris" -)))] -pub(crate) fn preadv( - fd: BorrowedFd<'_>, - bufs: &mut [IoSliceMut<'_>], - offset: u64, -) -> io::Result { - // Silently cast; we'll get `EINVAL` if the value is negative. - let offset = offset as i64; - unsafe { - ret_usize(c::preadv( - borrowed_fd(fd), - bufs.as_ptr().cast::(), - min(bufs.len(), MAX_IOV) as c::c_int, - offset, - )) - } -} - -#[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - target_os = "solaris" -)))] -pub(crate) fn pwritev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>], offset: u64) -> io::Result { - // Silently cast; we'll get `EINVAL` if the value is negative. - let offset = offset as i64; - unsafe { - ret_usize(c::pwritev( - borrowed_fd(fd), - bufs.as_ptr().cast::(), - min(bufs.len(), MAX_IOV) as c::c_int, - offset, - )) - } -} - -#[cfg(linux_kernel)] -pub(crate) fn preadv2( - fd: BorrowedFd<'_>, - bufs: &mut [IoSliceMut<'_>], - offset: u64, - flags: ReadWriteFlags, -) -> io::Result { - // Silently cast; we'll get `EINVAL` if the value is negative. - let offset = offset as i64; - unsafe { - ret_usize(c::preadv2( - borrowed_fd(fd), - bufs.as_ptr().cast::(), - min(bufs.len(), MAX_IOV) as c::c_int, - offset, - bitflags_bits!(flags), - )) - } -} - -#[cfg(linux_kernel)] -pub(crate) fn pwritev2( - fd: BorrowedFd<'_>, - bufs: &[IoSlice<'_>], - offset: u64, - flags: ReadWriteFlags, -) -> io::Result { - // Silently cast; we'll get `EINVAL` if the value is negative. - let offset = offset as i64; - unsafe { - ret_usize(c::pwritev2( - borrowed_fd(fd), - bufs.as_ptr().cast::(), - min(bufs.len(), MAX_IOV) as c::c_int, - offset, - bitflags_bits!(flags), - )) - } -} - -// These functions are derived from Rust's library/std/src/sys/unix/fd.rs at -// revision 326ef470a8b379a180d6dc4bbef08990698a737a. - -// The maximum read limit on most POSIX-like systems is `SSIZE_MAX`, with the -// manual page quoting that if the count of bytes to read is greater than -// `SSIZE_MAX` the result is “unspecified”. -// -// On macOS, however, apparently the 64-bit libc is either buggy or -// intentionally showing odd behavior by rejecting any read with a size larger -// than or equal to `INT_MAX`. To handle both of these the read size is capped -// on both platforms. -#[cfg(target_os = "macos")] -const READ_LIMIT: usize = c::c_int::MAX as usize - 1; -#[cfg(not(target_os = "macos"))] -const READ_LIMIT: usize = c::ssize_t::MAX as usize; - -pub(crate) unsafe fn close(raw_fd: RawFd) { - let _ = c::close(raw_fd as c::c_int); -} - -#[inline] -pub(crate) unsafe fn ioctl( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> io::Result { - ret_c_int(c::ioctl(borrowed_fd(fd), request, arg)) -} - -#[inline] -pub(crate) unsafe fn ioctl_readonly( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> io::Result { - ioctl(fd, request, arg) -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[cfg(all(feature = "fs", feature = "net"))] -pub(crate) fn is_read_write(fd: BorrowedFd<'_>) -> io::Result<(bool, bool)> { - use core::mem::MaybeUninit; - - let (mut read, mut write) = crate::fs::fd::_is_file_read_write(fd)?; - let mut not_socket = false; - if read { - // Do a `recv` with `PEEK` and `DONTWAIT` for 1 byte. A 0 indicates - // the read side is shut down; an `EWOULDBLOCK` indicates the read - // side is still open. - match unsafe { - c::recv( - borrowed_fd(fd), - MaybeUninit::<[u8; 1]>::uninit() - .as_mut_ptr() - .cast::(), - 1, - c::MSG_PEEK | c::MSG_DONTWAIT, - ) - } { - 0 => read = false, - -1 => { - #[allow(unreachable_patterns)] // `EAGAIN` may equal `EWOULDBLOCK` - match errno().0 { - c::EAGAIN | c::EWOULDBLOCK => (), - c::ENOTSOCK => not_socket = true, - err => return Err(io::Errno(err)), - } - } - _ => (), - } - } - if write && !not_socket { - // Do a `send` with `DONTWAIT` for 0 bytes. An `EPIPE` indicates - // the write side is shut down. - if unsafe { c::send(borrowed_fd(fd), [].as_ptr(), 0, c::MSG_DONTWAIT) } == -1 { - #[allow(unreachable_patterns)] // `EAGAIN` may equal `EWOULDBLOCK` - match errno().0 { - c::EAGAIN | c::EWOULDBLOCK | c::ENOTSOCK => (), - c::EPIPE => write = false, - err => return Err(io::Errno(err)), - } - } - } - Ok((read, write)) -} - -#[cfg(target_os = "wasi")] -#[cfg(all(feature = "fs", feature = "net"))] -pub(crate) fn is_read_write(_fd: BorrowedFd<'_>) -> io::Result<(bool, bool)> { - todo!("Implement is_read_write for WASI in terms of fd_fdstat_get"); -} - -pub(crate) fn fcntl_getfd(fd: BorrowedFd<'_>) -> io::Result { - let flags = unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GETFD))? }; - Ok(FdFlags::from_bits_retain(bitcast!(flags))) -} - -pub(crate) fn fcntl_setfd(fd: BorrowedFd<'_>, flags: FdFlags) -> io::Result<()> { - unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_SETFD, flags.bits())) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn fcntl_dupfd_cloexec(fd: BorrowedFd<'_>, min: RawFd) -> io::Result { - unsafe { ret_owned_fd(c::fcntl(borrowed_fd(fd), c::F_DUPFD_CLOEXEC, min)) } -} - -#[cfg(target_os = "espidf")] -pub(crate) fn fcntl_dupfd(fd: BorrowedFd<'_>, min: RawFd) -> io::Result { - unsafe { ret_owned_fd(c::fcntl(borrowed_fd(fd), c::F_DUPFD, min)) } -} - -#[cfg(not(target_os = "wasi"))] -pub(crate) fn dup(fd: BorrowedFd<'_>) -> io::Result { - unsafe { ret_owned_fd(c::dup(borrowed_fd(fd))) } -} - -#[allow(clippy::needless_pass_by_ref_mut)] -#[cfg(not(target_os = "wasi"))] -pub(crate) fn dup2(fd: BorrowedFd<'_>, new: &mut OwnedFd) -> io::Result<()> { - unsafe { ret_discarded_fd(c::dup2(borrowed_fd(fd), borrowed_fd(new.as_fd()))) } -} - -#[allow(clippy::needless_pass_by_ref_mut)] -#[cfg(not(any( - apple, - target_os = "aix", - target_os = "android", - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { - unsafe { - ret_discarded_fd(c::dup3( - borrowed_fd(fd), - borrowed_fd(new.as_fd()), - bitflags_bits!(flags), - )) - } -} - -#[cfg(any( - apple, - target_os = "android", - target_os = "dragonfly", - target_os = "haiku", - target_os = "redox", -))] -pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, _flags: DupFlags) -> io::Result<()> { - // Android 5.0 has `dup3`, but libc doesn't have bindings. Emulate it - // using `dup2`. We don't need to worry about the difference between - // `dup2` and `dup3` when the file descriptors are equal because we - // have an `&mut OwnedFd` which means `fd` doesn't alias it. - dup2(fd, new) -} diff --git a/third_party/rust/rustix/src/backend/libc/io/types.rs b/third_party/rust/rustix/src/backend/libc/io/types.rs deleted file mode 100644 index eaf3eae7119e..000000000000 --- a/third_party/rust/rustix/src/backend/libc/io/types.rs +++ /dev/null @@ -1,65 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `FD_*` constants for use with [`fcntl_getfd`] and [`fcntl_setfd`]. - /// - /// [`fcntl_getfd`]: crate::io::fcntl_getfd - /// [`fcntl_setfd`]: crate::io::fcntl_setfd - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FdFlags: u32 { - /// `FD_CLOEXEC` - const CLOEXEC = bitcast!(c::FD_CLOEXEC); - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - /// `RWF_*` constants for use with [`preadv2`] and [`pwritev2`]. - /// - /// [`preadv2`]: crate::io::preadv2 - /// [`pwritev2`]: crate::io::pwritev - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ReadWriteFlags: u32 { - /// `RWF_DSYNC` (since Linux 4.7) - const DSYNC = linux_raw_sys::general::RWF_DSYNC; - /// `RWF_HIPRI` (since Linux 4.6) - const HIPRI = linux_raw_sys::general::RWF_HIPRI; - /// `RWF_SYNC` (since Linux 4.7) - const SYNC = linux_raw_sys::general::RWF_SYNC; - /// `RWF_NOWAIT` (since Linux 4.14) - const NOWAIT = linux_raw_sys::general::RWF_NOWAIT; - /// `RWF_APPEND` (since Linux 4.16) - const APPEND = linux_raw_sys::general::RWF_APPEND; - - /// - const _ = !0; - } -} - -#[cfg(not(target_os = "wasi"))] -bitflags! { - /// `O_*` constants for use with [`dup2`]. - /// - /// [`dup2`]: crate::io::dup2 - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct DupFlags: u32 { - /// `O_CLOEXEC` - #[cfg(not(any( - apple, - target_os = "aix", - target_os = "android", - target_os = "redox", - )))] // Android 5.0 has dup3, but libc doesn't have bindings - const CLOEXEC = bitcast!(c::O_CLOEXEC); - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/libc/io/windows_syscalls.rs b/third_party/rust/rustix/src/backend/libc/io/windows_syscalls.rs deleted file mode 100644 index 049221d2fa0e..000000000000 --- a/third_party/rust/rustix/src/backend/libc/io/windows_syscalls.rs +++ /dev/null @@ -1,30 +0,0 @@ -//! Windows system calls in the `io` module. - -use crate::backend::c; -use crate::backend::conv::{borrowed_fd, ret_c_int}; -use crate::backend::fd::LibcFd; -use crate::fd::{BorrowedFd, RawFd}; -use crate::io; -use crate::ioctl::{IoctlOutput, RawOpcode}; - -pub(crate) unsafe fn close(raw_fd: RawFd) { - let _ = c::close(raw_fd as LibcFd); -} - -#[inline] -pub(crate) unsafe fn ioctl( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> io::Result { - ret_c_int(c::ioctl(borrowed_fd(fd), request, arg.cast())) -} - -#[inline] -pub(crate) unsafe fn ioctl_readonly( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> io::Result { - ioctl(fd, request, arg) -} diff --git a/third_party/rust/rustix/src/backend/libc/io_uring/mod.rs b/third_party/rust/rustix/src/backend/libc/io_uring/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/libc/io_uring/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/io_uring/syscalls.rs b/third_party/rust/rustix/src/backend/libc/io_uring/syscalls.rs deleted file mode 100644 index 8e8182401cda..000000000000 --- a/third_party/rust/rustix/src/backend/libc/io_uring/syscalls.rs +++ /dev/null @@ -1,70 +0,0 @@ -//! libc syscalls supporting `rustix::io_uring`. - -use crate::backend::c; -use crate::backend::conv::{borrowed_fd, ret_owned_fd, ret_u32}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io; -use crate::io_uring::{io_uring_params, IoringEnterFlags, IoringRegisterOp}; - -#[inline] -pub(crate) fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result { - syscall! { - fn io_uring_setup( - entries: u32, - params: *mut io_uring_params - ) via SYS_io_uring_setup -> c::c_int - } - unsafe { ret_owned_fd(io_uring_setup(entries, params)) } -} - -#[inline] -pub(crate) unsafe fn io_uring_register( - fd: BorrowedFd<'_>, - opcode: IoringRegisterOp, - arg: *const c::c_void, - nr_args: u32, -) -> io::Result { - syscall! { - fn io_uring_register( - fd: c::c_uint, - opcode: c::c_uint, - arg: *const c::c_void, - nr_args: c::c_uint - ) via SYS_io_uring_register -> c::c_int - } - ret_u32(io_uring_register( - borrowed_fd(fd) as _, - opcode as u32, - arg, - nr_args, - )) -} - -#[inline] -pub(crate) unsafe fn io_uring_enter( - fd: BorrowedFd<'_>, - to_submit: u32, - min_complete: u32, - flags: IoringEnterFlags, - arg: *const c::c_void, - size: usize, -) -> io::Result { - syscall! { - fn io_uring_enter2( - fd: c::c_uint, - to_submit: c::c_uint, - min_complete: c::c_uint, - flags: c::c_uint, - arg: *const c::c_void, - size: usize - ) via SYS_io_uring_enter -> c::c_int - } - ret_u32(io_uring_enter2( - borrowed_fd(fd) as _, - to_submit, - min_complete, - bitflags_bits!(flags), - arg, - size, - )) -} diff --git a/third_party/rust/rustix/src/backend/libc/mm/mod.rs b/third_party/rust/rustix/src/backend/libc/mm/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/mm/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/libc/mm/syscalls.rs b/third_party/rust/rustix/src/backend/libc/mm/syscalls.rs deleted file mode 100644 index 4b23a58b70b4..000000000000 --- a/third_party/rust/rustix/src/backend/libc/mm/syscalls.rs +++ /dev/null @@ -1,222 +0,0 @@ -//! libc syscalls supporting `rustix::mm`. - -#[cfg(not(target_os = "redox"))] -use super::types::Advice; -#[cfg(any(target_os = "emscripten", target_os = "linux"))] -use super::types::MremapFlags; -use super::types::{MapFlags, MprotectFlags, MsyncFlags, ProtFlags}; -#[cfg(linux_kernel)] -use super::types::{MlockFlags, UserfaultfdFlags}; -use crate::backend::c; -#[cfg(linux_kernel)] -use crate::backend::conv::ret_owned_fd; -use crate::backend::conv::{borrowed_fd, no_fd, ret}; -use crate::fd::BorrowedFd; -#[cfg(linux_kernel)] -use crate::fd::OwnedFd; -use crate::io; - -#[cfg(not(target_os = "redox"))] -pub(crate) fn madvise(addr: *mut c::c_void, len: usize, advice: Advice) -> io::Result<()> { - // On Linux platforms, `MADV_DONTNEED` has the same value as - // `POSIX_MADV_DONTNEED` but different behavior. We remap it to a different - // value, and check for it here. - #[cfg(target_os = "linux")] - if let Advice::LinuxDontNeed = advice { - return unsafe { ret(c::madvise(addr, len, c::MADV_DONTNEED)) }; - } - - #[cfg(not(target_os = "android"))] - { - let err = unsafe { c::posix_madvise(addr, len, advice as c::c_int) }; - - // `posix_madvise` returns its error status rather than using `errno`. - if err == 0 { - Ok(()) - } else { - Err(io::Errno(err)) - } - } - - #[cfg(target_os = "android")] - { - if let Advice::DontNeed = advice { - // Do nothing. Linux's `MADV_DONTNEED` isn't the same as - // `POSIX_MADV_DONTNEED`, so just discard `MADV_DONTNEED`. - Ok(()) - } else { - unsafe { ret(c::madvise(addr, len, advice as c::c_int)) } - } - } -} - -pub(crate) unsafe fn msync(addr: *mut c::c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { - let err = c::msync(addr, len, bitflags_bits!(flags)); - - // `msync` returns its error status rather than using `errno`. - if err == 0 { - Ok(()) - } else { - Err(io::Errno(err)) - } -} - -/// # Safety -/// -/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working -/// with memory pointed to by raw pointers is unsafe. -pub(crate) unsafe fn mmap( - ptr: *mut c::c_void, - len: usize, - prot: ProtFlags, - flags: MapFlags, - fd: BorrowedFd<'_>, - offset: u64, -) -> io::Result<*mut c::c_void> { - let res = c::mmap( - ptr, - len, - bitflags_bits!(prot), - bitflags_bits!(flags), - borrowed_fd(fd), - offset as i64, - ); - if res == c::MAP_FAILED { - Err(io::Errno::last_os_error()) - } else { - Ok(res) - } -} - -/// # Safety -/// -/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working -/// with memory pointed to by raw pointers is unsafe. -pub(crate) unsafe fn mmap_anonymous( - ptr: *mut c::c_void, - len: usize, - prot: ProtFlags, - flags: MapFlags, -) -> io::Result<*mut c::c_void> { - let res = c::mmap( - ptr, - len, - bitflags_bits!(prot), - bitflags_bits!(flags | MapFlags::from_bits_retain(bitcast!(c::MAP_ANONYMOUS))), - no_fd(), - 0, - ); - if res == c::MAP_FAILED { - Err(io::Errno::last_os_error()) - } else { - Ok(res) - } -} - -pub(crate) unsafe fn mprotect( - ptr: *mut c::c_void, - len: usize, - flags: MprotectFlags, -) -> io::Result<()> { - ret(c::mprotect(ptr, len, bitflags_bits!(flags))) -} - -pub(crate) unsafe fn munmap(ptr: *mut c::c_void, len: usize) -> io::Result<()> { - ret(c::munmap(ptr, len)) -} - -/// # Safety -/// -/// `mremap` is primarily unsafe due to the `old_address` parameter, as -/// anything working with memory pointed to by raw pointers is unsafe. -#[cfg(any(target_os = "emscripten", target_os = "linux"))] -pub(crate) unsafe fn mremap( - old_address: *mut c::c_void, - old_size: usize, - new_size: usize, - flags: MremapFlags, -) -> io::Result<*mut c::c_void> { - let res = c::mremap(old_address, old_size, new_size, bitflags_bits!(flags)); - if res == c::MAP_FAILED { - Err(io::Errno::last_os_error()) - } else { - Ok(res) - } -} - -/// # Safety -/// -/// `mremap_fixed` is primarily unsafe due to the `old_address` and -/// `new_address` parameters, as anything working with memory pointed to by raw -/// pointers is unsafe. -#[cfg(any(target_os = "emscripten", target_os = "linux"))] -pub(crate) unsafe fn mremap_fixed( - old_address: *mut c::c_void, - old_size: usize, - new_size: usize, - flags: MremapFlags, - new_address: *mut c::c_void, -) -> io::Result<*mut c::c_void> { - let res = c::mremap( - old_address, - old_size, - new_size, - bitflags_bits!(flags | MremapFlags::from_bits_retain(bitcast!(c::MAP_FIXED))), - new_address, - ); - if res == c::MAP_FAILED { - Err(io::Errno::last_os_error()) - } else { - Ok(res) - } -} - -/// # Safety -/// -/// `mlock` operates on raw pointers and may round out to the nearest page -/// boundaries. -#[inline] -pub(crate) unsafe fn mlock(addr: *mut c::c_void, length: usize) -> io::Result<()> { - ret(c::mlock(addr, length)) -} - -/// # Safety -/// -/// `mlock_with` operates on raw pointers and may round out to the nearest page -/// boundaries. -#[cfg(linux_kernel)] -#[inline] -pub(crate) unsafe fn mlock_with( - addr: *mut c::c_void, - length: usize, - flags: MlockFlags, -) -> io::Result<()> { - weak_or_syscall! { - fn mlock2( - addr: *const c::c_void, - len: c::size_t, - flags: c::c_int - ) via SYS_mlock2 -> c::c_int - } - - ret(mlock2(addr, length, bitflags_bits!(flags))) -} - -/// # Safety -/// -/// `munlock` operates on raw pointers and may round out to the nearest page -/// boundaries. -#[inline] -pub(crate) unsafe fn munlock(addr: *mut c::c_void, length: usize) -> io::Result<()> { - ret(c::munlock(addr, length)) -} - -#[cfg(linux_kernel)] -pub(crate) unsafe fn userfaultfd(flags: UserfaultfdFlags) -> io::Result { - syscall! { - fn userfaultfd( - flags: c::c_int - ) via SYS_userfaultfd -> c::c_int - } - ret_owned_fd(userfaultfd(bitflags_bits!(flags))) -} diff --git a/third_party/rust/rustix/src/backend/libc/mm/types.rs b/third_party/rust/rustix/src/backend/libc/mm/types.rs deleted file mode 100644 index f0b4ad59353c..000000000000 --- a/third_party/rust/rustix/src/backend/libc/mm/types.rs +++ /dev/null @@ -1,444 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `PROT_*` flags for use with [`mmap`]. - /// - /// For `PROT_NONE`, use `ProtFlags::empty()`. - /// - /// [`mmap`]: crate::io::mmap - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ProtFlags: u32 { - /// `PROT_READ` - const READ = bitcast!(c::PROT_READ); - /// `PROT_WRITE` - const WRITE = bitcast!(c::PROT_WRITE); - /// `PROT_EXEC` - const EXEC = bitcast!(c::PROT_EXEC); - - /// - const _ = !0; - } -} - -bitflags! { - /// `PROT_*` flags for use with [`mprotect`]. - /// - /// For `PROT_NONE`, use `MprotectFlags::empty()`. - /// - /// [`mprotect`]: crate::io::mprotect - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MprotectFlags: u32 { - /// `PROT_READ` - const READ = bitcast!(c::PROT_READ); - /// `PROT_WRITE` - const WRITE = bitcast!(c::PROT_WRITE); - /// `PROT_EXEC` - const EXEC = bitcast!(c::PROT_EXEC); - /// `PROT_GROWSUP` - #[cfg(linux_kernel)] - const GROWSUP = bitcast!(c::PROT_GROWSUP); - /// `PROT_GROWSDOWN` - #[cfg(linux_kernel)] - const GROWSDOWN = bitcast!(c::PROT_GROWSDOWN); - /// `PROT_SEM` - #[cfg(linux_kernel)] - const SEM = linux_raw_sys::general::PROT_SEM; - /// `PROT_BTI` - #[cfg(all(linux_kernel, target_arch = "aarch64"))] - const BTI = linux_raw_sys::general::PROT_BTI; - /// `PROT_MTE` - #[cfg(all(linux_kernel, target_arch = "aarch64"))] - const MTE = linux_raw_sys::general::PROT_MTE; - /// `PROT_SAO` - #[cfg(all(linux_kernel, any(target_arch = "powerpc", target_arch = "powerpc64")))] - const SAO = linux_raw_sys::general::PROT_SAO; - /// `PROT_ADI` - #[cfg(all(linux_kernel, any(target_arch = "sparc", target_arch = "sparc64")))] - const ADI = linux_raw_sys::general::PROT_ADI; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MAP_*` flags for use with [`mmap`]. - /// - /// For `MAP_ANONYMOUS` (aka `MAP_ANON`), see [`mmap_anonymous`]. - /// - /// [`mmap`]: crate::io::mmap - /// [`mmap_anonymous`]: crates::io::mmap_anonymous - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MapFlags: u32 { - /// `MAP_SHARED` - const SHARED = bitcast!(c::MAP_SHARED); - /// `MAP_SHARED_VALIDATE` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "android", - target_os = "emscripten", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const SHARED_VALIDATE = bitcast!(c::MAP_SHARED_VALIDATE); - /// `MAP_PRIVATE` - const PRIVATE = bitcast!(c::MAP_PRIVATE); - /// `MAP_DENYWRITE` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const DENYWRITE = bitcast!(c::MAP_DENYWRITE); - /// `MAP_FIXED` - const FIXED = bitcast!(c::MAP_FIXED); - /// `MAP_FIXED_NOREPLACE` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "android", - target_os = "emscripten", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const FIXED_NOREPLACE = bitcast!(c::MAP_FIXED_NOREPLACE); - /// `MAP_GROWSDOWN` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const GROWSDOWN = bitcast!(c::MAP_GROWSDOWN); - /// `MAP_HUGETLB` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const HUGETLB = bitcast!(c::MAP_HUGETLB); - /// `MAP_HUGE_2MB` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "android", - target_os = "emscripten", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const HUGE_2MB = bitcast!(c::MAP_HUGE_2MB); - /// `MAP_HUGE_1GB` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "android", - target_os = "emscripten", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const HUGE_1GB = bitcast!(c::MAP_HUGE_1GB); - /// `MAP_LOCKED` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const LOCKED = bitcast!(c::MAP_LOCKED); - /// `MAP_NOCORE` - #[cfg(freebsdlike)] - const NOCORE = bitcast!(c::MAP_NOCORE); - /// `MAP_NORESERVE` - #[cfg(not(any( - freebsdlike, - target_os = "aix", - target_os = "nto", - target_os = "redox", - )))] - const NORESERVE = bitcast!(c::MAP_NORESERVE); - /// `MAP_NOSYNC` - #[cfg(freebsdlike)] - const NOSYNC = bitcast!(c::MAP_NOSYNC); - /// `MAP_POPULATE` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const POPULATE = bitcast!(c::MAP_POPULATE); - /// `MAP_STACK` - #[cfg(not(any( - apple, - solarish, - target_os = "aix", - target_os = "dragonfly", - target_os = "haiku", - target_os = "netbsd", - target_os = "redox", - )))] - const STACK = bitcast!(c::MAP_STACK); - /// `MAP_PREFAULT_READ` - #[cfg(target_os = "freebsd")] - const PREFAULT_READ = bitcast!(c::MAP_PREFAULT_READ); - /// `MAP_SYNC` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "android", - target_os = "emscripten", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - all( - linux_kernel, - any(target_arch = "mips", target_arch = "mips32r6", target_arch = "mips64", target_arch = "mips64r6"), - ) - )))] - const SYNC = bitcast!(c::MAP_SYNC); - /// `MAP_UNINITIALIZED` - #[cfg(any())] - const UNINITIALIZED = bitcast!(c::MAP_UNINITIALIZED); - - /// - const _ = !0; - } -} - -#[cfg(any(target_os = "emscripten", target_os = "linux"))] -bitflags! { - /// `MREMAP_*` flags for use with [`mremap`]. - /// - /// For `MREMAP_FIXED`, see [`mremap_fixed`]. - /// - /// [`mremap`]: crate::io::mremap - /// [`mremap_fixed`]: crate::io::mremap_fixed - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MremapFlags: u32 { - /// `MREMAP_MAYMOVE` - const MAYMOVE = bitcast!(c::MREMAP_MAYMOVE); - - /// - const _ = !0; - } -} - -bitflags! { - /// `MS_*` flags for use with [`msync`]. - /// - /// [`msync`]: crate::io::msync - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MsyncFlags: u32 { - /// `MS_SYNC`—Requests an update and waits for it to complete. - const SYNC = bitcast!(c::MS_SYNC); - /// `MS_ASYNC`—Specifies that an update be scheduled, but the call - /// returns immediately. - const ASYNC = bitcast!(c::MS_ASYNC); - /// `MS_INVALIDATE`—Asks to invalidate other mappings of the same - /// file (so that they can be updated with the fresh values just - /// written). - const INVALIDATE = bitcast!(c::MS_INVALIDATE); - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - /// `MLOCK_*` flags for use with [`mlock_with`]. - /// - /// [`mlock_with`]: crate::io::mlock_with - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MlockFlags: u32 { - /// `MLOCK_ONFAULT` - const ONFAULT = bitcast!(c::MLOCK_ONFAULT); - - /// - const _ = !0; - } -} - -/// `POSIX_MADV_*` constants for use with [`madvise`]. -/// -/// [`madvise`]: crate::mm::madvise -#[cfg(not(target_os = "redox"))] -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -#[non_exhaustive] -pub enum Advice { - /// `POSIX_MADV_NORMAL` - #[cfg(not(any(target_os = "android", target_os = "haiku")))] - Normal = bitcast!(c::POSIX_MADV_NORMAL), - - /// `POSIX_MADV_NORMAL` - #[cfg(any(target_os = "android", target_os = "haiku"))] - Normal = bitcast!(c::MADV_NORMAL), - - /// `POSIX_MADV_SEQUENTIAL` - #[cfg(not(any(target_os = "android", target_os = "haiku")))] - Sequential = bitcast!(c::POSIX_MADV_SEQUENTIAL), - - /// `POSIX_MADV_SEQUENTIAL` - #[cfg(any(target_os = "android", target_os = "haiku"))] - Sequential = bitcast!(c::MADV_SEQUENTIAL), - - /// `POSIX_MADV_RANDOM` - #[cfg(not(any(target_os = "android", target_os = "haiku")))] - Random = bitcast!(c::POSIX_MADV_RANDOM), - - /// `POSIX_MADV_RANDOM` - #[cfg(any(target_os = "android", target_os = "haiku"))] - Random = bitcast!(c::MADV_RANDOM), - - /// `POSIX_MADV_WILLNEED` - #[cfg(not(any(target_os = "android", target_os = "haiku")))] - WillNeed = bitcast!(c::POSIX_MADV_WILLNEED), - - /// `POSIX_MADV_WILLNEED` - #[cfg(any(target_os = "android", target_os = "haiku"))] - WillNeed = bitcast!(c::MADV_WILLNEED), - - /// `POSIX_MADV_DONTNEED` - #[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "haiku")))] - DontNeed = bitcast!(c::POSIX_MADV_DONTNEED), - - /// `POSIX_MADV_DONTNEED` - #[cfg(any(target_os = "android", target_os = "haiku"))] - DontNeed = bitcast!(i32::MAX - 1), - - /// `MADV_DONTNEED` - // `MADV_DONTNEED` has the same value as `POSIX_MADV_DONTNEED`. We don't - // have a separate `posix_madvise` from `madvise`, so we expose a special - // value which we special-case. - #[cfg(target_os = "linux")] - LinuxDontNeed = bitcast!(i32::MAX), - - /// `MADV_DONTNEED` - #[cfg(target_os = "android")] - LinuxDontNeed = bitcast!(c::MADV_DONTNEED), - /// `MADV_FREE` - #[cfg(linux_kernel)] - LinuxFree = bitcast!(c::MADV_FREE), - /// `MADV_REMOVE` - #[cfg(linux_kernel)] - LinuxRemove = bitcast!(c::MADV_REMOVE), - /// `MADV_DONTFORK` - #[cfg(linux_kernel)] - LinuxDontFork = bitcast!(c::MADV_DONTFORK), - /// `MADV_DOFORK` - #[cfg(linux_kernel)] - LinuxDoFork = bitcast!(c::MADV_DOFORK), - /// `MADV_HWPOISON` - #[cfg(linux_kernel)] - LinuxHwPoison = bitcast!(c::MADV_HWPOISON), - /// `MADV_SOFT_OFFLINE` - #[cfg(all( - linux_kernel, - not(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" - )) - ))] - LinuxSoftOffline = bitcast!(c::MADV_SOFT_OFFLINE), - /// `MADV_MERGEABLE` - #[cfg(linux_kernel)] - LinuxMergeable = bitcast!(c::MADV_MERGEABLE), - /// `MADV_UNMERGEABLE` - #[cfg(linux_kernel)] - LinuxUnmergeable = bitcast!(c::MADV_UNMERGEABLE), - /// `MADV_HUGEPAGE` (since Linux 2.6.38) - #[cfg(linux_kernel)] - LinuxHugepage = bitcast!(c::MADV_HUGEPAGE), - /// `MADV_NOHUGEPAGE` (since Linux 2.6.38) - #[cfg(linux_kernel)] - LinuxNoHugepage = bitcast!(c::MADV_NOHUGEPAGE), - /// `MADV_DONTDUMP` (since Linux 3.4) - #[cfg(linux_kernel)] - LinuxDontDump = bitcast!(c::MADV_DONTDUMP), - /// `MADV_DODUMP` (since Linux 3.4) - #[cfg(linux_kernel)] - LinuxDoDump = bitcast!(c::MADV_DODUMP), - /// `MADV_WIPEONFORK` (since Linux 4.14) - #[cfg(linux_kernel)] - LinuxWipeOnFork = bitcast!(c::MADV_WIPEONFORK), - /// `MADV_KEEPONFORK` (since Linux 4.14) - #[cfg(linux_kernel)] - LinuxKeepOnFork = bitcast!(c::MADV_KEEPONFORK), - /// `MADV_COLD` (since Linux 5.4) - #[cfg(linux_kernel)] - LinuxCold = bitcast!(c::MADV_COLD), - /// `MADV_PAGEOUT` (since Linux 5.4) - #[cfg(linux_kernel)] - LinuxPageOut = bitcast!(c::MADV_PAGEOUT), - /// `MADV_POPULATE_READ` (since Linux 5.14) - #[cfg(linux_kernel)] - LinuxPopulateRead = bitcast!(c::MADV_POPULATE_READ), - /// `MADV_POPULATE_WRITE` (since Linux 5.14) - #[cfg(linux_kernel)] - LinuxPopulateWrite = bitcast!(c::MADV_POPULATE_WRITE), - /// `MADV_DONTNEED_LOCKED` (since Linux 5.18) - #[cfg(linux_kernel)] - LinuxDontneedLocked = bitcast!(c::MADV_DONTNEED_LOCKED), -} - -#[cfg(target_os = "emscripten")] -#[allow(non_upper_case_globals)] -impl Advice { - /// `POSIX_MADV_DONTNEED` - pub const DontNeed: Self = Self::Normal; -} - -#[cfg(linux_kernel)] -bitflags! { - /// `O_*` flags for use with [`userfaultfd`]. - /// - /// [`userfaultfd`]: crate::io::userfaultfd - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct UserfaultfdFlags: u32 { - /// `O_CLOEXEC` - const CLOEXEC = bitcast!(c::O_CLOEXEC); - /// `O_NONBLOCK` - const NONBLOCK = bitcast!(c::O_NONBLOCK); - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/libc/mod.rs b/third_party/rust/rustix/src/backend/libc/mod.rs deleted file mode 100644 index 59fc3bea15b4..000000000000 --- a/third_party/rust/rustix/src/backend/libc/mod.rs +++ /dev/null @@ -1,206 +0,0 @@ -//! The libc backend. -//! -//! On most platforms, this uses the `libc` crate to make system calls. On -//! Windows, this uses the Winsock2 API in `windows-sys`, which can be adapted -//! to have a very `libc`-like interface. - -// Every FFI call requires an unsafe block, and there are a lot of FFI -// calls. For now, set this to allow for the libc backend. -#![allow(clippy::undocumented_unsafe_blocks)] -// Lots of libc types vary between platforms, so we often need a `.into()` on -// one platform where it's redundant on another. -#![allow(clippy::useless_conversion)] - -mod conv; - -#[cfg(windows)] -pub(crate) mod fd { - pub use crate::maybe_polyfill::os::windows::io::{ - AsRawSocket, AsSocket, BorrowedSocket as BorrowedFd, FromRawSocket, IntoRawSocket, - OwnedSocket as OwnedFd, RawSocket as RawFd, - }; - pub(crate) use windows_sys::Win32::Networking::WinSock::SOCKET as LibcFd; - - /// A version of [`AsRawFd`] for use with Winsock2 API. - /// - /// [`AsRawFd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.AsRawFd.html - pub trait AsRawFd { - /// A version of [`as_raw_fd`] for use with Winsock2 API. - /// - /// [`as_raw_fd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.FromRawFd.html#tymethod.as_raw_fd - fn as_raw_fd(&self) -> RawFd; - } - impl AsRawFd for T { - #[inline] - fn as_raw_fd(&self) -> RawFd { - self.as_raw_socket() - } - } - - /// A version of [`IntoRawFd`] for use with Winsock2 API. - /// - /// [`IntoRawFd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.IntoRawFd.html - pub trait IntoRawFd { - /// A version of [`into_raw_fd`] for use with Winsock2 API. - /// - /// [`into_raw_fd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.FromRawFd.html#tymethod.into_raw_fd - fn into_raw_fd(self) -> RawFd; - } - impl IntoRawFd for T { - #[inline] - fn into_raw_fd(self) -> RawFd { - self.into_raw_socket() - } - } - - /// A version of [`FromRawFd`] for use with Winsock2 API. - /// - /// [`FromRawFd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.FromRawFd.html - pub trait FromRawFd { - /// A version of [`from_raw_fd`] for use with Winsock2 API. - /// - /// # Safety - /// - /// See the [safety requirements] for [`from_raw_fd`]. - /// - /// [`from_raw_fd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.FromRawFd.html#tymethod.from_raw_fd - /// [safety requirements]: https://doc.rust-lang.org/stable/std/os/fd/trait.FromRawFd.html#safety - unsafe fn from_raw_fd(raw_fd: RawFd) -> Self; - } - impl FromRawFd for T { - #[inline] - unsafe fn from_raw_fd(raw_fd: RawFd) -> Self { - Self::from_raw_socket(raw_fd) - } - } - - /// A version of [`AsFd`] for use with Winsock2 API. - /// - /// [`AsFd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.AsFd.html - pub trait AsFd { - /// An `as_fd` function for Winsock2, where a `Fd` is a `Socket`. - fn as_fd(&self) -> BorrowedFd; - } - impl AsFd for T { - #[inline] - fn as_fd(&self) -> BorrowedFd { - self.as_socket() - } - } -} -#[cfg(not(windows))] -pub(crate) mod fd { - pub use crate::maybe_polyfill::os::fd::{ - AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd, - }; - #[allow(unused_imports)] - pub(crate) use RawFd as LibcFd; -} - -// On Windows we emulate selected libc-compatible interfaces. On non-Windows, -// we just use libc here, since this is the libc backend. -#[cfg_attr(windows, path = "winsock_c.rs")] -pub(crate) mod c; - -#[cfg(feature = "event")] -pub(crate) mod event; -#[cfg(not(windows))] -#[cfg(feature = "fs")] -pub(crate) mod fs; -pub(crate) mod io; -#[cfg(linux_kernel)] -#[cfg(feature = "io_uring")] -pub(crate) mod io_uring; -#[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] -#[cfg(feature = "mm")] -pub(crate) mod mm; -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) mod mount; -#[cfg(linux_kernel)] -#[cfg(all(feature = "fs", not(feature = "mount")))] -pub(crate) mod mount; // for deprecated mount functions in "fs" -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[cfg(feature = "net")] -pub(crate) mod net; -#[cfg(not(any(windows, target_os = "espidf")))] -#[cfg(any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", -))] -pub(crate) mod param; -#[cfg(not(windows))] -#[cfg(feature = "pipe")] -pub(crate) mod pipe; -#[cfg(not(windows))] -#[cfg(feature = "process")] -pub(crate) mod process; -#[cfg(not(windows))] -#[cfg(not(target_os = "wasi"))] -#[cfg(feature = "pty")] -pub(crate) mod pty; -#[cfg(not(windows))] -#[cfg(feature = "rand")] -pub(crate) mod rand; -#[cfg(not(windows))] -#[cfg(not(target_os = "wasi"))] -#[cfg(feature = "system")] -pub(crate) mod system; -#[cfg(not(windows))] -#[cfg(feature = "termios")] -pub(crate) mod termios; -#[cfg(not(windows))] -#[cfg(feature = "thread")] -pub(crate) mod thread; -#[cfg(not(any(windows, target_os = "espidf")))] -#[cfg(feature = "time")] -pub(crate) mod time; - -/// If the host libc is glibc, return `true` if it is less than version 2.25. -/// -/// To restate and clarify, this function returning true does not mean the libc -/// is glibc just that if it is glibc, it is less than version 2.25. -/// -/// For now, this function is only available on Linux, but if it ends up being -/// used beyond that, this could be changed to e.g. `#[cfg(unix)]`. -#[cfg(all(unix, target_env = "gnu"))] -pub(crate) fn if_glibc_is_less_than_2_25() -> bool { - // This is also defined inside `weak_or_syscall!` in - // backend/libc/rand/syscalls.rs, but it's not convenient to re-export the - // weak symbol from that macro, so we duplicate it at a small cost here. - weak! { fn getrandom(*mut c::c_void, c::size_t, c::c_uint) -> c::ssize_t } - - // glibc 2.25 has `getrandom`, which is how we satisfy the API contract of - // this function. But, there are likely other libc versions which have it. - getrandom.get().is_none() -} - -// Private modules used by multiple public modules. -#[cfg(any(feature = "procfs", feature = "process", feature = "runtime"))] -#[cfg(not(any(windows, target_os = "wasi")))] -pub(crate) mod pid; -#[cfg(any(feature = "process", feature = "thread"))] -#[cfg(linux_kernel)] -pub(crate) mod prctl; -#[cfg(any(feature = "fs", feature = "thread", feature = "process"))] -#[cfg(not(any(windows, target_os = "wasi")))] -pub(crate) mod ugid; - -#[cfg(bsd)] -const MAX_IOV: usize = c::IOV_MAX as usize; - -#[cfg(any(linux_kernel, target_os = "emscripten", target_os = "nto"))] -const MAX_IOV: usize = c::UIO_MAXIOV as usize; - -#[cfg(not(any( - bsd, - linux_kernel, - windows, - target_os = "emscripten", - target_os = "espidf", - target_os = "nto", - target_os = "horizon", -)))] -const MAX_IOV: usize = 16; // The minimum value required by POSIX. diff --git a/third_party/rust/rustix/src/backend/libc/mount/mod.rs b/third_party/rust/rustix/src/backend/libc/mount/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/mount/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/libc/mount/syscalls.rs b/third_party/rust/rustix/src/backend/libc/mount/syscalls.rs deleted file mode 100644 index 26cdb52dcae8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/mount/syscalls.rs +++ /dev/null @@ -1,272 +0,0 @@ -use crate::backend::c; -use crate::backend::conv::ret; -#[cfg(feature = "mount")] -use crate::backend::conv::{borrowed_fd, c_str, ret_owned_fd}; -#[cfg(feature = "mount")] -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::ffi::CStr; -use crate::io; -use core::ptr::null; - -#[cfg(linux_kernel)] -pub(crate) fn mount( - source: Option<&CStr>, - target: &CStr, - file_system_type: Option<&CStr>, - flags: super::types::MountFlagsArg, - data: Option<&CStr>, -) -> io::Result<()> { - unsafe { - ret(c::mount( - source.map_or_else(null, CStr::as_ptr), - target.as_ptr(), - file_system_type.map_or_else(null, CStr::as_ptr), - flags.0, - data.map_or_else(null, CStr::as_ptr).cast(), - )) - } -} - -#[cfg(linux_kernel)] -pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> { - unsafe { ret(c::umount2(target.as_ptr(), bitflags_bits!(flags))) } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsopen(fs_name: &CStr, flags: super::types::FsOpenFlags) -> io::Result { - syscall! { - fn fsopen( - fs_name: *const c::c_char, - flags: c::c_uint - ) via SYS_fsopen -> c::c_int - } - unsafe { ret_owned_fd(fsopen(c_str(fs_name), flags.bits())) } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsmount( - fs_fd: BorrowedFd<'_>, - flags: super::types::FsMountFlags, - attr_flags: super::types::MountAttrFlags, -) -> io::Result<()> { - syscall! { - fn fsmount( - fs_fd: c::c_int, - flags: c::c_uint, - attr_flags: c::c_uint - ) via SYS_fsmount -> c::c_int - } - unsafe { ret(fsmount(borrowed_fd(fs_fd), flags.bits(), attr_flags.bits())) } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn move_mount( - from_dfd: BorrowedFd<'_>, - from_pathname: &CStr, - to_dfd: BorrowedFd<'_>, - to_pathname: &CStr, - flags: super::types::MoveMountFlags, -) -> io::Result<()> { - syscall! { - fn move_mount( - from_dfd: c::c_int, - from_pathname: *const c::c_char, - to_dfd: c::c_int, - to_pathname: *const c::c_char, - flags: c::c_uint - ) via SYS_move_mount -> c::c_int - } - unsafe { - ret(move_mount( - borrowed_fd(from_dfd), - c_str(from_pathname), - borrowed_fd(to_dfd), - c_str(to_pathname), - flags.bits(), - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn open_tree( - dfd: BorrowedFd<'_>, - filename: &CStr, - flags: super::types::OpenTreeFlags, -) -> io::Result { - syscall! { - fn open_tree( - dfd: c::c_int, - filename: *const c::c_char, - flags: c::c_uint - ) via SYS_open_tree -> c::c_int - } - - unsafe { ret_owned_fd(open_tree(borrowed_fd(dfd), c_str(filename), flags.bits())) } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fspick( - dfd: BorrowedFd<'_>, - path: &CStr, - flags: super::types::FsPickFlags, -) -> io::Result { - syscall! { - fn fspick( - dfd: c::c_int, - path: *const c::c_char, - flags: c::c_uint - ) via SYS_fspick -> c::c_int - } - - unsafe { ret_owned_fd(fspick(borrowed_fd(dfd), c_str(path), flags.bits())) } -} - -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -syscall! { - fn fsconfig( - fs_fd: c::c_int, - cmd: c::c_uint, - key: *const c::c_char, - val: *const c::c_char, - aux: c::c_int - ) via SYS_fsconfig -> c::c_int -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_set_flag(fs_fd: BorrowedFd<'_>, key: &CStr) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::SetFlag as _, - c_str(key), - null(), - 0, - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_set_string( - fs_fd: BorrowedFd<'_>, - key: &CStr, - value: &CStr, -) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::SetString as _, - c_str(key), - c_str(value), - 0, - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_set_binary( - fs_fd: BorrowedFd<'_>, - key: &CStr, - value: &[u8], -) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::SetBinary as _, - c_str(key), - value.as_ptr().cast(), - value.len().try_into().map_err(|_| io::Errno::OVERFLOW)?, - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_set_fd( - fs_fd: BorrowedFd<'_>, - key: &CStr, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::SetFd as _, - c_str(key), - null(), - borrowed_fd(fd), - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_set_path( - fs_fd: BorrowedFd<'_>, - key: &CStr, - path: &CStr, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::SetPath as _, - c_str(key), - c_str(path), - borrowed_fd(fd), - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_set_path_empty( - fs_fd: BorrowedFd<'_>, - key: &CStr, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::SetPathEmpty as _, - c_str(key), - c_str(cstr!("")), - borrowed_fd(fd), - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_create(fs_fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::Create as _, - null(), - null(), - 0, - )) - } -} - -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -pub(crate) fn fsconfig_reconfigure(fs_fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { - ret(fsconfig( - borrowed_fd(fs_fd), - super::types::FsConfigCmd::Reconfigure as _, - null(), - null(), - 0, - )) - } -} diff --git a/third_party/rust/rustix/src/backend/libc/mount/types.rs b/third_party/rust/rustix/src/backend/libc/mount/types.rs deleted file mode 100644 index 069a944443a9..000000000000 --- a/third_party/rust/rustix/src/backend/libc/mount/types.rs +++ /dev/null @@ -1,340 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -#[cfg(linux_kernel)] -bitflags! { - /// `MS_*` constants for use with [`mount`]. - /// - /// [`mount`]: crate::mount::mount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MountFlags: c::c_ulong { - /// `MS_BIND` - const BIND = c::MS_BIND; - - /// `MS_DIRSYNC` - const DIRSYNC = c::MS_DIRSYNC; - - /// `MS_LAZYTIME` - const LAZYTIME = c::MS_LAZYTIME; - - /// `MS_MANDLOCK` - #[doc(alias = "MANDLOCK")] - const PERMIT_MANDATORY_FILE_LOCKING = c::MS_MANDLOCK; - - /// `MS_NOATIME` - const NOATIME = c::MS_NOATIME; - - /// `MS_NODEV` - const NODEV = c::MS_NODEV; - - /// `MS_NODIRATIME` - const NODIRATIME = c::MS_NODIRATIME; - - /// `MS_NOEXEC` - const NOEXEC = c::MS_NOEXEC; - - /// `MS_NOSUID` - const NOSUID = c::MS_NOSUID; - - /// `MS_RDONLY` - const RDONLY = c::MS_RDONLY; - - /// `MS_REC` - const REC = c::MS_REC; - - /// `MS_RELATIME` - const RELATIME = c::MS_RELATIME; - - /// `MS_SILENT` - const SILENT = c::MS_SILENT; - - /// `MS_STRICTATIME` - const STRICTATIME = c::MS_STRICTATIME; - - /// `MS_SYNCHRONOUS` - const SYNCHRONOUS = c::MS_SYNCHRONOUS; - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - /// `MNT_*` constants for use with [`unmount`]. - /// - /// [`unmount`]: crate::mount::unmount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct UnmountFlags: u32 { - /// `MNT_FORCE` - const FORCE = bitcast!(c::MNT_FORCE); - /// `MNT_DETACH` - const DETACH = bitcast!(c::MNT_DETACH); - /// `MNT_EXPIRE` - const EXPIRE = bitcast!(c::MNT_EXPIRE); - /// `UMOUNT_NOFOLLOW` - const NOFOLLOW = bitcast!(c::UMOUNT_NOFOLLOW); - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -bitflags! { - /// `FSOPEN_*` constants for use with [`fsopen`]. - /// - /// [`fsopen`]: crate::mount::fsopen - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FsOpenFlags: c::c_uint { - /// `FSOPEN_CLOEXEC` - const FSOPEN_CLOEXEC = 0x00000001; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -bitflags! { - /// `FSMOUNT_*` constants for use with [`fsmount`]. - /// - /// [`fsmount`]: crate::mount::fsmount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FsMountFlags: c::c_uint { - /// `FSMOUNT_CLOEXEC` - const FSMOUNT_CLOEXEC = 0x00000001; - - /// - const _ = !0; - } -} - -/// `FSCONFIG_*` constants for use with the `fsconfig` syscall. -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -pub(crate) enum FsConfigCmd { - /// `FSCONFIG_SET_FLAG` - SetFlag = 0, - - /// `FSCONFIG_SET_STRING` - SetString = 1, - - /// `FSCONFIG_SET_BINARY` - SetBinary = 2, - - /// `FSCONFIG_SET_PATH` - SetPath = 3, - - /// `FSCONFIG_SET_PATH_EMPTY` - SetPathEmpty = 4, - - /// `FSCONFIG_SET_FD` - SetFd = 5, - - /// `FSCONFIG_CMD_CREATE` - Create = 6, - - /// `FSCONFIG_CMD_RECONFIGURE` - Reconfigure = 7, -} - -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -bitflags! { - /// `MOUNT_ATTR_*` constants for use with [`fsmount`]. - /// - /// [`fsmount`]: crate::mount::fsmount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MountAttrFlags: c::c_uint { - /// `MOUNT_ATTR_RDONLY` - const MOUNT_ATTR_RDONLY = 0x00000001; - - /// `MOUNT_ATTR_NOSUID` - const MOUNT_ATTR_NOSUID = 0x00000002; - - /// `MOUNT_ATTR_NODEV` - const MOUNT_ATTR_NODEV = 0x00000004; - - /// `MOUNT_ATTR_NOEXEC` - const MOUNT_ATTR_NOEXEC = 0x00000008; - - /// `MOUNT_ATTR__ATIME` - const MOUNT_ATTR__ATIME = 0x00000070; - - /// `MOUNT_ATTR_RELATIME` - const MOUNT_ATTR_RELATIME = 0x00000000; - - /// `MOUNT_ATTR_NOATIME` - const MOUNT_ATTR_NOATIME = 0x00000010; - - /// `MOUNT_ATTR_STRICTATIME` - const MOUNT_ATTR_STRICTATIME = 0x00000020; - - /// `MOUNT_ATTR_NODIRATIME` - const MOUNT_ATTR_NODIRATIME = 0x00000080; - - /// `MOUNT_ATTR_NOUSER` - const MOUNT_ATTR_IDMAP = 0x00100000; - - /// `MOUNT_ATTR__ATIME_FLAGS` - const MOUNT_ATTR_NOSYMFOLLOW = 0x00200000; - - /// `MOUNT_ATTR__ATIME_FLAGS` - const MOUNT_ATTR_SIZE_VER0 = 32; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -bitflags! { - /// `MOVE_MOUNT_*` constants for use with [`move_mount`]. - /// - /// [`move_mount`]: crate::mount::move_mount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MoveMountFlags: c::c_uint { - /// `MOVE_MOUNT_F_EMPTY_PATH` - const MOVE_MOUNT_F_SYMLINKS = 0x00000001; - - /// `MOVE_MOUNT_F_AUTOMOUNTS` - const MOVE_MOUNT_F_AUTOMOUNTS = 0x00000002; - - /// `MOVE_MOUNT_F_EMPTY_PATH` - const MOVE_MOUNT_F_EMPTY_PATH = 0x00000004; - - /// `MOVE_MOUNT_T_SYMLINKS` - const MOVE_MOUNT_T_SYMLINKS = 0x00000010; - - /// `MOVE_MOUNT_T_AUTOMOUNTS` - const MOVE_MOUNT_T_AUTOMOUNTS = 0x00000020; - - /// `MOVE_MOUNT_T_EMPTY_PATH` - const MOVE_MOUNT_T_EMPTY_PATH = 0x00000040; - - /// `MOVE_MOUNT__MASK` - const MOVE_MOUNT_SET_GROUP = 0x00000100; - - // TODO: add when linux 6.5 is released - // /// `MOVE_MOUNT_BENEATH` - // const MOVE_MOUNT_BENEATH = 0x00000200; - - /// `MOVE_MOUNT__MASK` - const MOVE_MOUNT__MASK = 0x00000377; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -bitflags! { - /// `OPENTREE_*` constants for use with [`open_tree`]. - /// - /// [`open_tree`]: crate::mount::open_tree - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct OpenTreeFlags: c::c_uint { - /// `OPENTREE_CLONE` - const OPEN_TREE_CLONE = 1; - - /// `OPENTREE_CLOEXEC` - const OPEN_TREE_CLOEXEC = c::O_CLOEXEC as c::c_uint; - - /// `AT_EMPTY_PATH` - const AT_EMPTY_PATH = c::AT_EMPTY_PATH as c::c_uint; - - /// `AT_NO_AUTOMOUNT` - const AT_NO_AUTOMOUNT = c::AT_NO_AUTOMOUNT as c::c_uint; - - /// `AT_RECURSIVE` - const AT_RECURSIVE = c::AT_RECURSIVE as c::c_uint; - - /// `AT_SYMLINK_NOFOLLOW` - const AT_SYMLINK_NOFOLLOW = c::AT_SYMLINK_NOFOLLOW as c::c_uint; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -#[cfg(linux_kernel)] -bitflags! { - /// `FSPICK_*` constants for use with [`fspick`]. - /// - /// [`fspick`]: crate::mount::fspick - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FsPickFlags: c::c_uint { - /// `FSPICK_CLOEXEC` - const FSPICK_CLOEXEC = 0x00000001; - - /// `FSPICK_SYMLINK_NOFOLLOW` - const FSPICK_SYMLINK_NOFOLLOW = 0x00000002; - - /// `FSPICK_NO_AUTOMOUNT` - const FSPICK_NO_AUTOMOUNT = 0x00000004; - - /// `FSPICK_EMPTY_PATH` - const FSPICK_EMPTY_PATH = 0x00000008; - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - /// `MS_*` constants for use with [`change_mount`]. - /// - /// [`change_mount`]: crate::mount::change_mount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MountPropagationFlags: c::c_ulong { - /// `MS_SILENT` - const SILENT = c::MS_SILENT; - /// `MS_SHARED` - const SHARED = c::MS_SHARED; - /// `MS_PRIVATE` - const PRIVATE = c::MS_PRIVATE; - /// `MS_SLAVE` - const SLAVE = c::MS_SLAVE; - /// `MS_UNBINDABLE` - const UNBINDABLE = c::MS_UNBINDABLE; - /// `MS_REC` - const REC = c::MS_REC; - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub(crate) struct InternalMountFlags: c::c_ulong { - const REMOUNT = c::MS_REMOUNT; - const MOVE = c::MS_MOVE; - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -pub(crate) struct MountFlagsArg(pub(crate) c::c_ulong); diff --git a/third_party/rust/rustix/src/backend/libc/net/addr.rs b/third_party/rust/rustix/src/backend/libc/net/addr.rs deleted file mode 100644 index 6a140d7679ac..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/addr.rs +++ /dev/null @@ -1,239 +0,0 @@ -//! Socket address utilities. - -use crate::backend::c; -#[cfg(unix)] -use { - crate::ffi::CStr, - crate::io, - crate::path, - core::cmp::Ordering, - core::fmt, - core::hash::{Hash, Hasher}, - core::slice, -}; - -/// `struct sockaddr_un` -#[cfg(unix)] -#[derive(Clone)] -#[doc(alias = "sockaddr_un")] -pub struct SocketAddrUnix { - pub(crate) unix: c::sockaddr_un, - #[cfg(not(any(bsd, target_os = "haiku")))] - len: c::socklen_t, -} - -#[cfg(unix)] -impl SocketAddrUnix { - /// Construct a new Unix-domain address from a filesystem path. - #[inline] - pub fn new(path: P) -> io::Result { - path.into_with_c_str(Self::_new) - } - - #[inline] - fn _new(path: &CStr) -> io::Result { - let mut unix = Self::init(); - let bytes = path.to_bytes_with_nul(); - if bytes.len() > unix.sun_path.len() { - return Err(io::Errno::NAMETOOLONG); - } - for (i, b) in bytes.iter().enumerate() { - unix.sun_path[i] = *b as c::c_char; - } - - #[cfg(any(bsd, target_os = "haiku"))] - { - unix.sun_len = (offsetof_sun_path() + bytes.len()).try_into().unwrap(); - } - - Ok(Self { - unix, - #[cfg(not(any(bsd, target_os = "haiku")))] - len: (offsetof_sun_path() + bytes.len()).try_into().unwrap(), - }) - } - - /// Construct a new abstract Unix-domain address from a byte slice. - #[cfg(linux_kernel)] - #[inline] - pub fn new_abstract_name(name: &[u8]) -> io::Result { - let mut unix = Self::init(); - if 1 + name.len() > unix.sun_path.len() { - return Err(io::Errno::NAMETOOLONG); - } - unix.sun_path[0] = 0; - for (i, b) in name.iter().enumerate() { - unix.sun_path[1 + i] = *b as c::c_char; - } - let len = offsetof_sun_path() + 1 + name.len(); - let len = len.try_into().unwrap(); - Ok(Self { - unix, - #[cfg(not(any(bsd, target_os = "haiku")))] - len, - }) - } - - fn init() -> c::sockaddr_un { - c::sockaddr_un { - #[cfg(any(bsd, target_os = "aix", target_os = "haiku", target_os = "nto"))] - sun_len: 0, - sun_family: c::AF_UNIX as _, - #[cfg(any(bsd, target_os = "nto"))] - sun_path: [0; 104], - #[cfg(not(any(bsd, target_os = "aix", target_os = "haiku", target_os = "nto")))] - sun_path: [0; 108], - #[cfg(target_os = "haiku")] - sun_path: [0; 126], - #[cfg(target_os = "aix")] - sun_path: [0; 1023], - } - } - - /// For a filesystem path address, return the path. - #[inline] - pub fn path(&self) -> Option<&CStr> { - let len = self.len(); - if len != 0 && self.unix.sun_path[0] != 0 { - let end = len as usize - offsetof_sun_path(); - let bytes = &self.unix.sun_path[..end]; - // SAFETY: `from_raw_parts` to convert from `&[c_char]` to `&[u8]`. - // And `from_bytes_with_nul_unchecked` since the string is - // NUL-terminated. - unsafe { - Some(CStr::from_bytes_with_nul_unchecked(slice::from_raw_parts( - bytes.as_ptr().cast(), - bytes.len(), - ))) - } - } else { - None - } - } - - /// For an abstract address, return the identifier. - #[cfg(linux_kernel)] - #[inline] - pub fn abstract_name(&self) -> Option<&[u8]> { - let len = self.len(); - if len != 0 && self.unix.sun_path[0] == 0 { - let end = len as usize - offsetof_sun_path(); - let bytes = &self.unix.sun_path[1..end]; - // SAFETY: `from_raw_parts` to convert from `&[c_char]` to `&[u8]`. - unsafe { Some(slice::from_raw_parts(bytes.as_ptr().cast(), bytes.len())) } - } else { - None - } - } - - #[inline] - pub(crate) fn addr_len(&self) -> c::socklen_t { - #[cfg(not(any(bsd, target_os = "haiku")))] - { - self.len - } - #[cfg(any(bsd, target_os = "haiku"))] - { - c::socklen_t::from(self.unix.sun_len) - } - } - - #[inline] - pub(crate) fn len(&self) -> usize { - self.addr_len() as usize - } -} - -#[cfg(unix)] -impl PartialEq for SocketAddrUnix { - #[inline] - fn eq(&self, other: &Self) -> bool { - let self_len = self.len() - offsetof_sun_path(); - let other_len = other.len() - offsetof_sun_path(); - self.unix.sun_path[..self_len].eq(&other.unix.sun_path[..other_len]) - } -} - -#[cfg(unix)] -impl Eq for SocketAddrUnix {} - -#[cfg(unix)] -impl PartialOrd for SocketAddrUnix { - #[inline] - fn partial_cmp(&self, other: &Self) -> Option { - Some(self.cmp(other)) - } -} - -#[cfg(unix)] -impl Ord for SocketAddrUnix { - #[inline] - fn cmp(&self, other: &Self) -> Ordering { - let self_len = self.len() - offsetof_sun_path(); - let other_len = other.len() - offsetof_sun_path(); - self.unix.sun_path[..self_len].cmp(&other.unix.sun_path[..other_len]) - } -} - -#[cfg(unix)] -impl Hash for SocketAddrUnix { - #[inline] - fn hash(&self, state: &mut H) { - let self_len = self.len() - offsetof_sun_path(); - self.unix.sun_path[..self_len].hash(state) - } -} - -#[cfg(unix)] -impl fmt::Debug for SocketAddrUnix { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - if let Some(path) = self.path() { - path.fmt(fmt) - } else { - #[cfg(linux_kernel)] - if let Some(name) = self.abstract_name() { - return name.fmt(fmt); - } - - "(unnamed)".fmt(fmt) - } - } -} - -/// `struct sockaddr_storage` as a raw struct. -pub type SocketAddrStorage = c::sockaddr_storage; - -/// Return the offset of the `sun_path` field of `sockaddr_un`. -#[cfg(not(windows))] -#[inline] -pub(crate) fn offsetof_sun_path() -> usize { - let z = c::sockaddr_un { - #[cfg(any(bsd, target_os = "aix", target_os = "haiku", target_os = "nto"))] - sun_len: 0_u8, - #[cfg(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - ))] - sun_family: 0_u8, - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - )))] - sun_family: 0_u16, - #[cfg(any(bsd, target_os = "nto"))] - sun_path: [0; 104], - #[cfg(not(any(bsd, target_os = "aix", target_os = "haiku", target_os = "nto")))] - sun_path: [0; 108], - #[cfg(target_os = "haiku")] - sun_path: [0; 126], - #[cfg(target_os = "aix")] - sun_path: [0; 1023], - }; - (crate::utils::as_ptr(&z.sun_path) as usize) - (crate::utils::as_ptr(&z) as usize) -} diff --git a/third_party/rust/rustix/src/backend/libc/net/ext.rs b/third_party/rust/rustix/src/backend/libc/net/ext.rs deleted file mode 100644 index eb7c20d7d85d..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/ext.rs +++ /dev/null @@ -1,131 +0,0 @@ -use crate::backend::c; - -/// The windows `sockaddr_in6` type is a union with accessor functions which -/// are not `const fn`. Define our own layout-compatible version so that we -/// can transmute in and out of it. -#[cfg(windows)] -#[repr(C)] -struct sockaddr_in6 { - sin6_family: u16, - sin6_port: u16, - sin6_flowinfo: u32, - sin6_addr: c::in6_addr, - sin6_scope_id: u32, -} - -#[cfg(not(windows))] -#[inline] -pub(crate) const fn in_addr_s_addr(addr: c::in_addr) -> u32 { - addr.s_addr -} - -#[cfg(windows)] -#[inline] -pub(crate) const fn in_addr_s_addr(addr: c::in_addr) -> u32 { - // This should be `*addr.S_un.S_addr()`, except that isn't a `const fn`. - unsafe { core::mem::transmute(addr) } -} - -#[cfg(not(windows))] -#[inline] -pub(crate) const fn in_addr_new(s_addr: u32) -> c::in_addr { - c::in_addr { s_addr } -} - -#[cfg(windows)] -#[inline] -pub(crate) const fn in_addr_new(s_addr: u32) -> c::in_addr { - unsafe { core::mem::transmute(s_addr) } -} - -#[cfg(not(windows))] -#[inline] -pub(crate) const fn in6_addr_s6_addr(addr: c::in6_addr) -> [u8; 16] { - addr.s6_addr -} - -#[cfg(windows)] -#[inline] -pub(crate) const fn in6_addr_s6_addr(addr: c::in6_addr) -> [u8; 16] { - unsafe { core::mem::transmute(addr) } -} - -#[cfg(not(windows))] -#[inline] -pub(crate) const fn in6_addr_new(s6_addr: [u8; 16]) -> c::in6_addr { - c::in6_addr { s6_addr } -} - -#[cfg(windows)] -#[inline] -pub(crate) const fn in6_addr_new(s6_addr: [u8; 16]) -> c::in6_addr { - unsafe { core::mem::transmute(s6_addr) } -} - -#[cfg(not(windows))] -#[inline] -pub(crate) const fn sockaddr_in6_sin6_scope_id(addr: &c::sockaddr_in6) -> u32 { - addr.sin6_scope_id -} - -#[cfg(windows)] -#[inline] -pub(crate) const fn sockaddr_in6_sin6_scope_id(addr: &c::sockaddr_in6) -> u32 { - let addr: &sockaddr_in6 = unsafe { core::mem::transmute(addr) }; - addr.sin6_scope_id -} - -#[cfg(not(windows))] -#[inline] -pub(crate) const fn sockaddr_in6_new( - #[cfg(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - ))] - sin6_len: u8, - sin6_family: c::sa_family_t, - sin6_port: u16, - sin6_flowinfo: u32, - sin6_addr: c::in6_addr, - sin6_scope_id: u32, -) -> c::sockaddr_in6 { - c::sockaddr_in6 { - #[cfg(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - ))] - sin6_len, - sin6_family, - sin6_port, - sin6_flowinfo, - sin6_addr, - sin6_scope_id, - #[cfg(solarish)] - __sin6_src_id: 0, - } -} - -#[cfg(windows)] -#[inline] -pub(crate) const fn sockaddr_in6_new( - sin6_family: u16, - sin6_port: u16, - sin6_flowinfo: u32, - sin6_addr: c::in6_addr, - sin6_scope_id: u32, -) -> c::sockaddr_in6 { - let addr = sockaddr_in6 { - sin6_family, - sin6_port, - sin6_flowinfo, - sin6_addr, - sin6_scope_id, - }; - unsafe { core::mem::transmute(addr) } -} diff --git a/third_party/rust/rustix/src/backend/libc/net/mod.rs b/third_party/rust/rustix/src/backend/libc/net/mod.rs deleted file mode 100644 index 65c7d06547b6..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/mod.rs +++ /dev/null @@ -1,8 +0,0 @@ -pub(crate) mod addr; -pub(crate) mod ext; -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) mod msghdr; -pub(crate) mod read_sockaddr; -pub(crate) mod send_recv; -pub(crate) mod syscalls; -pub(crate) mod write_sockaddr; diff --git a/third_party/rust/rustix/src/backend/libc/net/msghdr.rs b/third_party/rust/rustix/src/backend/libc/net/msghdr.rs deleted file mode 100644 index 2ccd7f20c0e3..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/msghdr.rs +++ /dev/null @@ -1,134 +0,0 @@ -//! Utilities for dealing with message headers. -//! -//! These take closures rather than returning a `c::msghdr` directly because -//! the message headers may reference stack-local data. - -use crate::backend::c; -use crate::backend::conv::{msg_control_len, msg_iov_len}; -use crate::backend::net::write_sockaddr::{encode_sockaddr_v4, encode_sockaddr_v6}; - -use crate::io::{self, IoSlice, IoSliceMut}; -use crate::net::{RecvAncillaryBuffer, SendAncillaryBuffer, SocketAddrV4, SocketAddrV6}; -use crate::utils::as_ptr; - -use core::mem::{size_of, zeroed, MaybeUninit}; - -/// Create a message header intended to receive a datagram. -pub(crate) fn with_recv_msghdr( - name: &mut MaybeUninit, - iov: &mut [IoSliceMut<'_>], - control: &mut RecvAncillaryBuffer<'_>, - f: impl FnOnce(&mut c::msghdr) -> io::Result, -) -> io::Result { - control.clear(); - - let namelen = size_of::() as c::socklen_t; - let mut msghdr = { - let mut h = zero_msghdr(); - h.msg_name = name.as_mut_ptr().cast(); - h.msg_namelen = namelen; - h.msg_iov = iov.as_mut_ptr().cast(); - h.msg_iovlen = msg_iov_len(iov.len()); - h.msg_control = control.as_control_ptr().cast(); - h.msg_controllen = msg_control_len(control.control_len()); - h - }; - - let res = f(&mut msghdr); - - // Reset the control length. - if res.is_ok() { - unsafe { - control.set_control_len(msghdr.msg_controllen.try_into().unwrap_or(usize::MAX)); - } - } - - res -} - -/// Create a message header intended to send without an address. -pub(crate) fn with_noaddr_msghdr( - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - f({ - let mut h = zero_msghdr(); - h.msg_iov = iov.as_ptr() as _; - h.msg_iovlen = msg_iov_len(iov.len()); - h.msg_control = control.as_control_ptr().cast(); - h.msg_controllen = msg_control_len(control.control_len()); - h - }) -} - -/// Create a message header intended to send with an IPv4 address. -pub(crate) fn with_v4_msghdr( - addr: &SocketAddrV4, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - let encoded = encode_sockaddr_v4(addr); - - f({ - let mut h = zero_msghdr(); - h.msg_name = as_ptr(&encoded) as _; - h.msg_namelen = size_of::() as _; - h.msg_iov = iov.as_ptr() as _; - h.msg_iovlen = msg_iov_len(iov.len()); - h.msg_control = control.as_control_ptr().cast(); - h.msg_controllen = msg_control_len(control.control_len()); - h - }) -} - -/// Create a message header intended to send with an IPv6 address. -pub(crate) fn with_v6_msghdr( - addr: &SocketAddrV6, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - let encoded = encode_sockaddr_v6(addr); - - f({ - let mut h = zero_msghdr(); - h.msg_name = as_ptr(&encoded) as _; - h.msg_namelen = size_of::() as _; - h.msg_iov = iov.as_ptr() as _; - h.msg_iovlen = msg_iov_len(iov.len()); - h.msg_control = control.as_control_ptr().cast(); - h.msg_controllen = msg_control_len(control.control_len()); - h - }) -} - -/// Create a message header intended to send with a Unix address. -#[cfg(all(unix, not(target_os = "redox")))] -pub(crate) fn with_unix_msghdr( - addr: &crate::net::SocketAddrUnix, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - f({ - let mut h = zero_msghdr(); - h.msg_name = as_ptr(addr) as _; - h.msg_namelen = addr.addr_len(); - h.msg_iov = iov.as_ptr() as _; - h.msg_iovlen = msg_iov_len(iov.len()); - h.msg_control = control.as_control_ptr().cast(); - h.msg_controllen = msg_control_len(control.control_len()); - h - }) -} - -/// Create a zero-initialized message header struct value. -#[cfg(all(unix, not(target_os = "redox")))] -pub(crate) fn zero_msghdr() -> c::msghdr { - // SAFETY: We can't initialize all the fields by value because on some - // platforms the `msghdr` struct in the libc crate contains private padding - // fields. But it is still a C type that's meant to be zero-initializable. - unsafe { zeroed() } -} diff --git a/third_party/rust/rustix/src/backend/libc/net/read_sockaddr.rs b/third_party/rust/rustix/src/backend/libc/net/read_sockaddr.rs deleted file mode 100644 index 604f24928fdd..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/read_sockaddr.rs +++ /dev/null @@ -1,267 +0,0 @@ -//! The BSD sockets API requires us to read the `ss_family` field before -//! we can interpret the rest of a `sockaddr` produced by the kernel. - -#[cfg(unix)] -use super::addr::SocketAddrUnix; -use super::ext::{in6_addr_s6_addr, in_addr_s_addr, sockaddr_in6_sin6_scope_id}; -use crate::backend::c; -#[cfg(not(windows))] -use crate::ffi::CStr; -use crate::io; -use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; -use core::mem::size_of; - -// This must match the header of `sockaddr`. -#[repr(C)] -struct sockaddr_header { - #[cfg(any(bsd, target_os = "haiku"))] - sa_len: u8, - #[cfg(any(bsd, target_os = "haiku"))] - ss_family: u8, - #[cfg(not(any(bsd, target_os = "haiku")))] - ss_family: u16, -} - -#[inline] -unsafe fn read_ss_family(storage: *const c::sockaddr_storage) -> u16 { - // Assert that we know the layout of `sockaddr`. - let _ = c::sockaddr { - #[cfg(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - ))] - sa_len: 0_u8, - #[cfg(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - ))] - sa_family: 0_u8, - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - )))] - sa_family: 0_u16, - #[cfg(not(target_os = "haiku"))] - sa_data: [0; 14], - #[cfg(target_os = "haiku")] - sa_data: [0; 30], - }; - - (*storage.cast::()).ss_family.into() -} - -/// Set the `ss_family` field of a socket address to `AF_UNSPEC`, so that we -/// can test for `AF_UNSPEC` to test whether it was stored to. -pub(crate) unsafe fn initialize_family_to_unspec(storage: *mut c::sockaddr_storage) { - (*storage.cast::()).ss_family = c::AF_UNSPEC as _; -} - -/// Read a socket address encoded in a platform-specific format. -/// -/// # Safety -/// -/// `storage` must point to valid socket address storage. -pub(crate) unsafe fn read_sockaddr( - storage: *const c::sockaddr_storage, - len: usize, -) -> io::Result { - #[cfg(unix)] - let offsetof_sun_path = super::addr::offsetof_sun_path(); - - if len < size_of::() { - return Err(io::Errno::INVAL); - } - match read_ss_family(storage).into() { - c::AF_INET => { - if len < size_of::() { - return Err(io::Errno::INVAL); - } - let decode = &*storage.cast::(); - Ok(SocketAddrAny::V4(SocketAddrV4::new( - Ipv4Addr::from(u32::from_be(in_addr_s_addr(decode.sin_addr))), - u16::from_be(decode.sin_port), - ))) - } - c::AF_INET6 => { - if len < size_of::() { - return Err(io::Errno::INVAL); - } - let decode = &*storage.cast::(); - #[cfg(not(windows))] - let s6_addr = decode.sin6_addr.s6_addr; - #[cfg(windows)] - let s6_addr = decode.sin6_addr.u.Byte; - #[cfg(not(windows))] - let sin6_scope_id = decode.sin6_scope_id; - #[cfg(windows)] - let sin6_scope_id = decode.Anonymous.sin6_scope_id; - Ok(SocketAddrAny::V6(SocketAddrV6::new( - Ipv6Addr::from(s6_addr), - u16::from_be(decode.sin6_port), - u32::from_be(decode.sin6_flowinfo), - sin6_scope_id, - ))) - } - #[cfg(unix)] - c::AF_UNIX => { - if len < offsetof_sun_path { - return Err(io::Errno::INVAL); - } - if len == offsetof_sun_path { - SocketAddrUnix::new(&[][..]).map(SocketAddrAny::Unix) - } else { - let decode = &*storage.cast::(); - - // On Linux check for Linux's [abstract namespace]. - // - // [abstract namespace]: https://man7.org/linux/man-pages/man7/unix.7.html - #[cfg(linux_kernel)] - if decode.sun_path[0] == 0 { - return SocketAddrUnix::new_abstract_name(core::mem::transmute::< - &[c::c_char], - &[u8], - >( - &decode.sun_path[1..len - offsetof_sun_path], - )) - .map(SocketAddrAny::Unix); - } - - // Otherwise we expect a NUL-terminated filesystem path. - - // Trim off unused bytes from the end of `path_bytes`. - let path_bytes = if cfg!(target_os = "freebsd") { - // FreeBSD sometimes sets the length to longer than the length - // of the NUL-terminated string. Find the NUL and truncate the - // string accordingly. - &decode.sun_path[..decode - .sun_path - .iter() - .position(|b| *b == 0) - .ok_or(io::Errno::INVAL)?] - } else { - // Otherwise, use the provided length. - let provided_len = len - 1 - offsetof_sun_path; - if decode.sun_path[provided_len] != 0 { - return Err(io::Errno::INVAL); - } - debug_assert_eq!( - CStr::from_ptr(decode.sun_path.as_ptr()).to_bytes().len(), - provided_len - ); - &decode.sun_path[..provided_len] - }; - - SocketAddrUnix::new(core::mem::transmute::<&[c::c_char], &[u8]>(path_bytes)) - .map(SocketAddrAny::Unix) - } - } - _ => Err(io::Errno::INVAL), - } -} - -pub(crate) unsafe fn maybe_read_sockaddr_os( - storage: *const c::sockaddr_storage, - len: usize, -) -> Option { - if len == 0 { - return None; - } - - assert!(len >= size_of::()); - let family = read_ss_family(storage).into(); - if family == c::AF_UNSPEC { - None - } else { - Some(inner_read_sockaddr_os(family, storage, len)) - } -} - -pub(crate) unsafe fn read_sockaddr_os( - storage: *const c::sockaddr_storage, - len: usize, -) -> SocketAddrAny { - assert!(len >= size_of::()); - let family = read_ss_family(storage).into(); - inner_read_sockaddr_os(family, storage, len) -} - -unsafe fn inner_read_sockaddr_os( - family: c::c_int, - storage: *const c::sockaddr_storage, - len: usize, -) -> SocketAddrAny { - #[cfg(unix)] - let offsetof_sun_path = super::addr::offsetof_sun_path(); - - assert!(len >= size_of::()); - match family { - c::AF_INET => { - assert!(len >= size_of::()); - let decode = &*storage.cast::(); - SocketAddrAny::V4(SocketAddrV4::new( - Ipv4Addr::from(u32::from_be(in_addr_s_addr(decode.sin_addr))), - u16::from_be(decode.sin_port), - )) - } - c::AF_INET6 => { - assert!(len >= size_of::()); - let decode = &*storage.cast::(); - SocketAddrAny::V6(SocketAddrV6::new( - Ipv6Addr::from(in6_addr_s6_addr(decode.sin6_addr)), - u16::from_be(decode.sin6_port), - u32::from_be(decode.sin6_flowinfo), - sockaddr_in6_sin6_scope_id(decode), - )) - } - #[cfg(unix)] - c::AF_UNIX => { - assert!(len >= offsetof_sun_path); - if len == offsetof_sun_path { - SocketAddrAny::Unix(SocketAddrUnix::new(&[][..]).unwrap()) - } else { - let decode = &*storage.cast::(); - - // On Linux check for Linux's [abstract namespace]. - // - // [abstract namespace]: https://man7.org/linux/man-pages/man7/unix.7.html - #[cfg(linux_kernel)] - if decode.sun_path[0] == 0 { - return SocketAddrAny::Unix( - SocketAddrUnix::new_abstract_name(core::mem::transmute::< - &[c::c_char], - &[u8], - >( - &decode.sun_path[1..len - offsetof_sun_path], - )) - .unwrap(), - ); - } - - // Otherwise we expect a NUL-terminated filesystem path. - assert_eq!(decode.sun_path[len - 1 - offsetof_sun_path], 0); - let path_bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; - - // FreeBSD sometimes sets the length to longer than the length - // of the NUL-terminated string. Find the NUL and truncate the - // string accordingly. - #[cfg(target_os = "freebsd")] - let path_bytes = &path_bytes[..path_bytes.iter().position(|b| *b == 0).unwrap()]; - - SocketAddrAny::Unix( - SocketAddrUnix::new(core::mem::transmute::<&[c::c_char], &[u8]>(path_bytes)) - .unwrap(), - ) - } - } - other => unimplemented!("{:?}", other), - } -} diff --git a/third_party/rust/rustix/src/backend/libc/net/send_recv.rs b/third_party/rust/rustix/src/backend/libc/net/send_recv.rs deleted file mode 100644 index 76dc97e788ae..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/send_recv.rs +++ /dev/null @@ -1,97 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `MSG_* flags for use with [`send`], [`send_to`], and related functions. - /// - /// [`send`]: crate::net::send - /// [`sendto`]: crate::net::sendto - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SendFlags: u32 { - /// `MSG_CONFIRM` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "nto", - target_os = "haiku", - )))] - const CONFIRM = bitcast!(c::MSG_CONFIRM); - /// `MSG_DONTROUTE` - const DONTROUTE = bitcast!(c::MSG_DONTROUTE); - /// `MSG_DONTWAIT` - #[cfg(not(windows))] - const DONTWAIT = bitcast!(c::MSG_DONTWAIT); - /// `MSG_EOR` - #[cfg(not(windows))] - const EOT = bitcast!(c::MSG_EOR); - /// `MSG_MORE` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - )))] - const MORE = bitcast!(c::MSG_MORE); - #[cfg(not(any(apple, windows)))] - /// `MSG_NOSIGNAL` - const NOSIGNAL = bitcast!(c::MSG_NOSIGNAL); - /// `MSG_OOB` - const OOB = bitcast!(c::MSG_OOB); - - /// - const _ = !0; - } -} - -bitflags! { - /// `MSG_* flags for use with [`recv`], [`recvfrom`], and related functions. - /// - /// [`recv`]: crate::net::recv - /// [`recvfrom`]: crate::net::recvfrom - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct RecvFlags: u32 { - #[cfg(not(any( - apple, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - /// `MSG_CMSG_CLOEXEC` - const CMSG_CLOEXEC = bitcast!(c::MSG_CMSG_CLOEXEC); - /// `MSG_DONTWAIT` - #[cfg(not(windows))] - const DONTWAIT = bitcast!(c::MSG_DONTWAIT); - /// `MSG_ERRQUEUE` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - const ERRQUEUE = bitcast!(c::MSG_ERRQUEUE); - /// `MSG_OOB` - const OOB = bitcast!(c::MSG_OOB); - /// `MSG_PEEK` - const PEEK = bitcast!(c::MSG_PEEK); - /// `MSG_TRUNC` - const TRUNC = bitcast!(c::MSG_TRUNC); - /// `MSG_WAITALL` - const WAITALL = bitcast!(c::MSG_WAITALL); - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/libc/net/syscalls.rs b/third_party/rust/rustix/src/backend/libc/net/syscalls.rs deleted file mode 100644 index 4ecd46192de4..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/syscalls.rs +++ /dev/null @@ -1,1092 +0,0 @@ -//! libc syscalls supporting `rustix::net`. - -#[cfg(unix)] -use super::addr::SocketAddrUnix; -use super::ext::{in6_addr_new, in_addr_new}; -use crate::backend::c; -use crate::backend::conv::{borrowed_fd, ret, ret_owned_fd, ret_send_recv, send_recv_len}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io; -use crate::net::{SocketAddrAny, SocketAddrV4, SocketAddrV6}; -use crate::utils::as_ptr; -use core::mem::{size_of, MaybeUninit}; -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -use { - super::msghdr::{with_noaddr_msghdr, with_recv_msghdr, with_v4_msghdr, with_v6_msghdr}, - crate::io::{IoSlice, IoSliceMut}, - crate::net::{RecvAncillaryBuffer, RecvMsgReturn, SendAncillaryBuffer}, -}; -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -use { - super::read_sockaddr::{initialize_family_to_unspec, maybe_read_sockaddr_os, read_sockaddr_os}, - super::send_recv::{RecvFlags, SendFlags}, - super::write_sockaddr::{encode_sockaddr_v4, encode_sockaddr_v6}, - crate::net::{AddressFamily, Protocol, Shutdown, SocketFlags, SocketType}, - core::ptr::null_mut, -}; - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn recv(fd: BorrowedFd<'_>, buf: &mut [u8], flags: RecvFlags) -> io::Result { - unsafe { - ret_send_recv(c::recv( - borrowed_fd(fd), - buf.as_mut_ptr().cast(), - send_recv_len(buf.len()), - bitflags_bits!(flags), - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn send(fd: BorrowedFd<'_>, buf: &[u8], flags: SendFlags) -> io::Result { - unsafe { - ret_send_recv(c::send( - borrowed_fd(fd), - buf.as_ptr().cast(), - send_recv_len(buf.len()), - bitflags_bits!(flags), - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn recvfrom( - fd: BorrowedFd<'_>, - buf: &mut [u8], - flags: RecvFlags, -) -> io::Result<(usize, Option)> { - unsafe { - let mut storage = MaybeUninit::::uninit(); - let mut len = size_of::() as c::socklen_t; - - // `recvfrom` does not write to the storage if the socket is - // connection-oriented sockets, so we initialize the family field to - // `AF_UNSPEC` so that we can detect this case. - initialize_family_to_unspec(storage.as_mut_ptr()); - - ret_send_recv(c::recvfrom( - borrowed_fd(fd), - buf.as_mut_ptr().cast(), - send_recv_len(buf.len()), - bitflags_bits!(flags), - storage.as_mut_ptr().cast(), - &mut len, - )) - .map(|nread| { - ( - nread, - maybe_read_sockaddr_os(storage.as_ptr(), len.try_into().unwrap()), - ) - }) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn sendto_v4( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrV4, -) -> io::Result { - unsafe { - ret_send_recv(c::sendto( - borrowed_fd(fd), - buf.as_ptr().cast(), - send_recv_len(buf.len()), - bitflags_bits!(flags), - as_ptr(&encode_sockaddr_v4(addr)).cast::(), - size_of::() as _, - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn sendto_v6( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrV6, -) -> io::Result { - unsafe { - ret_send_recv(c::sendto( - borrowed_fd(fd), - buf.as_ptr().cast(), - send_recv_len(buf.len()), - bitflags_bits!(flags), - as_ptr(&encode_sockaddr_v6(addr)).cast::(), - size_of::() as _, - )) - } -} - -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -pub(crate) fn sendto_unix( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrUnix, -) -> io::Result { - unsafe { - ret_send_recv(c::sendto( - borrowed_fd(fd), - buf.as_ptr().cast(), - send_recv_len(buf.len()), - bitflags_bits!(flags), - as_ptr(&addr.unix).cast(), - addr.addr_len(), - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn socket( - domain: AddressFamily, - type_: SocketType, - protocol: Option, -) -> io::Result { - let raw_protocol = match protocol { - Some(p) => p.0.get(), - None => 0, - }; - unsafe { - ret_owned_fd(c::socket( - domain.0 as c::c_int, - type_.0 as c::c_int, - raw_protocol as c::c_int, - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn socket_with( - domain: AddressFamily, - type_: SocketType, - flags: SocketFlags, - protocol: Option, -) -> io::Result { - let raw_protocol = match protocol { - Some(p) => p.0.get(), - None => 0, - }; - unsafe { - ret_owned_fd(c::socket( - domain.0 as c::c_int, - (type_.0 | flags.bits()) as c::c_int, - raw_protocol as c::c_int, - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn bind_v4(sockfd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { - unsafe { - ret(c::bind( - borrowed_fd(sockfd), - as_ptr(&encode_sockaddr_v4(addr)).cast(), - size_of::() as c::socklen_t, - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn bind_v6(sockfd: BorrowedFd<'_>, addr: &SocketAddrV6) -> io::Result<()> { - unsafe { - ret(c::bind( - borrowed_fd(sockfd), - as_ptr(&encode_sockaddr_v6(addr)).cast(), - size_of::() as c::socklen_t, - )) - } -} - -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -pub(crate) fn bind_unix(sockfd: BorrowedFd<'_>, addr: &SocketAddrUnix) -> io::Result<()> { - unsafe { - ret(c::bind( - borrowed_fd(sockfd), - as_ptr(&addr.unix).cast(), - addr.addr_len(), - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn connect_v4(sockfd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { - unsafe { - ret(c::connect( - borrowed_fd(sockfd), - as_ptr(&encode_sockaddr_v4(addr)).cast(), - size_of::() as c::socklen_t, - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn connect_v6(sockfd: BorrowedFd<'_>, addr: &SocketAddrV6) -> io::Result<()> { - unsafe { - ret(c::connect( - borrowed_fd(sockfd), - as_ptr(&encode_sockaddr_v6(addr)).cast(), - size_of::() as c::socklen_t, - )) - } -} - -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -pub(crate) fn connect_unix(sockfd: BorrowedFd<'_>, addr: &SocketAddrUnix) -> io::Result<()> { - unsafe { - ret(c::connect( - borrowed_fd(sockfd), - as_ptr(&addr.unix).cast(), - addr.addr_len(), - )) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn listen(sockfd: BorrowedFd<'_>, backlog: c::c_int) -> io::Result<()> { - unsafe { ret(c::listen(borrowed_fd(sockfd), backlog)) } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn accept(sockfd: BorrowedFd<'_>) -> io::Result { - unsafe { - let owned_fd = ret_owned_fd(c::accept(borrowed_fd(sockfd), null_mut(), null_mut()))?; - Ok(owned_fd) - } -} - -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) fn recvmsg( - sockfd: BorrowedFd<'_>, - iov: &mut [IoSliceMut<'_>], - control: &mut RecvAncillaryBuffer<'_>, - msg_flags: RecvFlags, -) -> io::Result { - let mut storage = MaybeUninit::::uninit(); - - with_recv_msghdr(&mut storage, iov, control, |msghdr| { - let result = unsafe { - ret_send_recv(c::recvmsg( - borrowed_fd(sockfd), - msghdr, - bitflags_bits!(msg_flags), - )) - }; - - result.map(|bytes| { - // Get the address of the sender, if any. - let addr = - unsafe { maybe_read_sockaddr_os(msghdr.msg_name as _, msghdr.msg_namelen as _) }; - - RecvMsgReturn { - bytes, - address: addr, - flags: RecvFlags::from_bits_retain(bitcast!(msghdr.msg_flags)), - } - }) - }) -} - -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) fn sendmsg( - sockfd: BorrowedFd<'_>, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - with_noaddr_msghdr(iov, control, |msghdr| unsafe { - ret_send_recv(c::sendmsg( - borrowed_fd(sockfd), - &msghdr, - bitflags_bits!(msg_flags), - )) - }) -} - -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) fn sendmsg_v4( - sockfd: BorrowedFd<'_>, - addr: &SocketAddrV4, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - with_v4_msghdr(addr, iov, control, |msghdr| unsafe { - ret_send_recv(c::sendmsg( - borrowed_fd(sockfd), - &msghdr, - bitflags_bits!(msg_flags), - )) - }) -} - -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub(crate) fn sendmsg_v6( - sockfd: BorrowedFd<'_>, - addr: &SocketAddrV6, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - with_v6_msghdr(addr, iov, control, |msghdr| unsafe { - ret_send_recv(c::sendmsg( - borrowed_fd(sockfd), - &msghdr, - bitflags_bits!(msg_flags), - )) - }) -} - -#[cfg(all(unix, not(any(target_os = "espidf", target_os = "redox"))))] -pub(crate) fn sendmsg_unix( - sockfd: BorrowedFd<'_>, - addr: &SocketAddrUnix, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - super::msghdr::with_unix_msghdr(addr, iov, control, |msghdr| unsafe { - ret_send_recv(c::sendmsg( - borrowed_fd(sockfd), - &msghdr, - bitflags_bits!(msg_flags), - )) - }) -} - -#[cfg(not(any( - apple, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", - target_os = "nto", - target_os = "wasi", -)))] -pub(crate) fn accept_with(sockfd: BorrowedFd<'_>, flags: SocketFlags) -> io::Result { - unsafe { - let owned_fd = ret_owned_fd(c::accept4( - borrowed_fd(sockfd), - null_mut(), - null_mut(), - flags.bits() as c::c_int, - ))?; - Ok(owned_fd) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn acceptfrom(sockfd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option)> { - unsafe { - let mut storage = MaybeUninit::::uninit(); - let mut len = size_of::() as c::socklen_t; - let owned_fd = ret_owned_fd(c::accept( - borrowed_fd(sockfd), - storage.as_mut_ptr().cast(), - &mut len, - ))?; - Ok(( - owned_fd, - maybe_read_sockaddr_os(storage.as_ptr(), len.try_into().unwrap()), - )) - } -} - -#[cfg(not(any( - apple, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -pub(crate) fn acceptfrom_with( - sockfd: BorrowedFd<'_>, - flags: SocketFlags, -) -> io::Result<(OwnedFd, Option)> { - unsafe { - let mut storage = MaybeUninit::::uninit(); - let mut len = size_of::() as c::socklen_t; - let owned_fd = ret_owned_fd(c::accept4( - borrowed_fd(sockfd), - storage.as_mut_ptr().cast(), - &mut len, - flags.bits() as c::c_int, - ))?; - Ok(( - owned_fd, - maybe_read_sockaddr_os(storage.as_ptr(), len.try_into().unwrap()), - )) - } -} - -/// Darwin lacks `accept4`, but does have `accept`. We define -/// `SocketFlags` to have no flags, so we can discard it here. -#[cfg(any( - apple, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" -))] -pub(crate) fn accept_with(sockfd: BorrowedFd<'_>, _flags: SocketFlags) -> io::Result { - accept(sockfd) -} - -/// Darwin lacks `accept4`, but does have `accept`. We define -/// `SocketFlags` to have no flags, so we can discard it here. -#[cfg(any( - apple, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" -))] -pub(crate) fn acceptfrom_with( - sockfd: BorrowedFd<'_>, - _flags: SocketFlags, -) -> io::Result<(OwnedFd, Option)> { - acceptfrom(sockfd) -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn shutdown(sockfd: BorrowedFd<'_>, how: Shutdown) -> io::Result<()> { - unsafe { ret(c::shutdown(borrowed_fd(sockfd), how as c::c_int)) } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn getsockname(sockfd: BorrowedFd<'_>) -> io::Result { - unsafe { - let mut storage = MaybeUninit::::uninit(); - let mut len = size_of::() as c::socklen_t; - ret(c::getsockname( - borrowed_fd(sockfd), - storage.as_mut_ptr().cast(), - &mut len, - ))?; - Ok(read_sockaddr_os(storage.as_ptr(), len.try_into().unwrap())) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) fn getpeername(sockfd: BorrowedFd<'_>) -> io::Result> { - unsafe { - let mut storage = MaybeUninit::::uninit(); - let mut len = size_of::() as c::socklen_t; - ret(c::getpeername( - borrowed_fd(sockfd), - storage.as_mut_ptr().cast(), - &mut len, - ))?; - Ok(maybe_read_sockaddr_os( - storage.as_ptr(), - len.try_into().unwrap(), - )) - } -} - -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -pub(crate) fn socketpair( - domain: AddressFamily, - type_: SocketType, - flags: SocketFlags, - protocol: Option, -) -> io::Result<(OwnedFd, OwnedFd)> { - let raw_protocol = match protocol { - Some(p) => p.0.get(), - None => 0, - }; - unsafe { - let mut fds = MaybeUninit::<[OwnedFd; 2]>::uninit(); - ret(c::socketpair( - c::c_int::from(domain.0), - (type_.0 | flags.bits()) as c::c_int, - raw_protocol as c::c_int, - fds.as_mut_ptr().cast::(), - ))?; - - let [fd0, fd1] = fds.assume_init(); - Ok((fd0, fd1)) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -pub(crate) mod sockopt { - use super::{c, in6_addr_new, in_addr_new, BorrowedFd}; - use crate::io; - use crate::net::sockopt::Timeout; - #[cfg(not(any( - apple, - solarish, - windows, - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "openbsd" - )))] - use crate::net::AddressFamily; - use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; - use crate::utils::as_mut_ptr; - use core::time::Duration; - #[cfg(windows)] - use windows_sys::Win32::Foundation::BOOL; - - #[inline] - fn getsockopt(fd: BorrowedFd<'_>, level: i32, optname: i32) -> io::Result { - use super::*; - - let mut optlen = core::mem::size_of::().try_into().unwrap(); - debug_assert!( - optlen as usize >= core::mem::size_of::(), - "Socket APIs don't ever use `bool` directly" - ); - - unsafe { - let mut value = core::mem::zeroed::(); - ret(c::getsockopt( - borrowed_fd(fd), - level, - optname, - as_mut_ptr(&mut value).cast(), - &mut optlen, - ))?; - // On Windows at least, `getsockopt` has been observed writing 1 - // byte on at least (`IPPROTO_TCP`, `TCP_NODELAY`), even though - // Windows' documentation says that should write a 4-byte `BOOL`. - // So, we initialize the memory to zeros above, and just assert - // that `getsockopt` doesn't write too many bytes here. - assert!( - optlen as usize <= size_of::(), - "unexpected getsockopt size" - ); - Ok(value) - } - } - - #[inline] - fn setsockopt( - fd: BorrowedFd<'_>, - level: i32, - optname: i32, - value: T, - ) -> io::Result<()> { - use super::*; - - let optlen = core::mem::size_of::().try_into().unwrap(); - debug_assert!( - optlen as usize >= core::mem::size_of::(), - "Socket APIs don't ever use `bool` directly" - ); - - unsafe { - ret(c::setsockopt( - borrowed_fd(fd), - level, - optname, - as_ptr(&value).cast(), - optlen, - )) - } - } - - #[inline] - pub(crate) fn get_socket_type(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_TYPE) - } - - #[inline] - pub(crate) fn set_socket_reuseaddr(fd: BorrowedFd<'_>, reuseaddr: bool) -> io::Result<()> { - setsockopt( - fd, - c::SOL_SOCKET as _, - c::SO_REUSEADDR, - from_bool(reuseaddr), - ) - } - - #[inline] - pub(crate) fn set_socket_broadcast(fd: BorrowedFd<'_>, broadcast: bool) -> io::Result<()> { - setsockopt( - fd, - c::SOL_SOCKET as _, - c::SO_BROADCAST, - from_bool(broadcast), - ) - } - - #[inline] - pub(crate) fn get_socket_broadcast(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_BROADCAST).map(to_bool) - } - - #[inline] - pub(crate) fn set_socket_linger( - fd: BorrowedFd<'_>, - linger: Option, - ) -> io::Result<()> { - // Convert `linger` to seconds, rounding up. - let l_linger = if let Some(linger) = linger { - let mut l_linger = linger.as_secs(); - if linger.subsec_nanos() != 0 { - l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?; - } - l_linger.try_into().map_err(|_e| io::Errno::INVAL)? - } else { - 0 - }; - let linger = c::linger { - l_onoff: linger.is_some() as _, - l_linger, - }; - setsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER, linger) - } - - #[inline] - pub(crate) fn get_socket_linger(fd: BorrowedFd<'_>) -> io::Result> { - let linger: c::linger = getsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER)?; - Ok((linger.l_onoff != 0).then(|| Duration::from_secs(linger.l_linger as u64))) - } - - #[cfg(linux_kernel)] - #[inline] - pub(crate) fn set_socket_passcred(fd: BorrowedFd<'_>, passcred: bool) -> io::Result<()> { - setsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED, from_bool(passcred)) - } - - #[cfg(linux_kernel)] - #[inline] - pub(crate) fn get_socket_passcred(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED).map(to_bool) - } - - #[inline] - pub(crate) fn set_socket_timeout( - fd: BorrowedFd<'_>, - id: Timeout, - timeout: Option, - ) -> io::Result<()> { - let optname = match id { - Timeout::Recv => c::SO_RCVTIMEO, - Timeout::Send => c::SO_SNDTIMEO, - }; - - #[cfg(not(windows))] - let timeout = match timeout { - Some(timeout) => { - if timeout == Duration::ZERO { - return Err(io::Errno::INVAL); - } - - // Rust's musl libc bindings deprecated `time_t` while they - // transition to 64-bit `time_t`. What we want here is just - // “whatever type `timeval`'s `tv_sec` is”, so we're ok using - // the deprecated type. - #[allow(deprecated)] - let tv_sec = timeout.as_secs().try_into().unwrap_or(c::time_t::MAX); - - // `subsec_micros` rounds down, so we use `subsec_nanos` and - // manually round up. - let mut timeout = c::timeval { - tv_sec, - tv_usec: ((timeout.subsec_nanos() + 999) / 1000) as _, - }; - if timeout.tv_sec == 0 && timeout.tv_usec == 0 { - timeout.tv_usec = 1; - } - timeout - } - None => c::timeval { - tv_sec: 0, - tv_usec: 0, - }, - }; - - #[cfg(windows)] - let timeout: u32 = match timeout { - Some(timeout) => { - if timeout == Duration::ZERO { - return Err(io::Errno::INVAL); - } - - // `as_millis` rounds down, so we use `as_nanos` and - // manually round up. - let mut timeout: u32 = ((timeout.as_nanos() + 999_999) / 1_000_000) - .try_into() - .map_err(|_convert_err| io::Errno::INVAL)?; - if timeout == 0 { - timeout = 1; - } - timeout - } - None => 0, - }; - - setsockopt(fd, c::SOL_SOCKET, optname, timeout) - } - - #[inline] - pub(crate) fn get_socket_timeout( - fd: BorrowedFd<'_>, - id: Timeout, - ) -> io::Result> { - let optname = match id { - Timeout::Recv => c::SO_RCVTIMEO, - Timeout::Send => c::SO_SNDTIMEO, - }; - - #[cfg(not(windows))] - { - let timeout: c::timeval = getsockopt(fd, c::SOL_SOCKET, optname)?; - if timeout.tv_sec == 0 && timeout.tv_usec == 0 { - Ok(None) - } else { - Ok(Some( - Duration::from_secs(timeout.tv_sec as u64) - + Duration::from_micros(timeout.tv_usec as u64), - )) - } - } - - #[cfg(windows)] - { - let timeout: u32 = getsockopt(fd, c::SOL_SOCKET, optname)?; - if timeout == 0 { - Ok(None) - } else { - Ok(Some(Duration::from_millis(timeout as u64))) - } - } - } - - #[cfg(any(apple, target_os = "freebsd"))] - #[inline] - pub(crate) fn get_socket_nosigpipe(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET, c::SO_NOSIGPIPE).map(to_bool) - } - - #[cfg(any(apple, target_os = "freebsd"))] - #[inline] - pub(crate) fn set_socket_nosigpipe(fd: BorrowedFd<'_>, val: bool) -> io::Result<()> { - setsockopt(fd, c::SOL_SOCKET, c::SO_NOSIGPIPE, from_bool(val)) - } - - #[inline] - pub(crate) fn get_socket_error(fd: BorrowedFd<'_>) -> io::Result> { - let err: c::c_int = getsockopt(fd, c::SOL_SOCKET as _, c::SO_ERROR)?; - Ok(if err == 0 { - Ok(()) - } else { - Err(io::Errno::from_raw_os_error(err)) - }) - } - - #[inline] - pub(crate) fn set_socket_keepalive(fd: BorrowedFd<'_>, keepalive: bool) -> io::Result<()> { - setsockopt( - fd, - c::SOL_SOCKET as _, - c::SO_KEEPALIVE, - from_bool(keepalive), - ) - } - - #[inline] - pub(crate) fn get_socket_keepalive(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_KEEPALIVE).map(to_bool) - } - - #[inline] - pub(crate) fn set_socket_recv_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { - let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; - setsockopt(fd, c::SOL_SOCKET as _, c::SO_RCVBUF, size) - } - - #[inline] - pub(crate) fn get_socket_recv_buffer_size(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_RCVBUF).map(|size: u32| size as usize) - } - - #[inline] - pub(crate) fn set_socket_send_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { - let size: c::c_int = size.try_into().map_err(|_| io::Errno::INVAL)?; - setsockopt(fd, c::SOL_SOCKET as _, c::SO_SNDBUF, size) - } - - #[inline] - pub(crate) fn get_socket_send_buffer_size(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_SNDBUF).map(|size: u32| size as usize) - } - - #[inline] - #[cfg(not(any( - apple, - solarish, - windows, - target_os = "aix", - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "openbsd" - )))] - pub(crate) fn get_socket_domain(fd: BorrowedFd<'_>) -> io::Result { - let domain: c::c_int = getsockopt(fd, c::SOL_SOCKET as _, c::SO_DOMAIN)?; - Ok(AddressFamily( - domain.try_into().map_err(|_| io::Errno::OPNOTSUPP)?, - )) - } - - #[inline] - pub(crate) fn set_ip_ttl(fd: BorrowedFd<'_>, ttl: u32) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL, ttl) - } - - #[inline] - pub(crate) fn get_ip_ttl(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL) - } - - #[inline] - pub(crate) fn set_ipv6_v6only(fd: BorrowedFd<'_>, only_v6: bool) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY, from_bool(only_v6)) - } - - #[inline] - pub(crate) fn get_ipv6_v6only(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY).map(to_bool) - } - - #[inline] - pub(crate) fn set_ip_multicast_loop( - fd: BorrowedFd<'_>, - multicast_loop: bool, - ) -> io::Result<()> { - setsockopt( - fd, - c::IPPROTO_IP as _, - c::IP_MULTICAST_LOOP, - from_bool(multicast_loop), - ) - } - - #[inline] - pub(crate) fn get_ip_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IP_MULTICAST_LOOP).map(to_bool) - } - - #[inline] - pub(crate) fn set_ip_multicast_ttl(fd: BorrowedFd<'_>, multicast_ttl: u32) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_IP as _, c::IP_MULTICAST_TTL, multicast_ttl) - } - - #[inline] - pub(crate) fn get_ip_multicast_ttl(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IP_MULTICAST_TTL) - } - - #[inline] - pub(crate) fn set_ipv6_multicast_loop( - fd: BorrowedFd<'_>, - multicast_loop: bool, - ) -> io::Result<()> { - setsockopt( - fd, - c::IPPROTO_IPV6 as _, - c::IPV6_MULTICAST_LOOP, - from_bool(multicast_loop), - ) - } - - #[inline] - pub(crate) fn get_ipv6_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_MULTICAST_LOOP).map(to_bool) - } - - #[inline] - pub(crate) fn set_ipv6_multicast_hops( - fd: BorrowedFd<'_>, - multicast_hops: u32, - ) -> io::Result<()> { - setsockopt( - fd, - c::IPPROTO_IP as _, - c::IPV6_MULTICAST_HOPS, - multicast_hops, - ) - } - - #[inline] - pub(crate) fn get_ipv6_multicast_hops(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IPV6_MULTICAST_HOPS) - } - - #[inline] - pub(crate) fn set_ip_add_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv4Addr, - interface: &Ipv4Addr, - ) -> io::Result<()> { - let mreq = to_imr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IP as _, c::IP_ADD_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn set_ipv6_add_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv6Addr, - interface: u32, - ) -> io::Result<()> { - #[cfg(not(any( - bsd, - solarish, - target_os = "haiku", - target_os = "l4re", - target_os = "nto" - )))] - use c::IPV6_ADD_MEMBERSHIP; - #[cfg(any( - bsd, - solarish, - target_os = "haiku", - target_os = "l4re", - target_os = "nto" - ))] - use c::IPV6_JOIN_GROUP as IPV6_ADD_MEMBERSHIP; - - let mreq = to_ipv6mr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IPV6 as _, IPV6_ADD_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn set_ip_drop_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv4Addr, - interface: &Ipv4Addr, - ) -> io::Result<()> { - let mreq = to_imr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IP as _, c::IP_DROP_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn set_ipv6_drop_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv6Addr, - interface: u32, - ) -> io::Result<()> { - #[cfg(not(any( - bsd, - solarish, - target_os = "haiku", - target_os = "l4re", - target_os = "nto" - )))] - use c::IPV6_DROP_MEMBERSHIP; - #[cfg(any( - bsd, - solarish, - target_os = "haiku", - target_os = "l4re", - target_os = "nto" - ))] - use c::IPV6_LEAVE_GROUP as IPV6_DROP_MEMBERSHIP; - - let mreq = to_ipv6mr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IPV6 as _, IPV6_DROP_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn get_ipv6_unicast_hops(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_UNICAST_HOPS).map(|hops: c::c_int| hops as u8) - } - - #[inline] - pub(crate) fn set_ipv6_unicast_hops(fd: BorrowedFd<'_>, hops: Option) -> io::Result<()> { - let hops = match hops { - Some(hops) => hops as c::c_int, - None => -1, - }; - setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_UNICAST_HOPS, hops) - } - - #[inline] - pub(crate) fn set_tcp_nodelay(fd: BorrowedFd<'_>, nodelay: bool) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_TCP as _, c::TCP_NODELAY, from_bool(nodelay)) - } - - #[inline] - pub(crate) fn get_tcp_nodelay(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_TCP as _, c::TCP_NODELAY).map(to_bool) - } - - #[inline] - fn to_imr(multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> c::ip_mreq { - c::ip_mreq { - imr_multiaddr: to_imr_addr(multiaddr), - imr_interface: to_imr_addr(interface), - } - } - - #[inline] - fn to_imr_addr(addr: &Ipv4Addr) -> c::in_addr { - in_addr_new(u32::from_ne_bytes(addr.octets())) - } - - #[inline] - fn to_ipv6mr(multiaddr: &Ipv6Addr, interface: u32) -> c::ipv6_mreq { - c::ipv6_mreq { - ipv6mr_multiaddr: to_ipv6mr_multiaddr(multiaddr), - ipv6mr_interface: to_ipv6mr_interface(interface), - } - } - - #[inline] - fn to_ipv6mr_multiaddr(multiaddr: &Ipv6Addr) -> c::in6_addr { - in6_addr_new(multiaddr.octets()) - } - - #[cfg(target_os = "android")] - #[inline] - fn to_ipv6mr_interface(interface: u32) -> c::c_int { - interface as c::c_int - } - - #[cfg(not(target_os = "android"))] - #[inline] - fn to_ipv6mr_interface(interface: u32) -> c::c_uint { - interface as c::c_uint - } - - // `getsockopt` and `setsockopt` represent boolean values as integers. - #[cfg(not(windows))] - type RawSocketBool = c::c_int; - #[cfg(windows)] - type RawSocketBool = BOOL; - - // Wrap `RawSocketBool` in a newtype to discourage misuse. - #[repr(transparent)] - #[derive(Copy, Clone)] - struct SocketBool(RawSocketBool); - - // Convert from a `bool` to a `SocketBool`. - #[inline] - fn from_bool(value: bool) -> SocketBool { - SocketBool(value as _) - } - - // Convert from a `SocketBool` to a `bool`. - #[inline] - fn to_bool(value: SocketBool) -> bool { - value.0 != 0 - } -} diff --git a/third_party/rust/rustix/src/backend/libc/net/write_sockaddr.rs b/third_party/rust/rustix/src/backend/libc/net/write_sockaddr.rs deleted file mode 100644 index a354d9a8567f..000000000000 --- a/third_party/rust/rustix/src/backend/libc/net/write_sockaddr.rs +++ /dev/null @@ -1,96 +0,0 @@ -//! The BSD sockets API requires us to read the `ss_family` field before -//! we can interpret the rest of a `sockaddr` produced by the kernel. - -use super::addr::SocketAddrStorage; -#[cfg(unix)] -use super::addr::SocketAddrUnix; -use super::ext::{in6_addr_new, in_addr_new, sockaddr_in6_new}; -use crate::backend::c; -use crate::net::{SocketAddrAny, SocketAddrV4, SocketAddrV6}; -use core::mem::size_of; - -pub(crate) unsafe fn write_sockaddr( - addr: &SocketAddrAny, - storage: *mut SocketAddrStorage, -) -> usize { - match addr { - SocketAddrAny::V4(v4) => write_sockaddr_v4(v4, storage), - SocketAddrAny::V6(v6) => write_sockaddr_v6(v6, storage), - #[cfg(unix)] - SocketAddrAny::Unix(unix) => write_sockaddr_unix(unix, storage), - } -} - -pub(crate) fn encode_sockaddr_v4(v4: &SocketAddrV4) -> c::sockaddr_in { - c::sockaddr_in { - #[cfg(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - ))] - sin_len: size_of::() as _, - sin_family: c::AF_INET as _, - sin_port: u16::to_be(v4.port()), - sin_addr: in_addr_new(u32::from_ne_bytes(v4.ip().octets())), - #[cfg(not(target_os = "haiku"))] - sin_zero: [0; 8_usize], - #[cfg(target_os = "haiku")] - sin_zero: [0; 24_usize], - } -} - -unsafe fn write_sockaddr_v4(v4: &SocketAddrV4, storage: *mut SocketAddrStorage) -> usize { - let encoded = encode_sockaddr_v4(v4); - core::ptr::write(storage.cast(), encoded); - size_of::() -} - -pub(crate) fn encode_sockaddr_v6(v6: &SocketAddrV6) -> c::sockaddr_in6 { - #[cfg(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - ))] - { - sockaddr_in6_new( - size_of::() as _, - c::AF_INET6 as _, - u16::to_be(v6.port()), - u32::to_be(v6.flowinfo()), - in6_addr_new(v6.ip().octets()), - v6.scope_id(), - ) - } - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - )))] - { - sockaddr_in6_new( - c::AF_INET6 as _, - u16::to_be(v6.port()), - u32::to_be(v6.flowinfo()), - in6_addr_new(v6.ip().octets()), - v6.scope_id(), - ) - } -} - -unsafe fn write_sockaddr_v6(v6: &SocketAddrV6, storage: *mut SocketAddrStorage) -> usize { - let encoded = encode_sockaddr_v6(v6); - core::ptr::write(storage.cast(), encoded); - size_of::() -} - -#[cfg(unix)] -unsafe fn write_sockaddr_unix(unix: &SocketAddrUnix, storage: *mut SocketAddrStorage) -> usize { - core::ptr::write(storage.cast(), unix.unix); - unix.len() -} diff --git a/third_party/rust/rustix/src/backend/libc/param/auxv.rs b/third_party/rust/rustix/src/backend/libc/param/auxv.rs deleted file mode 100644 index 0eeb972cc7ea..000000000000 --- a/third_party/rust/rustix/src/backend/libc/param/auxv.rs +++ /dev/null @@ -1,54 +0,0 @@ -use crate::backend::c; -#[cfg(any( - all(target_os = "android", target_pointer_width = "64"), - target_os = "linux", -))] -use crate::ffi::CStr; - -// `getauxval` wasn't supported in glibc until 2.16. -#[cfg(any( - all(target_os = "android", target_pointer_width = "64"), - target_os = "linux", -))] -weak!(fn getauxval(c::c_ulong) -> *mut c::c_void); - -#[inline] -pub(crate) fn page_size() -> usize { - unsafe { c::sysconf(c::_SC_PAGESIZE) as usize } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -pub(crate) fn clock_ticks_per_second() -> u64 { - unsafe { c::sysconf(c::_SC_CLK_TCK) as u64 } -} - -#[cfg(any( - all(target_os = "android", target_pointer_width = "64"), - target_os = "linux", -))] -#[inline] -pub(crate) fn linux_hwcap() -> (usize, usize) { - if let Some(libc_getauxval) = getauxval.get() { - unsafe { - let hwcap = libc_getauxval(c::AT_HWCAP) as usize; - let hwcap2 = libc_getauxval(c::AT_HWCAP2) as usize; - (hwcap, hwcap2) - } - } else { - (0, 0) - } -} - -#[cfg(any( - all(target_os = "android", target_pointer_width = "64"), - target_os = "linux", -))] -#[inline] -pub(crate) fn linux_execfn() -> &'static CStr { - if let Some(libc_getauxval) = getauxval.get() { - unsafe { CStr::from_ptr(libc_getauxval(c::AT_EXECFN).cast()) } - } else { - cstr!("") - } -} diff --git a/third_party/rust/rustix/src/backend/libc/param/mod.rs b/third_party/rust/rustix/src/backend/libc/param/mod.rs deleted file mode 100644 index 2cb2fe78a4ff..000000000000 --- a/third_party/rust/rustix/src/backend/libc/param/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod auxv; diff --git a/third_party/rust/rustix/src/backend/libc/pid/mod.rs b/third_party/rust/rustix/src/backend/libc/pid/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/libc/pid/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/pid/syscalls.rs b/third_party/rust/rustix/src/backend/libc/pid/syscalls.rs deleted file mode 100644 index d0ed4bc9f0c0..000000000000 --- a/third_party/rust/rustix/src/backend/libc/pid/syscalls.rs +++ /dev/null @@ -1,14 +0,0 @@ -//! libc syscalls for PIDs - -use crate::backend::c; -use crate::pid::Pid; - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn getpid() -> Pid { - unsafe { - let pid = c::getpid(); - Pid::from_raw_unchecked(pid) - } -} diff --git a/third_party/rust/rustix/src/backend/libc/pipe/mod.rs b/third_party/rust/rustix/src/backend/libc/pipe/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/pipe/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/libc/pipe/syscalls.rs b/third_party/rust/rustix/src/backend/libc/pipe/syscalls.rs deleted file mode 100644 index cff932d5527e..000000000000 --- a/third_party/rust/rustix/src/backend/libc/pipe/syscalls.rs +++ /dev/null @@ -1,125 +0,0 @@ -use crate::backend::c; -use crate::backend::conv::ret; -use crate::fd::OwnedFd; -use crate::io; -#[cfg(not(any( - apple, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "wasi" -)))] -use crate::pipe::PipeFlags; -use core::mem::MaybeUninit; -#[cfg(linux_kernel)] -use { - crate::backend::conv::{borrowed_fd, ret_c_int, ret_usize}, - crate::backend::MAX_IOV, - crate::fd::BorrowedFd, - crate::pipe::{IoSliceRaw, SpliceFlags}, - crate::utils::option_as_mut_ptr, - core::cmp::min, -}; - -#[cfg(not(target_os = "wasi"))] -pub(crate) fn pipe() -> io::Result<(OwnedFd, OwnedFd)> { - unsafe { - let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); - ret(c::pipe(result.as_mut_ptr().cast::()))?; - let [p0, p1] = result.assume_init(); - Ok((p0, p1)) - } -} - -#[cfg(not(any( - apple, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "wasi" -)))] -pub(crate) fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { - unsafe { - let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); - ret(c::pipe2( - result.as_mut_ptr().cast::(), - bitflags_bits!(flags), - ))?; - let [p0, p1] = result.assume_init(); - Ok((p0, p1)) - } -} - -#[cfg(linux_kernel)] -#[inline] -pub fn splice( - fd_in: BorrowedFd<'_>, - off_in: Option<&mut u64>, - fd_out: BorrowedFd<'_>, - off_out: Option<&mut u64>, - len: usize, - flags: SpliceFlags, -) -> io::Result { - let off_in = option_as_mut_ptr(off_in).cast(); - let off_out = option_as_mut_ptr(off_out).cast(); - - unsafe { - ret_usize(c::splice( - borrowed_fd(fd_in), - off_in, - borrowed_fd(fd_out), - off_out, - len, - flags.bits(), - )) - } -} - -#[cfg(linux_kernel)] -#[inline] -pub unsafe fn vmsplice( - fd: BorrowedFd<'_>, - bufs: &[IoSliceRaw<'_>], - flags: SpliceFlags, -) -> io::Result { - ret_usize(c::vmsplice( - borrowed_fd(fd), - bufs.as_ptr().cast::(), - min(bufs.len(), MAX_IOV), - flags.bits(), - )) -} - -#[cfg(linux_kernel)] -#[inline] -pub fn tee( - fd_in: BorrowedFd<'_>, - fd_out: BorrowedFd<'_>, - len: usize, - flags: SpliceFlags, -) -> io::Result { - unsafe { - ret_usize(c::tee( - borrowed_fd(fd_in), - borrowed_fd(fd_out), - len, - flags.bits(), - )) - } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn fcntl_getpipe_sz(fd: BorrowedFd<'_>) -> io::Result { - unsafe { ret_c_int(c::fcntl(borrowed_fd(fd), c::F_GETPIPE_SZ)).map(|size| size as usize) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn fcntl_setpipe_sz(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { - let size: c::c_int = size.try_into().map_err(|_| io::Errno::PERM)?; - - unsafe { ret(c::fcntl(borrowed_fd(fd), c::F_SETPIPE_SZ, size)) } -} diff --git a/third_party/rust/rustix/src/backend/libc/pipe/types.rs b/third_party/rust/rustix/src/backend/libc/pipe/types.rs deleted file mode 100644 index 7f5634b170b1..000000000000 --- a/third_party/rust/rustix/src/backend/libc/pipe/types.rs +++ /dev/null @@ -1,100 +0,0 @@ -#[cfg(linux_kernel)] -use core::marker::PhantomData; -#[cfg(not(any(apple, target_os = "wasi")))] -use {crate::backend::c, bitflags::bitflags}; - -#[cfg(not(any(apple, target_os = "wasi")))] -bitflags! { - /// `O_*` constants for use with [`pipe_with`]. - /// - /// [`pipe_with`]: crate::io::pipe_with - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PipeFlags: u32 { - /// `O_CLOEXEC` - const CLOEXEC = bitcast!(c::O_CLOEXEC); - /// `O_DIRECT` - #[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "openbsd", - target_os = "redox", - )))] - const DIRECT = bitcast!(c::O_DIRECT); - /// `O_NONBLOCK` - const NONBLOCK = bitcast!(c::O_NONBLOCK); - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -bitflags! { - /// `SPLICE_F_*` constants for use with [`splice`], [`vmsplice`], - /// and [`tee`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SpliceFlags: c::c_uint { - /// `SPLICE_F_MOVE` - const MOVE = c::SPLICE_F_MOVE; - /// `SPLICE_F_NONBLOCK` - const NONBLOCK = c::SPLICE_F_NONBLOCK; - /// `SPLICE_F_MORE` - const MORE = c::SPLICE_F_MORE; - /// `SPLICE_F_GIFT` - const GIFT = c::SPLICE_F_GIFT; - - /// - const _ = !0; - } -} - -/// A buffer type used with `vmsplice`. -/// -/// It is guaranteed to be ABI compatible with the iovec type on Unix platforms -/// and `WSABUF` on Windows. Unlike `IoSlice` and `IoSliceMut` it is -/// semantically like a raw pointer, and therefore can be shared or mutated as -/// needed. -#[cfg(linux_kernel)] -#[repr(transparent)] -pub struct IoSliceRaw<'a> { - _buf: c::iovec, - _lifetime: PhantomData<&'a ()>, -} - -#[cfg(linux_kernel)] -impl<'a> IoSliceRaw<'a> { - /// Creates a new `IoSlice` wrapping a byte slice. - pub fn from_slice(buf: &'a [u8]) -> Self { - IoSliceRaw { - _buf: c::iovec { - iov_base: buf.as_ptr() as *mut u8 as *mut c::c_void, - iov_len: buf.len() as _, - }, - _lifetime: PhantomData, - } - } - - /// Creates a new `IoSlice` wrapping a mutable byte slice. - pub fn from_slice_mut(buf: &'a mut [u8]) -> Self { - IoSliceRaw { - _buf: c::iovec { - iov_base: buf.as_mut_ptr() as *mut c::c_void, - iov_len: buf.len() as _, - }, - _lifetime: PhantomData, - } - } -} - -#[cfg(not(any(apple, target_os = "wasi")))] -#[test] -fn test_types() { - assert_eq_size!(PipeFlags, c::c_int); - - #[cfg(linux_kernel)] - assert_eq_size!(SpliceFlags, c::c_int); -} diff --git a/third_party/rust/rustix/src/backend/libc/prctl/mod.rs b/third_party/rust/rustix/src/backend/libc/prctl/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/libc/prctl/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/prctl/syscalls.rs b/third_party/rust/rustix/src/backend/libc/prctl/syscalls.rs deleted file mode 100644 index 451cecc29f19..000000000000 --- a/third_party/rust/rustix/src/backend/libc/prctl/syscalls.rs +++ /dev/null @@ -1,14 +0,0 @@ -use crate::backend::c; -use crate::backend::conv::ret_c_int; -use crate::io; - -#[inline] -pub(crate) unsafe fn prctl( - option: c::c_int, - arg2: *mut c::c_void, - arg3: *mut c::c_void, - arg4: *mut c::c_void, - arg5: *mut c::c_void, -) -> io::Result { - ret_c_int(c::prctl(option, arg2, arg3, arg4, arg5)) -} diff --git a/third_party/rust/rustix/src/backend/libc/process/cpu_set.rs b/third_party/rust/rustix/src/backend/libc/process/cpu_set.rs deleted file mode 100644 index 4cf06b96a5db..000000000000 --- a/third_party/rust/rustix/src/backend/libc/process/cpu_set.rs +++ /dev/null @@ -1,50 +0,0 @@ -//! Rust implementation of the `CPU_*` macro API. - -#![allow(non_snake_case)] - -use super::types::{RawCpuSet, CPU_SETSIZE}; -use crate::backend::c; - -#[inline] -pub(crate) fn CPU_SET(cpu: usize, cpuset: &mut RawCpuSet) { - assert!( - cpu < CPU_SETSIZE, - "cpu out of bounds: the cpu max is {} but the cpu is {}", - CPU_SETSIZE, - cpu - ); - unsafe { c::CPU_SET(cpu, cpuset) } -} - -#[inline] -pub(crate) fn CPU_ZERO(cpuset: &mut RawCpuSet) { - unsafe { c::CPU_ZERO(cpuset) } -} - -#[inline] -pub(crate) fn CPU_CLR(cpu: usize, cpuset: &mut RawCpuSet) { - assert!( - cpu < CPU_SETSIZE, - "cpu out of bounds: the cpu max is {} but the cpu is {}", - CPU_SETSIZE, - cpu - ); - unsafe { c::CPU_CLR(cpu, cpuset) } -} - -#[inline] -pub(crate) fn CPU_ISSET(cpu: usize, cpuset: &RawCpuSet) -> bool { - assert!( - cpu < CPU_SETSIZE, - "cpu out of bounds: the cpu max is {} but the cpu is {}", - CPU_SETSIZE, - cpu - ); - unsafe { c::CPU_ISSET(cpu, cpuset) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn CPU_COUNT(cpuset: &RawCpuSet) -> u32 { - unsafe { c::CPU_COUNT(cpuset).try_into().unwrap() } -} diff --git a/third_party/rust/rustix/src/backend/libc/process/mod.rs b/third_party/rust/rustix/src/backend/libc/process/mod.rs deleted file mode 100644 index 4d9a9f0a05b2..000000000000 --- a/third_party/rust/rustix/src/backend/libc/process/mod.rs +++ /dev/null @@ -1,7 +0,0 @@ -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -pub(crate) mod cpu_set; -#[cfg(not(windows))] -pub(crate) mod syscalls; -pub(crate) mod types; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) mod wait; diff --git a/third_party/rust/rustix/src/backend/libc/process/syscalls.rs b/third_party/rust/rustix/src/backend/libc/process/syscalls.rs deleted file mode 100644 index dd71801d5297..000000000000 --- a/third_party/rust/rustix/src/backend/libc/process/syscalls.rs +++ /dev/null @@ -1,626 +0,0 @@ -//! libc syscalls supporting `rustix::process`. - -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -use super::types::RawCpuSet; -use crate::backend::c; -#[cfg(not(any(target_os = "wasi", target_os = "fuchsia")))] -use crate::backend::conv::borrowed_fd; -#[cfg(feature = "fs")] -use crate::backend::conv::c_str; -#[cfg(all(feature = "alloc", feature = "fs", not(target_os = "wasi")))] -use crate::backend::conv::ret_discarded_char_ptr; -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -use crate::backend::conv::ret_infallible; -#[cfg(not(target_os = "wasi"))] -use crate::backend::conv::ret_pid_t; -#[cfg(linux_kernel)] -use crate::backend::conv::ret_u32; -#[cfg(all(feature = "alloc", not(target_os = "wasi")))] -use crate::backend::conv::ret_usize; -use crate::backend::conv::{ret, ret_c_int}; -#[cfg(not(any(target_os = "wasi", target_os = "fuchsia")))] -use crate::fd::BorrowedFd; -#[cfg(target_os = "linux")] -use crate::fd::{AsRawFd, OwnedFd, RawFd}; -#[cfg(feature = "fs")] -use crate::ffi::CStr; -#[cfg(feature = "fs")] -use crate::fs::Mode; -use crate::io; -#[cfg(all(feature = "alloc", not(target_os = "wasi")))] -use crate::process::Gid; -#[cfg(not(target_os = "wasi"))] -use crate::process::Pid; -#[cfg(not(any(target_os = "espidf", target_os = "fuchsia", target_os = "wasi")))] -use crate::process::Uid; -#[cfg(linux_kernel)] -use crate::process::{Cpuid, MembarrierCommand, MembarrierQuery}; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -use crate::process::{RawPid, Signal, WaitOptions, WaitStatus}; -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -use crate::process::{Resource, Rlimit}; -#[cfg(not(any( - target_os = "espidf", - target_os = "redox", - target_os = "openbsd", - target_os = "wasi" -)))] -use crate::process::{WaitId, WaitidOptions, WaitidStatus}; -use core::mem::MaybeUninit; -#[cfg(target_os = "linux")] -use { - super::super::conv::ret_owned_fd, crate::process::PidfdFlags, crate::process::PidfdGetfdFlags, -}; - -#[cfg(feature = "fs")] -#[cfg(not(target_os = "wasi"))] -pub(crate) fn chdir(path: &CStr) -> io::Result<()> { - unsafe { ret(c::chdir(c_str(path))) } -} - -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -pub(crate) fn fchdir(dirfd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::fchdir(borrowed_fd(dirfd))) } -} - -#[cfg(feature = "fs")] -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -pub(crate) fn chroot(path: &CStr) -> io::Result<()> { - unsafe { ret(c::chroot(c_str(path))) } -} - -#[cfg(all(feature = "alloc", feature = "fs"))] -#[cfg(not(target_os = "wasi"))] -pub(crate) fn getcwd(buf: &mut [MaybeUninit]) -> io::Result<()> { - unsafe { ret_discarded_char_ptr(c::getcwd(buf.as_mut_ptr().cast(), buf.len())) } -} - -// The `membarrier` syscall has a third argument, but it's only used when -// the `flags` argument is `MEMBARRIER_CMD_FLAG_CPU`. -#[cfg(linux_kernel)] -syscall! { - fn membarrier_all( - cmd: c::c_int, - flags: c::c_uint - ) via SYS_membarrier -> c::c_int -} - -#[cfg(linux_kernel)] -pub(crate) fn membarrier_query() -> MembarrierQuery { - // glibc does not have a wrapper for `membarrier`; [the documentation] - // says to use `syscall`. - // - // [the documentation]: https://man7.org/linux/man-pages/man2/membarrier.2.html#NOTES - const MEMBARRIER_CMD_QUERY: u32 = 0; - unsafe { - match ret_u32(membarrier_all(MEMBARRIER_CMD_QUERY as i32, 0)) { - Ok(query) => MembarrierQuery::from_bits_retain(query), - Err(_) => MembarrierQuery::empty(), - } - } -} - -#[cfg(linux_kernel)] -pub(crate) fn membarrier(cmd: MembarrierCommand) -> io::Result<()> { - unsafe { ret(membarrier_all(cmd as i32, 0)) } -} - -#[cfg(linux_kernel)] -pub(crate) fn membarrier_cpu(cmd: MembarrierCommand, cpu: Cpuid) -> io::Result<()> { - const MEMBARRIER_CMD_FLAG_CPU: u32 = 1; - - syscall! { - fn membarrier_cpu( - cmd: c::c_int, - flags: c::c_uint, - cpu_id: c::c_int - ) via SYS_membarrier -> c::c_int - } - - unsafe { - ret(membarrier_cpu( - cmd as i32, - MEMBARRIER_CMD_FLAG_CPU, - bitcast!(cpu.as_raw()), - )) - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn getppid() -> Option { - unsafe { - let pid: i32 = c::getppid(); - Pid::from_raw(pid) - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -pub(crate) fn getpgid(pid: Option) -> io::Result { - unsafe { - let pgid = ret_pid_t(c::getpgid(Pid::as_raw(pid) as _))?; - Ok(Pid::from_raw_unchecked(pgid)) - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -pub(crate) fn setpgid(pid: Option, pgid: Option) -> io::Result<()> { - unsafe { ret(c::setpgid(Pid::as_raw(pid) as _, Pid::as_raw(pgid) as _)) } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn getpgrp() -> Pid { - unsafe { - let pgid = c::getpgrp(); - Pid::from_raw_unchecked(pgid) - } -} - -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -#[inline] -pub(crate) fn sched_getaffinity(pid: Option, cpuset: &mut RawCpuSet) -> io::Result<()> { - unsafe { - ret(c::sched_getaffinity( - Pid::as_raw(pid) as _, - core::mem::size_of::(), - cpuset, - )) - } -} - -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -#[inline] -pub(crate) fn sched_setaffinity(pid: Option, cpuset: &RawCpuSet) -> io::Result<()> { - unsafe { - ret(c::sched_setaffinity( - Pid::as_raw(pid) as _, - core::mem::size_of::(), - cpuset, - )) - } -} - -#[inline] -pub(crate) fn sched_yield() { - unsafe { - let _ = c::sched_yield(); - } -} - -#[cfg(not(target_os = "wasi"))] -#[cfg(feature = "fs")] -#[inline] -pub(crate) fn umask(mask: Mode) -> Mode { - unsafe { Mode::from_bits_retain(c::umask(mask.bits() as c::mode_t).into()) } -} - -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -#[inline] -pub(crate) fn nice(inc: i32) -> io::Result { - libc_errno::set_errno(libc_errno::Errno(0)); - let r = unsafe { c::nice(inc) }; - if libc_errno::errno().0 != 0 { - ret_c_int(r) - } else { - Ok(r) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "fuchsia", target_os = "wasi")))] -#[inline] -pub(crate) fn getpriority_user(uid: Uid) -> io::Result { - libc_errno::set_errno(libc_errno::Errno(0)); - let r = unsafe { c::getpriority(c::PRIO_USER, uid.as_raw() as _) }; - if libc_errno::errno().0 != 0 { - ret_c_int(r) - } else { - Ok(r) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "fuchsia", target_os = "wasi")))] -#[inline] -pub(crate) fn getpriority_pgrp(pgid: Option) -> io::Result { - libc_errno::set_errno(libc_errno::Errno(0)); - let r = unsafe { c::getpriority(c::PRIO_PGRP, Pid::as_raw(pgid) as _) }; - if libc_errno::errno().0 != 0 { - ret_c_int(r) - } else { - Ok(r) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "fuchsia", target_os = "wasi")))] -#[inline] -pub(crate) fn getpriority_process(pid: Option) -> io::Result { - libc_errno::set_errno(libc_errno::Errno(0)); - let r = unsafe { c::getpriority(c::PRIO_PROCESS, Pid::as_raw(pid) as _) }; - if libc_errno::errno().0 != 0 { - ret_c_int(r) - } else { - Ok(r) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "fuchsia", target_os = "wasi")))] -#[inline] -pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { - unsafe { ret(c::setpriority(c::PRIO_USER, uid.as_raw() as _, priority)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "fuchsia", target_os = "wasi")))] -#[inline] -pub(crate) fn setpriority_pgrp(pgid: Option, priority: i32) -> io::Result<()> { - unsafe { - ret(c::setpriority( - c::PRIO_PGRP, - Pid::as_raw(pgid) as _, - priority, - )) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "fuchsia", target_os = "wasi")))] -#[inline] -pub(crate) fn setpriority_process(pid: Option, priority: i32) -> io::Result<()> { - unsafe { - ret(c::setpriority( - c::PRIO_PROCESS, - Pid::as_raw(pid) as _, - priority, - )) - } -} - -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -#[inline] -pub(crate) fn getrlimit(limit: Resource) -> Rlimit { - let mut result = MaybeUninit::::uninit(); - unsafe { - ret_infallible(c::getrlimit(limit as _, result.as_mut_ptr())); - rlimit_from_libc(result.assume_init()) - } -} - -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -#[inline] -pub(crate) fn setrlimit(limit: Resource, new: Rlimit) -> io::Result<()> { - let lim = rlimit_to_libc(new)?; - unsafe { ret(c::setrlimit(limit as _, &lim)) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn prlimit(pid: Option, limit: Resource, new: Rlimit) -> io::Result { - let lim = rlimit_to_libc(new)?; - let mut result = MaybeUninit::::uninit(); - unsafe { - ret(c::prlimit( - Pid::as_raw(pid), - limit as _, - &lim, - result.as_mut_ptr(), - ))?; - Ok(rlimit_from_libc(result.assume_init())) - } -} - -/// Convert a Rust [`Rlimit`] to a C `c::rlimit`. -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -fn rlimit_from_libc(lim: c::rlimit) -> Rlimit { - let current = if lim.rlim_cur == c::RLIM_INFINITY { - None - } else { - Some(lim.rlim_cur.try_into().unwrap()) - }; - let maximum = if lim.rlim_max == c::RLIM_INFINITY { - None - } else { - Some(lim.rlim_max.try_into().unwrap()) - }; - Rlimit { current, maximum } -} - -/// Convert a C `c::rlimit` to a Rust `Rlimit`. -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -fn rlimit_to_libc(lim: Rlimit) -> io::Result { - let Rlimit { current, maximum } = lim; - let rlim_cur = match current { - Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, - None => c::RLIM_INFINITY as _, - }; - let rlim_max = match maximum { - Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, - None => c::RLIM_INFINITY as _, - }; - Ok(c::rlimit { rlim_cur, rlim_max }) -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn wait(waitopts: WaitOptions) -> io::Result> { - _waitpid(!0, waitopts) -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn waitpid( - pid: Option, - waitopts: WaitOptions, -) -> io::Result> { - _waitpid(Pid::as_raw(pid), waitopts) -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn _waitpid( - pid: RawPid, - waitopts: WaitOptions, -) -> io::Result> { - unsafe { - let mut status: c::c_int = 0; - let pid = ret_c_int(c::waitpid(pid as _, &mut status, waitopts.bits() as _))?; - Ok(Pid::from_raw(pid).map(|pid| (pid, WaitStatus::new(status as _)))) - } -} - -#[cfg(not(any( - target_os = "espidf", - target_os = "redox", - target_os = "openbsd", - target_os = "wasi" -)))] -#[inline] -pub(crate) fn waitid(id: WaitId<'_>, options: WaitidOptions) -> io::Result> { - // Get the id to wait on. - match id { - WaitId::All => _waitid_all(options), - WaitId::Pid(pid) => _waitid_pid(pid, options), - #[cfg(target_os = "linux")] - WaitId::PidFd(fd) => _waitid_pidfd(fd, options), - #[cfg(not(target_os = "linux"))] - WaitId::__EatLifetime(_) => unreachable!(), - } -} - -#[cfg(not(any( - target_os = "espidf", - target_os = "redox", - target_os = "openbsd", - target_os = "wasi" -)))] -#[inline] -fn _waitid_all(options: WaitidOptions) -> io::Result> { - // `waitid` can return successfully without initializing the struct (no - // children found when using `WNOHANG`) - let mut status = MaybeUninit::::zeroed(); - unsafe { - ret(c::waitid( - c::P_ALL, - 0, - status.as_mut_ptr(), - options.bits() as _, - ))? - }; - - Ok(unsafe { cvt_waitid_status(status) }) -} - -#[cfg(not(any( - target_os = "espidf", - target_os = "redox", - target_os = "openbsd", - target_os = "wasi" -)))] -#[inline] -fn _waitid_pid(pid: Pid, options: WaitidOptions) -> io::Result> { - // `waitid` can return successfully without initializing the struct (no - // children found when using `WNOHANG`) - let mut status = MaybeUninit::::zeroed(); - unsafe { - ret(c::waitid( - c::P_PID, - Pid::as_raw(Some(pid)) as _, - status.as_mut_ptr(), - options.bits() as _, - ))? - }; - - Ok(unsafe { cvt_waitid_status(status) }) -} - -#[cfg(target_os = "linux")] -#[inline] -fn _waitid_pidfd(fd: BorrowedFd<'_>, options: WaitidOptions) -> io::Result> { - // `waitid` can return successfully without initializing the struct (no - // children found when using `WNOHANG`) - let mut status = MaybeUninit::::zeroed(); - unsafe { - ret(c::waitid( - c::P_PIDFD, - fd.as_raw_fd() as _, - status.as_mut_ptr(), - options.bits() as _, - ))? - }; - - Ok(unsafe { cvt_waitid_status(status) }) -} - -/// Convert a `siginfo_t` to a `WaitidStatus`. -/// -/// # Safety -/// -/// The caller must ensure that `status` is initialized and that `waitid` -/// returned successfully. -#[cfg(not(any( - target_os = "espidf", - target_os = "openbsd", - target_os = "redox", - target_os = "wasi" -)))] -#[inline] -unsafe fn cvt_waitid_status(status: MaybeUninit) -> Option { - let status = status.assume_init(); - // `si_pid` is supposedly the better way to check that the struct has been - // filled, e.g. the Linux manpage says about the `WNOHANG` case “zero out - // the si_pid field before the call and check for a nonzero value”. - // But e.g. NetBSD/OpenBSD don't have it exposed in the libc crate for now, - // and some platforms don't have it at all. For simplicity, always check - // `si_signo`. We have zero-initialized the whole struct, and all kernels - // should set `SIGCHLD` here. - if status.si_signo == 0 { - None - } else { - Some(WaitidStatus(status)) - } -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[inline] -pub(crate) fn getsid(pid: Option) -> io::Result { - unsafe { - let pid = ret_pid_t(c::getsid(Pid::as_raw(pid) as _))?; - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -pub(crate) fn setsid() -> io::Result { - unsafe { - let pid = ret_c_int(c::setsid())?; - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { - unsafe { ret(c::kill(pid.as_raw_nonzero().get(), sig as i32)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { - unsafe { - ret(c::kill( - pid.as_raw_nonzero().get().wrapping_neg(), - sig as i32, - )) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn kill_current_process_group(sig: Signal) -> io::Result<()> { - unsafe { ret(c::kill(0, sig as i32)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn test_kill_process(pid: Pid) -> io::Result<()> { - unsafe { ret(c::kill(pid.as_raw_nonzero().get(), 0)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn test_kill_process_group(pid: Pid) -> io::Result<()> { - unsafe { ret(c::kill(pid.as_raw_nonzero().get().wrapping_neg(), 0)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn test_kill_current_process_group() -> io::Result<()> { - unsafe { ret(c::kill(0, 0)) } -} - -#[cfg(freebsdlike)] -#[inline] -pub(crate) unsafe fn procctl( - idtype: c::idtype_t, - id: c::id_t, - option: c::c_int, - data: *mut c::c_void, -) -> io::Result<()> { - ret(c::procctl(idtype, id, option, data)) -} - -#[cfg(target_os = "linux")] -pub(crate) fn pidfd_open(pid: Pid, flags: PidfdFlags) -> io::Result { - syscall! { - fn pidfd_open( - pid: c::pid_t, - flags: c::c_uint - ) via SYS_pidfd_open -> c::c_int - } - unsafe { - ret_owned_fd(pidfd_open( - pid.as_raw_nonzero().get(), - bitflags_bits!(flags), - )) - } -} - -#[cfg(target_os = "linux")] -pub(crate) fn pidfd_getfd( - pidfd: BorrowedFd<'_>, - targetfd: RawFd, - flags: PidfdGetfdFlags, -) -> io::Result { - syscall! { - fn pidfd_getfd( - pidfd: c::c_int, - targetfd: c::c_int, - flags: c::c_uint - ) via SYS_pidfd_getfd -> c::c_int - } - unsafe { - ret_owned_fd(pidfd_getfd( - borrowed_fd(pidfd), - targetfd, - bitflags_bits!(flags), - )) - } -} - -#[cfg(all(feature = "alloc", not(target_os = "wasi")))] -pub(crate) fn getgroups(buf: &mut [Gid]) -> io::Result { - let len = buf.len().try_into().map_err(|_| io::Errno::NOMEM)?; - - unsafe { ret_usize(c::getgroups(len, buf.as_mut_ptr().cast()) as isize) } -} diff --git a/third_party/rust/rustix/src/backend/libc/process/types.rs b/third_party/rust/rustix/src/backend/libc/process/types.rs deleted file mode 100644 index 26bae3498bc6..000000000000 --- a/third_party/rust/rustix/src/backend/libc/process/types.rs +++ /dev/null @@ -1,164 +0,0 @@ -use crate::backend::c; - -/// A command for use with [`membarrier`] and [`membarrier_cpu`]. -/// -/// For `MEMBARRIER_CMD_QUERY`, see [`membarrier_query`]. -/// -/// [`membarrier`]: crate::process::membarrier -/// [`membarrier_cpu`]: crate::process::membarrier_cpu -/// [`membarrier_query`]: crate::process::membarrier_query -#[cfg(linux_kernel)] -#[derive(Copy, Clone, Eq, PartialEq, Debug)] -#[repr(u32)] -pub enum MembarrierCommand { - /// `MEMBARRIER_CMD_GLOBAL` - #[doc(alias = "Shared")] - #[doc(alias = "MEMBARRIER_CMD_SHARED")] - Global = c::MEMBARRIER_CMD_GLOBAL as u32, - /// `MEMBARRIER_CMD_GLOBAL_EXPEDITED` - GlobalExpedited = c::MEMBARRIER_CMD_GLOBAL_EXPEDITED as u32, - /// `MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED` - RegisterGlobalExpedited = c::MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED as u32, - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED` - PrivateExpedited = c::MEMBARRIER_CMD_PRIVATE_EXPEDITED as u32, - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED` - RegisterPrivateExpedited = c::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED as u32, - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE` - PrivateExpeditedSyncCore = c::MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE as u32, - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE` - RegisterPrivateExpeditedSyncCore = - c::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE as u32, - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) - PrivateExpeditedRseq = c::MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ as u32, - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) - RegisterPrivateExpeditedRseq = c::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ as u32, -} - -/// A resource value for use with [`getrlimit`], [`setrlimit`], and -/// [`prlimit`]. -/// -/// [`getrlimit`]: crate::process::getrlimit -/// [`setrlimit`]: crate::process::setrlimit -/// [`prlimit`]: crate::process::prlimit -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[cfg_attr(not(target_os = "l4re"), repr(u32))] -#[cfg_attr(target_os = "l4re", repr(u64))] -pub enum Resource { - /// `RLIMIT_CPU` - Cpu = bitcast!(c::RLIMIT_CPU), - /// `RLIMIT_FSIZE` - Fsize = bitcast!(c::RLIMIT_FSIZE), - /// `RLIMIT_DATA` - Data = bitcast!(c::RLIMIT_DATA), - /// `RLIMIT_STACK` - Stack = bitcast!(c::RLIMIT_STACK), - /// `RLIMIT_CORE` - #[cfg(not(target_os = "haiku"))] - Core = bitcast!(c::RLIMIT_CORE), - /// `RLIMIT_RSS` - // "nto" has `RLIMIT_RSS`, but it has the same value as `RLIMIT_AS`. - #[cfg(not(any(apple, solarish, target_os = "nto", target_os = "haiku")))] - Rss = bitcast!(c::RLIMIT_RSS), - /// `RLIMIT_NPROC` - #[cfg(not(any(solarish, target_os = "haiku")))] - Nproc = bitcast!(c::RLIMIT_NPROC), - /// `RLIMIT_NOFILE` - Nofile = bitcast!(c::RLIMIT_NOFILE), - /// `RLIMIT_MEMLOCK` - #[cfg(not(any(solarish, target_os = "aix", target_os = "haiku")))] - Memlock = bitcast!(c::RLIMIT_MEMLOCK), - /// `RLIMIT_AS` - #[cfg(not(target_os = "openbsd"))] - As = bitcast!(c::RLIMIT_AS), - /// `RLIMIT_LOCKS` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - Locks = bitcast!(c::RLIMIT_LOCKS), - /// `RLIMIT_SIGPENDING` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - Sigpending = bitcast!(c::RLIMIT_SIGPENDING), - /// `RLIMIT_MSGQUEUE` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - Msgqueue = bitcast!(c::RLIMIT_MSGQUEUE), - /// `RLIMIT_NICE` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - Nice = bitcast!(c::RLIMIT_NICE), - /// `RLIMIT_RTPRIO` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - Rtprio = bitcast!(c::RLIMIT_RTPRIO), - /// `RLIMIT_RTTIME` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "android", - target_os = "emscripten", - target_os = "haiku", - target_os = "nto", - )))] - Rttime = bitcast!(c::RLIMIT_RTTIME), -} - -#[cfg(apple)] -#[allow(non_upper_case_globals)] -impl Resource { - /// `RLIMIT_RSS` - pub const Rss: Self = Self::As; -} - -/// A CPU identifier as a raw integer. -#[cfg(linux_kernel)] -pub type RawCpuid = u32; -#[cfg(freebsdlike)] -pub type RawId = c::id_t; - -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -pub(crate) type RawCpuSet = c::cpu_set_t; - -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -#[inline] -pub(crate) fn raw_cpu_set_new() -> RawCpuSet { - let mut set = unsafe { core::mem::zeroed() }; - super::cpu_set::CPU_ZERO(&mut set); - set -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -pub(crate) const CPU_SETSIZE: usize = c::CPU_SETSIZE as usize; -#[cfg(target_os = "dragonfly")] -pub(crate) const CPU_SETSIZE: usize = 256; diff --git a/third_party/rust/rustix/src/backend/libc/process/wait.rs b/third_party/rust/rustix/src/backend/libc/process/wait.rs deleted file mode 100644 index 9a932cfabce4..000000000000 --- a/third_party/rust/rustix/src/backend/libc/process/wait.rs +++ /dev/null @@ -1,9 +0,0 @@ -use crate::backend::c; - -pub(crate) use c::{ - WCONTINUED, WEXITSTATUS, WIFCONTINUED, WIFEXITED, WIFSIGNALED, WIFSTOPPED, WNOHANG, WSTOPSIG, - WTERMSIG, WUNTRACED, -}; - -#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "wasi")))] -pub(crate) use c::{WEXITED, WNOWAIT, WSTOPPED}; diff --git a/third_party/rust/rustix/src/backend/libc/pty/mod.rs b/third_party/rust/rustix/src/backend/libc/pty/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/libc/pty/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/pty/syscalls.rs b/third_party/rust/rustix/src/backend/libc/pty/syscalls.rs deleted file mode 100644 index cf566045d2f2..000000000000 --- a/third_party/rust/rustix/src/backend/libc/pty/syscalls.rs +++ /dev/null @@ -1,104 +0,0 @@ -//! libc syscalls supporting `rustix::pty`. - -use crate::backend::c; -use crate::backend::conv::{borrowed_fd, ret}; -use crate::fd::BorrowedFd; -use crate::io; -#[cfg(all( - feature = "alloc", - any(apple, linux_like, target_os = "freebsd", target_os = "fuchsia") -))] -use { - crate::ffi::{CStr, CString}, - crate::path::SMALL_PATH_BUFFER_SIZE, - alloc::borrow::ToOwned, - alloc::vec::Vec, -}; - -#[cfg(not(linux_kernel))] -use crate::{backend::conv::ret_owned_fd, fd::OwnedFd, pty::OpenptFlags}; - -#[cfg(not(linux_kernel))] -#[inline] -pub(crate) fn openpt(flags: OpenptFlags) -> io::Result { - unsafe { ret_owned_fd(c::posix_openpt(flags.bits() as _)) } -} - -#[cfg(all( - feature = "alloc", - any(apple, linux_like, target_os = "freebsd", target_os = "fuchsia") -))] -#[inline] -pub(crate) fn ptsname(fd: BorrowedFd<'_>, mut buffer: Vec) -> io::Result { - // This code would benefit from having a better way to read into - // uninitialized memory, but that requires `unsafe`. - buffer.clear(); - buffer.reserve(SMALL_PATH_BUFFER_SIZE); - buffer.resize(buffer.capacity(), 0_u8); - - loop { - // On platforms with `ptsname_r`, use it. - #[cfg(any(linux_like, target_os = "fuchsia"))] - let r = unsafe { c::ptsname_r(borrowed_fd(fd), buffer.as_mut_ptr().cast(), buffer.len()) }; - - // FreeBSD 12 doesn't have `ptsname_r`. - #[cfg(target_os = "freebsd")] - let r = unsafe { - weak! { - fn ptsname_r( - c::c_int, - *mut c::c_char, - c::size_t - ) -> c::c_int - } - if let Some(func) = ptsname_r.get() { - func(borrowed_fd(fd), buffer.as_mut_ptr().cast(), buffer.len()) - } else { - libc::ENOSYS - } - }; - - // MacOS 10.13.4 has `ptsname_r`; use it if we have it, otherwise fall - // back to calling the underlying ioctl directly. - #[cfg(apple)] - let r = unsafe { - weak! { fn ptsname_r(c::c_int, *mut c::c_char, c::size_t) -> c::c_int } - - if let Some(libc_ptsname_r) = ptsname_r.get() { - libc_ptsname_r(borrowed_fd(fd), buffer.as_mut_ptr().cast(), buffer.len()) - } else { - // The size declared in the `TIOCPTYGNAME` macro in sys/ttycom.h is 128. - let mut name: [u8; 128] = [0_u8; 128]; - match c::ioctl(borrowed_fd(fd), c::TIOCPTYGNAME as _, &mut name) { - 0 => { - let len = CStr::from_ptr(name.as_ptr().cast()).to_bytes().len(); - std::ptr::copy_nonoverlapping(name.as_ptr(), buffer.as_mut_ptr(), len + 1); - 0 - } - _ => libc_errno::errno().0, - } - } - }; - - if r == 0 { - return Ok(unsafe { CStr::from_ptr(buffer.as_ptr().cast()).to_owned() }); - } - if r != c::ERANGE { - return Err(io::Errno::from_raw_os_error(r)); - } - - buffer.reserve(1); // use `Vec` reallocation strategy to grow capacity exponentially - buffer.resize(buffer.capacity(), 0_u8); - } -} - -#[inline] -pub(crate) fn unlockpt(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::unlockpt(borrowed_fd(fd))) } -} - -#[cfg(not(linux_kernel))] -#[inline] -pub(crate) fn grantpt(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::grantpt(borrowed_fd(fd))) } -} diff --git a/third_party/rust/rustix/src/backend/libc/rand/mod.rs b/third_party/rust/rustix/src/backend/libc/rand/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/rand/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/libc/rand/syscalls.rs b/third_party/rust/rustix/src/backend/libc/rand/syscalls.rs deleted file mode 100644 index 8a995f2e626d..000000000000 --- a/third_party/rust/rustix/src/backend/libc/rand/syscalls.rs +++ /dev/null @@ -1,14 +0,0 @@ -//! libc syscalls supporting `rustix::rand`. - -#[cfg(linux_kernel)] -use {crate::backend::c, crate::backend::conv::ret_usize, crate::io, crate::rand::GetRandomFlags}; - -#[cfg(linux_kernel)] -pub(crate) fn getrandom(buf: &mut [u8], flags: GetRandomFlags) -> io::Result { - // `getrandom` wasn't supported in glibc until 2.25. - weak_or_syscall! { - fn getrandom(buf: *mut c::c_void, buflen: c::size_t, flags: c::c_uint) via SYS_getrandom -> c::ssize_t - } - - unsafe { ret_usize(getrandom(buf.as_mut_ptr().cast(), buf.len(), flags.bits())) } -} diff --git a/third_party/rust/rustix/src/backend/libc/rand/types.rs b/third_party/rust/rustix/src/backend/libc/rand/types.rs deleted file mode 100644 index cd436b618a01..000000000000 --- a/third_party/rust/rustix/src/backend/libc/rand/types.rs +++ /dev/null @@ -1,24 +0,0 @@ -#[cfg(linux_kernel)] -use crate::backend::c; -#[cfg(linux_kernel)] -use bitflags::bitflags; - -#[cfg(linux_kernel)] -bitflags! { - /// `GRND_*` flags for use with [`getrandom`]. - /// - /// [`getrandom`]: crate::rand::getrandom - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct GetRandomFlags: u32 { - /// `GRND_RANDOM` - const RANDOM = c::GRND_RANDOM; - /// `GRND_NONBLOCK` - const NONBLOCK = c::GRND_NONBLOCK; - /// `GRND_INSECURE` - const INSECURE = c::GRND_INSECURE; - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/libc/system/mod.rs b/third_party/rust/rustix/src/backend/libc/system/mod.rs deleted file mode 100644 index bff7fd564bda..000000000000 --- a/third_party/rust/rustix/src/backend/libc/system/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -#[cfg(not(windows))] -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/libc/system/syscalls.rs b/third_party/rust/rustix/src/backend/libc/system/syscalls.rs deleted file mode 100644 index 27efd2653e50..000000000000 --- a/third_party/rust/rustix/src/backend/libc/system/syscalls.rs +++ /dev/null @@ -1,58 +0,0 @@ -//! libc syscalls supporting `rustix::process`. - -use super::types::RawUname; -use crate::backend::c; -#[cfg(not(target_os = "wasi"))] -use crate::backend::conv::ret_infallible; -#[cfg(linux_kernel)] -use crate::system::Sysinfo; -use core::mem::MaybeUninit; -#[cfg(not(any( - target_os = "emscripten", - target_os = "espidf", - target_os = "redox", - target_os = "wasi" -)))] -use {crate::backend::conv::ret, crate::io}; - -#[cfg(not(target_os = "wasi"))] -#[inline] -pub(crate) fn uname() -> RawUname { - let mut uname = MaybeUninit::::uninit(); - unsafe { - let r = c::uname(uname.as_mut_ptr()); - - // On POSIX, `uname` is documented to return non-negative on success - // instead of the usual 0, though some specific systems do document - // that they always use zero allowing us to skip this check. - #[cfg(not(any(apple, freebsdlike, linux_like, target_os = "netbsd")))] - let r = core::cmp::min(r, 0); - - ret_infallible(r); - uname.assume_init() - } -} - -#[cfg(linux_kernel)] -pub(crate) fn sysinfo() -> Sysinfo { - let mut info = MaybeUninit::::uninit(); - unsafe { - ret_infallible(c::sysinfo(info.as_mut_ptr())); - info.assume_init() - } -} - -#[cfg(not(any( - target_os = "emscripten", - target_os = "espidf", - target_os = "redox", - target_os = "wasi" -)))] -pub(crate) fn sethostname(name: &[u8]) -> io::Result<()> { - unsafe { - ret(c::sethostname( - name.as_ptr().cast(), - name.len().try_into().map_err(|_| io::Errno::INVAL)?, - )) - } -} diff --git a/third_party/rust/rustix/src/backend/libc/system/types.rs b/third_party/rust/rustix/src/backend/libc/system/types.rs deleted file mode 100644 index 731e89bed5c0..000000000000 --- a/third_party/rust/rustix/src/backend/libc/system/types.rs +++ /dev/null @@ -1,8 +0,0 @@ -use crate::backend::c; - -/// `sysinfo` -#[cfg(linux_kernel)] -pub type Sysinfo = c::sysinfo; - -#[cfg(not(target_os = "wasi"))] -pub(crate) type RawUname = c::utsname; diff --git a/third_party/rust/rustix/src/backend/libc/termios/mod.rs b/third_party/rust/rustix/src/backend/libc/termios/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/libc/termios/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/termios/syscalls.rs b/third_party/rust/rustix/src/backend/libc/termios/syscalls.rs deleted file mode 100644 index df96595cdd4e..000000000000 --- a/third_party/rust/rustix/src/backend/libc/termios/syscalls.rs +++ /dev/null @@ -1,360 +0,0 @@ -//! libc syscalls supporting `rustix::termios`. -//! -//! # Safety -//! -//! See the `rustix::backend::syscalls` module documentation for details. - -use crate::backend::c; -#[cfg(not(target_os = "wasi"))] -use crate::backend::conv::ret_pid_t; -use crate::backend::conv::{borrowed_fd, ret}; -use crate::fd::BorrowedFd; -#[cfg(all(feature = "alloc", feature = "procfs"))] -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -use crate::ffi::CStr; -#[cfg(any( - not(target_os = "espidf"), - all( - feature = "procfs", - not(any(target_os = "fuchsia", target_os = "wasi")) - ) -))] -use core::mem::MaybeUninit; -#[cfg(not(target_os = "wasi"))] -use {crate::io, crate::pid::Pid}; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -use { - crate::termios::{Action, OptionalActions, QueueSelector, Termios, Winsize}, - crate::utils::as_mut_ptr, -}; - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn tcgetattr(fd: BorrowedFd<'_>) -> io::Result { - // If we have `TCGETS2`, use it, so that we fill in the `c_ispeed` and - // `c_ospeed` fields. - #[cfg(linux_kernel)] - { - use crate::termios::{ControlModes, InputModes, LocalModes, OutputModes, SpecialCodes}; - use crate::utils::default_array; - - let termios2 = unsafe { - let mut termios2 = MaybeUninit::::uninit(); - - ret(c::ioctl( - borrowed_fd(fd), - c::TCGETS2 as _, - termios2.as_mut_ptr(), - ))?; - - termios2.assume_init() - }; - - // Convert from the Linux `termios2` to our `Termios`. - let mut result = Termios { - input_modes: InputModes::from_bits_retain(termios2.c_iflag), - output_modes: OutputModes::from_bits_retain(termios2.c_oflag), - control_modes: ControlModes::from_bits_retain(termios2.c_cflag), - local_modes: LocalModes::from_bits_retain(termios2.c_lflag), - line_discipline: termios2.c_line, - special_codes: SpecialCodes(default_array()), - input_speed: termios2.c_ispeed, - output_speed: termios2.c_ospeed, - }; - result.special_codes.0[..termios2.c_cc.len()].copy_from_slice(&termios2.c_cc); - - Ok(result) - } - - #[cfg(not(linux_kernel))] - unsafe { - let mut result = MaybeUninit::::uninit(); - - // `result` is a `Termios` which starts with the same layout as - // `libc::termios`, so we can cast the pointer. - ret(c::tcgetattr(borrowed_fd(fd), result.as_mut_ptr().cast()))?; - - Ok(result.assume_init()) - } -} - -#[cfg(not(target_os = "wasi"))] -pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let pid = ret_pid_t(c::tcgetpgrp(borrowed_fd(fd)))?; - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[cfg(not(target_os = "wasi"))] -pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> { - unsafe { ret(c::tcsetpgrp(borrowed_fd(fd), pid.as_raw_nonzero().get())) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn tcsetattr( - fd: BorrowedFd<'_>, - optional_actions: OptionalActions, - termios: &Termios, -) -> io::Result<()> { - // If we have `TCSETS2`, use it, so that we use the `c_ispeed` and - // `c_ospeed` fields. - #[cfg(linux_kernel)] - { - use crate::termios::speed; - use crate::utils::default_array; - use linux_raw_sys::general::{termios2, BOTHER, CBAUD, IBSHIFT}; - - #[cfg(not(any(target_arch = "sparc", target_arch = "sparc64")))] - use linux_raw_sys::ioctl::{TCSETS, TCSETS2}; - - // linux-raw-sys' ioctl-generation script for sparc isn't working yet, - // so as a temporary workaround, declare these manually. - #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] - const TCSETS: u32 = 0x80245409; - #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] - const TCSETS2: u32 = 0x802c540d; - - // Translate from `optional_actions` into an ioctl request code. On MIPS, - // `optional_actions` already has `TCGETS` added to it. - let request = TCSETS2 - + if cfg!(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" - )) { - optional_actions as u32 - TCSETS - } else { - optional_actions as u32 - }; - - let input_speed = termios.input_speed(); - let output_speed = termios.output_speed(); - let mut termios2 = termios2 { - c_iflag: termios.input_modes.bits(), - c_oflag: termios.output_modes.bits(), - c_cflag: termios.control_modes.bits(), - c_lflag: termios.local_modes.bits(), - c_line: termios.line_discipline, - c_cc: default_array(), - c_ispeed: input_speed, - c_ospeed: output_speed, - }; - // Ensure that our input and output speeds are set, as `libc` - // routines don't always support setting these separately. - termios2.c_cflag &= !CBAUD; - termios2.c_cflag |= speed::encode(output_speed).unwrap_or(BOTHER); - termios2.c_cflag &= !(CBAUD << IBSHIFT); - termios2.c_cflag |= speed::encode(input_speed).unwrap_or(BOTHER) << IBSHIFT; - let nccs = termios2.c_cc.len(); - termios2 - .c_cc - .copy_from_slice(&termios.special_codes.0[..nccs]); - - unsafe { ret(c::ioctl(borrowed_fd(fd), request as _, &termios2)) } - } - - #[cfg(not(linux_kernel))] - unsafe { - ret(c::tcsetattr( - borrowed_fd(fd), - optional_actions as _, - crate::utils::as_ptr(termios).cast(), - )) - } -} - -#[cfg(not(target_os = "wasi"))] -pub(crate) fn tcsendbreak(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::tcsendbreak(borrowed_fd(fd), 0)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn tcdrain(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(c::tcdrain(borrowed_fd(fd))) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn tcflush(fd: BorrowedFd<'_>, queue_selector: QueueSelector) -> io::Result<()> { - unsafe { ret(c::tcflush(borrowed_fd(fd), queue_selector as _)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn tcflow(fd: BorrowedFd<'_>, action: Action) -> io::Result<()> { - unsafe { ret(c::tcflow(borrowed_fd(fd), action as _)) } -} - -#[cfg(not(target_os = "wasi"))] -pub(crate) fn tcgetsid(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let pid = ret_pid_t(c::tcgetsid(borrowed_fd(fd)))?; - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn tcsetwinsize(fd: BorrowedFd<'_>, winsize: Winsize) -> io::Result<()> { - unsafe { ret(c::ioctl(borrowed_fd(fd), c::TIOCSWINSZ, &winsize)) } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub(crate) fn tcgetwinsize(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let mut buf = MaybeUninit::::uninit(); - ret(c::ioctl( - borrowed_fd(fd), - c::TIOCGWINSZ.into(), - buf.as_mut_ptr(), - ))?; - Ok(buf.assume_init()) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "nto", target_os = "wasi")))] -#[inline] -pub(crate) fn set_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { - #[cfg(bsd)] - let encoded_speed = arbitrary_speed; - - #[cfg(not(bsd))] - let encoded_speed = match crate::termios::speed::encode(arbitrary_speed) { - Some(encoded_speed) => encoded_speed, - #[cfg(linux_kernel)] - None => c::BOTHER, - #[cfg(not(linux_kernel))] - None => return Err(io::Errno::INVAL), - }; - - #[cfg(not(linux_kernel))] - unsafe { - ret(c::cfsetspeed( - as_mut_ptr(termios).cast(), - encoded_speed.into(), - )) - } - - // Linux libc implementations don't support arbitrary speeds, so we encode - // the speed manually. - #[cfg(linux_kernel)] - { - use crate::termios::ControlModes; - - debug_assert_eq!(encoded_speed & !c::CBAUD, 0); - - termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD | c::CIBAUD); - termios.control_modes |= - ControlModes::from_bits_retain(encoded_speed | (encoded_speed << c::IBSHIFT)); - - termios.input_speed = arbitrary_speed; - termios.output_speed = arbitrary_speed; - - Ok(()) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn set_output_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { - #[cfg(bsd)] - let encoded_speed = arbitrary_speed; - - #[cfg(not(bsd))] - let encoded_speed = match crate::termios::speed::encode(arbitrary_speed) { - Some(encoded_speed) => encoded_speed, - #[cfg(linux_kernel)] - None => c::BOTHER, - #[cfg(not(linux_kernel))] - None => return Err(io::Errno::INVAL), - }; - - #[cfg(not(linux_kernel))] - unsafe { - ret(c::cfsetospeed( - as_mut_ptr(termios).cast(), - encoded_speed.into(), - )) - } - - // Linux libc implementations don't support arbitrary speeds or setting the - // input and output speeds separately, so we encode the speed manually. - #[cfg(linux_kernel)] - { - use crate::termios::ControlModes; - - debug_assert_eq!(encoded_speed & !c::CBAUD, 0); - - termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD); - termios.control_modes |= ControlModes::from_bits_retain(encoded_speed); - - termios.output_speed = arbitrary_speed; - - Ok(()) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -pub(crate) fn set_input_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { - #[cfg(bsd)] - let encoded_speed = arbitrary_speed; - - #[cfg(not(bsd))] - let encoded_speed = match crate::termios::speed::encode(arbitrary_speed) { - Some(encoded_speed) => encoded_speed, - #[cfg(linux_kernel)] - None => c::BOTHER, - #[cfg(not(linux_kernel))] - None => return Err(io::Errno::INVAL), - }; - - #[cfg(not(linux_kernel))] - unsafe { - ret(c::cfsetispeed( - as_mut_ptr(termios).cast(), - encoded_speed.into(), - )) - } - - // Linux libc implementations don't support arbitrary speeds or setting the - // input and output speeds separately, so we encode the speed manually. - #[cfg(linux_kernel)] - { - use crate::termios::ControlModes; - - debug_assert_eq!(encoded_speed & !c::CBAUD, 0); - - termios.control_modes -= ControlModes::from_bits_retain(c::CIBAUD); - termios.control_modes |= ControlModes::from_bits_retain(encoded_speed << c::IBSHIFT); - - termios.input_speed = arbitrary_speed; - - Ok(()) - } -} - -#[cfg(not(any(target_os = "espidf", target_os = "nto", target_os = "wasi")))] -#[inline] -pub(crate) fn cfmakeraw(termios: &mut Termios) { - unsafe { c::cfmakeraw(as_mut_ptr(termios).cast()) } -} - -pub(crate) fn isatty(fd: BorrowedFd<'_>) -> bool { - // Use the return value of `isatty` alone. We don't check `errno` because - // we return `bool` rather than `io::Result`, because we assume - // `BorrrowedFd` protects us from `EBADF`, and any other reasonably - // anticipated `errno` value would end up interpreted as “assume it's not a - // terminal” anyway. - unsafe { c::isatty(borrowed_fd(fd)) != 0 } -} - -#[cfg(all(feature = "alloc", feature = "procfs"))] -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -pub(crate) fn ttyname(dirfd: BorrowedFd<'_>, buf: &mut [MaybeUninit]) -> io::Result { - unsafe { - // `ttyname_r` returns its error status rather than using `errno`. - match c::ttyname_r(borrowed_fd(dirfd), buf.as_mut_ptr().cast(), buf.len()) { - 0 => Ok(CStr::from_ptr(buf.as_ptr().cast()).to_bytes().len()), - err => Err(io::Errno::from_raw_os_error(err)), - } - } -} diff --git a/third_party/rust/rustix/src/backend/libc/thread/futex.rs b/third_party/rust/rustix/src/backend/libc/thread/futex.rs deleted file mode 100644 index 44d96f0f6f04..000000000000 --- a/third_party/rust/rustix/src/backend/libc/thread/futex.rs +++ /dev/null @@ -1,43 +0,0 @@ -use crate::backend::c; - -bitflags::bitflags! { - /// `FUTEX_*` flags for use with [`futex`]. - /// - /// [`futex`]: crate::thread::futex - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FutexFlags: u32 { - /// `FUTEX_PRIVATE_FLAG` - const PRIVATE = bitcast!(c::FUTEX_PRIVATE_FLAG); - /// `FUTEX_CLOCK_REALTIME` - const CLOCK_REALTIME = bitcast!(c::FUTEX_CLOCK_REALTIME); - } -} - -/// `FUTEX_*` operations for use with [`futex`]. -/// -/// [`futex`]: crate::thread::futex -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -pub enum FutexOperation { - /// `FUTEX_WAIT` - Wait = bitcast!(c::FUTEX_WAIT), - /// `FUTEX_WAKE` - Wake = bitcast!(c::FUTEX_WAKE), - /// `FUTEX_FD` - Fd = bitcast!(c::FUTEX_FD), - /// `FUTEX_REQUEUE` - Requeue = bitcast!(c::FUTEX_REQUEUE), - /// `FUTEX_CMP_REQUEUE` - CmpRequeue = bitcast!(c::FUTEX_CMP_REQUEUE), - /// `FUTEX_WAKE_OP` - WakeOp = bitcast!(c::FUTEX_WAKE_OP), - /// `FUTEX_LOCK_PI` - LockPi = bitcast!(c::FUTEX_LOCK_PI), - /// `FUTEX_UNLOCK_PI` - UnlockPi = bitcast!(c::FUTEX_UNLOCK_PI), - /// `FUTEX_TRYLOCK_PI` - TrylockPi = bitcast!(c::FUTEX_TRYLOCK_PI), - /// `FUTEX_WAIT_BITSET` - WaitBitset = bitcast!(c::FUTEX_WAIT_BITSET), -} diff --git a/third_party/rust/rustix/src/backend/libc/thread/mod.rs b/third_party/rust/rustix/src/backend/libc/thread/mod.rs deleted file mode 100644 index 4f8c87cd2d85..000000000000 --- a/third_party/rust/rustix/src/backend/libc/thread/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -#[cfg(linux_kernel)] -pub(crate) mod futex; -#[cfg(not(windows))] -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/thread/syscalls.rs b/third_party/rust/rustix/src/backend/libc/thread/syscalls.rs deleted file mode 100644 index 846f0e2a859b..000000000000 --- a/third_party/rust/rustix/src/backend/libc/thread/syscalls.rs +++ /dev/null @@ -1,510 +0,0 @@ -//! libc syscalls supporting `rustix::thread`. - -use crate::backend::c; -use crate::backend::conv::ret; -use crate::io; -#[cfg(not(target_os = "redox"))] -use crate::thread::{NanosleepRelativeResult, Timespec}; -#[cfg(all(target_env = "gnu", fix_y2038))] -use crate::timespec::LibcTimespec; -use core::mem::MaybeUninit; -#[cfg(linux_kernel)] -use { - crate::backend::conv::{borrowed_fd, ret_c_int, ret_usize}, - crate::fd::BorrowedFd, - crate::pid::Pid, - crate::thread::{FutexFlags, FutexOperation}, - crate::utils::as_mut_ptr, -}; -#[cfg(not(any( - apple, - freebsdlike, - target_os = "emscripten", - target_os = "espidf", - target_os = "haiku", - target_os = "openbsd", - target_os = "redox", - target_os = "wasi", -)))] -use {crate::thread::ClockId, core::ptr::null_mut}; - -#[cfg(all(target_env = "gnu", fix_y2038))] -weak!(fn __clock_nanosleep_time64(c::clockid_t, c::c_int, *const LibcTimespec, *mut LibcTimespec) -> c::c_int); -#[cfg(all(target_env = "gnu", fix_y2038))] -weak!(fn __nanosleep64(*const LibcTimespec, *mut LibcTimespec) -> c::c_int); - -#[cfg(not(any( - apple, - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11. - target_os = "haiku", - target_os = "openbsd", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub(crate) fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRelativeResult { - // Old 32-bit version: libc has `clock_nanosleep` but it is not y2038 safe - // by default. But there may be a `__clock_nanosleep_time64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_clock_nanosleep) = __clock_nanosleep_time64.get() { - let flags = 0; - let mut remain = MaybeUninit::::uninit(); - - unsafe { - return match libc_clock_nanosleep( - id as c::clockid_t, - flags, - &request.clone().into(), - remain.as_mut_ptr(), - ) { - 0 => NanosleepRelativeResult::Ok, - err if err == io::Errno::INTR.0 => { - NanosleepRelativeResult::Interrupted(remain.assume_init().into()) - } - err => NanosleepRelativeResult::Err(io::Errno(err)), - }; - } - } - - clock_nanosleep_relative_old(id, request) - } - - // Main version: libc is y2038 safe and has `clock_nanosleep`. - #[cfg(not(fix_y2038))] - unsafe { - let flags = 0; - let mut remain = MaybeUninit::::uninit(); - - match c::clock_nanosleep(id as c::clockid_t, flags, request, remain.as_mut_ptr()) { - 0 => NanosleepRelativeResult::Ok, - err if err == io::Errno::INTR.0 => { - NanosleepRelativeResult::Interrupted(remain.assume_init()) - } - err => NanosleepRelativeResult::Err(io::Errno(err)), - } - } -} - -#[cfg(all( - fix_y2038, - not(any(apple, target_os = "emscripten", target_os = "haiku")) -))] -fn clock_nanosleep_relative_old(id: ClockId, request: &Timespec) -> NanosleepRelativeResult { - let tv_sec = match request.tv_sec.try_into() { - Ok(tv_sec) => tv_sec, - Err(_) => return NanosleepRelativeResult::Err(io::Errno::OVERFLOW), - }; - let tv_nsec = match request.tv_nsec.try_into() { - Ok(tv_nsec) => tv_nsec, - Err(_) => return NanosleepRelativeResult::Err(io::Errno::INVAL), - }; - let old_request = c::timespec { tv_sec, tv_nsec }; - let mut old_remain = MaybeUninit::::uninit(); - let flags = 0; - - unsafe { - match c::clock_nanosleep( - id as c::clockid_t, - flags, - &old_request, - old_remain.as_mut_ptr(), - ) { - 0 => NanosleepRelativeResult::Ok, - err if err == io::Errno::INTR.0 => { - let old_remain = old_remain.assume_init(); - let remain = Timespec { - tv_sec: old_remain.tv_sec.into(), - tv_nsec: old_remain.tv_nsec.into(), - }; - NanosleepRelativeResult::Interrupted(remain) - } - err => NanosleepRelativeResult::Err(io::Errno(err)), - } - } -} - -#[cfg(not(any( - apple, - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11. - target_os = "haiku", - target_os = "openbsd", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub(crate) fn clock_nanosleep_absolute(id: ClockId, request: &Timespec) -> io::Result<()> { - // Old 32-bit version: libc has `clock_nanosleep` but it is not y2038 safe - // by default. But there may be a `__clock_nanosleep_time64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_clock_nanosleep) = __clock_nanosleep_time64.get() { - let flags = c::TIMER_ABSTIME; - unsafe { - return match { - libc_clock_nanosleep( - id as c::clockid_t, - flags, - &request.clone().into(), - null_mut(), - ) - } { - 0 => Ok(()), - err => Err(io::Errno(err)), - }; - } - } - - clock_nanosleep_absolute_old(id, request) - } - - // Main version: libc is y2038 safe and has `clock_nanosleep`. - #[cfg(not(fix_y2038))] - { - let flags = c::TIMER_ABSTIME; - - match unsafe { c::clock_nanosleep(id as c::clockid_t, flags as _, request, null_mut()) } { - 0 => Ok(()), - err => Err(io::Errno(err)), - } - } -} - -#[cfg(all( - fix_y2038, - not(any(apple, target_os = "emscripten", target_os = "haiku")) -))] -fn clock_nanosleep_absolute_old(id: ClockId, request: &Timespec) -> io::Result<()> { - let flags = c::TIMER_ABSTIME; - - let old_request = c::timespec { - tv_sec: request.tv_sec.try_into().map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: request.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, - }; - match unsafe { c::clock_nanosleep(id as c::clockid_t, flags, &old_request, null_mut()) } { - 0 => Ok(()), - err => Err(io::Errno(err)), - } -} - -#[cfg(not(target_os = "redox"))] -#[inline] -pub(crate) fn nanosleep(request: &Timespec) -> NanosleepRelativeResult { - // Old 32-bit version: libc has `nanosleep` but it is not y2038 safe by - // default. But there may be a `__nanosleep64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_nanosleep) = __nanosleep64.get() { - let mut remain = MaybeUninit::::uninit(); - unsafe { - return match ret(libc_nanosleep(&request.clone().into(), remain.as_mut_ptr())) { - Ok(()) => NanosleepRelativeResult::Ok, - Err(io::Errno::INTR) => { - NanosleepRelativeResult::Interrupted(remain.assume_init().into()) - } - Err(err) => NanosleepRelativeResult::Err(err), - }; - } - } - - nanosleep_old(request) - } - - // Main version: libc is y2038 safe and has `nanosleep`. - #[cfg(not(fix_y2038))] - unsafe { - let mut remain = MaybeUninit::::uninit(); - - match ret(c::nanosleep(request, remain.as_mut_ptr())) { - Ok(()) => NanosleepRelativeResult::Ok, - Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(remain.assume_init()), - Err(err) => NanosleepRelativeResult::Err(err), - } - } -} - -#[cfg(fix_y2038)] -fn nanosleep_old(request: &Timespec) -> NanosleepRelativeResult { - let tv_sec = match request.tv_sec.try_into() { - Ok(tv_sec) => tv_sec, - Err(_) => return NanosleepRelativeResult::Err(io::Errno::OVERFLOW), - }; - let tv_nsec = match request.tv_nsec.try_into() { - Ok(tv_nsec) => tv_nsec, - Err(_) => return NanosleepRelativeResult::Err(io::Errno::INVAL), - }; - let old_request = c::timespec { tv_sec, tv_nsec }; - let mut old_remain = MaybeUninit::::uninit(); - - unsafe { - match ret(c::nanosleep(&old_request, old_remain.as_mut_ptr())) { - Ok(()) => NanosleepRelativeResult::Ok, - Err(io::Errno::INTR) => { - let old_remain = old_remain.assume_init(); - let remain = Timespec { - tv_sec: old_remain.tv_sec.into(), - tv_nsec: old_remain.tv_nsec.into(), - }; - NanosleepRelativeResult::Interrupted(remain) - } - Err(err) => NanosleepRelativeResult::Err(err), - } - } -} - -#[cfg(linux_kernel)] -#[inline] -#[must_use] -pub(crate) fn gettid() -> Pid { - // `gettid` wasn't supported in glibc until 2.30, and musl until 1.2.2, - // so use `syscall`. - // - weak_or_syscall! { - fn gettid() via SYS_gettid -> c::pid_t - } - - unsafe { - let tid = gettid(); - Pid::from_raw_unchecked(tid) - } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn setns(fd: BorrowedFd<'_>, nstype: c::c_int) -> io::Result { - // `setns` wasn't supported in glibc until 2.14, and musl until 0.9.5, - // so use `syscall`. - weak_or_syscall! { - fn setns(fd: c::c_int, nstype: c::c_int) via SYS_setns -> c::c_int - } - - unsafe { ret_c_int(setns(borrowed_fd(fd), nstype)) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn unshare(flags: crate::thread::UnshareFlags) -> io::Result<()> { - unsafe { ret(c::unshare(flags.bits() as i32)) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn capget( - header: &mut linux_raw_sys::general::__user_cap_header_struct, - data: &mut [MaybeUninit], -) -> io::Result<()> { - syscall! { - fn capget( - hdrp: *mut linux_raw_sys::general::__user_cap_header_struct, - data: *mut linux_raw_sys::general::__user_cap_data_struct - ) via SYS_capget -> c::c_int - } - - unsafe { - ret(capget( - as_mut_ptr(header), - data.as_mut_ptr() - .cast::(), - )) - } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn capset( - header: &mut linux_raw_sys::general::__user_cap_header_struct, - data: &[linux_raw_sys::general::__user_cap_data_struct], -) -> io::Result<()> { - syscall! { - fn capset( - hdrp: *mut linux_raw_sys::general::__user_cap_header_struct, - data: *const linux_raw_sys::general::__user_cap_data_struct - ) via SYS_capset -> c::c_int - } - - unsafe { ret(capset(as_mut_ptr(header), data.as_ptr())) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn setuid_thread(uid: crate::ugid::Uid) -> io::Result<()> { - syscall! { - fn setuid(uid: c::uid_t) via SYS_setuid -> c::c_int - } - - unsafe { ret(setuid(uid.as_raw())) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn setresuid_thread( - ruid: crate::ugid::Uid, - euid: crate::ugid::Uid, - suid: crate::ugid::Uid, -) -> io::Result<()> { - #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] - const SYS: c::c_long = c::SYS_setresuid32 as c::c_long; - #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] - const SYS: c::c_long = c::SYS_setresuid as c::c_long; - - syscall! { - fn setresuid(ruid: c::uid_t, euid: c::uid_t, suid: c::uid_t) via SYS -> c::c_int - } - - unsafe { ret(setresuid(ruid.as_raw(), euid.as_raw(), suid.as_raw())) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn setgid_thread(gid: crate::ugid::Gid) -> io::Result<()> { - syscall! { - fn setgid(gid: c::gid_t) via SYS_setgid -> c::c_int - } - - unsafe { ret(setgid(gid.as_raw())) } -} - -#[cfg(linux_kernel)] -#[inline] -pub(crate) fn setresgid_thread( - rgid: crate::ugid::Gid, - egid: crate::ugid::Gid, - sgid: crate::ugid::Gid, -) -> io::Result<()> { - #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] - const SYS: c::c_long = c::SYS_setresgid32 as c::c_long; - #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] - const SYS: c::c_long = c::SYS_setresgid as c::c_long; - - syscall! { - fn setresgid(rgid: c::gid_t, egid: c::gid_t, sgid: c::gid_t) via SYS -> c::c_int - } - - unsafe { ret(setresgid(rgid.as_raw(), egid.as_raw(), sgid.as_raw())) } -} - -// TODO: This could be de-multiplexed. -#[cfg(linux_kernel)] -pub(crate) unsafe fn futex( - uaddr: *mut u32, - op: FutexOperation, - flags: FutexFlags, - val: u32, - utime: *const Timespec, - uaddr2: *mut u32, - val3: u32, -) -> io::Result { - #[cfg(all( - target_pointer_width = "32", - not(any(target_arch = "aarch64", target_arch = "x86_64")) - ))] - { - // TODO: Upstream this to the libc crate. - #[allow(non_upper_case_globals)] - const SYS_futex_time64: i32 = linux_raw_sys::general::__NR_futex_time64 as i32; - - syscall! { - fn futex_time64( - uaddr: *mut u32, - futex_op: c::c_int, - val: u32, - timeout: *const Timespec, - uaddr2: *mut u32, - val3: u32 - ) via SYS_futex_time64 -> c::ssize_t - } - - ret_usize(futex_time64( - uaddr, - op as i32 | flags.bits() as i32, - val, - utime, - uaddr2, - val3, - )) - .or_else(|err| { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - if err == io::Errno::NOSYS { - futex_old(uaddr, op, flags, val, utime, uaddr2, val3) - } else { - Err(err) - } - }) - } - - #[cfg(any( - target_pointer_width = "64", - target_arch = "aarch64", - target_arch = "x86_64" - ))] - { - syscall! { - fn futex( - uaddr: *mut u32, - futex_op: c::c_int, - val: u32, - timeout: *const linux_raw_sys::general::__kernel_timespec, - uaddr2: *mut u32, - val3: u32 - ) via SYS_futex -> c::c_long - } - - ret_usize(futex( - uaddr, - op as i32 | flags.bits() as i32, - val, - utime.cast(), - uaddr2, - val3, - ) as isize) - } -} - -#[cfg(linux_kernel)] -#[cfg(all( - target_pointer_width = "32", - not(any(target_arch = "aarch64", target_arch = "x86_64")) -))] -unsafe fn futex_old( - uaddr: *mut u32, - op: FutexOperation, - flags: FutexFlags, - val: u32, - utime: *const Timespec, - uaddr2: *mut u32, - val3: u32, -) -> io::Result { - syscall! { - fn futex( - uaddr: *mut u32, - futex_op: c::c_int, - val: u32, - timeout: *const linux_raw_sys::general::__kernel_old_timespec, - uaddr2: *mut u32, - val3: u32 - ) via SYS_futex -> c::c_long - } - - let old_utime = linux_raw_sys::general::__kernel_old_timespec { - tv_sec: (*utime).tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, - tv_nsec: (*utime).tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, - }; - ret_usize(futex( - uaddr, - op as i32 | flags.bits() as i32, - val, - &old_utime, - uaddr2, - val3, - ) as isize) -} diff --git a/third_party/rust/rustix/src/backend/libc/time/mod.rs b/third_party/rust/rustix/src/backend/libc/time/mod.rs deleted file mode 100644 index bff7fd564bda..000000000000 --- a/third_party/rust/rustix/src/backend/libc/time/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -#[cfg(not(windows))] -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/libc/time/syscalls.rs b/third_party/rust/rustix/src/backend/libc/time/syscalls.rs deleted file mode 100644 index 6b1c9fd03d40..000000000000 --- a/third_party/rust/rustix/src/backend/libc/time/syscalls.rs +++ /dev/null @@ -1,452 +0,0 @@ -//! libc syscalls supporting `rustix::time`. - -use crate::backend::c; -use crate::backend::conv::ret; -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(feature = "time")] -#[cfg(any(all(target_env = "gnu", fix_y2038), not(fix_y2038)))] -use crate::backend::time::types::LibcItimerspec; -#[cfg(not(target_os = "wasi"))] -use crate::clockid::{ClockId, DynamicClockId}; -use crate::io; -#[cfg(all(target_env = "gnu", fix_y2038))] -use crate::timespec::LibcTimespec; -use crate::timespec::Timespec; -use core::mem::MaybeUninit; -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(feature = "time")] -use { - crate::backend::conv::{borrowed_fd, ret_owned_fd}, - crate::fd::{BorrowedFd, OwnedFd}, - crate::time::{Itimerspec, TimerfdClockId, TimerfdFlags, TimerfdTimerFlags}, -}; - -#[cfg(all(target_env = "gnu", fix_y2038))] -weak!(fn __clock_gettime64(c::clockid_t, *mut LibcTimespec) -> c::c_int); -#[cfg(all(target_env = "gnu", fix_y2038))] -weak!(fn __clock_settime64(c::clockid_t, *const LibcTimespec) -> c::c_int); -#[cfg(all(target_env = "gnu", fix_y2038))] -weak!(fn __clock_getres64(c::clockid_t, *mut LibcTimespec) -> c::c_int); -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(all(target_env = "gnu", fix_y2038))] -#[cfg(feature = "time")] -weak!(fn __timerfd_gettime64(c::c_int, *mut LibcItimerspec) -> c::c_int); -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(all(target_env = "gnu", fix_y2038))] -#[cfg(feature = "time")] -weak!(fn __timerfd_settime64(c::c_int, c::c_int, *const LibcItimerspec, *mut LibcItimerspec) -> c::c_int); - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[inline] -#[must_use] -pub(crate) fn clock_getres(id: ClockId) -> Timespec { - // Old 32-bit version: libc has `clock_getres` but it is not y2038 safe by - // default. But there may be a `__clock_getres64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_clock_getres) = __clock_getres64.get() { - let mut timespec = MaybeUninit::::uninit(); - unsafe { - ret(libc_clock_getres(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); - return timespec.assume_init().into(); - } - } - - clock_getres_old(id) - } - - // Main version: libc is y2038 safe and has `clock_getres`. - #[cfg(not(fix_y2038))] - unsafe { - let mut timespec = MaybeUninit::::uninit(); - let _ = c::clock_getres(id as c::clockid_t, timespec.as_mut_ptr()); - timespec.assume_init() - } -} - -#[cfg(fix_y2038)] -#[must_use] -fn clock_getres_old(id: ClockId) -> Timespec { - let mut old_timespec = MaybeUninit::::uninit(); - - let old_timespec = unsafe { - ret(c::clock_getres( - id as c::clockid_t, - old_timespec.as_mut_ptr(), - )) - .unwrap(); - old_timespec.assume_init() - }; - - Timespec { - tv_sec: old_timespec.tv_sec.into(), - tv_nsec: old_timespec.tv_nsec.into(), - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn clock_gettime(id: ClockId) -> Timespec { - // Old 32-bit version: libc has `clock_gettime` but it is not y2038 safe by - // default. But there may be a `__clock_gettime64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_clock_gettime) = __clock_gettime64.get() { - let mut timespec = MaybeUninit::::uninit(); - unsafe { - ret(libc_clock_gettime( - id as c::clockid_t, - timespec.as_mut_ptr(), - )) - .unwrap(); - return timespec.assume_init().into(); - } - } - - clock_gettime_old(id) - } - - // Use `.unwrap()` here because `clock_getres` can fail if the clock itself - // overflows a number of seconds, but if that happens, the monotonic clocks - // can't maintain their invariants, or the realtime clocks aren't properly - // configured. - #[cfg(not(fix_y2038))] - unsafe { - let mut timespec = MaybeUninit::::uninit(); - ret(c::clock_gettime(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); - timespec.assume_init() - } -} - -#[cfg(fix_y2038)] -#[must_use] -fn clock_gettime_old(id: ClockId) -> Timespec { - let mut old_timespec = MaybeUninit::::uninit(); - - let old_timespec = unsafe { - ret(c::clock_gettime( - id as c::clockid_t, - old_timespec.as_mut_ptr(), - )) - .unwrap(); - old_timespec.assume_init() - }; - - Timespec { - tv_sec: old_timespec.tv_sec.into(), - tv_nsec: old_timespec.tv_nsec.into(), - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -pub(crate) fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result { - let id: c::clockid_t = match id { - DynamicClockId::Known(id) => id as c::clockid_t, - - #[cfg(linux_kernel)] - DynamicClockId::Dynamic(fd) => { - use crate::fd::AsRawFd; - const CLOCKFD: i32 = 3; - (!fd.as_raw_fd() << 3) | CLOCKFD - } - - #[cfg(not(linux_kernel))] - DynamicClockId::Dynamic(_fd) => { - // Dynamic clocks are not supported on this platform. - return Err(io::Errno::INVAL); - } - - #[cfg(linux_kernel)] - DynamicClockId::RealtimeAlarm => c::CLOCK_REALTIME_ALARM, - - #[cfg(linux_kernel)] - DynamicClockId::Tai => c::CLOCK_TAI, - - #[cfg(any( - freebsdlike, - linux_kernel, - target_os = "fuchsia", - target_os = "openbsd" - ))] - DynamicClockId::Boottime => c::CLOCK_BOOTTIME, - - #[cfg(any(linux_kernel, target_os = "fuchsia"))] - DynamicClockId::BoottimeAlarm => c::CLOCK_BOOTTIME_ALARM, - }; - - // Old 32-bit version: libc has `clock_gettime` but it is not y2038 - // safe by default. But there may be a `__clock_gettime64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_clock_gettime) = __clock_gettime64.get() { - let mut timespec = MaybeUninit::::uninit(); - unsafe { - ret(libc_clock_gettime( - id as c::clockid_t, - timespec.as_mut_ptr(), - ))?; - - return Ok(timespec.assume_init().into()); - } - } - - clock_gettime_dynamic_old(id) - } - - // Main version: libc is y2038 safe and has `clock_gettime`. - #[cfg(not(fix_y2038))] - unsafe { - let mut timespec = MaybeUninit::::uninit(); - - ret(c::clock_gettime(id as c::clockid_t, timespec.as_mut_ptr()))?; - - Ok(timespec.assume_init()) - } -} - -#[cfg(fix_y2038)] -#[inline] -fn clock_gettime_dynamic_old(id: c::clockid_t) -> io::Result { - let mut old_timespec = MaybeUninit::::uninit(); - - let old_timespec = unsafe { - ret(c::clock_gettime( - id as c::clockid_t, - old_timespec.as_mut_ptr(), - ))?; - - old_timespec.assume_init() - }; - - Ok(Timespec { - tv_sec: old_timespec.tv_sec.into(), - tv_nsec: old_timespec.tv_nsec.into(), - }) -} - -#[cfg(not(any( - target_os = "redox", - target_os = "wasi", - all(apple, not(target_os = "macos")) -)))] -#[inline] -pub(crate) fn clock_settime(id: ClockId, timespec: Timespec) -> io::Result<()> { - // Old 32-bit version: libc has `clock_gettime` but it is not y2038 safe by - // default. But there may be a `__clock_settime64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_clock_settime) = __clock_settime64.get() { - unsafe { - let mut new_timespec = core::mem::zeroed::(); - new_timespec.tv_sec = timespec.tv_sec; - new_timespec.tv_nsec = timespec.tv_nsec as _; - return ret(libc_clock_settime(id as c::clockid_t, &new_timespec)); - } - } - - clock_settime_old(id, timespec) - } - - // Main version: libc is y2038 safe and has `clock_settime`. - #[cfg(not(fix_y2038))] - unsafe { - ret(c::clock_settime(id as c::clockid_t, ×pec)) - } -} - -#[cfg(not(any( - target_os = "redox", - target_os = "wasi", - all(apple, not(target_os = "macos")) -)))] -#[cfg(fix_y2038)] -fn clock_settime_old(id: ClockId, timespec: Timespec) -> io::Result<()> { - let old_timespec = c::timespec { - tv_sec: timespec - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: timespec.tv_nsec as _, - }; - - unsafe { ret(c::clock_settime(id as c::clockid_t, &old_timespec)) } -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(feature = "time")] -pub(crate) fn timerfd_create(id: TimerfdClockId, flags: TimerfdFlags) -> io::Result { - unsafe { ret_owned_fd(c::timerfd_create(id as c::clockid_t, bitflags_bits!(flags))) } -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(feature = "time")] -pub(crate) fn timerfd_settime( - fd: BorrowedFd<'_>, - flags: TimerfdTimerFlags, - new_value: &Itimerspec, -) -> io::Result { - // Old 32-bit version: libc has `timerfd_settime` but it is not y2038 safe - // by default. But there may be a `__timerfd_settime64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_timerfd_settime) = __timerfd_settime64.get() { - let mut result = MaybeUninit::::uninit(); - unsafe { - ret(libc_timerfd_settime( - borrowed_fd(fd), - bitflags_bits!(flags), - &new_value.clone().into(), - result.as_mut_ptr(), - ))?; - return Ok(result.assume_init().into()); - } - } - - timerfd_settime_old(fd, flags, new_value) - } - - #[cfg(not(fix_y2038))] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(c::timerfd_settime( - borrowed_fd(fd), - bitflags_bits!(flags), - new_value, - result.as_mut_ptr(), - ))?; - Ok(result.assume_init()) - } -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -#[cfg(feature = "time")] -fn timerfd_settime_old( - fd: BorrowedFd<'_>, - flags: TimerfdTimerFlags, - new_value: &Itimerspec, -) -> io::Result { - let mut old_result = MaybeUninit::::uninit(); - - // Convert `new_value` to the old `itimerspec` format. - let old_new_value = c::itimerspec { - it_interval: c::timespec { - tv_sec: new_value - .it_interval - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: new_value - .it_interval - .tv_nsec - .try_into() - .map_err(|_| io::Errno::INVAL)?, - }, - it_value: c::timespec { - tv_sec: new_value - .it_value - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: new_value - .it_value - .tv_nsec - .try_into() - .map_err(|_| io::Errno::INVAL)?, - }, - }; - - let old_result = unsafe { - ret(c::timerfd_settime( - borrowed_fd(fd), - bitflags_bits!(flags), - &old_new_value, - old_result.as_mut_ptr(), - ))?; - old_result.assume_init() - }; - - Ok(Itimerspec { - it_interval: Timespec { - tv_sec: old_result - .it_interval - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: old_result.it_interval.tv_nsec as _, - }, - it_value: Timespec { - tv_sec: old_result - .it_interval - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: old_result.it_interval.tv_nsec as _, - }, - }) -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(feature = "time")] -pub(crate) fn timerfd_gettime(fd: BorrowedFd<'_>) -> io::Result { - // Old 32-bit version: libc has `timerfd_gettime` but it is not y2038 safe - // by default. But there may be a `__timerfd_gettime64` we can use. - #[cfg(fix_y2038)] - { - #[cfg(target_env = "gnu")] - if let Some(libc_timerfd_gettime) = __timerfd_gettime64.get() { - let mut result = MaybeUninit::::uninit(); - unsafe { - ret(libc_timerfd_gettime(borrowed_fd(fd), result.as_mut_ptr()))?; - return Ok(result.assume_init().into()); - } - } - - timerfd_gettime_old(fd) - } - - #[cfg(not(fix_y2038))] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(c::timerfd_gettime(borrowed_fd(fd), result.as_mut_ptr()))?; - Ok(result.assume_init()) - } -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -#[cfg(feature = "time")] -fn timerfd_gettime_old(fd: BorrowedFd<'_>) -> io::Result { - let mut old_result = MaybeUninit::::uninit(); - - let old_result = unsafe { - ret(c::timerfd_gettime(borrowed_fd(fd), old_result.as_mut_ptr()))?; - old_result.assume_init() - }; - - Ok(Itimerspec { - it_interval: Timespec { - tv_sec: old_result - .it_interval - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: old_result.it_interval.tv_nsec as _, - }, - it_value: Timespec { - tv_sec: old_result - .it_interval - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: old_result.it_interval.tv_nsec as _, - }, - }) -} diff --git a/third_party/rust/rustix/src/backend/libc/time/types.rs b/third_party/rust/rustix/src/backend/libc/time/types.rs deleted file mode 100644 index 4d8c6bdab883..000000000000 --- a/third_party/rust/rustix/src/backend/libc/time/types.rs +++ /dev/null @@ -1,168 +0,0 @@ -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -use crate::backend::c; -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -use crate::timespec::LibcTimespec; -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -use crate::timespec::Timespec; -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -use bitflags::bitflags; - -/// `struct itimerspec` for use with [`timerfd_gettime`] and -/// [`timerfd_settime`]. -/// -/// [`timerfd_gettime`]: crate::time::timerfd_gettime -/// [`timerfd_settime`]: crate::time::timerfd_settime -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(not(fix_y2038))] -pub type Itimerspec = c::itimerspec; - -/// `struct itimerspec` for use with [`timerfd_gettime`] and -/// [`timerfd_settime`]. -/// -/// [`timerfd_gettime`]: crate::time::timerfd_gettime -/// [`timerfd_settime`]: crate::time::timerfd_settime -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -#[repr(C)] -#[derive(Debug, Clone)] -pub struct Itimerspec { - /// The interval of an interval timer. - pub it_interval: Timespec, - /// Time remaining in the current interval. - pub it_value: Timespec, -} - -/// On most platforms, `LibcItimerspec` is just `Itimerspec`. -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(not(fix_y2038))] -pub(crate) type LibcItimerspec = Itimerspec; - -/// On 32-bit glibc platforms, `LibcTimespec` differs from `Timespec`, so we -/// define our own struct, with bidirectional `From` impls. -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -#[repr(C)] -#[derive(Debug, Clone)] -pub(crate) struct LibcItimerspec { - pub it_interval: LibcTimespec, - pub it_value: LibcTimespec, -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -impl From for Itimerspec { - #[inline] - fn from(t: LibcItimerspec) -> Self { - Self { - it_interval: t.it_interval.into(), - it_value: t.it_value.into(), - } - } -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[cfg(fix_y2038)] -impl From for LibcItimerspec { - #[inline] - fn from(t: Itimerspec) -> Self { - Self { - it_interval: t.it_interval.into(), - it_value: t.it_value.into(), - } - } -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -bitflags! { - /// `TFD_*` flags for use with [`timerfd_create`]. - /// - /// [`timerfd_create`]: crate::time::timerfd_create - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct TimerfdFlags: u32 { - /// `TFD_NONBLOCK` - const NONBLOCK = bitcast!(c::TFD_NONBLOCK); - - /// `TFD_CLOEXEC` - const CLOEXEC = bitcast!(c::TFD_CLOEXEC); - - /// - const _ = !0; - } -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -bitflags! { - /// `TFD_TIMER_*` flags for use with [`timerfd_settime`]. - /// - /// [`timerfd_settime`]: crate::time::timerfd_settime - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct TimerfdTimerFlags: u32 { - /// `TFD_TIMER_ABSTIME` - const ABSTIME = bitcast!(c::TFD_TIMER_ABSTIME); - - /// `TFD_TIMER_CANCEL_ON_SET` - #[cfg(linux_kernel)] - const CANCEL_ON_SET = bitcast!(c::TFD_TIMER_CANCEL_ON_SET); - - /// - const _ = !0; - } -} - -/// `CLOCK_*` constants for use with [`timerfd_create`]. -/// -/// [`timerfd_create`]: crate::time::timerfd_create -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] -#[repr(u32)] -#[non_exhaustive] -pub enum TimerfdClockId { - /// `CLOCK_REALTIME`—A clock that tells the “real” time. - /// - /// This is a clock that tells the amount of time elapsed since the Unix - /// epoch, 1970-01-01T00:00:00Z. The clock is externally settable, so it is - /// not monotonic. Successive reads may see decreasing times, so it isn't - /// reliable for measuring durations. - Realtime = bitcast!(c::CLOCK_REALTIME), - - /// `CLOCK_MONOTONIC`—A clock that tells an abstract time. - /// - /// Unlike `Realtime`, this clock is not based on a fixed known epoch, so - /// individual times aren't meaningful. However, since it isn't settable, - /// it is reliable for measuring durations. - /// - /// This clock does not advance while the system is suspended; see - /// `Boottime` for a clock that does. - Monotonic = bitcast!(c::CLOCK_MONOTONIC), - - /// `CLOCK_BOOTTIME`—Like `Monotonic`, but advances while suspended. - /// - /// This clock is similar to `Monotonic`, but does advance while the system - /// is suspended. - Boottime = bitcast!(c::CLOCK_BOOTTIME), - - /// `CLOCK_REALTIME_ALARM`—Like `Realtime`, but wakes a suspended system. - /// - /// This clock is like `Realtime`, but can wake up a suspended system. - /// - /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. - RealtimeAlarm = bitcast!(c::CLOCK_REALTIME_ALARM), - - /// `CLOCK_BOOTTIME_ALARM`—Like `Boottime`, but wakes a suspended system. - /// - /// This clock is like `Boottime`, but can wake up a suspended system. - /// - /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. - BoottimeAlarm = bitcast!(c::CLOCK_BOOTTIME_ALARM), -} - -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -#[test] -fn test_types() { - assert_eq_size!(TimerfdFlags, c::c_int); - assert_eq_size!(TimerfdTimerFlags, c::c_int); -} diff --git a/third_party/rust/rustix/src/backend/libc/ugid/mod.rs b/third_party/rust/rustix/src/backend/libc/ugid/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/libc/ugid/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/libc/ugid/syscalls.rs b/third_party/rust/rustix/src/backend/libc/ugid/syscalls.rs deleted file mode 100644 index 0d3f622dc275..000000000000 --- a/third_party/rust/rustix/src/backend/libc/ugid/syscalls.rs +++ /dev/null @@ -1,42 +0,0 @@ -use crate::backend::c; -use crate::ugid::{Gid, Uid}; - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn getuid() -> Uid { - unsafe { - let uid = c::getuid(); - Uid::from_raw(uid) - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn geteuid() -> Uid { - unsafe { - let uid = c::geteuid(); - Uid::from_raw(uid) - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn getgid() -> Gid { - unsafe { - let gid = c::getgid(); - Gid::from_raw(gid) - } -} - -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub(crate) fn getegid() -> Gid { - unsafe { - let gid = c::getegid(); - Gid::from_raw(gid) - } -} diff --git a/third_party/rust/rustix/src/backend/libc/winsock_c.rs b/third_party/rust/rustix/src/backend/libc/winsock_c.rs deleted file mode 100644 index 0a1554a868a8..000000000000 --- a/third_party/rust/rustix/src/backend/libc/winsock_c.rs +++ /dev/null @@ -1,59 +0,0 @@ -//! Adapt the Winsock2 API to resemble a POSIX-style libc API. - -#![allow(unused_imports)] -#![allow(non_camel_case_types)] -#![allow(dead_code)] - -use windows_sys::Win32::Networking::WinSock; - -// Define the basic C types. With Rust 1.64, we can use these from `core::ffi`. -pub(crate) type c_schar = i8; -pub(crate) type c_uchar = u8; -pub(crate) type c_short = i16; -pub(crate) type c_ushort = u16; -pub(crate) type c_int = i32; -pub(crate) type c_uint = u32; -pub(crate) type c_longlong = i64; -pub(crate) type c_ulonglong = u64; -pub(crate) type ssize_t = isize; -pub(crate) type c_char = i8; -pub(crate) type c_long = i32; -pub(crate) type c_ulong = u32; -pub(crate) use core::ffi::c_void; - -// windows-sys declares these constants as u16. For better compatibility -// with Unix-family APIs, redeclare them as u32. -pub(crate) const AF_INET: i32 = WinSock::AF_INET as _; -pub(crate) const AF_INET6: i32 = WinSock::AF_INET6 as _; -pub(crate) const AF_UNSPEC: i32 = WinSock::AF_UNSPEC as _; - -// Include the contents of `WinSock`, renaming as needed to match POSIX. -// -// Use `WSA_E_CANCELLED` for `ECANCELED` instead of `WSAECANCELLED`, because -// `WSAECANCELLED` will be removed in the future. -// -pub(crate) use WinSock::{ - closesocket as close, ioctlsocket as ioctl, WSAPoll as poll, ADDRESS_FAMILY as sa_family_t, - ADDRINFOA as addrinfo, IN6_ADDR as in6_addr, IN_ADDR as in_addr, IPV6_MREQ as ipv6_mreq, - IP_MREQ as ip_mreq, LINGER as linger, SD_BOTH as SHUT_RDWR, SD_RECEIVE as SHUT_RD, - SD_SEND as SHUT_WR, SOCKADDR as sockaddr, SOCKADDR_IN as sockaddr_in, - SOCKADDR_IN6 as sockaddr_in6, SOCKADDR_STORAGE as sockaddr_storage, WSAEACCES as EACCES, - WSAEADDRINUSE as EADDRINUSE, WSAEADDRNOTAVAIL as EADDRNOTAVAIL, - WSAEAFNOSUPPORT as EAFNOSUPPORT, WSAEALREADY as EALREADY, WSAEBADF as EBADF, - WSAECONNABORTED as ECONNABORTED, WSAECONNREFUSED as ECONNREFUSED, WSAECONNRESET as ECONNRESET, - WSAEDESTADDRREQ as EDESTADDRREQ, WSAEDISCON as EDISCON, WSAEDQUOT as EDQUOT, - WSAEFAULT as EFAULT, WSAEHOSTDOWN as EHOSTDOWN, WSAEHOSTUNREACH as EHOSTUNREACH, - WSAEINPROGRESS as EINPROGRESS, WSAEINTR as EINTR, WSAEINVAL as EINVAL, - WSAEINVALIDPROCTABLE as EINVALIDPROCTABLE, WSAEINVALIDPROVIDER as EINVALIDPROVIDER, - WSAEISCONN as EISCONN, WSAELOOP as ELOOP, WSAEMFILE as EMFILE, WSAEMSGSIZE as EMSGSIZE, - WSAENAMETOOLONG as ENAMETOOLONG, WSAENETDOWN as ENETDOWN, WSAENETRESET as ENETRESET, - WSAENETUNREACH as ENETUNREACH, WSAENOBUFS as ENOBUFS, WSAENOMORE as ENOMORE, - WSAENOPROTOOPT as ENOPROTOOPT, WSAENOTCONN as ENOTCONN, WSAENOTEMPTY as ENOTEMPTY, - WSAENOTSOCK as ENOTSOCK, WSAEOPNOTSUPP as EOPNOTSUPP, WSAEPFNOSUPPORT as EPFNOSUPPORT, - WSAEPROCLIM as EPROCLIM, WSAEPROTONOSUPPORT as EPROTONOSUPPORT, WSAEPROTOTYPE as EPROTOTYPE, - WSAEPROVIDERFAILEDINIT as EPROVIDERFAILEDINIT, WSAEREFUSED as EREFUSED, WSAEREMOTE as EREMOTE, - WSAESHUTDOWN as ESHUTDOWN, WSAESOCKTNOSUPPORT as ESOCKTNOSUPPORT, WSAESTALE as ESTALE, - WSAETIMEDOUT as ETIMEDOUT, WSAETOOMANYREFS as ETOOMANYREFS, WSAEUSERS as EUSERS, - WSAEWOULDBLOCK as EWOULDBLOCK, WSAEWOULDBLOCK as EAGAIN, WSAPOLLFD as pollfd, - WSA_E_CANCELLED as ECANCELED, *, -}; diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/aarch64.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/aarch64.rs deleted file mode 100644 index d4cf2472e544..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/aarch64.rs +++ /dev/null @@ -1,268 +0,0 @@ -//! aarch64 Linux system calls. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[cfg(target_pointer_width = "32")] -compile_error!("arm64-ilp32 is not supported yet"); - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - lateout("x0") r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "svc 0", - in("x8") nr.to_asm(), - in("x0") a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - in("x3") a3.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - in("x3") a3.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - in("x3") a3.to_asm(), - in("x4") a4.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - in("x3") a3.to_asm(), - in("x4") a4.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - in("x3") a3.to_asm(), - in("x4") a4.to_asm(), - in("x5") a5.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("x8") nr.to_asm(), - inlateout("x0") a0.to_asm() => r0, - in("x1") a1.to_asm(), - in("x2") a2.to_asm(), - in("x3") a3.to_asm(), - in("x4") a4.to_asm(), - in("x5") a5.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/arm.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/arm.rs deleted file mode 100644 index 77c1f82f4756..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/arm.rs +++ /dev/null @@ -1,265 +0,0 @@ -//! arm Linux system calls. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - lateout("r0") r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "svc 0", - in("r7") nr.to_asm(), - in("r0") a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - in("r5") a5.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "svc 0", - in("r7") nr.to_asm(), - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - in("r5") a5.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/mips.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/mips.rs deleted file mode 100644 index 37932e02bf4b..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/mips.rs +++ /dev/null @@ -1,543 +0,0 @@ -//! mipsel Linux system calls. -//! -//! On mipsel, Linux indicates success or failure using `$a3` rather -//! than by returning a negative error code as most other architectures do. -//! -//! Mips-family platforms have a special calling convention for `__NR_pipe`, -//! however we use `__NR_pipe2` instead to avoid having to implement it. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, A6, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "syscall", - in("$2" /*$v0*/) nr.to_asm(), - in("$4" /*$a0*/) a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "sw {}, 20($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - in(reg) a5.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "sw {}, 20($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - in(reg) a5.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall7_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, - a6: ArgReg<'_, A6>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "sw {}, 20($sp)", - "sw {}, 24($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - in(reg) a5.to_asm(), - in(reg) a6.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/mips32r6.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/mips32r6.rs deleted file mode 100644 index c2d92447b856..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/mips32r6.rs +++ /dev/null @@ -1,543 +0,0 @@ -//! mipsisa32r6el Linux system calls. -//! -//! On mipsisa32r6el, Linux indicates success or failure using `$a3` rather -//! than by returning a negative error code as most other architectures do. -//! -//! Mips-family platforms have a special calling convention for `__NR_pipe`, -//! however we use `__NR_pipe2` instead to avoid having to implement it. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, A6, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "syscall", - in("$2" /*$v0*/) nr.to_asm(), - in("$4" /*$a0*/) a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "sw {}, 20($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - in(reg) a5.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "sw {}, 20($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - in(reg) a5.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall7_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, - a6: ArgReg<'_, A6>, -) -> RetReg { - let x0; - let err: usize; - asm!( - ".set noat", - "subu $sp, 32", - "sw {}, 16($sp)", - "sw {}, 20($sp)", - "sw {}, 24($sp)", - "syscall", - "addu $sp, 32", - ".set at", - in(reg) a4.to_asm(), - in(reg) a5.to_asm(), - in(reg) a6.to_asm(), - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$t0*/) _, - lateout("$9" /*$t1*/) _, - lateout("$10" /*$t2*/) _, - lateout("$11" /*$t3*/) _, - lateout("$12" /*$t4*/) _, - lateout("$13" /*$t5*/) _, - lateout("$14" /*$t6*/) _, - lateout("$15" /*$t7*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/mips64.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/mips64.rs deleted file mode 100644 index 244daf3efb3b..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/mips64.rs +++ /dev/null @@ -1,466 +0,0 @@ -//! mips64el Linux system calls. -//! -//! On mips64el, Linux indicates success or failure using `$a3` (`$7`) rather -//! than by returning a negative error code as most other architectures do. -//! -//! Mips-family platforms have a special calling convention for `__NR_pipe`, -//! however we use `__NR_pipe2` instead to avoid having to implement it. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "syscall", - in("$2" /*$v0*/) nr.to_asm(), - in("$4" /*$a0*/) a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - inlateout("$9" /*$a5*/) a5.to_asm() => _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - inlateout("$9" /*$a5*/) a5.to_asm() => _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/mips64r6.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/mips64r6.rs deleted file mode 100644 index 8c06d9ee90b0..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/mips64r6.rs +++ /dev/null @@ -1,470 +0,0 @@ -//! mipsisa64r6el Linux system calls. -//! -//! On mipsisa64r6el, Linux indicates success or failure using `$a3` (`$7`) -//! rather than by returning a negative error code as most other architectures -//! do. -//! -//! Mips-family platforms have a special calling convention for `__NR_pipe`, -//! however we use `__NR_pipe2` instead to avoid having to implement it. -//! -//! Note that MIPS R6 inline assembly currently doesn't differ from MIPS, -//! because no explicit call of R6-only or R2-only instructions exist here. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "syscall", - in("$2" /*$v0*/) nr.to_asm(), - in("$4" /*$a0*/) a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - lateout("$7" /*$a3*/) err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - lateout("$8" /*$a4*/) _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - lateout("$9" /*$a5*/) _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - inlateout("$9" /*$a5*/) a5.to_asm() => _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let x0; - let err: usize; - asm!( - "syscall", - inlateout("$2" /*$v0*/) nr.to_asm() => x0, - in("$4" /*$a0*/) a0.to_asm(), - in("$5" /*$a1*/) a1.to_asm(), - in("$6" /*$a2*/) a2.to_asm(), - inlateout("$7" /*$a3*/) a3.to_asm() => err, - inlateout("$8" /*$a4*/) a4.to_asm() => _, - inlateout("$9" /*$a5*/) a5.to_asm() => _, - lateout("$10" /*$a6*/) _, - lateout("$11" /*$a7*/) _, - lateout("$12" /*$t0*/) _, - lateout("$13" /*$t1*/) _, - lateout("$14" /*$t2*/) _, - lateout("$15" /*$t3*/) _, - lateout("$24" /*$t8*/) _, - lateout("$25" /*$t9*/) _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(if err != 0 { - (x0 as usize).wrapping_neg() as *mut _ - } else { - x0 - }) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/mod.rs deleted file mode 100644 index ac9e25fa7cbd..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/mod.rs +++ /dev/null @@ -1,317 +0,0 @@ -//! Architecture-specific syscall code. -//! -//! This module also has a `choose` submodule which chooses a scheme and is -//! what most of the `rustix` syscalls use. -//! -//! Compilers should really have intrinsics for making system calls. They're -//! much like regular calls, with custom calling conventions, and calling -//! conventions are otherwise the compiler's job. But for now, use inline asm. -//! -//! The calling conventions for Linux syscalls are [documented here]. -//! -//! [documented here]: https://man7.org/linux/man-pages/man2/syscall.2.html -//! -//! # Safety -//! -//! This contains the inline `asm` statements performing the syscall -//! instructions. - -#![allow(unsafe_code)] -#![cfg_attr(not(feature = "all-apis"), allow(unused_imports))] -// We'll use as many arguments as syscalls need. -#![allow(clippy::too_many_arguments)] - -// These functions always use the machine's syscall instruction, even when it -// isn't the fastest option available. -#[cfg_attr(target_arch = "aarch64", path = "aarch64.rs")] -#[cfg_attr(all(target_arch = "arm", not(thumb_mode)), path = "arm.rs")] -#[cfg_attr(all(target_arch = "arm", thumb_mode), path = "thumb.rs")] -#[cfg_attr(target_arch = "mips", path = "mips.rs")] -#[cfg_attr(target_arch = "mips32r6", path = "mips32r6.rs")] -#[cfg_attr(target_arch = "mips64", path = "mips64.rs")] -#[cfg_attr(target_arch = "mips64r6", path = "mips64r6.rs")] -#[cfg_attr(target_arch = "powerpc64", path = "powerpc64.rs")] -#[cfg_attr(target_arch = "riscv64", path = "riscv64.rs")] -#[cfg_attr(target_arch = "x86", path = "x86.rs")] -#[cfg_attr(target_arch = "x86_64", path = "x86_64.rs")] -pub(in crate::backend) mod asm; - -// On most architectures, the architecture syscall instruction is fast, so use -// it directly. -#[cfg(any( - target_arch = "arm", - target_arch = "aarch64", - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "powerpc64", - target_arch = "riscv64", - target_arch = "x86_64", -))] -pub(in crate::backend) use self::asm as choose; - -// On 32-bit x86, use vDSO wrappers for all syscalls. We could use the -// architecture syscall instruction (`int 0x80`), but the vDSO kernel_vsyscall -// mechanism is much faster. -#[cfg(target_arch = "x86")] -pub(in crate::backend) use super::vdso_wrappers::x86_via_vdso as choose; - -// This would be the code for always using `int 0x80` on 32-bit x86. -//#[cfg(target_arch = "x86")] -//pub(in crate::backend) use self::asm as choose; - -// Macros for invoking system calls. -// -// These factor out: -// - Calling `nr` on the syscall number to convert it into `SyscallNumber`. -// - Calling `.into()` on each of the arguments to convert them into `ArgReg`. -// - Qualifying the `syscall*` and `__NR_*` identifiers. -// - Counting the number of arguments. -macro_rules! syscall { - ($nr:ident) => { - $crate::backend::arch::choose::syscall0($crate::backend::reg::nr( - linux_raw_sys::general::$nr, - )) - }; - - ($nr:ident, $a0:expr) => { - $crate::backend::arch::choose::syscall1( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr) => { - $crate::backend::arch::choose::syscall2( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr) => { - $crate::backend::arch::choose::syscall3( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr) => { - $crate::backend::arch::choose::syscall4( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr) => { - $crate::backend::arch::choose::syscall5( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr) => { - $crate::backend::arch::choose::syscall6( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - $a5.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr, $a6:expr) => { - $crate::backend::arch::choose::syscall7( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - $a5.into(), - $a6.into(), - ) - }; -} - -// Macro to invoke a syscall that always uses direct assembly, rather than the -// vDSO. Useful when still finding the vDSO. -#[allow(unused_macros)] -macro_rules! syscall_always_asm { - ($nr:ident) => { - $crate::backend::arch::asm::syscall0($crate::backend::reg::nr(linux_raw_sys::general::$nr)) - }; - - ($nr:ident, $a0:expr) => { - $crate::backend::arch::asm::syscall1( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr) => { - $crate::backend::arch::asm::syscall2( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr) => { - $crate::backend::arch::asm::syscall3( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr) => { - $crate::backend::arch::asm::syscall4( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr) => { - $crate::backend::arch::asm::syscall5( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr) => { - $crate::backend::arch::asm::syscall6( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - $a5.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr, $a6:expr) => { - $crate::backend::arch::asm::syscall7( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - $a5.into(), - $a6.into(), - ) - }; -} - -/// Like `syscall`, but adds the `readonly` attribute to the inline asm, which -/// indicates that the syscall does not mutate any memory. -macro_rules! syscall_readonly { - ($nr:ident) => { - $crate::backend::arch::choose::syscall0_readonly($crate::backend::reg::nr( - linux_raw_sys::general::$nr, - )) - }; - - ($nr:ident, $a0:expr) => { - $crate::backend::arch::choose::syscall1_readonly( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr) => { - $crate::backend::arch::choose::syscall2_readonly( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr) => { - $crate::backend::arch::choose::syscall3_readonly( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr) => { - $crate::backend::arch::choose::syscall4_readonly( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr) => { - $crate::backend::arch::choose::syscall5_readonly( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr) => { - $crate::backend::arch::choose::syscall6_readonly( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - $a5.into(), - ) - }; - - ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr, $a6:expr) => { - $crate::backend::arch::choose::syscall7_readonly( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - $a1.into(), - $a2.into(), - $a3.into(), - $a4.into(), - $a5.into(), - $a6.into(), - ) - }; -} - -/// Like `syscall`, but indicates that the syscall does not return. -#[cfg(feature = "runtime")] -macro_rules! syscall_noreturn { - ($nr:ident, $a0:expr) => { - $crate::backend::arch::choose::syscall1_noreturn( - $crate::backend::reg::nr(linux_raw_sys::general::$nr), - $a0.into(), - ) - }; -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/powerpc64.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/powerpc64.rs deleted file mode 100644 index 14866c2dd22f..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/powerpc64.rs +++ /dev/null @@ -1,413 +0,0 @@ -//! powerpc64le Linux system calls. -//! -//! On powerpc64le, Linux indicates success or failure using `cr0.SO` rather -//! than by returning a negative error code as most other architectures do. In -//! theory we could immediately translate this into a `Result`, and it'd save a -//! few branches. And in theory we could have specialized sequences for use -//! with syscalls that are known to never fail. However, those would require -//! more extensive changes in rustix's platform-independent code. For now, we -//! check the flag and negate the error value to make PowerPC64 look like other -//! architectures. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - lateout("r3") r0, - lateout("r4") _, - lateout("r5") _, - lateout("r6") _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - lateout("r4") _, - lateout("r5") _, - lateout("r6") _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - lateout("r4") _, - lateout("r5") _, - lateout("r6") _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "sc", - in("r0") nr.to_asm(), - in("r3") a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - lateout("r5") _, - lateout("r6") _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - lateout("r5") _, - lateout("r6") _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - lateout("r6") _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - lateout("r6") _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - inlateout("r6") a3.to_asm() => _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - inlateout("r6") a3.to_asm() => _, - lateout("r7") _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - inlateout("r6") a3.to_asm() => _, - inlateout("r7") a4.to_asm() => _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - inlateout("r6") a3.to_asm() => _, - inlateout("r7") a4.to_asm() => _, - lateout("r8") _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - inlateout("r6") a3.to_asm() => _, - inlateout("r7") a4.to_asm() => _, - inlateout("r8") a5.to_asm() => _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "sc", - "bns 0f", - "neg 3, 3", - "0:", - inlateout("r0") nr.to_asm() => _, - inlateout("r3") a0.to_asm() => r0, - inlateout("r4") a1.to_asm() => _, - inlateout("r5") a2.to_asm() => _, - inlateout("r6") a3.to_asm() => _, - inlateout("r7") a4.to_asm() => _, - inlateout("r8") a5.to_asm() => _, - lateout("r9") _, - lateout("r10") _, - lateout("r11") _, - lateout("r12") _, - lateout("cr0") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/riscv64.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/riscv64.rs deleted file mode 100644 index 7b8533d752af..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/riscv64.rs +++ /dev/null @@ -1,265 +0,0 @@ -//! riscv64 Linux system calls. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - lateout("a0") r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "ecall", - in("a7") nr.to_asm(), - in("a0") a0.to_asm(), - options(nostack, noreturn) - ); -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - in("a3") a3.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - in("a3") a3.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - in("a3") a3.to_asm(), - in("a4") a4.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - in("a3") a3.to_asm(), - in("a4") a4.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - in("a3") a3.to_asm(), - in("a4") a4.to_asm(), - in("a5") a5.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "ecall", - in("a7") nr.to_asm(), - inlateout("a0") a0.to_asm() => r0, - in("a1") a1.to_asm(), - in("a2") a2.to_asm(), - in("a3") a3.to_asm(), - in("a4") a4.to_asm(), - in("a5") a5.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/thumb.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/thumb.rs deleted file mode 100644 index 73f9c1c26a29..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/thumb.rs +++ /dev/null @@ -1,322 +0,0 @@ -//! arm Linux system calls, using thumb-mode. -//! -//! In thumb-mode, r7 is the frame pointer and is not permitted to be used in -//! an inline asm operand, so we have to use a different register and copy it -//! into r7 inside the inline asm. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - lateout("r0") r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "mov r7, {nr}", - "svc 0", - nr = in(reg) nr.to_asm(), - in("r0") a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - in("r5") a5.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "mov {tmp}, r7", - "mov r7, {nr}", - "svc 0", - "mov r7, {tmp}", - nr = in(reg) nr.to_asm(), - tmp = out(reg) _, - inlateout("r0") a0.to_asm() => r0, - in("r1") a1.to_asm(), - in("r2") a2.to_asm(), - in("r3") a3.to_asm(), - in("r4") a4.to_asm(), - in("r5") a5.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/x86.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/x86.rs deleted file mode 100644 index 043a549972ca..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/x86.rs +++ /dev/null @@ -1,490 +0,0 @@ -//! 32-bit x86 Linux system calls. -//! -//! There are two forms; `indirect_*` which take a callee, which allow calling -//! through the vDSO when possible, and plain forms, which use the `int 0x80` -//! instruction. -//! -//! Most `rustix` syscalls use the vsyscall mechanism rather than going using -//! `int 0x80` sequences, as vsyscall is much faster. -//! -//! Syscalls made with `int 0x80` preserve the flags register, while syscalls -//! made using vsyscall do not. - -#![allow(dead_code)] - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use crate::backend::vdso_wrappers::SyscallType; -use core::arch::asm; - -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall0( - callee: SyscallType, - nr: SyscallNumber<'_>, -) -> RetReg { - let r0; - asm!( - "call {callee}", - callee = in(reg) callee, - inlateout("eax") nr.to_asm() => r0, - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall1( - callee: SyscallType, - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "call {callee}", - callee = in(reg) callee, - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall1_noreturn( - callee: SyscallType, - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> ! { - asm!( - "call {callee}", - callee = in(reg) callee, - in("eax") nr.to_asm(), - in("ebx") a0.to_asm(), - options(noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall2( - callee: SyscallType, - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "call {callee}", - callee = in(reg) callee, - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall3( - callee: SyscallType, - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "call {callee}", - callee = in(reg) callee, - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall4( - callee: SyscallType, - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - // a3 should go in esi, but `asm!` won't let us use it as an operand. - // Temporarily swap it into place, and then swap it back afterward. - // - // We hard-code the callee operand to use edi instead of `in(reg)` because - // even though we can't name esi as an operand, the compiler can use esi to - // satisfy `in(reg)`. - asm!( - "xchg esi, {a3}", - "call edi", - "xchg esi, {a3}", - a3 = in(reg) a3.to_asm(), - in("edi") callee, - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall5( - callee: SyscallType, - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - // Oof. a3 should go in esi, and `asm!` won't let us use that register as - // an operand. And we can't request stack slots. And there are no other - // registers free. Use eax as a temporary pointer to a slice, since it gets - // clobbered as the return value anyway. - asm!( - "push esi", - "push DWORD PTR [eax + 0]", - "mov esi, DWORD PTR [eax + 4]", - "mov eax, DWORD PTR [eax + 8]", - "call DWORD PTR [esp]", - "pop esi", - "pop esi", - inout("eax") &[callee as _, a3.to_asm(), nr.to_asm()] => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - in("edi") a4.to_asm(), - ); - FromAsm::from_asm(r0) -} - -#[allow(clippy::too_many_arguments)] -#[inline] -pub(in crate::backend) unsafe fn indirect_syscall6( - callee: SyscallType, - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - // Oof again. a3 should go in esi, and a5 should go in ebp, and `asm!` - // won't let us use either of those registers as operands. And we can't - // request stack slots. And there are no other registers free. Use eax as a - // temporary pointer to a slice, since it gets clobbered as the return - // value anyway. - // - // This is another reason that syscalls should be compiler intrinsics - // rather than inline asm. - asm!( - "push ebp", - "push esi", - "push DWORD PTR [eax + 0]", - "mov esi, DWORD PTR [eax + 4]", - "mov ebp, DWORD PTR [eax + 8]", - "mov eax, DWORD PTR [eax + 12]", - "call DWORD PTR [esp]", - "pop esi", - "pop esi", - "pop ebp", - inout("eax") &[callee as _, a3.to_asm(), a5.to_asm(), nr.to_asm()] => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - in("edi") a4.to_asm(), - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { - let r0; - asm!( - "int $$0x80", - inlateout("eax") nr.to_asm() => r0, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let r0; - asm!( - "int $$0x80", - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "int $$0x80", - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "int $$0x80", - in("eax") nr.to_asm(), - in("ebx") a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "int $$0x80", - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "int $$0x80", - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "int $$0x80", - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "int $$0x80", - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - // a3 should go in esi, but `asm!` won't let us use it as an operand. - // Temporarily swap it into place, and then swap it back afterward. - asm!( - "xchg esi, {a3}", - "int $$0x80", - "xchg esi, {a3}", - a3 = in(reg) a3.to_asm(), - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "xchg esi, {a3}", - "int $$0x80", - "xchg esi, {a3}", - a3 = in(reg) a3.to_asm(), - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - // As in `syscall4`, use xchg to handle a3. a4 should go in edi, and we can - // use that register as an operand. Unlike in `indirect_syscall5`, we don't - // have a `callee` operand taking up a register, so we have enough - // registers and don't need to use a slice. - asm!( - "xchg esi, {a3}", - "int $$0x80", - "xchg esi, {a3}", - a3 = in(reg) a3.to_asm(), - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - in("edi") a4.to_asm(), - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - // See the comments in `syscall5`. - asm!( - "xchg esi, {a3}", - "int $$0x80", - "xchg esi, {a3}", - a3 = in(reg) a3.to_asm(), - inlateout("eax") nr.to_asm() => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - in("edi") a4.to_asm(), - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - // See the comments in `indirect_syscall6`. - asm!( - "push ebp", - "push esi", - "mov esi, DWORD PTR [eax + 0]", - "mov ebp, DWORD PTR [eax + 4]", - "mov eax, DWORD PTR [eax + 8]", - "int $$0x80", - "pop esi", - "pop ebp", - inout("eax") &[a3.to_asm(), a5.to_asm(), nr.to_asm()] => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - in("edi") a4.to_asm(), - options(preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - // See the comments in `indirect_syscall6`. - asm!( - "push ebp", - "push esi", - "mov esi, DWORD PTR [eax + 0]", - "mov ebp, DWORD PTR [eax + 4]", - "mov eax, DWORD PTR [eax + 8]", - "int $$0x80", - "pop esi", - "pop ebp", - inout("eax") &[a3.to_asm(), a5.to_asm(), nr.to_asm()] => r0, - in("ebx") a0.to_asm(), - in("ecx") a1.to_asm(), - in("edx") a2.to_asm(), - in("edi") a4.to_asm(), - options(preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/arch/x86_64.rs b/third_party/rust/rustix/src/backend/linux_raw/arch/x86_64.rs deleted file mode 100644 index 62f35d90fb72..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/arch/x86_64.rs +++ /dev/null @@ -1,293 +0,0 @@ -//! x86-64 Linux system calls. - -use crate::backend::reg::{ - ArgReg, FromAsm, RetReg, SyscallNumber, ToAsm, A0, A1, A2, A3, A4, A5, R0, -}; -use core::arch::asm; - -#[cfg(target_pointer_width = "32")] -compile_error!("x32 is not yet supported"); - -#[inline] -pub(in crate::backend) unsafe fn syscall0_readonly(nr: SyscallNumber<'_>) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall1_noreturn(nr: SyscallNumber<'_>, a0: ArgReg<'_, A0>) -> ! { - asm!( - "syscall", - in("rax") nr.to_asm(), - in("rdi") a0.to_asm(), - options(nostack, noreturn) - ) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall2_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall3_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - in("r10") a3.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall4_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - in("r10") a3.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - in("r10") a3.to_asm(), - in("r8") a4.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall5_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - in("r10") a3.to_asm(), - in("r8") a4.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - in("r10") a3.to_asm(), - in("r8") a4.to_asm(), - in("r9") a5.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags) - ); - FromAsm::from_asm(r0) -} - -#[inline] -pub(in crate::backend) unsafe fn syscall6_readonly( - nr: SyscallNumber<'_>, - a0: ArgReg<'_, A0>, - a1: ArgReg<'_, A1>, - a2: ArgReg<'_, A2>, - a3: ArgReg<'_, A3>, - a4: ArgReg<'_, A4>, - a5: ArgReg<'_, A5>, -) -> RetReg { - let r0; - asm!( - "syscall", - inlateout("rax") nr.to_asm() => r0, - in("rdi") a0.to_asm(), - in("rsi") a1.to_asm(), - in("rdx") a2.to_asm(), - in("r10") a3.to_asm(), - in("r8") a4.to_asm(), - in("r9") a5.to_asm(), - lateout("rcx") _, - lateout("r11") _, - options(nostack, preserves_flags, readonly) - ); - FromAsm::from_asm(r0) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/c.rs b/third_party/rust/rustix/src/backend/linux_raw/c.rs deleted file mode 100644 index 1219a757afc5..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/c.rs +++ /dev/null @@ -1,212 +0,0 @@ -//! Adapt the Linux API to resemble a POSIX-style libc API. -//! -//! The linux_raw backend doesn't use actual libc; this just defines certain -//! types that are convenient to have defined. - -#![allow(unused_imports)] -#![allow(non_camel_case_types)] - -pub type size_t = usize; -pub(crate) use linux_raw_sys::ctypes::*; -pub(crate) use linux_raw_sys::errno::EINVAL; -pub(crate) use linux_raw_sys::ioctl::{FIONBIO, FIONREAD}; -// Import the kernel's `uid_t` and `gid_t` if they're 32-bit. -#[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] -pub(crate) use linux_raw_sys::general::{__kernel_gid_t as gid_t, __kernel_uid_t as uid_t}; -pub(crate) use linux_raw_sys::general::{ - __kernel_pid_t as pid_t, __kernel_time64_t as time_t, __kernel_timespec as timespec, iovec, - O_CLOEXEC, O_NOCTTY, O_NONBLOCK, O_RDWR, -}; - -#[cfg(feature = "event")] -#[cfg(test)] -pub(crate) use linux_raw_sys::general::epoll_event; - -#[cfg(any( - feature = "fs", - all( - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) - ) -))] -pub(crate) use linux_raw_sys::general::{ - AT_FDCWD, NFS_SUPER_MAGIC, O_LARGEFILE, PROC_SUPER_MAGIC, UTIME_NOW, UTIME_OMIT, XATTR_CREATE, - XATTR_REPLACE, -}; - -#[allow(unused)] -pub(crate) use linux_raw_sys::ioctl::{BLKPBSZGET, BLKSSZGET, FICLONE}; - -#[cfg(feature = "io_uring")] -pub(crate) use linux_raw_sys::{general::open_how, io_uring::*}; - -#[cfg(feature = "net")] -pub(crate) use linux_raw_sys::{ - cmsg_macros::*, - general::{O_CLOEXEC as SOCK_CLOEXEC, O_NONBLOCK as SOCK_NONBLOCK}, - if_ether::*, - net::{ - AF_DECnet, __kernel_sa_family_t as sa_family_t, - __kernel_sockaddr_storage as sockaddr_storage, cmsghdr, in6_addr, in_addr, ip_mreq, - ipv6_mreq, linger, msghdr, sockaddr, sockaddr_in, sockaddr_in6, sockaddr_un, socklen_t, - AF_APPLETALK, AF_ASH, AF_ATMPVC, AF_ATMSVC, AF_AX25, AF_BLUETOOTH, AF_BRIDGE, AF_CAN, - AF_ECONET, AF_IEEE802154, AF_INET, AF_INET6, AF_IPX, AF_IRDA, AF_ISDN, AF_IUCV, AF_KEY, - AF_LLC, AF_NETBEUI, AF_NETLINK, AF_NETROM, AF_PACKET, AF_PHONET, AF_PPPOX, AF_RDS, AF_ROSE, - AF_RXRPC, AF_SECURITY, AF_SNA, AF_TIPC, AF_UNIX, AF_UNSPEC, AF_WANPIPE, AF_X25, IPPROTO_AH, - IPPROTO_BEETPH, IPPROTO_COMP, IPPROTO_DCCP, IPPROTO_EGP, IPPROTO_ENCAP, IPPROTO_ESP, - IPPROTO_ETHERNET, IPPROTO_FRAGMENT, IPPROTO_GRE, IPPROTO_ICMP, IPPROTO_ICMPV6, IPPROTO_IDP, - IPPROTO_IGMP, IPPROTO_IP, IPPROTO_IPIP, IPPROTO_IPV6, IPPROTO_MH, IPPROTO_MPLS, - IPPROTO_MPTCP, IPPROTO_MTP, IPPROTO_PIM, IPPROTO_PUP, IPPROTO_RAW, IPPROTO_ROUTING, - IPPROTO_RSVP, IPPROTO_SCTP, IPPROTO_TCP, IPPROTO_TP, IPPROTO_UDP, IPPROTO_UDPLITE, - IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP, IPV6_MULTICAST_HOPS, IPV6_MULTICAST_LOOP, - IPV6_UNICAST_HOPS, IPV6_V6ONLY, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP, IP_MULTICAST_LOOP, - IP_MULTICAST_TTL, IP_TTL, MSG_CMSG_CLOEXEC, MSG_CONFIRM, MSG_DONTROUTE, MSG_DONTWAIT, - MSG_EOR, MSG_ERRQUEUE, MSG_MORE, MSG_NOSIGNAL, MSG_OOB, MSG_PEEK, MSG_TRUNC, MSG_WAITALL, - SCM_CREDENTIALS, SCM_RIGHTS, SHUT_RD, SHUT_RDWR, SHUT_WR, SOCK_DGRAM, SOCK_RAW, SOCK_RDM, - SOCK_SEQPACKET, SOCK_STREAM, SOL_SOCKET, SO_BROADCAST, SO_DOMAIN, SO_ERROR, SO_KEEPALIVE, - SO_LINGER, SO_PASSCRED, SO_RCVBUF, SO_RCVTIMEO_NEW, SO_RCVTIMEO_NEW as SO_RCVTIMEO, - SO_RCVTIMEO_OLD, SO_REUSEADDR, SO_SNDBUF, SO_SNDTIMEO_NEW, SO_SNDTIMEO_NEW as SO_SNDTIMEO, - SO_SNDTIMEO_OLD, SO_TYPE, TCP_NODELAY, - }, - netlink::*, -}; - -#[cfg(any(feature = "process", feature = "runtime"))] -pub(crate) use linux_raw_sys::general::siginfo_t; - -#[cfg(any(feature = "process", feature = "runtime"))] -pub(crate) const EXIT_SUCCESS: c_int = 0; -#[cfg(any(feature = "process", feature = "runtime"))] -pub(crate) const EXIT_FAILURE: c_int = 1; -#[cfg(feature = "process")] -pub(crate) const EXIT_SIGNALED_SIGABRT: c_int = 128 + linux_raw_sys::general::SIGABRT as c_int; - -#[cfg(feature = "process")] -pub(crate) use linux_raw_sys::{ - general::{ - CLD_CONTINUED, CLD_DUMPED, CLD_EXITED, CLD_KILLED, CLD_STOPPED, CLD_TRAPPED, - O_NONBLOCK as PIDFD_NONBLOCK, P_ALL, P_PID, P_PIDFD, - }, - ioctl::TIOCSCTTY, -}; - -#[cfg(feature = "pty")] -pub(crate) use linux_raw_sys::ioctl::TIOCGPTPEER; - -#[cfg(feature = "termios")] -pub(crate) use linux_raw_sys::{ - general::{ - cc_t, speed_t, tcflag_t, termios, termios2, winsize, B0, B1000000, B110, B115200, B1152000, - B1200, B134, B150, B1500000, B1800, B19200, B200, B2000000, B230400, B2400, B2500000, B300, - B3000000, B3500000, B38400, B4000000, B460800, B4800, B50, B500000, B57600, B576000, B600, - B75, B921600, B9600, BOTHER, BRKINT, BS0, BS1, BSDLY, CBAUD, CBAUDEX, CIBAUD, CLOCAL, - CMSPAR, CR0, CR1, CR2, CR3, CRDLY, CREAD, CRTSCTS, CS5, CS6, CS7, CS8, CSIZE, CSTOPB, ECHO, - ECHOCTL, ECHOE, ECHOK, ECHOKE, ECHONL, ECHOPRT, EXTA, EXTB, EXTPROC, FF0, FF1, FFDLY, - FLUSHO, HUPCL, IBSHIFT, ICANON, ICRNL, IEXTEN, IGNBRK, IGNCR, IGNPAR, IMAXBEL, INLCR, - INPCK, ISIG, ISTRIP, IUCLC, IUTF8, IXANY, IXOFF, IXON, NCCS, NL0, NL1, NLDLY, NOFLSH, - OCRNL, OFDEL, OFILL, OLCUC, ONLCR, ONLRET, ONOCR, OPOST, PARENB, PARMRK, PARODD, PENDIN, - TAB0, TAB1, TAB2, TAB3, TABDLY, TCIFLUSH, TCIOFF, TCIOFLUSH, TCION, TCOFLUSH, TCOOFF, - TCOON, TCSADRAIN, TCSAFLUSH, TCSANOW, TOSTOP, VDISCARD, VEOF, VEOL, VEOL2, VERASE, VINTR, - VKILL, VLNEXT, VMIN, VQUIT, VREPRINT, VSTART, VSTOP, VSUSP, VSWTC, VT0, VT1, VTDLY, VTIME, - VWERASE, XCASE, XTABS, - }, - ioctl::{TCGETS2, TCSETS2, TCSETSF2, TCSETSW2, TIOCEXCL, TIOCNXCL}, -}; - -// On MIPS, `TCSANOW` et al have `TCSETS` added to them, so we need it to -// subtract it out. -#[cfg(all( - feature = "termios", - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" - ) -))] -pub(crate) use linux_raw_sys::ioctl::TCSETS; - -// Define our own `uid_t` and `gid_t` if the kernel's versions are not 32-bit. -#[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] -pub(crate) type uid_t = u32; -#[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] -pub(crate) type gid_t = u32; - -// Bindgen infers `u32` for many of these macro types which meant to be -// used with `c_int` in the C APIs, so cast them to `c_int`. - -// Convert the signal constants from `u32` to `c_int`. -pub(crate) const SIGHUP: c_int = linux_raw_sys::general::SIGHUP as _; -pub(crate) const SIGINT: c_int = linux_raw_sys::general::SIGINT as _; -pub(crate) const SIGQUIT: c_int = linux_raw_sys::general::SIGQUIT as _; -pub(crate) const SIGILL: c_int = linux_raw_sys::general::SIGILL as _; -pub(crate) const SIGTRAP: c_int = linux_raw_sys::general::SIGTRAP as _; -pub(crate) const SIGABRT: c_int = linux_raw_sys::general::SIGABRT as _; -pub(crate) const SIGBUS: c_int = linux_raw_sys::general::SIGBUS as _; -pub(crate) const SIGFPE: c_int = linux_raw_sys::general::SIGFPE as _; -pub(crate) const SIGKILL: c_int = linux_raw_sys::general::SIGKILL as _; -pub(crate) const SIGUSR1: c_int = linux_raw_sys::general::SIGUSR1 as _; -pub(crate) const SIGSEGV: c_int = linux_raw_sys::general::SIGSEGV as _; -pub(crate) const SIGUSR2: c_int = linux_raw_sys::general::SIGUSR2 as _; -pub(crate) const SIGPIPE: c_int = linux_raw_sys::general::SIGPIPE as _; -pub(crate) const SIGALRM: c_int = linux_raw_sys::general::SIGALRM as _; -pub(crate) const SIGTERM: c_int = linux_raw_sys::general::SIGTERM as _; -#[cfg(not(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" -)))] -pub(crate) const SIGSTKFLT: c_int = linux_raw_sys::general::SIGSTKFLT as _; -pub(crate) const SIGCHLD: c_int = linux_raw_sys::general::SIGCHLD as _; -pub(crate) const SIGCONT: c_int = linux_raw_sys::general::SIGCONT as _; -pub(crate) const SIGSTOP: c_int = linux_raw_sys::general::SIGSTOP as _; -pub(crate) const SIGTSTP: c_int = linux_raw_sys::general::SIGTSTP as _; -pub(crate) const SIGTTIN: c_int = linux_raw_sys::general::SIGTTIN as _; -pub(crate) const SIGTTOU: c_int = linux_raw_sys::general::SIGTTOU as _; -pub(crate) const SIGURG: c_int = linux_raw_sys::general::SIGURG as _; -pub(crate) const SIGXCPU: c_int = linux_raw_sys::general::SIGXCPU as _; -pub(crate) const SIGXFSZ: c_int = linux_raw_sys::general::SIGXFSZ as _; -pub(crate) const SIGVTALRM: c_int = linux_raw_sys::general::SIGVTALRM as _; -pub(crate) const SIGPROF: c_int = linux_raw_sys::general::SIGPROF as _; -pub(crate) const SIGWINCH: c_int = linux_raw_sys::general::SIGWINCH as _; -pub(crate) const SIGIO: c_int = linux_raw_sys::general::SIGIO as _; -pub(crate) const SIGPWR: c_int = linux_raw_sys::general::SIGPWR as _; -pub(crate) const SIGSYS: c_int = linux_raw_sys::general::SIGSYS as _; -#[cfg(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" -))] -pub(crate) const SIGEMT: c_int = linux_raw_sys::general::SIGEMT as _; - -#[cfg(feature = "stdio")] -pub(crate) const STDIN_FILENO: c_int = linux_raw_sys::general::STDIN_FILENO as _; -#[cfg(feature = "stdio")] -pub(crate) const STDOUT_FILENO: c_int = linux_raw_sys::general::STDOUT_FILENO as _; -#[cfg(feature = "stdio")] -pub(crate) const STDERR_FILENO: c_int = linux_raw_sys::general::STDERR_FILENO as _; - -pub(crate) const PIPE_BUF: usize = linux_raw_sys::general::PIPE_BUF as _; - -pub(crate) const CLOCK_MONOTONIC: c_int = linux_raw_sys::general::CLOCK_MONOTONIC as _; -pub(crate) const CLOCK_REALTIME: c_int = linux_raw_sys::general::CLOCK_REALTIME as _; -pub(crate) const CLOCK_MONOTONIC_RAW: c_int = linux_raw_sys::general::CLOCK_MONOTONIC_RAW as _; -pub(crate) const CLOCK_MONOTONIC_COARSE: c_int = - linux_raw_sys::general::CLOCK_MONOTONIC_COARSE as _; -pub(crate) const CLOCK_REALTIME_COARSE: c_int = linux_raw_sys::general::CLOCK_REALTIME_COARSE as _; -pub(crate) const CLOCK_THREAD_CPUTIME_ID: c_int = - linux_raw_sys::general::CLOCK_THREAD_CPUTIME_ID as _; -pub(crate) const CLOCK_PROCESS_CPUTIME_ID: c_int = - linux_raw_sys::general::CLOCK_PROCESS_CPUTIME_ID as _; diff --git a/third_party/rust/rustix/src/backend/linux_raw/conv.rs b/third_party/rust/rustix/src/backend/linux_raw/conv.rs deleted file mode 100644 index f915db140589..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/conv.rs +++ /dev/null @@ -1,1010 +0,0 @@ -//! Convert values to [`ArgReg`] and from [`RetReg`]. -//! -//! System call arguments and return values are all communicated with inline -//! asm and FFI as `*mut Opaque`. To protect these raw pointers from escaping -//! or being accidentally misused as they travel through the code, we wrap -//! them in [`ArgReg`] and [`RetReg`] structs. This file provides `From` -//! implementations and explicit conversion functions for converting values -//! into and out of these wrapper structs. -//! -//! # Safety -//! -//! Some of this code is `unsafe` in order to work with raw file descriptors, -//! and some is `unsafe` to interpret the values in a `RetReg`. -#![allow(unsafe_code)] - -use super::c; -use super::fd::{AsRawFd, BorrowedFd, FromRawFd, RawFd}; -#[cfg(feature = "runtime")] -use super::io::errno::try_decode_error; -#[cfg(target_pointer_width = "64")] -use super::io::errno::try_decode_u64; -#[cfg(not(debug_assertions))] -use super::io::errno::{ - decode_c_int_infallible, decode_c_uint_infallible, decode_usize_infallible, -}; -use super::io::errno::{ - try_decode_c_int, try_decode_c_uint, try_decode_raw_fd, try_decode_usize, try_decode_void, - try_decode_void_star, -}; -use super::reg::{raw_arg, ArgNumber, ArgReg, RetReg, R0}; -#[cfg(feature = "time")] -use super::time::types::TimerfdClockId; -#[cfg(any(feature = "thread", feature = "time", target_arch = "x86"))] -use crate::clockid::ClockId; -use crate::fd::OwnedFd; -use crate::ffi::CStr; -use crate::io; -#[cfg(any(feature = "process", feature = "runtime", feature = "termios"))] -use crate::pid::Pid; -#[cfg(feature = "process")] -use crate::process::Resource; -#[cfg(any(feature = "process", feature = "runtime"))] -use crate::signal::Signal; -use crate::utils::{as_mut_ptr, as_ptr}; -use core::mem::MaybeUninit; -use core::ptr::null_mut; -#[cfg(any(feature = "thread", feature = "time", target_arch = "x86"))] -use linux_raw_sys::general::__kernel_clockid_t; -#[cfg(target_pointer_width = "64")] -use linux_raw_sys::general::__kernel_loff_t; -#[cfg(feature = "net")] -use linux_raw_sys::net::socklen_t; - -/// Convert `SYS_*` constants for socketcall. -#[cfg(target_arch = "x86")] -#[inline] -pub(super) fn x86_sys<'a, Num: ArgNumber>(sys: u32) -> ArgReg<'a, Num> { - pass_usize(sys as usize) -} - -/// Pass the "low" half of the endian-specific memory encoding of a `u64`, for -/// 32-bit architectures. -#[cfg(target_pointer_width = "32")] -#[inline] -pub(super) fn lo<'a, Num: ArgNumber>(x: u64) -> ArgReg<'a, Num> { - #[cfg(target_endian = "little")] - let x = x >> 32; - #[cfg(target_endian = "big")] - let x = x & 0xffff_ffff; - - pass_usize(x as usize) -} - -/// Pass the "high" half of the endian-specific memory encoding of a `u64`, for -/// 32-bit architectures. -#[cfg(target_pointer_width = "32")] -#[inline] -pub(super) fn hi<'a, Num: ArgNumber>(x: u64) -> ArgReg<'a, Num> { - #[cfg(target_endian = "little")] - let x = x & 0xffff_ffff; - #[cfg(target_endian = "big")] - let x = x >> 32; - - pass_usize(x as usize) -} - -/// Pass a zero, or null, argument. -#[inline] -pub(super) fn zero<'a, Num: ArgNumber>() -> ArgReg<'a, Num> { - raw_arg(null_mut()) -} - -/// Pass the `mem::size_of` of a type. -#[inline] -pub(super) fn size_of<'a, T: Sized, Num: ArgNumber>() -> ArgReg<'a, Num> { - pass_usize(core::mem::size_of::()) -} - -/// Pass an arbitrary `usize` value. -/// -/// For passing pointers, use `void_star` or other functions which take a raw -/// pointer instead of casting to `usize`, so that provenance is preserved. -#[inline] -pub(super) fn pass_usize<'a, Num: ArgNumber>(t: usize) -> ArgReg<'a, Num> { - raw_arg(t as *mut _) -} - -impl<'a, Num: ArgNumber, T> From<*mut T> for ArgReg<'a, Num> { - #[inline] - fn from(c: *mut T) -> ArgReg<'a, Num> { - raw_arg(c.cast()) - } -} - -impl<'a, Num: ArgNumber, T> From<*const T> for ArgReg<'a, Num> { - #[inline] - fn from(c: *const T) -> ArgReg<'a, Num> { - let mut_ptr = c as *mut T; - raw_arg(mut_ptr.cast()) - } -} - -impl<'a, Num: ArgNumber> From<&'a CStr> for ArgReg<'a, Num> { - #[inline] - fn from(c: &'a CStr) -> Self { - let mut_ptr = c.as_ptr() as *mut u8; - raw_arg(mut_ptr.cast()) - } -} - -impl<'a, Num: ArgNumber> From> for ArgReg<'a, Num> { - #[inline] - fn from(t: Option<&'a CStr>) -> Self { - raw_arg(match t { - Some(s) => { - let mut_ptr = s.as_ptr() as *mut u8; - mut_ptr.cast() - } - None => null_mut(), - }) - } -} - -/// Pass a borrowed file-descriptor argument. -impl<'a, Num: ArgNumber> From> for ArgReg<'a, Num> { - #[inline] - fn from(fd: BorrowedFd<'a>) -> Self { - // SAFETY: `BorrowedFd` ensures that the file descriptor is valid, and - // the lifetime parameter on the resulting `ArgReg` ensures that the - // result is bounded by the `BorrowedFd`'s lifetime. - unsafe { raw_fd(fd.as_raw_fd()) } - } -} - -/// Pass a raw file-descriptor argument. Most users should use [`ArgReg::from`] -/// instead, to preserve I/O safety as long as possible. -/// -/// # Safety -/// -/// `fd` must be a valid open file descriptor. -#[inline] -pub(super) unsafe fn raw_fd<'a, Num: ArgNumber>(fd: RawFd) -> ArgReg<'a, Num> { - // Use `no_fd` when passing `-1` is intended. - #[cfg(feature = "fs")] - debug_assert!(fd == crate::fs::CWD.as_raw_fd() || fd >= 0); - - // Don't pass the `io_uring_register_files_skip` sentry value this way. - #[cfg(feature = "io_uring")] - debug_assert_ne!( - fd, - crate::io_uring::io_uring_register_files_skip().as_raw_fd() - ); - - // Linux doesn't look at the high bits beyond the `c_int`, so use - // zero-extension rather than sign-extension because it's a smaller - // instruction. - let fd: c::c_int = fd; - pass_usize(fd as c::c_uint as usize) -} - -/// Deliberately pass `-1` to a file-descriptor argument, for system calls -/// like `mmap` where this indicates the argument is omitted. -#[inline] -pub(super) fn no_fd<'a, Num: ArgNumber>() -> ArgReg<'a, Num> { - pass_usize(!0_usize) -} - -#[inline] -pub(super) fn slice_just_addr(v: &[T]) -> ArgReg<'_, Num> { - let mut_ptr = v.as_ptr() as *mut T; - raw_arg(mut_ptr.cast()) -} - -#[inline] -pub(super) fn slice_just_addr_mut(v: &mut [T]) -> ArgReg<'_, Num> { - raw_arg(v.as_mut_ptr().cast()) -} - -#[inline] -pub(super) fn slice( - v: &[T], -) -> (ArgReg<'_, Num0>, ArgReg<'_, Num1>) { - (slice_just_addr(v), pass_usize(v.len())) -} - -#[inline] -pub(super) fn slice_mut( - v: &mut [T], -) -> (ArgReg<'_, Num0>, ArgReg<'_, Num1>) { - (raw_arg(v.as_mut_ptr().cast()), pass_usize(v.len())) -} - -#[inline] -pub(super) fn by_ref(t: &T) -> ArgReg<'_, Num> { - let mut_ptr = as_ptr(t) as *mut T; - raw_arg(mut_ptr.cast()) -} - -#[inline] -pub(super) fn by_mut(t: &mut T) -> ArgReg<'_, Num> { - raw_arg(as_mut_ptr(t).cast()) -} - -/// Convert an optional mutable reference into a `usize` for passing to a -/// syscall. -#[inline] -pub(super) fn opt_mut(t: Option<&mut T>) -> ArgReg<'_, Num> { - // This optimizes into the equivalent of `transmute(t)`, and has the - // advantage of not requiring `unsafe`. - match t { - Some(t) => by_mut(t), - None => raw_arg(null_mut()), - } -} - -/// Convert an optional immutable reference into a `usize` for passing to a -/// syscall. -#[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] -#[inline] -pub(super) fn opt_ref(t: Option<&T>) -> ArgReg<'_, Num> { - // This optimizes into the equivalent of `transmute(t)`, and has the - // advantage of not requiring `unsafe`. - match t { - Some(t) => by_ref(t), - None => raw_arg(null_mut()), - } -} - -/// Convert a `c_int` into an `ArgReg`. -/// -/// Be sure to use `raw_fd` to pass `RawFd` values. -#[inline] -pub(super) fn c_int<'a, Num: ArgNumber>(i: c::c_int) -> ArgReg<'a, Num> { - pass_usize(i as usize) -} - -/// Convert a `c_uint` into an `ArgReg`. -#[inline] -pub(super) fn c_uint<'a, Num: ArgNumber>(i: c::c_uint) -> ArgReg<'a, Num> { - pass_usize(i as usize) -} - -#[cfg(target_pointer_width = "64")] -#[inline] -pub(super) fn loff_t<'a, Num: ArgNumber>(i: __kernel_loff_t) -> ArgReg<'a, Num> { - pass_usize(i as usize) -} - -#[cfg(target_pointer_width = "64")] -#[inline] -pub(super) fn loff_t_from_u64<'a, Num: ArgNumber>(i: u64) -> ArgReg<'a, Num> { - // `loff_t` is signed, but syscalls which expect `loff_t` return `EINVAL` - // if it's outside the signed `i64` range, so we can silently cast. - pass_usize(i as usize) -} - -#[cfg(any(feature = "thread", feature = "time", target_arch = "x86"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(i: ClockId) -> Self { - pass_usize(i as __kernel_clockid_t as usize) - } -} - -#[cfg(feature = "time")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(i: TimerfdClockId) -> Self { - pass_usize(i as __kernel_clockid_t as usize) - } -} - -#[cfg(feature = "net")] -#[inline] -pub(super) fn socklen_t<'a, Num: ArgNumber>(i: socklen_t) -> ArgReg<'a, Num> { - pass_usize(i as usize) -} - -#[cfg(any( - feature = "fs", - all( - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) - ) -))] -pub(crate) mod fs { - use super::*; - use crate::fs::{FileType, Mode, OFlags}; - #[cfg(target_pointer_width = "32")] - use linux_raw_sys::general::O_LARGEFILE; - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(mode: Mode) -> Self { - pass_usize(mode.bits() as usize) - } - } - - impl<'a, Num: ArgNumber> From<(Mode, FileType)> for ArgReg<'a, Num> { - #[inline] - fn from(pair: (Mode, FileType)) -> Self { - pass_usize(pair.0.as_raw_mode() as usize | pair.1.as_raw_mode() as usize) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::AtFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::XattrFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::inotify::CreateFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::inotify::WatchFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::MemfdFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::RenameFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::StatxFlags) -> Self { - c_uint(flags.bits()) - } - } - - #[cfg(target_pointer_width = "32")] - #[inline] - fn oflags_bits(oflags: OFlags) -> c::c_uint { - let mut bits = oflags.bits(); - // Add `O_LARGEFILE`, unless `O_PATH` is set, as Linux returns `EINVAL` - // when both are set. - if !oflags.contains(OFlags::PATH) { - bits |= O_LARGEFILE; - } - bits - } - - #[cfg(target_pointer_width = "64")] - #[inline] - const fn oflags_bits(oflags: OFlags) -> c::c_uint { - oflags.bits() - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(oflags: OFlags) -> Self { - pass_usize(oflags_bits(oflags) as usize) - } - } - - /// Convert an `OFlags` into a `u64` for use in the `open_how` struct. - #[inline] - pub(crate) fn oflags_for_open_how(oflags: OFlags) -> u64 { - u64::from(oflags_bits(oflags)) - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::FallocateFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(advice: crate::fs::Advice) -> Self { - c_uint(advice as c::c_uint) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::fs::SealFlags) -> Self { - c_uint(flags.bits()) - } - } - - impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(access: crate::fs::Access) -> Self { - c_uint(access.bits()) - } - } -} - -#[cfg(any(feature = "fs", feature = "mount"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::MountFlagsArg) -> Self { - c_uint(flags.0) - } -} - -// When the deprecated "fs" aliases are removed, we can remove the "fs" -// here too. -#[cfg(any(feature = "fs", feature = "mount"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::UnmountFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mount")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(cmd: crate::mount::FsConfigCmd) -> Self { - c_uint(cmd as c::c_uint) - } -} - -#[cfg(feature = "mount")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::FsOpenFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mount")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::FsMountFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mount")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::MountAttrFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mount")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::OpenTreeFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mount")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::FsPickFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mount")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mount::types::MoveMountFlags) -> Self { - c_uint(flags.bits()) - } -} - -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::io::FdFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "pipe")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::pipe::PipeFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "pipe")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::pipe::SpliceFlags) -> Self { - c_uint(flags.bits()) - } -} - -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::io::DupFlags) -> Self { - c_uint(flags.bits()) - } -} - -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::io::ReadWriteFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "process")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::process::PidfdFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "pty")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::pty::OpenptFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "thread")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::thread::UnshareFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "event")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::event::EventfdFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(all(feature = "alloc", feature = "event"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::event::epoll::CreateFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mm")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mm::types::ProtFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mm")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mm::types::MsyncFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mm")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mm::types::MremapFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mm")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mm::types::MlockFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mm")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mm::types::MapFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mm")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mm::types::MprotectFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "mm")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::backend::mm::types::UserfaultfdFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "process")] -impl<'a, Num: ArgNumber> From - for ArgReg<'a, Num> -{ - #[inline] - fn from(cmd: crate::backend::process::types::MembarrierCommand) -> Self { - c_uint(cmd as u32) - } -} - -#[cfg(feature = "process")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(cpuid: crate::process::Cpuid) -> Self { - c_uint(cpuid.as_raw()) - } -} - -#[cfg(target_pointer_width = "64")] -#[inline] -pub(super) fn dev_t<'a, Num: ArgNumber>(dev: u64) -> ArgReg<'a, Num> { - pass_usize(dev as usize) -} - -#[cfg(target_pointer_width = "32")] -#[inline] -pub(super) fn dev_t<'a, Num: ArgNumber>(dev: u64) -> io::Result> { - Ok(pass_usize(dev.try_into().map_err(|_err| io::Errno::INVAL)?)) -} - -/// Convert a `Resource` into a syscall argument. -#[cfg(feature = "process")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(resource: Resource) -> Self { - c_uint(resource as c::c_uint) - } -} - -#[cfg(any(feature = "process", feature = "runtime", feature = "termios"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(pid: Pid) -> Self { - pass_usize(pid.as_raw_nonzero().get() as usize) - } -} - -#[cfg(feature = "process")] -#[inline] -pub(super) fn negative_pid<'a, Num: ArgNumber>(pid: Pid) -> ArgReg<'a, Num> { - pass_usize(pid.as_raw_nonzero().get().wrapping_neg() as usize) -} - -#[cfg(any(feature = "process", feature = "runtime"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(sig: Signal) -> Self { - pass_usize(sig as usize) - } -} - -#[cfg(feature = "io_uring")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::io_uring::IoringEnterFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "time")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::time::TimerfdFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "time")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::time::TimerfdTimerFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "rand")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::rand::GetRandomFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "net")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::net::RecvFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "net")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::net::SendFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "net")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::net::SocketFlags) -> Self { - c_uint(flags.bits()) - } -} - -#[cfg(feature = "net")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(family: crate::net::AddressFamily) -> Self { - c_uint(family.0.into()) - } -} - -#[cfg(feature = "net")] -impl<'a, Num: ArgNumber> From<(crate::net::SocketType, crate::net::SocketFlags)> - for ArgReg<'a, Num> -{ - #[inline] - fn from(pair: (crate::net::SocketType, crate::net::SocketFlags)) -> Self { - c_uint(pair.0 .0 | pair.1.bits()) - } -} - -#[cfg(feature = "thread")] -impl<'a, Num: ArgNumber> From<(crate::thread::FutexOperation, crate::thread::FutexFlags)> - for ArgReg<'a, Num> -{ - #[inline] - fn from(pair: (crate::thread::FutexOperation, crate::thread::FutexFlags)) -> Self { - c_uint(pair.0 as u32 | pair.1.bits()) - } -} - -#[cfg(feature = "net")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(type_: crate::net::SocketType) -> Self { - c_uint(type_.0) - } -} - -#[cfg(feature = "net")] -impl<'a, Num: ArgNumber> From> for ArgReg<'a, Num> { - #[inline] - fn from(protocol: Option) -> Self { - c_uint(match protocol { - Some(p) => p.0.get(), - None => 0, - }) - } -} - -impl<'a, Num: ArgNumber, T> From<&'a mut MaybeUninit> for ArgReg<'a, Num> { - #[inline] - fn from(t: &'a mut MaybeUninit) -> Self { - raw_arg(t.as_mut_ptr().cast()) - } -} - -impl<'a, Num: ArgNumber, T> From<&'a mut [MaybeUninit]> for ArgReg<'a, Num> { - #[inline] - fn from(t: &'a mut [MaybeUninit]) -> Self { - raw_arg(t.as_mut_ptr().cast()) - } -} - -#[cfg(any(feature = "process", feature = "thread"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(t: crate::ugid::Uid) -> Self { - c_uint(t.as_raw()) - } -} - -#[cfg(any(feature = "process", feature = "thread"))] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(t: crate::ugid::Gid) -> Self { - c_uint(t.as_raw()) - } -} - -#[cfg(feature = "runtime")] -impl<'a, Num: ArgNumber> From for ArgReg<'a, Num> { - #[inline] - fn from(flags: crate::runtime::How) -> Self { - c_uint(flags as u32) - } -} - -/// Convert a `usize` returned from a syscall that effectively returns `()` on -/// success. -/// -/// # Safety -/// -/// The caller must ensure that this is the return value of a syscall which -/// just returns 0 on success. -#[inline] -pub(super) unsafe fn ret(raw: RetReg) -> io::Result<()> { - try_decode_void(raw) -} - -/// Convert a `usize` returned from a syscall that doesn't return on success. -/// -/// # Safety -/// -/// The caller must ensure that this is the return value of a syscall which -/// doesn't return on success. -#[cfg(feature = "runtime")] -#[inline] -pub(super) unsafe fn ret_error(raw: RetReg) -> io::Errno { - try_decode_error(raw) -} - -/// Convert a `usize` returned from a syscall that effectively always returns -/// `()`. -/// -/// # Safety -/// -/// The caller must ensure that this is the return value of a syscall which -/// always returns `()`. -#[inline] -pub(super) unsafe fn ret_infallible(raw: RetReg) { - #[cfg(debug_assertions)] - { - try_decode_void(raw).unwrap() - } - #[cfg(not(debug_assertions))] - drop(raw); -} - -/// Convert a `usize` returned from a syscall that effectively returns a -/// `c_int` on success. -#[inline] -pub(super) fn ret_c_int(raw: RetReg) -> io::Result { - try_decode_c_int(raw) -} - -/// Convert a `usize` returned from a syscall that effectively returns a -/// `c_uint` on success. -#[inline] -pub(super) fn ret_c_uint(raw: RetReg) -> io::Result { - try_decode_c_uint(raw) -} - -/// Convert a `usize` returned from a syscall that effectively returns a `u64` -/// on success. -#[cfg(target_pointer_width = "64")] -#[inline] -pub(super) fn ret_u64(raw: RetReg) -> io::Result { - try_decode_u64(raw) -} - -/// Convert a `usize` returned from a syscall that effectively returns a -/// `usize` on success. -#[inline] -pub(super) fn ret_usize(raw: RetReg) -> io::Result { - try_decode_usize(raw) -} - -/// Convert a `usize` returned from a syscall that effectively always -/// returns a `usize`. -/// -/// # Safety -/// -/// This function must only be used with return values from infallible -/// syscalls. -#[inline] -pub(super) unsafe fn ret_usize_infallible(raw: RetReg) -> usize { - #[cfg(debug_assertions)] - { - try_decode_usize(raw).unwrap() - } - #[cfg(not(debug_assertions))] - { - decode_usize_infallible(raw) - } -} - -/// Convert a `c_int` returned from a syscall that effectively always -/// returns a `c_int`. -/// -/// # Safety -/// -/// This function must only be used with return values from infallible -/// syscalls. -#[inline] -pub(super) unsafe fn ret_c_int_infallible(raw: RetReg) -> c::c_int { - #[cfg(debug_assertions)] - { - try_decode_c_int(raw).unwrap() - } - #[cfg(not(debug_assertions))] - { - decode_c_int_infallible(raw) - } -} - -/// Convert a `c_uint` returned from a syscall that effectively always -/// returns a `c_uint`. -/// -/// # Safety -/// -/// This function must only be used with return values from infallible -/// syscalls. -#[inline] -pub(super) unsafe fn ret_c_uint_infallible(raw: RetReg) -> c::c_uint { - #[cfg(debug_assertions)] - { - try_decode_c_uint(raw).unwrap() - } - #[cfg(not(debug_assertions))] - { - decode_c_uint_infallible(raw) - } -} - -/// Convert a `usize` returned from a syscall that effectively returns an -/// `OwnedFd` on success. -/// -/// # Safety -/// -/// The caller must ensure that this is the return value of a syscall which -/// returns an owned file descriptor. -#[inline] -pub(super) unsafe fn ret_owned_fd(raw: RetReg) -> io::Result { - let raw_fd = try_decode_raw_fd(raw)?; - Ok(crate::backend::fd::OwnedFd::from_raw_fd(raw_fd)) -} - -/// Convert the return value of `dup2` and `dup3`. -/// -/// When these functions succeed, they return the same value as their second -/// argument, so we don't construct a new `OwnedFd`. -/// -/// # Safety -/// -/// The caller must ensure that this is the return value of a syscall which -/// returns a file descriptor. -#[inline] -pub(super) unsafe fn ret_discarded_fd(raw: RetReg) -> io::Result<()> { - let _raw_fd = try_decode_raw_fd(raw)?; - Ok(()) -} - -/// Convert a `usize` returned from a syscall that effectively returns a -/// `*mut c_void` on success. -#[inline] -pub(super) fn ret_void_star(raw: RetReg) -> io::Result<*mut c::c_void> { - try_decode_void_star(raw) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/event/epoll.rs b/third_party/rust/rustix/src/backend/linux_raw/event/epoll.rs deleted file mode 100644 index ecd48b78493b..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/event/epoll.rs +++ /dev/null @@ -1,468 +0,0 @@ -//! epoll support. -//! -//! This is an experiment, and it isn't yet clear whether epoll is the right -//! level of abstraction at which to introduce safety. But it works fairly well -//! in simple examples 🙂. -//! -//! # Examples -//! -//! ```no_run -//! # #[cfg(feature = "net")] -//! # fn main() -> std::io::Result<()> { -//! use rustix::event::epoll; -//! use rustix::fd::AsFd; -//! use rustix::io::{ioctl_fionbio, read, write}; -//! use rustix::net::{ -//! accept, bind_v4, listen, socket, AddressFamily, Ipv4Addr, SocketAddrV4, SocketType, -//! }; -//! use std::collections::HashMap; -//! use std::os::unix::io::AsRawFd; -//! -//! // Create a socket and listen on it. -//! let listen_sock = socket(AddressFamily::INET, SocketType::STREAM, None)?; -//! bind_v4(&listen_sock, &SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0))?; -//! listen(&listen_sock, 1)?; -//! -//! // Create an epoll object. Using `Owning` here means the epoll object will -//! // take ownership of the file descriptors registered with it. -//! let epoll = epoll::create(epoll::CreateFlags::CLOEXEC)?; -//! -//! // Register the socket with the epoll object. -//! epoll::add( -//! &epoll, -//! &listen_sock, -//! epoll::EventData::new_u64(1), -//! epoll::EventFlags::IN, -//! )?; -//! -//! // Keep track of the sockets we've opened. -//! let mut next_id = epoll::EventData::new_u64(2); -//! let mut sockets = HashMap::new(); -//! -//! // Process events. -//! let mut event_list = epoll::EventVec::with_capacity(4); -//! loop { -//! epoll::wait(&epoll, &mut event_list, -1)?; -//! for event in &event_list { -//! let target = event.data; -//! if target.u64() == 1 { -//! // Accept a new connection, set it to non-blocking, and -//! // register to be notified when it's ready to write to. -//! let conn_sock = accept(&listen_sock)?; -//! ioctl_fionbio(&conn_sock, true)?; -//! epoll::add( -//! &epoll, -//! &conn_sock, -//! next_id, -//! epoll::EventFlags::OUT | epoll::EventFlags::ET, -//! )?; -//! -//! // Keep track of the socket. -//! sockets.insert(next_id, conn_sock); -//! next_id = epoll::EventData::new_u64(next_id.u64() + 1); -//! } else { -//! // Write a message to the stream and then unregister it. -//! let target = sockets.remove(&target).unwrap(); -//! write(&target, b"hello\n")?; -//! let _ = epoll::delete(&epoll, &target)?; -//! } -//! } -//! } -//! # } -//! # #[cfg(not(feature = "net"))] -//! # fn main() {} -//! ``` - -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::backend::event::syscalls; -use crate::fd::{AsFd, AsRawFd, OwnedFd}; -use crate::io; -use alloc::vec::Vec; -use bitflags::bitflags; -use core::ffi::c_void; -use core::hash::{Hash, Hasher}; -use core::slice; - -bitflags! { - /// `EPOLL_*` for use with [`new`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CreateFlags: c::c_uint { - /// `EPOLL_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::EPOLL_CLOEXEC; - - /// - const _ = !0; - } -} - -bitflags! { - /// `EPOLL*` for use with [`add`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct EventFlags: u32 { - /// `EPOLLIN` - const IN = linux_raw_sys::general::EPOLLIN as u32; - - /// `EPOLLOUT` - const OUT = linux_raw_sys::general::EPOLLOUT as u32; - - /// `EPOLLPRI` - const PRI = linux_raw_sys::general::EPOLLPRI as u32; - - /// `EPOLLERR` - const ERR = linux_raw_sys::general::EPOLLERR as u32; - - /// `EPOLLHUP` - const HUP = linux_raw_sys::general::EPOLLHUP as u32; - - /// `EPOLLRDNORM` - const RDNORM = linux_raw_sys::general::EPOLLRDNORM as u32; - - /// `EPOLLRDBAND` - const RDBAND = linux_raw_sys::general::EPOLLRDBAND as u32; - - /// `EPOLLWRNORM` - const WRNORM = linux_raw_sys::general::EPOLLWRNORM as u32; - - /// `EPOLLWRBAND` - const WRBAND = linux_raw_sys::general::EPOLLWRBAND as u32; - - /// `EPOLLMSG` - const MSG = linux_raw_sys::general::EPOLLMSG as u32; - - /// `EPOLLRDHUP` - const RDHUP = linux_raw_sys::general::EPOLLRDHUP as u32; - - /// `EPOLLET` - const ET = linux_raw_sys::general::EPOLLET as u32; - - /// `EPOLLONESHOT` - const ONESHOT = linux_raw_sys::general::EPOLLONESHOT as u32; - - /// `EPOLLWAKEUP` - const WAKEUP = linux_raw_sys::general::EPOLLWAKEUP as u32; - - /// `EPOLLEXCLUSIVE` - const EXCLUSIVE = linux_raw_sys::general::EPOLLEXCLUSIVE as u32; - - /// - const _ = !0; - } -} - -/// `epoll_create1(flags)`—Creates a new epoll object. -/// -/// Use the [`CreateFlags::CLOEXEC`] flag to prevent the resulting file -/// descriptor from being implicitly passed across `exec` boundaries. -#[inline] -#[doc(alias = "epoll_create1")] -pub fn create(flags: CreateFlags) -> io::Result { - syscalls::epoll_create(flags) -} - -/// `epoll_ctl(self, EPOLL_CTL_ADD, data, event)`—Adds an element to an -/// epoll object. -/// -/// This registers interest in any of the events set in `events` occurring on -/// the file descriptor associated with `data`. -/// -/// If [`delete`] is not called on the I/O source passed into this function -/// before the I/O source is `close`d, then the `epoll` will act as if the I/O -/// source is still registered with it. This can lead to spurious events being -/// returned from [`wait`]. If a file descriptor is an -/// `Arc`, then `epoll` can be thought to maintain a -/// `Weak` to the file descriptor. -#[doc(alias = "epoll_ctl")] -#[inline] -pub fn add( - epoll: impl AsFd, - source: impl AsFd, - data: EventData, - event_flags: EventFlags, -) -> io::Result<()> { - // SAFETY: We're calling `epoll_ctl` via FFI and we know how it - // behaves. - unsafe { - syscalls::epoll_add( - epoll.as_fd(), - source.as_fd().as_raw_fd(), - &Event { - flags: event_flags, - data, - }, - ) - } -} - -/// `epoll_ctl(self, EPOLL_CTL_MOD, target, event)`—Modifies an element in a -/// given epoll object. -/// -/// This sets the events of interest with `target` to `events`. -#[doc(alias = "epoll_ctl")] -#[inline] -pub fn modify( - epoll: impl AsFd, - source: impl AsFd, - data: EventData, - event_flags: EventFlags, -) -> io::Result<()> { - // SAFETY: We're calling `epoll_ctl` via FFI and we know how it - // behaves. - unsafe { - let raw_fd = source.as_fd().as_raw_fd(); - syscalls::epoll_mod( - epoll.as_fd(), - raw_fd, - &Event { - flags: event_flags, - data, - }, - ) - } -} - -/// `epoll_ctl(self, EPOLL_CTL_DEL, target, NULL)`—Removes an element in a -/// given epoll object. -#[doc(alias = "epoll_ctl")] -#[inline] -pub fn delete(epoll: impl AsFd, source: impl AsFd) -> io::Result<()> { - // SAFETY: We're calling `epoll_ctl` via FFI and we know how it - // behaves. - unsafe { - let raw_fd = source.as_fd().as_raw_fd(); - syscalls::epoll_del(epoll.as_fd(), raw_fd) - } -} - -/// `epoll_wait(self, events, timeout)`—Waits for registered events of -/// interest. -/// -/// For each event of interest, an element is written to `events`. On -/// success, this returns the number of written elements. -#[inline] -pub fn wait(epoll: impl AsFd, event_list: &mut EventVec, timeout: c::c_int) -> io::Result<()> { - // SAFETY: We're calling `epoll_wait` via FFI and we know how it - // behaves. - unsafe { - event_list.events.set_len(0); - let nfds = syscalls::epoll_wait( - epoll.as_fd(), - event_list.events[..].as_mut_ptr().cast(), - event_list.events.capacity(), - timeout, - )?; - event_list.events.set_len(nfds); - } - - Ok(()) -} - -/// An iterator over the `Event`s in an `EventVec`. -pub struct Iter<'a> { - /// Use `Copied` to copy the struct, since `Event` is `packed` on some - /// platforms, and it's common for users to directly destructure it, - /// which would lead to errors about forming references to packed fields. - iter: core::iter::Copied>, -} - -impl<'a> Iterator for Iter<'a> { - type Item = Event; - - #[inline] - fn next(&mut self) -> Option { - self.iter.next() - } -} - -/// A record of an event that occurred. -#[repr(C)] -#[cfg_attr(target_arch = "x86_64", repr(packed))] -#[derive(Copy, Clone, Eq, PartialEq, Hash)] -pub struct Event { - /// Which specific event(s) occurred. - pub flags: EventFlags, - /// User data. - pub data: EventData, -} - -/// Data assocated with an [`Event`]. This can either be a 64-bit integer value -/// or a pointer which preserves pointer provenance. -#[repr(C)] -#[derive(Copy, Clone)] -pub union EventData { - /// A 64-bit integer value. - as_u64: u64, - - /// A `*mut c_void` which preserves pointer provenance, extended to be - /// 64-bit so that if we read the value as a `u64` union field, we don't - /// get uninitialized memory. - sixty_four_bit_pointer: SixtyFourBitPointer, -} - -impl EventData { - /// Construct a new value containing a `u64`. - #[inline] - pub const fn new_u64(value: u64) -> Self { - Self { as_u64: value } - } - - /// Construct a new value containing a `*mut c_void`. - #[inline] - pub const fn new_ptr(value: *mut c_void) -> Self { - Self { - sixty_four_bit_pointer: SixtyFourBitPointer { - pointer: value, - #[cfg(target_pointer_width = "32")] - _padding: 0, - }, - } - } - - /// Return the value as a `u64`. - /// - /// If the stored value was a pointer, the pointer is zero-extended to a - /// `u64`. - #[inline] - pub fn u64(self) -> u64 { - unsafe { self.as_u64 } - } - - /// Return the value as a `*mut c_void`. - /// - /// If the stored value was a `u64`, the least-significant bits of the - /// `u64` are returned as a pointer value. - #[inline] - pub fn ptr(self) -> *mut c_void { - unsafe { self.sixty_four_bit_pointer.pointer } - } -} - -impl PartialEq for EventData { - #[inline] - fn eq(&self, other: &Self) -> bool { - self.u64() == other.u64() - } -} - -impl Eq for EventData {} - -impl Hash for EventData { - #[inline] - fn hash(&self, state: &mut H) { - self.u64().hash(state) - } -} - -#[repr(C)] -#[derive(Copy, Clone)] -struct SixtyFourBitPointer { - #[cfg(target_endian = "big")] - #[cfg(target_pointer_width = "32")] - _padding: u32, - - pointer: *mut c_void, - - #[cfg(target_endian = "little")] - #[cfg(target_pointer_width = "32")] - _padding: u32, -} - -/// A vector of `Event`s, plus context for interpreting them. -pub struct EventVec { - events: Vec, -} - -impl EventVec { - /// Constructs an `EventVec` from raw pointer, length, and capacity. - /// - /// # Safety - /// - /// This function calls [`Vec::from_raw_parts`] with its arguments. - /// - /// [`Vec::from_raw_parts`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.from_raw_parts - #[inline] - pub unsafe fn from_raw_parts(ptr: *mut Event, len: usize, capacity: usize) -> Self { - Self { - events: Vec::from_raw_parts(ptr, len, capacity), - } - } - - /// Constructs an `EventVec` with memory for `capacity` `Event`s. - #[inline] - pub fn with_capacity(capacity: usize) -> Self { - Self { - events: Vec::with_capacity(capacity), - } - } - - /// Returns the current `Event` capacity of this `EventVec`. - #[inline] - pub fn capacity(&self) -> usize { - self.events.capacity() - } - - /// Reserves enough memory for at least `additional` more `Event`s. - #[inline] - pub fn reserve(&mut self, additional: usize) { - self.events.reserve(additional); - } - - /// Reserves enough memory for exactly `additional` more `Event`s. - #[inline] - pub fn reserve_exact(&mut self, additional: usize) { - self.events.reserve_exact(additional); - } - - /// Clears all the `Events` out of this `EventVec`. - #[inline] - pub fn clear(&mut self) { - self.events.clear(); - } - - /// Shrinks the capacity of this `EventVec` as much as possible. - #[inline] - pub fn shrink_to_fit(&mut self) { - self.events.shrink_to_fit(); - } - - /// Returns an iterator over the `Event`s in this `EventVec`. - #[inline] - pub fn iter(&self) -> Iter<'_> { - Iter { - iter: self.events.iter().copied(), - } - } - - /// Returns the number of `Event`s logically contained in this `EventVec`. - #[inline] - pub fn len(&mut self) -> usize { - self.events.len() - } - - /// Tests whether this `EventVec` is logically empty. - #[inline] - pub fn is_empty(&mut self) -> bool { - self.events.is_empty() - } -} - -impl<'a> IntoIterator for &'a EventVec { - type IntoIter = Iter<'a>; - type Item = Event; - - #[inline] - fn into_iter(self) -> Self::IntoIter { - self.iter() - } -} - -#[test] -fn test_epoll_layouts() { - check_renamed_type!(Event, epoll_event); - check_renamed_type!(Event, epoll_event); - check_renamed_struct_renamed_field!(Event, epoll_event, flags, events); - check_renamed_struct_renamed_field!(Event, epoll_event, data, data); -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/event/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/event/mod.rs deleted file mode 100644 index 4148a8c7fbbe..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/event/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -#[cfg(feature = "alloc")] -pub mod epoll; -pub(crate) mod poll_fd; -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/event/poll_fd.rs b/third_party/rust/rustix/src/backend/linux_raw/event/poll_fd.rs deleted file mode 100644 index c56c9152ddc4..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/event/poll_fd.rs +++ /dev/null @@ -1,98 +0,0 @@ -use crate::fd::{AsFd, BorrowedFd}; -use bitflags::bitflags; - -bitflags! { - /// `POLL*` flags for use with [`poll`]. - /// - /// [`poll`]: crate::io::poll - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PollFlags: u16 { - /// `POLLIN` - const IN = linux_raw_sys::general::POLLIN as u16; - /// `POLLPRI` - const PRI = linux_raw_sys::general::POLLPRI as u16; - /// `POLLOUT` - const OUT = linux_raw_sys::general::POLLOUT as u16; - /// `POLLRDNORM` - const RDNORM = linux_raw_sys::general::POLLRDNORM as u16; - /// `POLLWRNORM` - const WRNORM = linux_raw_sys::general::POLLWRNORM as u16; - /// `POLLRDBAND` - const RDBAND = linux_raw_sys::general::POLLRDBAND as u16; - /// `POLLWRBAND` - const WRBAND = linux_raw_sys::general::POLLWRBAND as u16; - /// `POLLERR` - const ERR = linux_raw_sys::general::POLLERR as u16; - /// `POLLHUP` - const HUP = linux_raw_sys::general::POLLHUP as u16; - /// `POLLNVAL` - const NVAL = linux_raw_sys::general::POLLNVAL as u16; - /// `POLLRDHUP` - const RDHUP = linux_raw_sys::general::POLLRDHUP as u16; - - /// - const _ = !0; - } -} - -/// `struct pollfd`—File descriptor and flags for use with [`poll`]. -/// -/// [`poll`]: crate::event::poll -#[doc(alias = "pollfd")] -#[repr(C)] -#[derive(Debug, Clone)] -pub struct PollFd<'fd> { - pub(crate) fd: BorrowedFd<'fd>, - pub(crate) events: u16, - pub(crate) revents: u16, -} - -impl<'fd> PollFd<'fd> { - /// Constructs a new `PollFd` holding `fd` and `events`. - #[inline] - pub fn new(fd: &'fd Fd, events: PollFlags) -> Self { - Self::from_borrowed_fd(fd.as_fd(), events) - } - - /// Sets the contained file descriptor to `fd`. - #[inline] - pub fn set_fd(&mut self, fd: &'fd Fd) { - self.fd = fd.as_fd(); - } - - /// Clears the ready events. - #[inline] - pub fn clear_revents(&mut self) { - self.revents = 0; - } - - /// Constructs a new `PollFd` holding `fd` and `events`. - /// - /// This is the same as `new`, but can be used to avoid borrowing the - /// `BorrowedFd`, which can be tricky in situations where the `BorrowedFd` - /// is a temporary. - #[inline] - pub fn from_borrowed_fd(fd: BorrowedFd<'fd>, events: PollFlags) -> Self { - Self { - fd, - events: events.bits(), - revents: 0, - } - } - - /// Returns the ready events. - #[inline] - pub fn revents(&self) -> PollFlags { - // Use `.unwrap()` here because in theory we know we know all the bits - // the OS might set here, but OS's have added extensions in the past. - PollFlags::from_bits(self.revents).unwrap() - } -} - -impl<'fd> AsFd for PollFd<'fd> { - #[inline] - fn as_fd(&self) -> BorrowedFd<'_> { - self.fd.as_fd() - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/event/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/event/syscalls.rs deleted file mode 100644 index f25ca11323ba..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/event/syscalls.rs +++ /dev/null @@ -1,140 +0,0 @@ -//! linux_raw syscalls supporting `rustix::event`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::c; -use crate::backend::conv::{c_int, c_uint, ret_owned_fd, ret_usize, slice_mut}; -use crate::event::{EventfdFlags, PollFd}; -use crate::fd::OwnedFd; -use crate::io; -#[cfg(feature = "alloc")] -use { - crate::backend::conv::{by_ref, pass_usize, raw_fd, ret, zero}, - crate::event::epoll, - crate::fd::BorrowedFd, - linux_raw_sys::general::{EPOLL_CTL_ADD, EPOLL_CTL_DEL, EPOLL_CTL_MOD}, -}; -#[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] -use { - crate::backend::conv::{opt_ref, size_of}, - linux_raw_sys::general::{__kernel_timespec, kernel_sigset_t}, -}; - -#[inline] -pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: c::c_int) -> io::Result { - let (fds_addr_mut, fds_len) = slice_mut(fds); - - #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] - unsafe { - let timeout = if timeout >= 0 { - Some(__kernel_timespec { - tv_sec: (timeout as i64) / 1000, - tv_nsec: (timeout as i64) % 1000 * 1_000_000, - }) - } else { - None - }; - ret_usize(syscall!( - __NR_ppoll, - fds_addr_mut, - fds_len, - opt_ref(timeout.as_ref()), - zero(), - size_of::() - )) - } - #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] - unsafe { - ret_usize(syscall!(__NR_poll, fds_addr_mut, fds_len, c_int(timeout))) - } -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn epoll_create(flags: epoll::CreateFlags) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_epoll_create1, flags)) } -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) unsafe fn epoll_add( - epfd: BorrowedFd<'_>, - fd: c::c_int, - event: &epoll::Event, -) -> io::Result<()> { - ret(syscall_readonly!( - __NR_epoll_ctl, - epfd, - c_uint(EPOLL_CTL_ADD), - raw_fd(fd), - by_ref(event) - )) -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) unsafe fn epoll_mod( - epfd: BorrowedFd<'_>, - fd: c::c_int, - event: &epoll::Event, -) -> io::Result<()> { - ret(syscall_readonly!( - __NR_epoll_ctl, - epfd, - c_uint(EPOLL_CTL_MOD), - raw_fd(fd), - by_ref(event) - )) -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) unsafe fn epoll_del(epfd: BorrowedFd<'_>, fd: c::c_int) -> io::Result<()> { - ret(syscall_readonly!( - __NR_epoll_ctl, - epfd, - c_uint(EPOLL_CTL_DEL), - raw_fd(fd), - zero() - )) -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn epoll_wait( - epfd: BorrowedFd<'_>, - events: *mut epoll::Event, - num_events: usize, - timeout: c::c_int, -) -> io::Result { - #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] - unsafe { - ret_usize(syscall!( - __NR_epoll_wait, - epfd, - events, - pass_usize(num_events), - c_int(timeout) - )) - } - #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] - unsafe { - ret_usize(syscall!( - __NR_epoll_pwait, - epfd, - events, - pass_usize(num_events), - c_int(timeout), - zero() - )) - } -} - -#[inline] -pub(crate) fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_eventfd2, c_uint(initval), flags)) } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/event/types.rs b/third_party/rust/rustix/src/backend/linux_raw/event/types.rs deleted file mode 100644 index 3821f8f648e9..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/event/types.rs +++ /dev/null @@ -1,21 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `EFD_*` flags for use with [`eventfd`]. - /// - /// [`eventfd`]: crate::io::eventfd - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct EventfdFlags: c::c_uint { - /// `EFD_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::EFD_CLOEXEC; - /// `EFD_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::EFD_NONBLOCK; - /// `EFD_SEMAPHORE` - const SEMAPHORE = linux_raw_sys::general::EFD_SEMAPHORE; - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/fs/dir.rs b/third_party/rust/rustix/src/backend/linux_raw/fs/dir.rs deleted file mode 100644 index 4df589af5ca8..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/fs/dir.rs +++ /dev/null @@ -1,227 +0,0 @@ -use crate::fd::{AsFd, BorrowedFd, OwnedFd}; -use crate::ffi::{CStr, CString}; -use crate::fs::{ - fcntl_getfl, fstat, fstatfs, fstatvfs, openat, FileType, Mode, OFlags, Stat, StatFs, StatVfs, -}; -use crate::io; -#[cfg(feature = "process")] -use crate::process::fchdir; -use crate::utils::as_ptr; -use alloc::borrow::ToOwned; -use alloc::vec::Vec; -use core::fmt; -use core::mem::size_of; -use linux_raw_sys::general::{linux_dirent64, SEEK_SET}; - -/// `DIR*` -pub struct Dir { - /// The `OwnedFd` that we read directory entries from. - fd: OwnedFd, - - buf: Vec, - pos: usize, - next: Option, -} - -impl Dir { - /// Construct a `Dir` that reads entries from the given directory - /// file descriptor. - #[inline] - pub fn read_from(fd: Fd) -> io::Result { - Self::_read_from(fd.as_fd()) - } - - #[inline] - fn _read_from(fd: BorrowedFd<'_>) -> io::Result { - let flags = fcntl_getfl(fd)?; - let fd_for_dir = openat(fd, cstr!("."), flags | OFlags::CLOEXEC, Mode::empty())?; - - Ok(Self { - fd: fd_for_dir, - buf: Vec::new(), - pos: 0, - next: None, - }) - } - - /// `rewinddir(self)` - #[inline] - pub fn rewind(&mut self) { - self.pos = self.buf.len(); - self.next = Some(0); - } - - /// `readdir(self)`, where `None` means the end of the directory. - pub fn read(&mut self) -> Option> { - if let Some(next) = self.next.take() { - match crate::backend::fs::syscalls::_seek(self.fd.as_fd(), next as i64, SEEK_SET) { - Ok(_) => (), - Err(err) => return Some(Err(err)), - } - } - - // Compute linux_dirent64 field offsets. - let z = linux_dirent64 { - d_ino: 0_u64, - d_off: 0_i64, - d_type: 0_u8, - d_reclen: 0_u16, - d_name: Default::default(), - }; - let base = as_ptr(&z) as usize; - let offsetof_d_reclen = (as_ptr(&z.d_reclen) as usize) - base; - let offsetof_d_name = (as_ptr(&z.d_name) as usize) - base; - let offsetof_d_ino = (as_ptr(&z.d_ino) as usize) - base; - let offsetof_d_type = (as_ptr(&z.d_type) as usize) - base; - - // Test if we need more entries, and if so, read more. - if self.buf.len() - self.pos < size_of::() { - match self.read_more()? { - Ok(()) => (), - Err(e) => return Some(Err(e)), - } - } - - // We successfully read an entry. Extract the fields. - let pos = self.pos; - - // Do an unaligned u16 load. - let d_reclen = u16::from_ne_bytes([ - self.buf[pos + offsetof_d_reclen], - self.buf[pos + offsetof_d_reclen + 1], - ]); - assert!(self.buf.len() - pos >= d_reclen as usize); - self.pos += d_reclen as usize; - - // Read the NUL-terminated name from the `d_name` field. Without - // `unsafe`, we need to scan for the NUL twice: once to obtain a size - // for the slice, and then once within `CStr::from_bytes_with_nul`. - let name_start = pos + offsetof_d_name; - let name_len = self.buf[name_start..] - .iter() - .position(|x| *x == b'\0') - .unwrap(); - let name = CStr::from_bytes_with_nul(&self.buf[name_start..][..=name_len]).unwrap(); - let name = name.to_owned(); - assert!(name.as_bytes().len() <= self.buf.len() - name_start); - - // Do an unaligned u64 load. - let d_ino = u64::from_ne_bytes([ - self.buf[pos + offsetof_d_ino], - self.buf[pos + offsetof_d_ino + 1], - self.buf[pos + offsetof_d_ino + 2], - self.buf[pos + offsetof_d_ino + 3], - self.buf[pos + offsetof_d_ino + 4], - self.buf[pos + offsetof_d_ino + 5], - self.buf[pos + offsetof_d_ino + 6], - self.buf[pos + offsetof_d_ino + 7], - ]); - - let d_type = self.buf[pos + offsetof_d_type]; - - // Check that our types correspond to the `linux_dirent64` types. - let _ = linux_dirent64 { - d_ino, - d_off: 0, - d_type, - d_reclen, - d_name: Default::default(), - }; - - Some(Ok(DirEntry { - d_ino, - d_type, - name, - })) - } - - fn read_more(&mut self) -> Option> { - let og_len = self.buf.len(); - // Capacity increment currently chosen by wild guess. - self.buf - .resize(self.buf.capacity() + 32 * size_of::(), 0); - let nread = match crate::backend::fs::syscalls::getdents(self.fd.as_fd(), &mut self.buf) { - Ok(nread) => nread, - Err(err) => { - self.buf.resize(og_len, 0); - return Some(Err(err)); - } - }; - self.buf.resize(nread, 0); - self.pos = 0; - if nread == 0 { - None - } else { - Some(Ok(())) - } - } - - /// `fstat(self)` - #[inline] - pub fn stat(&self) -> io::Result { - fstat(&self.fd) - } - - /// `fstatfs(self)` - #[inline] - pub fn statfs(&self) -> io::Result { - fstatfs(&self.fd) - } - - /// `fstatvfs(self)` - #[inline] - pub fn statvfs(&self) -> io::Result { - fstatvfs(&self.fd) - } - - /// `fchdir(self)` - #[cfg(feature = "process")] - #[cfg_attr(doc_cfg, doc(cfg(feature = "process")))] - #[inline] - pub fn chdir(&self) -> io::Result<()> { - fchdir(&self.fd) - } -} - -impl Iterator for Dir { - type Item = io::Result; - - #[inline] - fn next(&mut self) -> Option { - Self::read(self) - } -} - -impl fmt::Debug for Dir { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Dir").field("fd", &self.fd).finish() - } -} - -/// `struct dirent` -#[derive(Debug)] -pub struct DirEntry { - d_ino: u64, - d_type: u8, - name: CString, -} - -impl DirEntry { - /// Returns the file name of this directory entry. - #[inline] - pub fn file_name(&self) -> &CStr { - &self.name - } - - /// Returns the type of this directory entry. - #[inline] - pub fn file_type(&self) -> FileType { - FileType::from_dirent_d_type(self.d_type) - } - - /// Return the inode number of this directory entry. - #[inline] - pub fn ino(&self) -> u64 { - self.d_ino - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/fs/inotify.rs b/third_party/rust/rustix/src/backend/linux_raw/fs/inotify.rs deleted file mode 100644 index ef205ffdf525..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/fs/inotify.rs +++ /dev/null @@ -1,119 +0,0 @@ -//! inotify support for working with inotifies - -use crate::backend::c; -use crate::backend::fs::syscalls; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io; -use bitflags::bitflags; - -bitflags! { - /// `IN_*` for use with [`inotify_init`]. - /// - /// [`inotify_init`]: crate::fs::inotify::inotify_init - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CreateFlags: c::c_uint { - /// `IN_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::IN_CLOEXEC; - /// `IN_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::IN_NONBLOCK; - - /// - const _ = !0; - } -} - -bitflags! { - /// `IN*` for use with [`inotify_add_watch`]. - /// - /// [`inotify_add_watch`]: crate::fs::inotify::inotify_add_watch - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct WatchFlags: c::c_uint { - /// `IN_ACCESS` - const ACCESS = linux_raw_sys::general::IN_ACCESS; - /// `IN_ATTRIB` - const ATTRIB = linux_raw_sys::general::IN_ATTRIB; - /// `IN_CLOSE_NOWRITE` - const CLOSE_NOWRITE = linux_raw_sys::general::IN_CLOSE_NOWRITE; - /// `IN_CLOSE_WRITE` - const CLOSE_WRITE = linux_raw_sys::general::IN_CLOSE_WRITE; - /// `IN_CREATE ` - const CREATE = linux_raw_sys::general::IN_CREATE; - /// `IN_DELETE` - const DELETE = linux_raw_sys::general::IN_DELETE; - /// `IN_DELETE_SELF` - const DELETE_SELF = linux_raw_sys::general::IN_DELETE_SELF; - /// `IN_MODIFY` - const MODIFY = linux_raw_sys::general::IN_MODIFY; - /// `IN_MOVE_SELF` - const MOVE_SELF = linux_raw_sys::general::IN_MOVE_SELF; - /// `IN_MOVED_FROM` - const MOVED_FROM = linux_raw_sys::general::IN_MOVED_FROM; - /// `IN_MOVED_TO` - const MOVED_TO = linux_raw_sys::general::IN_MOVED_TO; - /// `IN_OPEN` - const OPEN = linux_raw_sys::general::IN_OPEN; - - /// `IN_CLOSE` - const CLOSE = linux_raw_sys::general::IN_CLOSE; - /// `IN_MOVE` - const MOVE = linux_raw_sys::general::IN_MOVE; - /// `IN_ALL_EVENTS` - const ALL_EVENTS = linux_raw_sys::general::IN_ALL_EVENTS; - - /// `IN_DONT_FOLLOW` - const DONT_FOLLOW = linux_raw_sys::general::IN_DONT_FOLLOW; - /// `IN_EXCL_UNLINK` - const EXCL_UNLINK = linux_raw_sys::general::IN_EXCL_UNLINK; - /// `IN_MASK_ADD` - const MASK_ADD = linux_raw_sys::general::IN_MASK_ADD; - /// `IN_MASK_CREATE` - const MASK_CREATE = linux_raw_sys::general::IN_MASK_CREATE; - /// `IN_ONESHOT` - const ONESHOT = linux_raw_sys::general::IN_ONESHOT; - /// `IN_ONLYDIR` - const ONLYDIR = linux_raw_sys::general::IN_ONLYDIR; - - /// - const _ = !0; - } -} - -/// `inotify_init1(flags)`—Creates a new inotify object. -/// -/// Use the [`CreateFlags::CLOEXEC`] flag to prevent the resulting file -/// descriptor from being implicitly passed across `exec` boundaries. -#[doc(alias = "inotify_init1")] -#[inline] -pub fn inotify_init(flags: CreateFlags) -> io::Result { - syscalls::inotify_init1(flags) -} - -/// `inotify_add_watch(self, path, flags)`—Adds a watch to inotify. -/// -/// This registers or updates a watch for the filesystem path `path` -/// and returns a watch descriptor corresponding to this watch. -/// -/// Note: Due to the existence of hardlinks, providing two -/// different paths to this method may result in it returning -/// the same watch descriptor. An application should keep track of this -/// externally to avoid logic errors. -#[inline] -pub fn inotify_add_watch( - inot: BorrowedFd<'_>, - path: P, - flags: WatchFlags, -) -> io::Result { - path.into_with_c_str(|path| syscalls::inotify_add_watch(inot, path, flags)) -} - -/// `inotify_rm_watch(self, wd)`—Removes a watch from this inotify -/// -/// The watch descriptor provided should have previously been returned by -/// [`inotify_add_watch`] and not previously have been removed. -#[doc(alias = "inotify_rm_watch")] -#[inline] -pub fn inotify_remove_watch(inot: BorrowedFd<'_>, wd: i32) -> io::Result<()> { - syscalls::inotify_rm_watch(inot, wd) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/fs/makedev.rs b/third_party/rust/rustix/src/backend/linux_raw/fs/makedev.rs deleted file mode 100644 index 284ba2f10101..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/fs/makedev.rs +++ /dev/null @@ -1,19 +0,0 @@ -use crate::fs::Dev; - -#[inline] -pub(crate) fn makedev(maj: u32, min: u32) -> Dev { - ((u64::from(maj) & 0xffff_f000_u64) << 32) - | ((u64::from(maj) & 0x0000_0fff_u64) << 8) - | ((u64::from(min) & 0xffff_ff00_u64) << 12) - | (u64::from(min) & 0x0000_00ff_u64) -} - -#[inline] -pub(crate) fn major(dev: Dev) -> u32 { - (((dev >> 31 >> 1) & 0xffff_f000) | ((dev >> 8) & 0x0000_0fff)) as u32 -} - -#[inline] -pub(crate) fn minor(dev: Dev) -> u32 { - (((dev >> 12) & 0xffff_ff00) | (dev & 0x0000_00ff)) as u32 -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/fs/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/fs/mod.rs deleted file mode 100644 index ba72c5b6d85b..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/fs/mod.rs +++ /dev/null @@ -1,13 +0,0 @@ -#[cfg(feature = "alloc")] -pub(crate) mod dir; -pub mod inotify; -pub(crate) mod makedev; -pub(crate) mod syscalls; -pub(crate) mod types; - -// TODO: Fix linux-raw-sys to define ioctl codes for sparc. -#[cfg(all(linux_kernel, any(target_arch = "sparc", target_arch = "sparc64")))] -pub(crate) const EXT4_IOC_RESIZE_FS: u32 = 0x8008_6610; - -#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] -pub(crate) use linux_raw_sys::ioctl::EXT4_IOC_RESIZE_FS; diff --git a/third_party/rust/rustix/src/backend/linux_raw/fs/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/fs/syscalls.rs deleted file mode 100644 index 72ab05cf8215..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/fs/syscalls.rs +++ /dev/null @@ -1,1631 +0,0 @@ -//! linux_raw syscalls supporting `rustix::fs`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::c; -use crate::backend::conv::fs::oflags_for_open_how; -use crate::backend::conv::{ - by_ref, c_int, c_uint, dev_t, opt_mut, pass_usize, raw_fd, ret, ret_c_int, ret_c_uint, - ret_infallible, ret_owned_fd, ret_usize, size_of, slice, slice_mut, zero, -}; -#[cfg(target_pointer_width = "64")] -use crate::backend::conv::{loff_t, loff_t_from_u64, ret_u64}; -#[cfg(any( - target_arch = "aarch64", - target_arch = "riscv64", - target_arch = "mips64", - target_arch = "mips64r6", - target_pointer_width = "32", -))] -use crate::fd::AsFd; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::ffi::CStr; -#[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] -use crate::fs::CWD; -use crate::fs::{ - inotify, Access, Advice, AtFlags, FallocateFlags, FileType, FlockOperation, Gid, MemfdFlags, - Mode, OFlags, RenameFlags, ResolveFlags, SealFlags, SeekFrom, Stat, StatFs, StatVfs, - StatVfsMountFlags, StatxFlags, Timestamps, Uid, XattrFlags, -}; -use crate::io; -use core::mem::MaybeUninit; -#[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] -use linux_raw_sys::general::stat as linux_stat64; -use linux_raw_sys::general::{ - __kernel_fsid_t, open_how, statx, AT_EACCESS, AT_FDCWD, AT_REMOVEDIR, AT_SYMLINK_NOFOLLOW, - F_ADD_SEALS, F_GETFL, F_GET_SEALS, F_SETFL, SEEK_CUR, SEEK_DATA, SEEK_END, SEEK_HOLE, SEEK_SET, - STATX__RESERVED, -}; -#[cfg(target_pointer_width = "32")] -use { - crate::backend::conv::{hi, lo, slice_just_addr}, - linux_raw_sys::general::stat64 as linux_stat64, - linux_raw_sys::general::timespec as __kernel_old_timespec, -}; - -#[inline] -pub(crate) fn open(path: &CStr, flags: OFlags, mode: Mode) -> io::Result { - // Always enable support for large files. - let flags = flags | OFlags::from_bits_retain(c::O_LARGEFILE); - - #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] - { - openat(CWD.as_fd(), path, flags, mode) - } - #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] - unsafe { - ret_owned_fd(syscall_readonly!(__NR_open, path, flags, mode)) - } -} - -#[inline] -pub(crate) fn openat( - dirfd: BorrowedFd<'_>, - path: &CStr, - flags: OFlags, - mode: Mode, -) -> io::Result { - // Always enable support for large files. - let flags = flags | OFlags::from_bits_retain(c::O_LARGEFILE); - - unsafe { ret_owned_fd(syscall_readonly!(__NR_openat, dirfd, path, flags, mode)) } -} - -#[inline] -pub(crate) fn openat2( - dirfd: BorrowedFd<'_>, - path: &CStr, - mut flags: OFlags, - mode: Mode, - resolve: ResolveFlags, -) -> io::Result { - // Enable support for large files, but not with `O_PATH` because - // `openat2` doesn't like those flags together. - if !flags.contains(OFlags::PATH) { - flags |= OFlags::from_bits_retain(c::O_LARGEFILE); - } - - unsafe { - ret_owned_fd(syscall_readonly!( - __NR_openat2, - dirfd, - path, - by_ref(&open_how { - flags: oflags_for_open_how(flags), - mode: u64::from(mode.bits()), - resolve: resolve.bits(), - }), - size_of::() - )) - } -} - -#[inline] -pub(crate) fn chmod(path: &CStr, mode: Mode) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fchmodat, - raw_fd(AT_FDCWD), - path, - mode - )) - } -} - -#[inline] -pub(crate) fn chmodat( - dirfd: BorrowedFd<'_>, - path: &CStr, - mode: Mode, - flags: AtFlags, -) -> io::Result<()> { - if flags == AtFlags::SYMLINK_NOFOLLOW { - return Err(io::Errno::OPNOTSUPP); - } - if !flags.is_empty() { - return Err(io::Errno::INVAL); - } - unsafe { ret(syscall_readonly!(__NR_fchmodat, dirfd, path, mode)) } -} - -#[inline] -pub(crate) fn fchmod(fd: BorrowedFd<'_>, mode: Mode) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_fchmod, fd, mode)) } -} - -#[inline] -pub(crate) fn chownat( - dirfd: BorrowedFd<'_>, - path: &CStr, - owner: Option, - group: Option, - flags: AtFlags, -) -> io::Result<()> { - unsafe { - let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); - ret(syscall_readonly!( - __NR_fchownat, - dirfd, - path, - c_uint(ow), - c_uint(gr), - flags - )) - } -} - -#[inline] -pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option, group: Option) -> io::Result<()> { - unsafe { - let (ow, gr) = crate::ugid::translate_fchown_args(owner, group); - ret(syscall_readonly!(__NR_fchown, fd, c_uint(ow), c_uint(gr))) - } -} - -#[inline] -pub(crate) fn mknodat( - dirfd: BorrowedFd<'_>, - path: &CStr, - file_type: FileType, - mode: Mode, - dev: u64, -) -> io::Result<()> { - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!( - __NR_mknodat, - dirfd, - path, - (mode, file_type), - dev_t(dev)? - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_mknodat, - dirfd, - path, - (mode, file_type), - dev_t(dev) - )) - } -} - -#[inline] -pub(crate) fn seek(fd: BorrowedFd<'_>, pos: SeekFrom) -> io::Result { - let (whence, offset) = match pos { - SeekFrom::Start(pos) => { - let pos: u64 = pos; - // Silently cast; we'll get `EINVAL` if the value is negative. - (SEEK_SET, pos as i64) - } - SeekFrom::End(offset) => (SEEK_END, offset), - SeekFrom::Current(offset) => (SEEK_CUR, offset), - SeekFrom::Data(offset) => (SEEK_DATA, offset), - SeekFrom::Hole(offset) => (SEEK_HOLE, offset), - }; - _seek(fd, offset, whence) -} - -#[inline] -pub(crate) fn _seek(fd: BorrowedFd<'_>, offset: i64, whence: c::c_uint) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!( - __NR__llseek, - fd, - // Don't use the hi/lo functions here because Linux's llseek - // takes its 64-bit argument differently from everything else. - pass_usize((offset >> 32) as usize), - pass_usize(offset as usize), - &mut result, - c_uint(whence) - ))?; - Ok(result.assume_init()) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_u64(syscall_readonly!( - __NR_lseek, - fd, - loff_t(offset), - c_uint(whence) - )) - } -} - -#[inline] -pub(crate) fn tell(fd: BorrowedFd<'_>) -> io::Result { - _seek(fd, 0, SEEK_CUR).map(|x| x as u64) -} - -#[inline] -pub(crate) fn ftruncate(fd: BorrowedFd<'_>, length: u64) -> io::Result<()> { - // - #[cfg(all( - target_pointer_width = "32", - any( - target_arch = "arm", - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "powerpc" - ), - ))] - unsafe { - ret(syscall_readonly!( - __NR_ftruncate64, - fd, - zero(), - hi(length), - lo(length) - )) - } - #[cfg(all( - target_pointer_width = "32", - not(any( - target_arch = "arm", - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "powerpc" - )), - ))] - unsafe { - ret(syscall_readonly!( - __NR_ftruncate64, - fd, - hi(length), - lo(length) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_ftruncate, - fd, - loff_t_from_u64(length) - )) - } -} - -#[inline] -pub(crate) fn fallocate( - fd: BorrowedFd<'_>, - mode: FallocateFlags, - offset: u64, - len: u64, -) -> io::Result<()> { - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!( - __NR_fallocate, - fd, - mode, - hi(offset), - lo(offset), - hi(len), - lo(len) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_fallocate, - fd, - mode, - loff_t_from_u64(offset), - loff_t_from_u64(len) - )) - } -} - -#[inline] -pub(crate) fn fadvise(fd: BorrowedFd<'_>, pos: u64, len: u64, advice: Advice) -> io::Result<()> { - // On ARM, the arguments are reordered so that the len and pos argument - // pairs are aligned. And ARM has a custom syscall code for this. - #[cfg(target_arch = "arm")] - unsafe { - ret(syscall_readonly!( - __NR_arm_fadvise64_64, - fd, - advice, - hi(pos), - lo(pos), - hi(len), - lo(len) - )) - } - - // On powerpc, the arguments are reordered as on ARM. - #[cfg(target_arch = "powerpc")] - unsafe { - ret(syscall_readonly!( - __NR_fadvise64_64, - fd, - advice, - hi(pos), - lo(pos), - hi(len), - lo(len) - )) - } - // On mips, the arguments are not reordered, and padding is inserted - // instead to ensure alignment. - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] - unsafe { - ret(syscall_readonly!( - __NR_fadvise64, - fd, - zero(), - hi(pos), - lo(pos), - hi(len), - lo(len), - advice - )) - } - #[cfg(all( - target_pointer_width = "32", - not(any( - target_arch = "arm", - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "powerpc" - )), - ))] - unsafe { - ret(syscall_readonly!( - __NR_fadvise64_64, - fd, - hi(pos), - lo(pos), - hi(len), - lo(len), - advice - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_fadvise64, - fd, - loff_t_from_u64(pos), - loff_t_from_u64(len), - advice - )) - } -} - -#[inline] -pub(crate) fn fsync(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_fsync, fd)) } -} - -#[inline] -pub(crate) fn fdatasync(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_fdatasync, fd)) } -} - -#[inline] -pub(crate) fn flock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_flock, - fd, - c_uint(operation as c::c_uint) - )) - } -} - -#[inline] -pub(crate) fn syncfs(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_syncfs, fd)) } -} - -#[inline] -pub(crate) fn sync() { - unsafe { ret_infallible(syscall_readonly!(__NR_sync)) } -} - -#[inline] -pub(crate) fn fstat(fd: BorrowedFd<'_>) -> io::Result { - // 32-bit and mips64 Linux: `struct stat64` is not y2038 compatible; use - // `statx`. - // - // And, some old platforms don't support `statx`, and some fail with a - // confusing error code, so we call `crate::fs::statx` to handle that. If - // `statx` isn't available, fall back to the buggy system call. - #[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ))] - { - match crate::fs::statx(fd, cstr!(""), AtFlags::EMPTY_PATH, StatxFlags::BASIC_STATS) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => fstat_old(fd), - Err(err) => Err(err), - } - } - - #[cfg(all( - target_pointer_width = "64", - not(target_arch = "mips64"), - not(target_arch = "mips64r6") - ))] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_fstat, fd, &mut result))?; - Ok(result.assume_init()) - } -} - -#[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6", -))] -fn fstat_old(fd: BorrowedFd<'_>) -> io::Result { - let mut result = MaybeUninit::::uninit(); - - #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] - unsafe { - ret(syscall!(__NR_fstat, fd, &mut result))?; - stat_to_stat(result.assume_init()) - } - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall!(__NR_fstat64, fd, &mut result))?; - stat_to_stat(result.assume_init()) - } -} - -#[inline] -pub(crate) fn stat(path: &CStr) -> io::Result { - // See the comments in `fstat` about using `crate::fs::statx` here. - #[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ))] - { - match crate::fs::statx( - crate::fs::CWD.as_fd(), - path, - AtFlags::empty(), - StatxFlags::BASIC_STATS, - ) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => stat_old(path), - Err(err) => Err(err), - } - } - - #[cfg(all( - target_pointer_width = "64", - not(target_arch = "mips64"), - not(target_arch = "mips64r6"), - ))] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!( - __NR_newfstatat, - raw_fd(AT_FDCWD), - path, - &mut result, - c_uint(0) - ))?; - Ok(result.assume_init()) - } -} - -#[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" -))] -fn stat_old(path: &CStr) -> io::Result { - let mut result = MaybeUninit::::uninit(); - - #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] - unsafe { - ret(syscall!( - __NR_newfstatat, - raw_fd(AT_FDCWD), - path, - &mut result, - c_uint(0) - ))?; - stat_to_stat(result.assume_init()) - } - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall!( - __NR_fstatat64, - raw_fd(AT_FDCWD), - path, - &mut result, - c_uint(0) - ))?; - stat_to_stat(result.assume_init()) - } -} - -#[inline] -pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { - // See the comments in `fstat` about using `crate::fs::statx` here. - #[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" - ))] - { - match crate::fs::statx(dirfd, path, flags, StatxFlags::BASIC_STATS) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => statat_old(dirfd, path, flags), - Err(err) => Err(err), - } - } - - #[cfg(all( - target_pointer_width = "64", - not(target_arch = "mips64"), - not(target_arch = "mips64r6"), - ))] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_newfstatat, dirfd, path, &mut result, flags))?; - Ok(result.assume_init()) - } -} - -#[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" -))] -fn statat_old(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result { - let mut result = MaybeUninit::::uninit(); - - #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] - unsafe { - ret(syscall!(__NR_newfstatat, dirfd, path, &mut result, flags))?; - stat_to_stat(result.assume_init()) - } - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall!(__NR_fstatat64, dirfd, path, &mut result, flags))?; - stat_to_stat(result.assume_init()) - } -} - -#[inline] -pub(crate) fn lstat(path: &CStr) -> io::Result { - // See the comments in `fstat` about using `crate::fs::statx` here. - #[cfg(any(target_pointer_width = "32", target_arch = "mips64"))] - { - match crate::fs::statx( - crate::fs::CWD.as_fd(), - path, - AtFlags::SYMLINK_NOFOLLOW, - StatxFlags::BASIC_STATS, - ) { - Ok(x) => statx_to_stat(x), - Err(io::Errno::NOSYS) => lstat_old(path), - Err(err) => Err(err), - } - } - - #[cfg(all(target_pointer_width = "64", not(target_arch = "mips64")))] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!( - __NR_newfstatat, - raw_fd(AT_FDCWD), - path, - &mut result, - c_uint(AT_SYMLINK_NOFOLLOW) - ))?; - Ok(result.assume_init()) - } -} - -#[cfg(any(target_pointer_width = "32", target_arch = "mips64"))] -fn lstat_old(path: &CStr) -> io::Result { - let mut result = MaybeUninit::::uninit(); - - #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] - unsafe { - ret(syscall!( - __NR_newfstatat, - raw_fd(AT_FDCWD), - path, - &mut result, - c_uint(AT_SYMLINK_NOFOLLOW) - ))?; - stat_to_stat(result.assume_init()) - } - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall!( - __NR_fstatat64, - raw_fd(AT_FDCWD), - path, - &mut result, - c_uint(AT_SYMLINK_NOFOLLOW) - ))?; - stat_to_stat(result.assume_init()) - } -} - -/// Convert from a Linux `statx` value to rustix's `Stat`. -#[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" -))] -fn statx_to_stat(x: crate::fs::Statx) -> io::Result { - Ok(Stat { - st_dev: crate::fs::makedev(x.stx_dev_major, x.stx_dev_minor), - st_mode: x.stx_mode.into(), - st_nlink: x.stx_nlink.into(), - st_uid: x.stx_uid.into(), - st_gid: x.stx_gid.into(), - st_rdev: crate::fs::makedev(x.stx_rdev_major, x.stx_rdev_minor), - st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blksize: x.stx_blksize.into(), - st_blocks: x.stx_blocks.into(), - st_atime: x - .stx_atime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_atime_nsec: x.stx_atime.tv_nsec.into(), - st_mtime: x - .stx_mtime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_mtime_nsec: x.stx_mtime.tv_nsec.into(), - st_ctime: x - .stx_ctime - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ctime_nsec: x.stx_ctime.tv_nsec.into(), - st_ino: x.stx_ino.into(), - }) -} - -/// Convert from a Linux `stat64` value to rustix's `Stat`. -#[cfg(target_pointer_width = "32")] -fn stat_to_stat(s64: linux_raw_sys::general::stat64) -> io::Result { - Ok(Stat { - st_dev: s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_mode: s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_nlink: s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_uid: s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_gid: s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_rdev: s64.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_size: s64.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blksize: s64.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blocks: s64.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_atime: s64.st_atime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_atime_nsec: s64 - .st_atime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_mtime: s64.st_mtime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_mtime_nsec: s64 - .st_mtime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ctime: s64.st_ctime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_ctime_nsec: s64 - .st_ctime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ino: s64.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?, - }) -} - -/// Convert from a Linux `stat` value to rustix's `Stat`. -#[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] -fn stat_to_stat(s: linux_raw_sys::general::stat) -> io::Result { - Ok(Stat { - st_dev: s.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_mode: s.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_nlink: s.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_uid: s.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_gid: s.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_rdev: s.st_rdev.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_size: s.st_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blksize: s.st_blksize.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_blocks: s.st_blocks.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_atime: s.st_atime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_atime_nsec: s - .st_atime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_mtime: s.st_mtime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_mtime_nsec: s - .st_mtime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ctime: s.st_ctime.try_into().map_err(|_| io::Errno::OVERFLOW)?, - st_ctime_nsec: s - .st_ctime_nsec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - st_ino: s.st_ino.try_into().map_err(|_| io::Errno::OVERFLOW)?, - }) -} - -#[inline] -pub(crate) fn statx( - dirfd: BorrowedFd<'_>, - path: &CStr, - flags: AtFlags, - mask: StatxFlags, -) -> io::Result { - // If a future Linux kernel adds more fields to `struct statx` and users - // passing flags unknown to rustix in `StatxFlags`, we could end up - // writing outside of the buffer. To prevent this possibility, we mask off - // any flags that we don't know about. - // - // This includes `STATX__RESERVED`, which has a value that we know, but - // which could take on arbitrary new meaning in the future. Linux currently - // rejects this flag with `EINVAL`, so we do the same. - // - // This doesn't rely on `STATX_ALL` because [it's deprecated] and already - // doesn't represent all the known flags. - // - // [it's deprecated]: https://patchwork.kernel.org/project/linux-fsdevel/patch/20200505095915.11275-7-mszeredi@redhat.com/ - if (mask.bits() & STATX__RESERVED) == STATX__RESERVED { - return Err(io::Errno::INVAL); - } - let mask = mask & StatxFlags::all(); - - unsafe { - let mut statx_buf = MaybeUninit::::uninit(); - ret(syscall!( - __NR_statx, - dirfd, - path, - flags, - mask, - &mut statx_buf - ))?; - Ok(statx_buf.assume_init()) - } -} - -#[inline] -pub(crate) fn is_statx_available() -> bool { - unsafe { - // Call `statx` with null pointers so that if it fails for any reason - // other than `EFAULT`, we know it's not supported. - matches!( - ret(syscall!( - __NR_statx, - raw_fd(AT_FDCWD), - zero(), - zero(), - zero(), - zero() - )), - Err(io::Errno::FAULT) - ) - } -} - -#[inline] -pub(crate) fn fstatfs(fd: BorrowedFd<'_>) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!( - __NR_fstatfs64, - fd, - size_of::(), - &mut result - ))?; - Ok(result.assume_init()) - } - - #[cfg(target_pointer_width = "64")] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_fstatfs, fd, &mut result))?; - Ok(result.assume_init()) - } -} - -#[inline] -pub(crate) fn fstatvfs(fd: BorrowedFd<'_>) -> io::Result { - // Linux doesn't have an `fstatvfs` syscall; we have to do `fstatfs` and - // translate the fields as best we can. - let statfs = fstatfs(fd)?; - - Ok(statfs_to_statvfs(statfs)) -} - -#[inline] -pub(crate) fn statfs(path: &CStr) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!( - __NR_statfs64, - path, - size_of::(), - &mut result - ))?; - Ok(result.assume_init()) - } - #[cfg(target_pointer_width = "64")] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_statfs, path, &mut result))?; - Ok(result.assume_init()) - } -} - -#[inline] -pub(crate) fn statvfs(path: &CStr) -> io::Result { - // Linux doesn't have a `statvfs` syscall; we have to do `statfs` and - // translate the fields as best we can. - let statfs = statfs(path)?; - - Ok(statfs_to_statvfs(statfs)) -} - -fn statfs_to_statvfs(statfs: StatFs) -> StatVfs { - let __kernel_fsid_t { val } = statfs.f_fsid; - let [f_fsid_val0, f_fsid_val1]: [i32; 2] = val; - - StatVfs { - f_bsize: statfs.f_bsize as u64, - f_frsize: if statfs.f_frsize != 0 { - statfs.f_frsize - } else { - statfs.f_bsize - } as u64, - f_blocks: statfs.f_blocks as u64, - f_bfree: statfs.f_bfree as u64, - f_bavail: statfs.f_bavail as u64, - f_files: statfs.f_files as u64, - f_ffree: statfs.f_ffree as u64, - f_favail: statfs.f_ffree as u64, - f_fsid: u64::from(f_fsid_val0 as u32) | u64::from(f_fsid_val1 as u32) << 32, - f_flag: StatVfsMountFlags::from_bits_retain(statfs.f_flags as u64), - f_namemax: statfs.f_namelen as u64, - } -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn readlink(path: &CStr, buf: &mut [u8]) -> io::Result { - let (buf_addr_mut, buf_len) = slice_mut(buf); - unsafe { - ret_usize(syscall!( - __NR_readlinkat, - raw_fd(AT_FDCWD), - path, - buf_addr_mut, - buf_len - )) - } -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn readlinkat( - dirfd: BorrowedFd<'_>, - path: &CStr, - buf: &mut [MaybeUninit], -) -> io::Result { - let (buf_addr_mut, buf_len) = slice_mut(buf); - unsafe { - ret_usize(syscall!( - __NR_readlinkat, - dirfd, - path, - buf_addr_mut, - buf_len - )) - } -} - -#[inline] -pub(crate) fn fcntl_getfl(fd: BorrowedFd<'_>) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - ret_c_uint(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GETFL))) - .map(OFlags::from_bits_retain) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_c_uint(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GETFL))).map(OFlags::from_bits_retain) - } -} - -#[inline] -pub(crate) fn fcntl_setfl(fd: BorrowedFd<'_>, flags: OFlags) -> io::Result<()> { - // Always enable support for large files. - let flags = flags | OFlags::from_bits_retain(c::O_LARGEFILE); - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_SETFL), flags)) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!(__NR_fcntl, fd, c_uint(F_SETFL), flags)) - } -} - -#[inline] -pub(crate) fn fcntl_get_seals(fd: BorrowedFd<'_>) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - ret_c_int(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GET_SEALS))) - .map(|seals| SealFlags::from_bits_retain(seals as u32)) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_c_int(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GET_SEALS))) - .map(|seals| SealFlags::from_bits_retain(seals as u32)) - } -} - -#[inline] -pub(crate) fn fcntl_add_seals(fd: BorrowedFd<'_>, seals: SealFlags) -> io::Result<()> { - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!( - __NR_fcntl64, - fd, - c_uint(F_ADD_SEALS), - seals - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_fcntl, - fd, - c_uint(F_ADD_SEALS), - seals - )) - } -} - -#[inline] -pub(crate) fn fcntl_lock(fd: BorrowedFd<'_>, operation: FlockOperation) -> io::Result<()> { - #[cfg(target_pointer_width = "64")] - use linux_raw_sys::general::{flock, F_SETLK, F_SETLKW}; - #[cfg(target_pointer_width = "32")] - use linux_raw_sys::general::{flock64 as flock, F_SETLK64 as F_SETLK, F_SETLKW64 as F_SETLKW}; - use linux_raw_sys::general::{F_RDLCK, F_UNLCK, F_WRLCK}; - - let (cmd, l_type) = match operation { - FlockOperation::LockShared => (F_SETLKW, F_RDLCK), - FlockOperation::LockExclusive => (F_SETLKW, F_WRLCK), - FlockOperation::Unlock => (F_SETLKW, F_UNLCK), - FlockOperation::NonBlockingLockShared => (F_SETLK, F_RDLCK), - FlockOperation::NonBlockingLockExclusive => (F_SETLK, F_WRLCK), - FlockOperation::NonBlockingUnlock => (F_SETLK, F_UNLCK), - }; - - let lock = flock { - l_type: l_type as _, - - // When `l_len` is zero, this locks all the bytes from - // `l_whence`/`l_start` to the end of the file, even as the - // file grows dynamically. - l_whence: SEEK_SET as _, - l_start: 0, - l_len: 0, - - // Unused. - l_pid: 0, - }; - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!( - __NR_fcntl64, - fd, - c_uint(cmd), - by_ref(&lock) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_fcntl, - fd, - c_uint(cmd), - by_ref(&lock) - )) - } -} - -#[inline] -pub(crate) fn rename(old_path: &CStr, new_path: &CStr) -> io::Result<()> { - #[cfg(target_arch = "riscv64")] - unsafe { - ret(syscall_readonly!( - __NR_renameat2, - raw_fd(AT_FDCWD), - old_path, - raw_fd(AT_FDCWD), - new_path, - c_uint(0) - )) - } - #[cfg(not(target_arch = "riscv64"))] - unsafe { - ret(syscall_readonly!( - __NR_renameat, - raw_fd(AT_FDCWD), - old_path, - raw_fd(AT_FDCWD), - new_path - )) - } -} - -#[inline] -pub(crate) fn renameat( - old_dirfd: BorrowedFd<'_>, - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, -) -> io::Result<()> { - #[cfg(target_arch = "riscv64")] - unsafe { - ret(syscall_readonly!( - __NR_renameat2, - old_dirfd, - old_path, - new_dirfd, - new_path, - c_uint(0) - )) - } - #[cfg(not(target_arch = "riscv64"))] - unsafe { - ret(syscall_readonly!( - __NR_renameat, - old_dirfd, - old_path, - new_dirfd, - new_path - )) - } -} - -#[inline] -pub(crate) fn renameat2( - old_dirfd: BorrowedFd<'_>, - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, - flags: RenameFlags, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_renameat2, - old_dirfd, - old_path, - new_dirfd, - new_path, - flags - )) - } -} - -#[inline] -pub(crate) fn unlink(path: &CStr) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_unlinkat, - raw_fd(AT_FDCWD), - path, - c_uint(0) - )) - } -} - -#[inline] -pub(crate) fn unlinkat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_unlinkat, dirfd, path, flags)) } -} - -#[inline] -pub(crate) fn rmdir(path: &CStr) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_unlinkat, - raw_fd(AT_FDCWD), - path, - c_uint(AT_REMOVEDIR) - )) - } -} - -#[inline] -pub(crate) fn link(old_path: &CStr, new_path: &CStr) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_linkat, - raw_fd(AT_FDCWD), - old_path, - raw_fd(AT_FDCWD), - new_path, - c_uint(0) - )) - } -} - -#[inline] -pub(crate) fn linkat( - old_dirfd: BorrowedFd<'_>, - old_path: &CStr, - new_dirfd: BorrowedFd<'_>, - new_path: &CStr, - flags: AtFlags, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_linkat, - old_dirfd, - old_path, - new_dirfd, - new_path, - flags - )) - } -} - -#[inline] -pub(crate) fn symlink(old_path: &CStr, new_path: &CStr) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_symlinkat, - old_path, - raw_fd(AT_FDCWD), - new_path - )) - } -} - -#[inline] -pub(crate) fn symlinkat(old_path: &CStr, dirfd: BorrowedFd<'_>, new_path: &CStr) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_symlinkat, old_path, dirfd, new_path)) } -} - -#[inline] -pub(crate) fn mkdir(path: &CStr, mode: Mode) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_mkdirat, - raw_fd(AT_FDCWD), - path, - mode - )) - } -} - -#[inline] -pub(crate) fn mkdirat(dirfd: BorrowedFd<'_>, path: &CStr, mode: Mode) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_mkdirat, dirfd, path, mode)) } -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn getdents(fd: BorrowedFd<'_>, dirent: &mut [u8]) -> io::Result { - let (dirent_addr_mut, dirent_len) = slice_mut(dirent); - - unsafe { ret_usize(syscall!(__NR_getdents64, fd, dirent_addr_mut, dirent_len)) } -} - -#[inline] -pub(crate) fn getdents_uninit( - fd: BorrowedFd<'_>, - dirent: &mut [MaybeUninit], -) -> io::Result { - let (dirent_addr_mut, dirent_len) = slice_mut(dirent); - - unsafe { ret_usize(syscall!(__NR_getdents64, fd, dirent_addr_mut, dirent_len)) } -} - -#[inline] -pub(crate) fn utimensat( - dirfd: BorrowedFd<'_>, - path: &CStr, - times: &Timestamps, - flags: AtFlags, -) -> io::Result<()> { - _utimensat(dirfd, Some(path), times, flags) -} - -#[inline] -fn _utimensat( - dirfd: BorrowedFd<'_>, - path: Option<&CStr>, - times: &Timestamps, - flags: AtFlags, -) -> io::Result<()> { - // `utimensat_time64` was introduced in Linux 5.1. The old `utimensat` - // syscall is not y2038-compatible on 32-bit architectures. - #[cfg(target_pointer_width = "32")] - unsafe { - match ret(syscall_readonly!( - __NR_utimensat_time64, - dirfd, - path, - by_ref(times), - flags - )) { - Err(io::Errno::NOSYS) => _utimensat_old(dirfd, path, times, flags), - otherwise => otherwise, - } - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_utimensat, - dirfd, - path, - by_ref(times), - flags - )) - } -} - -#[cfg(target_pointer_width = "32")] -unsafe fn _utimensat_old( - dirfd: BorrowedFd<'_>, - path: Option<&CStr>, - times: &Timestamps, - flags: AtFlags, -) -> io::Result<()> { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - let old_times = [ - __kernel_old_timespec { - tv_sec: times - .last_access - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: times - .last_access - .tv_nsec - .try_into() - .map_err(|_| io::Errno::INVAL)?, - }, - __kernel_old_timespec { - tv_sec: times - .last_modification - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: times - .last_modification - .tv_nsec - .try_into() - .map_err(|_| io::Errno::INVAL)?, - }, - ]; - // The length of the array is fixed and not passed into the syscall. - let old_times_addr = slice_just_addr(&old_times); - ret(syscall_readonly!( - __NR_utimensat, - dirfd, - path, - old_times_addr, - flags - )) -} - -#[inline] -pub(crate) fn futimens(fd: BorrowedFd<'_>, times: &Timestamps) -> io::Result<()> { - _utimensat(fd, None, times, AtFlags::empty()) -} - -#[inline] -pub(crate) fn access(path: &CStr, access: Access) -> io::Result<()> { - #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] - { - accessat_noflags(CWD.as_fd(), path, access) - } - - #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] - unsafe { - ret(syscall_readonly!(__NR_access, path, access)) - } -} - -pub(crate) fn accessat( - dirfd: BorrowedFd<'_>, - path: &CStr, - access: Access, - flags: AtFlags, -) -> io::Result<()> { - if !flags - .difference(AtFlags::EACCESS | AtFlags::SYMLINK_NOFOLLOW) - .is_empty() - { - return Err(io::Errno::INVAL); - } - - // Linux's `faccessat` syscall doesn't have a flags argument, so if we have - // any flags, use the newer `faccessat2` introduced in Linux 5.8 which - // does. Unless we're on Android where using newer system calls can cause - // seccomp to abort the process. - #[cfg(not(target_os = "android"))] - if !flags.is_empty() { - unsafe { - match ret(syscall_readonly!( - __NR_faccessat2, - dirfd, - path, - access, - flags - )) { - Ok(()) => return Ok(()), - Err(io::Errno::NOSYS) => {} - Err(other) => return Err(other), - } - } - } - - // Linux's `faccessat` doesn't have a flags parameter. If we have - // `AT_EACCESS` and we're not setuid or setgid, we can emulate it. - if flags.is_empty() - || (flags.bits() == AT_EACCESS - && crate::backend::ugid::syscalls::getuid() - == crate::backend::ugid::syscalls::geteuid() - && crate::backend::ugid::syscalls::getgid() - == crate::backend::ugid::syscalls::getegid()) - { - return accessat_noflags(dirfd, path, access); - } - - Err(io::Errno::NOSYS) -} - -#[inline] -fn accessat_noflags(dirfd: BorrowedFd<'_>, path: &CStr, access: Access) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_faccessat, dirfd, path, access)) } -} - -#[inline] -pub(crate) fn copy_file_range( - fd_in: BorrowedFd<'_>, - off_in: Option<&mut u64>, - fd_out: BorrowedFd<'_>, - off_out: Option<&mut u64>, - len: usize, -) -> io::Result { - unsafe { - ret_usize(syscall!( - __NR_copy_file_range, - fd_in, - opt_mut(off_in), - fd_out, - opt_mut(off_out), - pass_usize(len), - c_uint(0) - )) - } -} - -#[inline] -pub(crate) fn memfd_create(name: &CStr, flags: MemfdFlags) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_memfd_create, name, flags)) } -} - -#[inline] -pub(crate) fn sendfile( - out_fd: BorrowedFd<'_>, - in_fd: BorrowedFd<'_>, - offset: Option<&mut u64>, - count: usize, -) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - ret_usize(syscall!( - __NR_sendfile64, - out_fd, - in_fd, - opt_mut(offset), - pass_usize(count) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall!( - __NR_sendfile, - out_fd, - in_fd, - opt_mut(offset), - pass_usize(count) - )) - } -} - -#[inline] -pub(crate) fn inotify_init1(flags: inotify::CreateFlags) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_inotify_init1, flags)) } -} - -#[inline] -pub(crate) fn inotify_add_watch( - infd: BorrowedFd<'_>, - path: &CStr, - flags: inotify::WatchFlags, -) -> io::Result { - unsafe { ret_c_int(syscall_readonly!(__NR_inotify_add_watch, infd, path, flags)) } -} - -#[inline] -pub(crate) fn inotify_rm_watch(infd: BorrowedFd<'_>, wfd: i32) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_inotify_rm_watch, infd, c_int(wfd))) } -} - -#[inline] -pub(crate) fn getxattr(path: &CStr, name: &CStr, value: &mut [u8]) -> io::Result { - let (value_addr_mut, value_len) = slice_mut(value); - unsafe { - ret_usize(syscall!( - __NR_getxattr, - path, - name, - value_addr_mut, - value_len - )) - } -} - -#[inline] -pub(crate) fn lgetxattr(path: &CStr, name: &CStr, value: &mut [u8]) -> io::Result { - let (value_addr_mut, value_len) = slice_mut(value); - unsafe { - ret_usize(syscall!( - __NR_lgetxattr, - path, - name, - value_addr_mut, - value_len - )) - } -} - -#[inline] -pub(crate) fn fgetxattr(fd: BorrowedFd<'_>, name: &CStr, value: &mut [u8]) -> io::Result { - let (value_addr_mut, value_len) = slice_mut(value); - unsafe { - ret_usize(syscall!( - __NR_fgetxattr, - fd, - name, - value_addr_mut, - value_len - )) - } -} - -#[inline] -pub(crate) fn setxattr( - path: &CStr, - name: &CStr, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - let (value_addr, value_len) = slice(value); - unsafe { - ret(syscall_readonly!( - __NR_setxattr, - path, - name, - value_addr, - value_len, - flags - )) - } -} - -#[inline] -pub(crate) fn lsetxattr( - path: &CStr, - name: &CStr, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - let (value_addr, value_len) = slice(value); - unsafe { - ret(syscall_readonly!( - __NR_lsetxattr, - path, - name, - value_addr, - value_len, - flags - )) - } -} - -#[inline] -pub(crate) fn fsetxattr( - fd: BorrowedFd<'_>, - name: &CStr, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - let (value_addr, value_len) = slice(value); - unsafe { - ret(syscall_readonly!( - __NR_fsetxattr, - fd, - name, - value_addr, - value_len, - flags - )) - } -} - -#[inline] -pub(crate) fn listxattr(path: &CStr, list: &mut [c::c_char]) -> io::Result { - let (list_addr_mut, list_len) = slice_mut(list); - unsafe { ret_usize(syscall!(__NR_listxattr, path, list_addr_mut, list_len)) } -} - -#[inline] -pub(crate) fn llistxattr(path: &CStr, list: &mut [c::c_char]) -> io::Result { - let (list_addr_mut, list_len) = slice_mut(list); - unsafe { ret_usize(syscall!(__NR_llistxattr, path, list_addr_mut, list_len)) } -} - -#[inline] -pub(crate) fn flistxattr(fd: BorrowedFd<'_>, list: &mut [c::c_char]) -> io::Result { - let (list_addr_mut, list_len) = slice_mut(list); - unsafe { ret_usize(syscall!(__NR_flistxattr, fd, list_addr_mut, list_len)) } -} - -#[inline] -pub(crate) fn removexattr(path: &CStr, name: &CStr) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_removexattr, path, name)) } -} - -#[inline] -pub(crate) fn lremovexattr(path: &CStr, name: &CStr) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_lremovexattr, path, name)) } -} - -#[inline] -pub(crate) fn fremovexattr(fd: BorrowedFd<'_>, name: &CStr) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_fremovexattr, fd, name)) } -} - -#[test] -fn test_sizes() { - assert_eq_size!(linux_raw_sys::general::__kernel_loff_t, u64); - - // Assert that `Timestamps` has the expected layout. - assert_eq_size!([linux_raw_sys::general::__kernel_timespec; 2], Timestamps); -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/fs/types.rs b/third_party/rust/rustix/src/backend/linux_raw/fs/types.rs deleted file mode 100644 index 6e2e14f1ea3c..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/fs/types.rs +++ /dev/null @@ -1,739 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `*_OK` constants for use with [`accessat`]. - /// - /// [`accessat`]: fn.accessat.html - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct Access: c::c_uint { - /// `R_OK` - const READ_OK = linux_raw_sys::general::R_OK; - - /// `W_OK` - const WRITE_OK = linux_raw_sys::general::W_OK; - - /// `X_OK` - const EXEC_OK = linux_raw_sys::general::X_OK; - - /// `F_OK` - const EXISTS = linux_raw_sys::general::F_OK; - - /// - const _ = !0; - } -} - -bitflags! { - /// `AT_*` constants for use with [`openat`], [`statat`], and other `*at` - /// functions. - /// - /// [`openat`]: crate::fs::openat - /// [`statat`]: crate::fs::statat - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct AtFlags: c::c_uint { - /// `AT_SYMLINK_NOFOLLOW` - const SYMLINK_NOFOLLOW = linux_raw_sys::general::AT_SYMLINK_NOFOLLOW; - - /// `AT_EACCESS` - const EACCESS = linux_raw_sys::general::AT_EACCESS; - - /// `AT_REMOVEDIR` - const REMOVEDIR = linux_raw_sys::general::AT_REMOVEDIR; - - /// `AT_SYMLINK_FOLLOW` - const SYMLINK_FOLLOW = linux_raw_sys::general::AT_SYMLINK_FOLLOW; - - /// `AT_NO_AUTOMOUNT` - const NO_AUTOMOUNT = linux_raw_sys::general::AT_NO_AUTOMOUNT; - - /// `AT_EMPTY_PATH` - const EMPTY_PATH = linux_raw_sys::general::AT_EMPTY_PATH; - - /// `AT_STATX_SYNC_AS_STAT` - const STATX_SYNC_AS_STAT = linux_raw_sys::general::AT_STATX_SYNC_AS_STAT; - - /// `AT_STATX_FORCE_SYNC` - const STATX_FORCE_SYNC = linux_raw_sys::general::AT_STATX_FORCE_SYNC; - - /// `AT_STATX_DONT_SYNC` - const STATX_DONT_SYNC = linux_raw_sys::general::AT_STATX_DONT_SYNC; - - /// - const _ = !0; - } -} - -bitflags! { - /// `S_I*` constants for use with [`openat`], [`chmodat`], and [`fchmod`]. - /// - /// [`openat`]: crate::fs::openat - /// [`chmodat`]: crate::fs::chmodat - /// [`fchmod`]: crate::fs::fchmod - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct Mode: RawMode { - /// `S_IRWXU` - const RWXU = linux_raw_sys::general::S_IRWXU; - - /// `S_IRUSR` - const RUSR = linux_raw_sys::general::S_IRUSR; - - /// `S_IWUSR` - const WUSR = linux_raw_sys::general::S_IWUSR; - - /// `S_IXUSR` - const XUSR = linux_raw_sys::general::S_IXUSR; - - /// `S_IRWXG` - const RWXG = linux_raw_sys::general::S_IRWXG; - - /// `S_IRGRP` - const RGRP = linux_raw_sys::general::S_IRGRP; - - /// `S_IWGRP` - const WGRP = linux_raw_sys::general::S_IWGRP; - - /// `S_IXGRP` - const XGRP = linux_raw_sys::general::S_IXGRP; - - /// `S_IRWXO` - const RWXO = linux_raw_sys::general::S_IRWXO; - - /// `S_IROTH` - const ROTH = linux_raw_sys::general::S_IROTH; - - /// `S_IWOTH` - const WOTH = linux_raw_sys::general::S_IWOTH; - - /// `S_IXOTH` - const XOTH = linux_raw_sys::general::S_IXOTH; - - /// `S_ISUID` - const SUID = linux_raw_sys::general::S_ISUID; - - /// `S_ISGID` - const SGID = linux_raw_sys::general::S_ISGID; - - /// `S_ISVTX` - const SVTX = linux_raw_sys::general::S_ISVTX; - - /// - const _ = !0; - } -} - -impl Mode { - /// Construct a `Mode` from the mode bits of the `st_mode` field of a - /// `Stat`. - #[inline] - pub const fn from_raw_mode(st_mode: RawMode) -> Self { - Self::from_bits_truncate(st_mode) - } - - /// Construct an `st_mode` value from `Stat`. - #[inline] - pub const fn as_raw_mode(self) -> RawMode { - self.bits() - } -} - -impl From for Mode { - /// Support conversions from raw mode values to `Mode`. - /// - /// ``` - /// use rustix::fs::{Mode, RawMode}; - /// assert_eq!(Mode::from(0o700), Mode::RWXU); - /// ``` - #[inline] - fn from(st_mode: RawMode) -> Self { - Self::from_raw_mode(st_mode) - } -} - -impl From for RawMode { - /// Support conversions from `Mode` to raw mode values. - /// - /// ``` - /// use rustix::fs::{Mode, RawMode}; - /// assert_eq!(RawMode::from(Mode::RWXU), 0o700); - /// ``` - #[inline] - fn from(mode: Mode) -> Self { - mode.as_raw_mode() - } -} - -bitflags! { - /// `O_*` constants for use with [`openat`]. - /// - /// [`openat`]: crate::fs::openat - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct OFlags: c::c_uint { - /// `O_ACCMODE` - const ACCMODE = linux_raw_sys::general::O_ACCMODE; - - /// Similar to `ACCMODE`, but just includes the read/write flags, and - /// no other flags. - /// - /// Some implementations include `O_PATH` in `O_ACCMODE`, when - /// sometimes we really just want the read/write bits. Caution is - /// indicated, as the presence of `O_PATH` may mean that the read/write - /// bits don't have their usual meaning. - const RWMODE = linux_raw_sys::general::O_RDONLY | - linux_raw_sys::general::O_WRONLY | - linux_raw_sys::general::O_RDWR; - - /// `O_APPEND` - const APPEND = linux_raw_sys::general::O_APPEND; - - /// `O_CREAT` - #[doc(alias = "CREAT")] - const CREATE = linux_raw_sys::general::O_CREAT; - - /// `O_DIRECTORY` - const DIRECTORY = linux_raw_sys::general::O_DIRECTORY; - - /// `O_DSYNC`. Linux 2.6.32 only supports `O_SYNC`. - const DSYNC = linux_raw_sys::general::O_SYNC; - - /// `O_EXCL` - const EXCL = linux_raw_sys::general::O_EXCL; - - /// `O_FSYNC`. Linux 2.6.32 only supports `O_SYNC`. - const FSYNC = linux_raw_sys::general::O_SYNC; - - /// `O_NOFOLLOW` - const NOFOLLOW = linux_raw_sys::general::O_NOFOLLOW; - - /// `O_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::O_NONBLOCK; - - /// `O_RDONLY` - const RDONLY = linux_raw_sys::general::O_RDONLY; - - /// `O_WRONLY` - const WRONLY = linux_raw_sys::general::O_WRONLY; - - /// `O_RDWR` - /// - /// This is not equal to `RDONLY | WRONLY`. It's a distinct flag. - const RDWR = linux_raw_sys::general::O_RDWR; - - /// `O_NOCTTY` - const NOCTTY = linux_raw_sys::general::O_NOCTTY; - - /// `O_RSYNC`. Linux 2.6.32 only supports `O_SYNC`. - const RSYNC = linux_raw_sys::general::O_SYNC; - - /// `O_SYNC` - const SYNC = linux_raw_sys::general::O_SYNC; - - /// `O_TRUNC` - const TRUNC = linux_raw_sys::general::O_TRUNC; - - /// `O_PATH` - const PATH = linux_raw_sys::general::O_PATH; - - /// `O_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; - - /// `O_TMPFILE` - const TMPFILE = linux_raw_sys::general::O_TMPFILE; - - /// `O_NOATIME` - const NOATIME = linux_raw_sys::general::O_NOATIME; - - /// `O_DIRECT` - const DIRECT = linux_raw_sys::general::O_DIRECT; - - /// - const _ = !0; - } -} - -bitflags! { - /// `RESOLVE_*` constants for use with [`openat2`]. - /// - /// [`openat2`]: crate::fs::openat2 - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ResolveFlags: u64 { - /// `RESOLVE_NO_XDEV` - const NO_XDEV = linux_raw_sys::general::RESOLVE_NO_XDEV as u64; - - /// `RESOLVE_NO_MAGICLINKS` - const NO_MAGICLINKS = linux_raw_sys::general::RESOLVE_NO_MAGICLINKS as u64; - - /// `RESOLVE_NO_SYMLINKS` - const NO_SYMLINKS = linux_raw_sys::general::RESOLVE_NO_SYMLINKS as u64; - - /// `RESOLVE_BENEATH` - const BENEATH = linux_raw_sys::general::RESOLVE_BENEATH as u64; - - /// `RESOLVE_IN_ROOT` - const IN_ROOT = linux_raw_sys::general::RESOLVE_IN_ROOT as u64; - - /// `RESOLVE_CACHED` (since Linux 5.12) - const CACHED = linux_raw_sys::general::RESOLVE_CACHED as u64; - - /// - const _ = !0; - } -} - -bitflags! { - /// `RENAME_*` constants for use with [`renameat_with`]. - /// - /// [`renameat_with`]: crate::fs::renameat_with - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct RenameFlags: c::c_uint { - /// `RENAME_EXCHANGE` - const EXCHANGE = linux_raw_sys::general::RENAME_EXCHANGE; - - /// `RENAME_NOREPLACE` - const NOREPLACE = linux_raw_sys::general::RENAME_NOREPLACE; - - /// `RENAME_WHITEOUT` - const WHITEOUT = linux_raw_sys::general::RENAME_WHITEOUT; - - /// - const _ = !0; - } -} - -/// `S_IF*` constants for use with [`mknodat`] and [`Stat`]'s `st_mode` field. -/// -/// [`mknodat`]: crate::fs::mknodat -/// [`Stat`]: crate::fs::Stat -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub enum FileType { - /// `S_IFREG` - RegularFile = linux_raw_sys::general::S_IFREG as isize, - - /// `S_IFDIR` - Directory = linux_raw_sys::general::S_IFDIR as isize, - - /// `S_IFLNK` - Symlink = linux_raw_sys::general::S_IFLNK as isize, - - /// `S_IFIFO` - #[doc(alias = "IFO")] - Fifo = linux_raw_sys::general::S_IFIFO as isize, - - /// `S_IFSOCK` - Socket = linux_raw_sys::general::S_IFSOCK as isize, - - /// `S_IFCHR` - CharacterDevice = linux_raw_sys::general::S_IFCHR as isize, - - /// `S_IFBLK` - BlockDevice = linux_raw_sys::general::S_IFBLK as isize, - - /// An unknown filesystem object. - Unknown, -} - -impl FileType { - /// Construct a `FileType` from the `S_IFMT` bits of the `st_mode` field of - /// a `Stat`. - #[inline] - pub const fn from_raw_mode(st_mode: RawMode) -> Self { - match st_mode & linux_raw_sys::general::S_IFMT { - linux_raw_sys::general::S_IFREG => Self::RegularFile, - linux_raw_sys::general::S_IFDIR => Self::Directory, - linux_raw_sys::general::S_IFLNK => Self::Symlink, - linux_raw_sys::general::S_IFIFO => Self::Fifo, - linux_raw_sys::general::S_IFSOCK => Self::Socket, - linux_raw_sys::general::S_IFCHR => Self::CharacterDevice, - linux_raw_sys::general::S_IFBLK => Self::BlockDevice, - _ => Self::Unknown, - } - } - - /// Construct an `st_mode` value from `Stat`. - #[inline] - pub const fn as_raw_mode(self) -> RawMode { - match self { - Self::RegularFile => linux_raw_sys::general::S_IFREG, - Self::Directory => linux_raw_sys::general::S_IFDIR, - Self::Symlink => linux_raw_sys::general::S_IFLNK, - Self::Fifo => linux_raw_sys::general::S_IFIFO, - Self::Socket => linux_raw_sys::general::S_IFSOCK, - Self::CharacterDevice => linux_raw_sys::general::S_IFCHR, - Self::BlockDevice => linux_raw_sys::general::S_IFBLK, - Self::Unknown => linux_raw_sys::general::S_IFMT, - } - } - - /// Construct a `FileType` from the `d_type` field of a `c::dirent`. - #[inline] - pub(crate) const fn from_dirent_d_type(d_type: u8) -> Self { - match d_type as u32 { - linux_raw_sys::general::DT_REG => Self::RegularFile, - linux_raw_sys::general::DT_DIR => Self::Directory, - linux_raw_sys::general::DT_LNK => Self::Symlink, - linux_raw_sys::general::DT_SOCK => Self::Socket, - linux_raw_sys::general::DT_FIFO => Self::Fifo, - linux_raw_sys::general::DT_CHR => Self::CharacterDevice, - linux_raw_sys::general::DT_BLK => Self::BlockDevice, - // linux_raw_sys::general::DT_UNKNOWN | - _ => Self::Unknown, - } - } -} - -/// `POSIX_FADV_*` constants for use with [`fadvise`]. -/// -/// [`fadvise`]: crate::fs::fadvise -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -pub enum Advice { - /// `POSIX_FADV_NORMAL` - Normal = linux_raw_sys::general::POSIX_FADV_NORMAL, - - /// `POSIX_FADV_SEQUENTIAL` - Sequential = linux_raw_sys::general::POSIX_FADV_SEQUENTIAL, - - /// `POSIX_FADV_RANDOM` - Random = linux_raw_sys::general::POSIX_FADV_RANDOM, - - /// `POSIX_FADV_NOREUSE` - NoReuse = linux_raw_sys::general::POSIX_FADV_NOREUSE, - - /// `POSIX_FADV_WILLNEED` - WillNeed = linux_raw_sys::general::POSIX_FADV_WILLNEED, - - /// `POSIX_FADV_DONTNEED` - DontNeed = linux_raw_sys::general::POSIX_FADV_DONTNEED, -} - -bitflags! { - /// `MFD_*` constants for use with [`memfd_create`]. - /// - /// [`memfd_create`]: crate::fs::memfd_create - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MemfdFlags: c::c_uint { - /// `MFD_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::MFD_CLOEXEC; - - /// `MFD_ALLOW_SEALING` - const ALLOW_SEALING = linux_raw_sys::general::MFD_ALLOW_SEALING; - - /// `MFD_HUGETLB` (since Linux 4.14) - const HUGETLB = linux_raw_sys::general::MFD_HUGETLB; - - /// `MFD_HUGE_64KB` - const HUGE_64KB = linux_raw_sys::general::MFD_HUGE_64KB; - /// `MFD_HUGE_512JB` - const HUGE_512KB = linux_raw_sys::general::MFD_HUGE_512KB; - /// `MFD_HUGE_1MB` - const HUGE_1MB = linux_raw_sys::general::MFD_HUGE_1MB; - /// `MFD_HUGE_2MB` - const HUGE_2MB = linux_raw_sys::general::MFD_HUGE_2MB; - /// `MFD_HUGE_8MB` - const HUGE_8MB = linux_raw_sys::general::MFD_HUGE_8MB; - /// `MFD_HUGE_16MB` - const HUGE_16MB = linux_raw_sys::general::MFD_HUGE_16MB; - /// `MFD_HUGE_32MB` - const HUGE_32MB = linux_raw_sys::general::MFD_HUGE_32MB; - /// `MFD_HUGE_256MB` - const HUGE_256MB = linux_raw_sys::general::MFD_HUGE_256MB; - /// `MFD_HUGE_512MB` - const HUGE_512MB = linux_raw_sys::general::MFD_HUGE_512MB; - /// `MFD_HUGE_1GB` - const HUGE_1GB = linux_raw_sys::general::MFD_HUGE_1GB; - /// `MFD_HUGE_2GB` - const HUGE_2GB = linux_raw_sys::general::MFD_HUGE_2GB; - /// `MFD_HUGE_16GB` - const HUGE_16GB = linux_raw_sys::general::MFD_HUGE_16GB; - - /// - const _ = !0; - } -} - -bitflags! { - /// `F_SEAL_*` constants for use with [`fcntl_add_seals`] and - /// [`fcntl_get_seals`]. - /// - /// [`fcntl_add_seals`]: crate::fs::fcntl_add_seals - /// [`fcntl_get_seals`]: crate::fs::fcntl_get_seals - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SealFlags: u32 { - /// `F_SEAL_SEAL`. - const SEAL = linux_raw_sys::general::F_SEAL_SEAL; - /// `F_SEAL_SHRINK`. - const SHRINK = linux_raw_sys::general::F_SEAL_SHRINK; - /// `F_SEAL_GROW`. - const GROW = linux_raw_sys::general::F_SEAL_GROW; - /// `F_SEAL_WRITE`. - const WRITE = linux_raw_sys::general::F_SEAL_WRITE; - /// `F_SEAL_FUTURE_WRITE` (since Linux 5.1) - const FUTURE_WRITE = linux_raw_sys::general::F_SEAL_FUTURE_WRITE; - - /// - const _ = !0; - } -} - -bitflags! { - /// `STATX_*` constants for use with [`statx`]. - /// - /// [`statx`]: crate::fs::statx - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct StatxFlags: u32 { - /// `STATX_TYPE` - const TYPE = linux_raw_sys::general::STATX_TYPE; - - /// `STATX_MODE` - const MODE = linux_raw_sys::general::STATX_MODE; - - /// `STATX_NLINK` - const NLINK = linux_raw_sys::general::STATX_NLINK; - - /// `STATX_UID` - const UID = linux_raw_sys::general::STATX_UID; - - /// `STATX_GID` - const GID = linux_raw_sys::general::STATX_GID; - - /// `STATX_ATIME` - const ATIME = linux_raw_sys::general::STATX_ATIME; - - /// `STATX_MTIME` - const MTIME = linux_raw_sys::general::STATX_MTIME; - - /// `STATX_CTIME` - const CTIME = linux_raw_sys::general::STATX_CTIME; - - /// `STATX_INO` - const INO = linux_raw_sys::general::STATX_INO; - - /// `STATX_SIZE` - const SIZE = linux_raw_sys::general::STATX_SIZE; - - /// `STATX_BLOCKS` - const BLOCKS = linux_raw_sys::general::STATX_BLOCKS; - - /// `STATX_BASIC_STATS` - const BASIC_STATS = linux_raw_sys::general::STATX_BASIC_STATS; - - /// `STATX_BTIME` - const BTIME = linux_raw_sys::general::STATX_BTIME; - - /// `STATX_MNT_ID` (since Linux 5.8) - const MNT_ID = linux_raw_sys::general::STATX_MNT_ID; - - /// `STATX_DIOALIGN` (since Linux 6.1) - const DIOALIGN = linux_raw_sys::general::STATX_DIOALIGN; - - /// `STATX_ALL` - const ALL = linux_raw_sys::general::STATX_ALL; - - /// - const _ = !0; - } -} - -bitflags! { - /// `FALLOC_FL_*` constants for use with [`fallocate`]. - /// - /// [`fallocate`]: crate::fs::fallocate - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FallocateFlags: u32 { - /// `FALLOC_FL_KEEP_SIZE` - const KEEP_SIZE = linux_raw_sys::general::FALLOC_FL_KEEP_SIZE; - /// `FALLOC_FL_PUNCH_HOLE` - const PUNCH_HOLE = linux_raw_sys::general::FALLOC_FL_PUNCH_HOLE; - /// `FALLOC_FL_NO_HIDE_STALE` - const NO_HIDE_STALE = linux_raw_sys::general::FALLOC_FL_NO_HIDE_STALE; - /// `FALLOC_FL_COLLAPSE_RANGE` - const COLLAPSE_RANGE = linux_raw_sys::general::FALLOC_FL_COLLAPSE_RANGE; - /// `FALLOC_FL_ZERO_RANGE` - const ZERO_RANGE = linux_raw_sys::general::FALLOC_FL_ZERO_RANGE; - /// `FALLOC_FL_INSERT_RANGE` - const INSERT_RANGE = linux_raw_sys::general::FALLOC_FL_INSERT_RANGE; - /// `FALLOC_FL_UNSHARE_RANGE` - const UNSHARE_RANGE = linux_raw_sys::general::FALLOC_FL_UNSHARE_RANGE; - - /// - const _ = !0; - } -} - -bitflags! { - /// `ST_*` constants for use with [`StatVfs`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct StatVfsMountFlags: u64 { - /// `ST_MANDLOCK` - const MANDLOCK = linux_raw_sys::general::MS_MANDLOCK as u64; - - /// `ST_NOATIME` - const NOATIME = linux_raw_sys::general::MS_NOATIME as u64; - - /// `ST_NODEV` - const NODEV = linux_raw_sys::general::MS_NODEV as u64; - - /// `ST_NODIRATIME` - const NODIRATIME = linux_raw_sys::general::MS_NODIRATIME as u64; - - /// `ST_NOEXEC` - const NOEXEC = linux_raw_sys::general::MS_NOEXEC as u64; - - /// `ST_NOSUID` - const NOSUID = linux_raw_sys::general::MS_NOSUID as u64; - - /// `ST_RDONLY` - const RDONLY = linux_raw_sys::general::MS_RDONLY as u64; - - /// `ST_RELATIME` - const RELATIME = linux_raw_sys::general::MS_RELATIME as u64; - - /// `ST_SYNCHRONOUS` - const SYNCHRONOUS = linux_raw_sys::general::MS_SYNCHRONOUS as u64; - - /// - const _ = !0; - } -} - -/// `LOCK_*` constants for use with [`flock`] and [`fcntl_lock`]. -/// -/// [`flock`]: crate::fs::flock -/// [`fcntl_lock`]: crate::fs::fcntl_lock -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -#[repr(u32)] -pub enum FlockOperation { - /// `LOCK_SH` - LockShared = linux_raw_sys::general::LOCK_SH, - /// `LOCK_EX` - LockExclusive = linux_raw_sys::general::LOCK_EX, - /// `LOCK_UN` - Unlock = linux_raw_sys::general::LOCK_UN, - /// `LOCK_SH | LOCK_NB` - NonBlockingLockShared = linux_raw_sys::general::LOCK_SH | linux_raw_sys::general::LOCK_NB, - /// `LOCK_EX | LOCK_NB` - NonBlockingLockExclusive = linux_raw_sys::general::LOCK_EX | linux_raw_sys::general::LOCK_NB, - /// `LOCK_UN | LOCK_NB` - NonBlockingUnlock = linux_raw_sys::general::LOCK_UN | linux_raw_sys::general::LOCK_NB, -} - -/// `struct stat` for use with [`statat`] and [`fstat`]. -/// -/// [`statat`]: crate::fs::statat -/// [`fstat`]: crate::fs::fstat -// On 32-bit, and mips64, Linux's `struct stat64` has a 32-bit `st_mtime` and -// friends, so we use our own struct, populated from `statx` where possible, to -// avoid the y2038 bug. -#[cfg(any( - target_pointer_width = "32", - target_arch = "mips64", - target_arch = "mips64r6" -))] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -#[allow(missing_docs)] -pub struct Stat { - pub st_dev: u64, - pub st_mode: u32, - pub st_nlink: u32, - pub st_uid: u32, - pub st_gid: u32, - pub st_rdev: u64, - pub st_size: i64, - pub st_blksize: u32, - pub st_blocks: u64, - pub st_atime: u64, - pub st_atime_nsec: u32, - pub st_mtime: u64, - pub st_mtime_nsec: u32, - pub st_ctime: u64, - pub st_ctime_nsec: u32, - pub st_ino: u64, -} - -/// `struct stat` for use with [`statat`] and [`fstat`]. -/// -/// [`statat`]: crate::fs::statat -/// [`fstat`]: crate::fs::fstat -#[cfg(all( - target_pointer_width = "64", - not(target_arch = "mips64"), - not(target_arch = "mips64r6") -))] -pub type Stat = linux_raw_sys::general::stat; - -/// `struct statfs` for use with [`statfs`] and [`fstatfs`]. -/// -/// [`statfs`]: crate::fs::statfs -/// [`fstatfs`]: crate::fs::fstatfs -#[allow(clippy::module_name_repetitions)] -pub type StatFs = linux_raw_sys::general::statfs64; - -/// `struct statvfs` for use with [`statvfs`] and [`fstatvfs`]. -/// -/// [`statvfs`]: crate::fs::statvfs -/// [`fstatvfs`]: crate::fs::fstatvfs -#[allow(missing_docs)] -pub struct StatVfs { - pub f_bsize: u64, - pub f_frsize: u64, - pub f_blocks: u64, - pub f_bfree: u64, - pub f_bavail: u64, - pub f_files: u64, - pub f_ffree: u64, - pub f_favail: u64, - pub f_fsid: u64, - pub f_flag: StatVfsMountFlags, - pub f_namemax: u64, -} - -/// `struct statx` for use with [`statx`]. -/// -/// [`statx`]: crate::fs::statx -pub type Statx = linux_raw_sys::general::statx; - -/// `struct statx_timestamp` for use with [`Statx`]. -pub type StatxTimestamp = linux_raw_sys::general::statx_timestamp; - -/// `mode_t` -#[cfg(not(any( - target_arch = "x86", - target_arch = "sparc", - target_arch = "avr", - target_arch = "arm", -)))] -pub type RawMode = linux_raw_sys::general::__kernel_mode_t; - -/// `mode_t` -#[cfg(any( - target_arch = "x86", - target_arch = "sparc", - target_arch = "avr", - target_arch = "arm", -))] -// Don't use `__kernel_mode_t` since it's `u16` which differs from `st_size`. -pub type RawMode = c::c_uint; - -/// `dev_t` -// Within the kernel the dev_t is 32-bit, but userspace uses a 64-bit field. -pub type Dev = u64; - -/// `__fsword_t` -#[cfg(not(any(target_arch = "mips64", target_arch = "mips64r6")))] -pub type FsWord = linux_raw_sys::general::__fsword_t; - -/// `__fsword_t` -#[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] -pub type FsWord = i64; diff --git a/third_party/rust/rustix/src/backend/linux_raw/io/errno.rs b/third_party/rust/rustix/src/backend/linux_raw/io/errno.rs deleted file mode 100644 index 82669c5cef8f..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/io/errno.rs +++ /dev/null @@ -1,553 +0,0 @@ -//! The `rustix` `Errno` type. -//! -//! This type holds an OS error code, which conceptually corresponds to an -//! `errno` value. -//! -//! # Safety -//! -//! Linux uses error codes in `-4095..0`; we use rustc attributes to describe -//! this restricted range of values. -#![allow(unsafe_code)] -#![cfg_attr(not(rustc_attrs), allow(unused_unsafe))] - -use crate::backend::c; -use crate::backend::fd::RawFd; -use crate::backend::reg::{RetNumber, RetReg}; -use crate::io; -use linux_raw_sys::errno; - -/// `errno`—An error code. -/// -/// The error type for `rustix` APIs. This is similar to [`std::io::Error`], -//// but only holds an OS error code, and no extra error value. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html -/// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html -/// [Winsock2]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno -/// [NetBSD]: https://man.netbsd.org/errno.2 -/// [OpenBSD]: https://man.openbsd.org/errno.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=errno§ion=2 -/// [illumos]: https://illumos.org/man/3C/errno -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html -/// [`std::io::Error`]: Result -#[repr(transparent)] -#[doc(alias = "errno")] -#[derive(Eq, PartialEq, Hash, Copy, Clone)] -// Linux returns negated error codes, and we leave them in negated form, so -// error codes are in `-4095..0`. -#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_start(0xf001))] -#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_end(0xffff))] -pub struct Errno(u16); - -impl Errno { - /// Extract an `Errno` value from a `std::io::Error`. - /// - /// This isn't a `From` conversion because it's expected to be relatively - /// uncommon. - #[cfg(feature = "std")] - #[inline] - pub fn from_io_error(io_err: &std::io::Error) -> Option { - io_err.raw_os_error().and_then(|raw| { - // `std::io::Error` could theoretically have arbitrary "OS error" - // values, so check that they're in Linux's range. - if (1..4096).contains(&raw) { - Some(Self::from_errno(raw as u32)) - } else { - None - } - }) - } - - /// Extract the raw OS error number from this error. - #[inline] - pub const fn raw_os_error(self) -> i32 { - (self.0 as i16 as i32).wrapping_neg() - } - - /// Construct an `Errno` from a raw OS error number. - #[inline] - pub const fn from_raw_os_error(raw: i32) -> Self { - Self::from_errno(raw as u32) - } - - /// Convert from a C `errno` value (which is positive) to an `Errno`. - const fn from_errno(raw: u32) -> Self { - // We store error values in negated form, so that we don't have to - // negate them after every syscall. - let encoded = raw.wrapping_neg() as u16; - - // TODO: Use Range::contains, once that's `const`. - assert!(encoded >= 0xf001); - - // SAFETY: Linux syscalls return negated error values in the range - // `-4095..0`, which we just asserted. - unsafe { Self(encoded) } - } -} - -/// Check for an error from the result of a syscall which encodes a -/// `c::c_int` on success. -#[inline] -pub(in crate::backend) fn try_decode_c_int( - raw: RetReg, -) -> io::Result { - if raw.is_in_range(-4095..0) { - // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is - // in that range. - return Err(unsafe { Errno(raw.decode_error_code()) }); - } - - Ok(raw.decode_c_int()) -} - -/// Check for an error from the result of a syscall which encodes a -/// `c::c_uint` on success. -#[inline] -pub(in crate::backend) fn try_decode_c_uint( - raw: RetReg, -) -> io::Result { - if raw.is_in_range(-4095..0) { - // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is - // in that range. - return Err(unsafe { Errno(raw.decode_error_code()) }); - } - - Ok(raw.decode_c_uint()) -} - -/// Check for an error from the result of a syscall which encodes a `usize` on -/// success. -#[inline] -pub(in crate::backend) fn try_decode_usize(raw: RetReg) -> io::Result { - if raw.is_in_range(-4095..0) { - // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is - // in that range. - return Err(unsafe { Errno(raw.decode_error_code()) }); - } - - Ok(raw.decode_usize()) -} - -/// Check for an error from the result of a syscall which encodes a -/// `*mut c_void` on success. -#[inline] -pub(in crate::backend) fn try_decode_void_star( - raw: RetReg, -) -> io::Result<*mut c::c_void> { - if raw.is_in_range(-4095..0) { - // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is - // in that range. - return Err(unsafe { Errno(raw.decode_error_code()) }); - } - - Ok(raw.decode_void_star()) -} - -/// Check for an error from the result of a syscall which encodes a -/// `u64` on success. -#[cfg(target_pointer_width = "64")] -#[inline] -pub(in crate::backend) fn try_decode_u64(raw: RetReg) -> io::Result { - if raw.is_in_range(-4095..0) { - // SAFETY: `raw` must be in `-4095..0`, and we just checked that raw is - // in that range. - return Err(unsafe { Errno(raw.decode_error_code()) }); - } - - Ok(raw.decode_u64()) -} - -/// Check for an error from the result of a syscall which encodes a file -/// descriptor on success. -/// -/// # Safety -/// -/// This must only be used with syscalls which return file descriptors on -/// success. -#[inline] -pub(in crate::backend) unsafe fn try_decode_raw_fd( - raw: RetReg, -) -> io::Result { - // Instead of using `check_result` here, we just check for negative, since - // this function is only used for system calls which return file - // descriptors, and this produces smaller code. - if raw.is_negative() { - debug_assert!(raw.is_in_range(-4095..0)); - - // Tell the optimizer that we know the value is in the error range. - // This helps it avoid unnecessary integer conversions. - #[cfg(core_intrinsics)] - { - core::intrinsics::assume(raw.is_in_range(-4095..0)); - } - - return Err(Errno(raw.decode_error_code())); - } - - Ok(raw.decode_raw_fd()) -} - -/// Check for an error from the result of a syscall which encodes no value on -/// success. On success, return the unconsumed `raw` value. -/// -/// # Safety -/// -/// This must only be used with syscalls which return no value on success. -#[inline] -pub(in crate::backend) unsafe fn try_decode_void( - raw: RetReg, -) -> io::Result<()> { - // Instead of using `check_result` here, we just check for zero, since this - // function is only used for system calls which have no other return value, - // and this produces smaller code. - if raw.is_nonzero() { - debug_assert!(raw.is_in_range(-4095..0)); - - // Tell the optimizer that we know the value is in the error range. - // This helps it avoid unnecessary integer conversions. - #[cfg(core_intrinsics)] - { - core::intrinsics::assume(raw.is_in_range(-4095..0)); - } - - return Err(Errno(raw.decode_error_code())); - } - - raw.decode_void(); - - Ok(()) -} - -/// Check for an error from the result of a syscall which does not return on -/// success. On success, return the unconsumed `raw` value. -/// -/// # Safety -/// -/// This must only be used with syscalls which do not return on success. -#[cfg(feature = "runtime")] -#[inline] -pub(in crate::backend) unsafe fn try_decode_error(raw: RetReg) -> io::Errno { - debug_assert!(raw.is_in_range(-4095..0)); - - // Tell the optimizer that we know the value is in the error range. - // This helps it avoid unnecessary integer conversions. - #[cfg(core_intrinsics)] - { - core::intrinsics::assume(raw.is_in_range(-4095..0)); - } - - Errno(raw.decode_error_code()) -} - -/// Return the contained `usize` value. -#[cfg(not(debug_assertions))] -#[inline] -pub(in crate::backend) fn decode_usize_infallible(raw: RetReg) -> usize { - raw.decode_usize() -} - -/// Return the contained `c_int` value. -#[cfg(not(debug_assertions))] -#[inline] -pub(in crate::backend) fn decode_c_int_infallible(raw: RetReg) -> c::c_int { - raw.decode_c_int() -} - -/// Return the contained `c_uint` value. -#[cfg(not(debug_assertions))] -#[inline] -pub(in crate::backend) fn decode_c_uint_infallible(raw: RetReg) -> c::c_uint { - raw.decode_c_uint() -} - -impl Errno { - /// `EACCES` - #[doc(alias = "ACCES")] - pub const ACCESS: Self = Self::from_errno(errno::EACCES); - /// `EADDRINUSE` - pub const ADDRINUSE: Self = Self::from_errno(errno::EADDRINUSE); - /// `EADDRNOTAVAIL` - pub const ADDRNOTAVAIL: Self = Self::from_errno(errno::EADDRNOTAVAIL); - /// `EADV` - pub const ADV: Self = Self::from_errno(errno::EADV); - /// `EAFNOSUPPORT` - pub const AFNOSUPPORT: Self = Self::from_errno(errno::EAFNOSUPPORT); - /// `EAGAIN` - pub const AGAIN: Self = Self::from_errno(errno::EAGAIN); - /// `EALREADY` - pub const ALREADY: Self = Self::from_errno(errno::EALREADY); - /// `EBADE` - pub const BADE: Self = Self::from_errno(errno::EBADE); - /// `EBADF` - pub const BADF: Self = Self::from_errno(errno::EBADF); - /// `EBADFD` - pub const BADFD: Self = Self::from_errno(errno::EBADFD); - /// `EBADMSG` - pub const BADMSG: Self = Self::from_errno(errno::EBADMSG); - /// `EBADR` - pub const BADR: Self = Self::from_errno(errno::EBADR); - /// `EBADRQC` - pub const BADRQC: Self = Self::from_errno(errno::EBADRQC); - /// `EBADSLT` - pub const BADSLT: Self = Self::from_errno(errno::EBADSLT); - /// `EBFONT` - pub const BFONT: Self = Self::from_errno(errno::EBFONT); - /// `EBUSY` - pub const BUSY: Self = Self::from_errno(errno::EBUSY); - /// `ECANCELED` - pub const CANCELED: Self = Self::from_errno(errno::ECANCELED); - /// `ECHILD` - pub const CHILD: Self = Self::from_errno(errno::ECHILD); - /// `ECHRNG` - pub const CHRNG: Self = Self::from_errno(errno::ECHRNG); - /// `ECOMM` - pub const COMM: Self = Self::from_errno(errno::ECOMM); - /// `ECONNABORTED` - pub const CONNABORTED: Self = Self::from_errno(errno::ECONNABORTED); - /// `ECONNREFUSED` - pub const CONNREFUSED: Self = Self::from_errno(errno::ECONNREFUSED); - /// `ECONNRESET` - pub const CONNRESET: Self = Self::from_errno(errno::ECONNRESET); - /// `EDEADLK` - pub const DEADLK: Self = Self::from_errno(errno::EDEADLK); - /// `EDEADLOCK` - pub const DEADLOCK: Self = Self::from_errno(errno::EDEADLOCK); - /// `EDESTADDRREQ` - pub const DESTADDRREQ: Self = Self::from_errno(errno::EDESTADDRREQ); - /// `EDOM` - pub const DOM: Self = Self::from_errno(errno::EDOM); - /// `EDOTDOT` - pub const DOTDOT: Self = Self::from_errno(errno::EDOTDOT); - /// `EDQUOT` - pub const DQUOT: Self = Self::from_errno(errno::EDQUOT); - /// `EEXIST` - pub const EXIST: Self = Self::from_errno(errno::EEXIST); - /// `EFAULT` - pub const FAULT: Self = Self::from_errno(errno::EFAULT); - /// `EFBIG` - pub const FBIG: Self = Self::from_errno(errno::EFBIG); - /// `EHOSTDOWN` - pub const HOSTDOWN: Self = Self::from_errno(errno::EHOSTDOWN); - /// `EHOSTUNREACH` - pub const HOSTUNREACH: Self = Self::from_errno(errno::EHOSTUNREACH); - /// `EHWPOISON` - pub const HWPOISON: Self = Self::from_errno(errno::EHWPOISON); - /// `EIDRM` - pub const IDRM: Self = Self::from_errno(errno::EIDRM); - /// `EILSEQ` - pub const ILSEQ: Self = Self::from_errno(errno::EILSEQ); - /// `EINPROGRESS` - pub const INPROGRESS: Self = Self::from_errno(errno::EINPROGRESS); - /// `EINTR`. - /// - /// For a convenient way to retry system calls that exit with `INTR`, use - /// [`retry_on_intr`]. - /// - /// [`retry_on_intr`]: io::retry_on_intr - pub const INTR: Self = Self::from_errno(errno::EINTR); - /// `EINVAL` - pub const INVAL: Self = Self::from_errno(errno::EINVAL); - /// `EIO` - pub const IO: Self = Self::from_errno(errno::EIO); - /// `EISCONN` - pub const ISCONN: Self = Self::from_errno(errno::EISCONN); - /// `EISDIR` - pub const ISDIR: Self = Self::from_errno(errno::EISDIR); - /// `EISNAM` - pub const ISNAM: Self = Self::from_errno(errno::EISNAM); - /// `EKEYEXPIRED` - pub const KEYEXPIRED: Self = Self::from_errno(errno::EKEYEXPIRED); - /// `EKEYREJECTED` - pub const KEYREJECTED: Self = Self::from_errno(errno::EKEYREJECTED); - /// `EKEYREVOKED` - pub const KEYREVOKED: Self = Self::from_errno(errno::EKEYREVOKED); - /// `EL2HLT` - pub const L2HLT: Self = Self::from_errno(errno::EL2HLT); - /// `EL2NSYNC` - pub const L2NSYNC: Self = Self::from_errno(errno::EL2NSYNC); - /// `EL3HLT` - pub const L3HLT: Self = Self::from_errno(errno::EL3HLT); - /// `EL3RST` - pub const L3RST: Self = Self::from_errno(errno::EL3RST); - /// `ELIBACC` - pub const LIBACC: Self = Self::from_errno(errno::ELIBACC); - /// `ELIBBAD` - pub const LIBBAD: Self = Self::from_errno(errno::ELIBBAD); - /// `ELIBEXEC` - pub const LIBEXEC: Self = Self::from_errno(errno::ELIBEXEC); - /// `ELIBMAX` - pub const LIBMAX: Self = Self::from_errno(errno::ELIBMAX); - /// `ELIBSCN` - pub const LIBSCN: Self = Self::from_errno(errno::ELIBSCN); - /// `ELNRNG` - pub const LNRNG: Self = Self::from_errno(errno::ELNRNG); - /// `ELOOP` - pub const LOOP: Self = Self::from_errno(errno::ELOOP); - /// `EMEDIUMTYPE` - pub const MEDIUMTYPE: Self = Self::from_errno(errno::EMEDIUMTYPE); - /// `EMFILE` - pub const MFILE: Self = Self::from_errno(errno::EMFILE); - /// `EMLINK` - pub const MLINK: Self = Self::from_errno(errno::EMLINK); - /// `EMSGSIZE` - pub const MSGSIZE: Self = Self::from_errno(errno::EMSGSIZE); - /// `EMULTIHOP` - pub const MULTIHOP: Self = Self::from_errno(errno::EMULTIHOP); - /// `ENAMETOOLONG` - pub const NAMETOOLONG: Self = Self::from_errno(errno::ENAMETOOLONG); - /// `ENAVAIL` - pub const NAVAIL: Self = Self::from_errno(errno::ENAVAIL); - /// `ENETDOWN` - pub const NETDOWN: Self = Self::from_errno(errno::ENETDOWN); - /// `ENETRESET` - pub const NETRESET: Self = Self::from_errno(errno::ENETRESET); - /// `ENETUNREACH` - pub const NETUNREACH: Self = Self::from_errno(errno::ENETUNREACH); - /// `ENFILE` - pub const NFILE: Self = Self::from_errno(errno::ENFILE); - /// `ENOANO` - pub const NOANO: Self = Self::from_errno(errno::ENOANO); - /// `ENOBUFS` - pub const NOBUFS: Self = Self::from_errno(errno::ENOBUFS); - /// `ENOCSI` - pub const NOCSI: Self = Self::from_errno(errno::ENOCSI); - /// `ENODATA` - #[doc(alias = "NOATTR")] - pub const NODATA: Self = Self::from_errno(errno::ENODATA); - /// `ENODEV` - pub const NODEV: Self = Self::from_errno(errno::ENODEV); - /// `ENOENT` - pub const NOENT: Self = Self::from_errno(errno::ENOENT); - /// `ENOEXEC` - pub const NOEXEC: Self = Self::from_errno(errno::ENOEXEC); - /// `ENOKEY` - pub const NOKEY: Self = Self::from_errno(errno::ENOKEY); - /// `ENOLCK` - pub const NOLCK: Self = Self::from_errno(errno::ENOLCK); - /// `ENOLINK` - pub const NOLINK: Self = Self::from_errno(errno::ENOLINK); - /// `ENOMEDIUM` - pub const NOMEDIUM: Self = Self::from_errno(errno::ENOMEDIUM); - /// `ENOMEM` - pub const NOMEM: Self = Self::from_errno(errno::ENOMEM); - /// `ENOMSG` - pub const NOMSG: Self = Self::from_errno(errno::ENOMSG); - /// `ENONET` - pub const NONET: Self = Self::from_errno(errno::ENONET); - /// `ENOPKG` - pub const NOPKG: Self = Self::from_errno(errno::ENOPKG); - /// `ENOPROTOOPT` - pub const NOPROTOOPT: Self = Self::from_errno(errno::ENOPROTOOPT); - /// `ENOSPC` - pub const NOSPC: Self = Self::from_errno(errno::ENOSPC); - /// `ENOSR` - pub const NOSR: Self = Self::from_errno(errno::ENOSR); - /// `ENOSTR` - pub const NOSTR: Self = Self::from_errno(errno::ENOSTR); - /// `ENOSYS` - pub const NOSYS: Self = Self::from_errno(errno::ENOSYS); - /// `ENOTBLK` - pub const NOTBLK: Self = Self::from_errno(errno::ENOTBLK); - /// `ENOTCONN` - pub const NOTCONN: Self = Self::from_errno(errno::ENOTCONN); - /// `ENOTDIR` - pub const NOTDIR: Self = Self::from_errno(errno::ENOTDIR); - /// `ENOTEMPTY` - pub const NOTEMPTY: Self = Self::from_errno(errno::ENOTEMPTY); - /// `ENOTNAM` - pub const NOTNAM: Self = Self::from_errno(errno::ENOTNAM); - /// `ENOTRECOVERABLE` - pub const NOTRECOVERABLE: Self = Self::from_errno(errno::ENOTRECOVERABLE); - /// `ENOTSOCK` - pub const NOTSOCK: Self = Self::from_errno(errno::ENOTSOCK); - /// `ENOTSUP` - // On Linux, `ENOTSUP` has the same value as `EOPNOTSUPP`. - pub const NOTSUP: Self = Self::from_errno(errno::EOPNOTSUPP); - /// `ENOTTY` - pub const NOTTY: Self = Self::from_errno(errno::ENOTTY); - /// `ENOTUNIQ` - pub const NOTUNIQ: Self = Self::from_errno(errno::ENOTUNIQ); - /// `ENXIO` - pub const NXIO: Self = Self::from_errno(errno::ENXIO); - /// `EOPNOTSUPP` - pub const OPNOTSUPP: Self = Self::from_errno(errno::EOPNOTSUPP); - /// `EOVERFLOW` - pub const OVERFLOW: Self = Self::from_errno(errno::EOVERFLOW); - /// `EOWNERDEAD` - pub const OWNERDEAD: Self = Self::from_errno(errno::EOWNERDEAD); - /// `EPERM` - pub const PERM: Self = Self::from_errno(errno::EPERM); - /// `EPFNOSUPPORT` - pub const PFNOSUPPORT: Self = Self::from_errno(errno::EPFNOSUPPORT); - /// `EPIPE` - pub const PIPE: Self = Self::from_errno(errno::EPIPE); - /// `EPROTO` - pub const PROTO: Self = Self::from_errno(errno::EPROTO); - /// `EPROTONOSUPPORT` - pub const PROTONOSUPPORT: Self = Self::from_errno(errno::EPROTONOSUPPORT); - /// `EPROTOTYPE` - pub const PROTOTYPE: Self = Self::from_errno(errno::EPROTOTYPE); - /// `ERANGE` - pub const RANGE: Self = Self::from_errno(errno::ERANGE); - /// `EREMCHG` - pub const REMCHG: Self = Self::from_errno(errno::EREMCHG); - /// `EREMOTE` - pub const REMOTE: Self = Self::from_errno(errno::EREMOTE); - /// `EREMOTEIO` - pub const REMOTEIO: Self = Self::from_errno(errno::EREMOTEIO); - /// `ERESTART` - pub const RESTART: Self = Self::from_errno(errno::ERESTART); - /// `ERFKILL` - pub const RFKILL: Self = Self::from_errno(errno::ERFKILL); - /// `EROFS` - pub const ROFS: Self = Self::from_errno(errno::EROFS); - /// `ESHUTDOWN` - pub const SHUTDOWN: Self = Self::from_errno(errno::ESHUTDOWN); - /// `ESOCKTNOSUPPORT` - pub const SOCKTNOSUPPORT: Self = Self::from_errno(errno::ESOCKTNOSUPPORT); - /// `ESPIPE` - pub const SPIPE: Self = Self::from_errno(errno::ESPIPE); - /// `ESRCH` - pub const SRCH: Self = Self::from_errno(errno::ESRCH); - /// `ESRMNT` - pub const SRMNT: Self = Self::from_errno(errno::ESRMNT); - /// `ESTALE` - pub const STALE: Self = Self::from_errno(errno::ESTALE); - /// `ESTRPIPE` - pub const STRPIPE: Self = Self::from_errno(errno::ESTRPIPE); - /// `ETIME` - pub const TIME: Self = Self::from_errno(errno::ETIME); - /// `ETIMEDOUT` - pub const TIMEDOUT: Self = Self::from_errno(errno::ETIMEDOUT); - /// `E2BIG` - #[doc(alias = "2BIG")] - pub const TOOBIG: Self = Self::from_errno(errno::E2BIG); - /// `ETOOMANYREFS` - pub const TOOMANYREFS: Self = Self::from_errno(errno::ETOOMANYREFS); - /// `ETXTBSY` - pub const TXTBSY: Self = Self::from_errno(errno::ETXTBSY); - /// `EUCLEAN` - pub const UCLEAN: Self = Self::from_errno(errno::EUCLEAN); - /// `EUNATCH` - pub const UNATCH: Self = Self::from_errno(errno::EUNATCH); - /// `EUSERS` - pub const USERS: Self = Self::from_errno(errno::EUSERS); - /// `EWOULDBLOCK` - pub const WOULDBLOCK: Self = Self::from_errno(errno::EWOULDBLOCK); - /// `EXDEV` - pub const XDEV: Self = Self::from_errno(errno::EXDEV); - /// `EXFULL` - pub const XFULL: Self = Self::from_errno(errno::EXFULL); -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/io/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/io/mod.rs deleted file mode 100644 index 9477b9b9524a..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/io/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub(crate) mod errno; -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/io/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/io/syscalls.rs deleted file mode 100644 index d2cbba0c3b02..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/io/syscalls.rs +++ /dev/null @@ -1,418 +0,0 @@ -//! linux_raw syscalls supporting `rustix::io`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -#[cfg(target_pointer_width = "64")] -use crate::backend::conv::loff_t_from_u64; -#[cfg(all( - target_pointer_width = "32", - any(target_arch = "arm", target_arch = "mips", target_arch = "mips32r6"), -))] -use crate::backend::conv::zero; -use crate::backend::conv::{ - c_uint, raw_fd, ret, ret_c_int, ret_c_uint, ret_discarded_fd, ret_owned_fd, ret_usize, slice, - slice_mut, -}; -#[cfg(target_pointer_width = "32")] -use crate::backend::conv::{hi, lo}; -use crate::backend::{c, MAX_IOV}; -use crate::fd::{AsFd, BorrowedFd, OwnedFd, RawFd}; -use crate::io::{self, DupFlags, FdFlags, IoSlice, IoSliceMut, ReadWriteFlags}; -use crate::ioctl::{IoctlOutput, RawOpcode}; -#[cfg(all(feature = "fs", feature = "net"))] -use crate::net::{RecvFlags, SendFlags}; -use core::cmp; -use linux_raw_sys::general::{F_DUPFD_CLOEXEC, F_GETFD, F_SETFD}; - -#[inline] -pub(crate) fn read(fd: BorrowedFd<'_>, buf: &mut [u8]) -> io::Result { - let (buf_addr_mut, buf_len) = slice_mut(buf); - - unsafe { ret_usize(syscall!(__NR_read, fd, buf_addr_mut, buf_len)) } -} - -#[inline] -pub(crate) fn pread(fd: BorrowedFd<'_>, buf: &mut [u8], pos: u64) -> io::Result { - let (buf_addr_mut, buf_len) = slice_mut(buf); - - // - #[cfg(all( - target_pointer_width = "32", - any(target_arch = "arm", target_arch = "mips", target_arch = "mips32r6"), - ))] - unsafe { - ret_usize(syscall!( - __NR_pread64, - fd, - buf_addr_mut, - buf_len, - zero(), - hi(pos), - lo(pos) - )) - } - #[cfg(all( - target_pointer_width = "32", - not(any(target_arch = "arm", target_arch = "mips", target_arch = "mips32r6")), - ))] - unsafe { - ret_usize(syscall!( - __NR_pread64, - fd, - buf_addr_mut, - buf_len, - hi(pos), - lo(pos) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall!( - __NR_pread64, - fd, - buf_addr_mut, - buf_len, - loff_t_from_u64(pos) - )) - } -} - -#[inline] -pub(crate) fn readv(fd: BorrowedFd<'_>, bufs: &mut [IoSliceMut<'_>]) -> io::Result { - let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); - - unsafe { ret_usize(syscall!(__NR_readv, fd, bufs_addr, bufs_len)) } -} - -#[inline] -pub(crate) fn preadv( - fd: BorrowedFd<'_>, - bufs: &mut [IoSliceMut<'_>], - pos: u64, -) -> io::Result { - let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); - - #[cfg(target_pointer_width = "32")] - unsafe { - ret_usize(syscall!( - __NR_preadv, - fd, - bufs_addr, - bufs_len, - hi(pos), - lo(pos) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall!( - __NR_preadv, - fd, - bufs_addr, - bufs_len, - loff_t_from_u64(pos) - )) - } -} - -#[inline] -pub(crate) fn preadv2( - fd: BorrowedFd<'_>, - bufs: &mut [IoSliceMut<'_>], - pos: u64, - flags: ReadWriteFlags, -) -> io::Result { - let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); - - #[cfg(target_pointer_width = "32")] - unsafe { - ret_usize(syscall!( - __NR_preadv2, - fd, - bufs_addr, - bufs_len, - hi(pos), - lo(pos), - flags - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall!( - __NR_preadv2, - fd, - bufs_addr, - bufs_len, - loff_t_from_u64(pos), - flags - )) - } -} - -#[inline] -pub(crate) fn write(fd: BorrowedFd<'_>, buf: &[u8]) -> io::Result { - let (buf_addr, buf_len) = slice(buf); - - unsafe { ret_usize(syscall_readonly!(__NR_write, fd, buf_addr, buf_len)) } -} - -#[inline] -pub(crate) fn pwrite(fd: BorrowedFd<'_>, buf: &[u8], pos: u64) -> io::Result { - let (buf_addr, buf_len) = slice(buf); - - // - #[cfg(all( - target_pointer_width = "32", - any(target_arch = "arm", target_arch = "mips", target_arch = "mips32r6"), - ))] - unsafe { - ret_usize(syscall_readonly!( - __NR_pwrite64, - fd, - buf_addr, - buf_len, - zero(), - hi(pos), - lo(pos) - )) - } - #[cfg(all( - target_pointer_width = "32", - not(any(target_arch = "arm", target_arch = "mips", target_arch = "mips32r6")), - ))] - unsafe { - ret_usize(syscall_readonly!( - __NR_pwrite64, - fd, - buf_addr, - buf_len, - hi(pos), - lo(pos) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall_readonly!( - __NR_pwrite64, - fd, - buf_addr, - buf_len, - loff_t_from_u64(pos) - )) - } -} - -#[inline] -pub(crate) fn writev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>]) -> io::Result { - let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); - - unsafe { ret_usize(syscall_readonly!(__NR_writev, fd, bufs_addr, bufs_len)) } -} - -#[inline] -pub(crate) fn pwritev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>], pos: u64) -> io::Result { - let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); - - #[cfg(target_pointer_width = "32")] - unsafe { - ret_usize(syscall_readonly!( - __NR_pwritev, - fd, - bufs_addr, - bufs_len, - hi(pos), - lo(pos) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall_readonly!( - __NR_pwritev, - fd, - bufs_addr, - bufs_len, - loff_t_from_u64(pos) - )) - } -} - -#[inline] -pub(crate) fn pwritev2( - fd: BorrowedFd<'_>, - bufs: &[IoSlice<'_>], - pos: u64, - flags: ReadWriteFlags, -) -> io::Result { - let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); - - #[cfg(target_pointer_width = "32")] - unsafe { - ret_usize(syscall_readonly!( - __NR_pwritev2, - fd, - bufs_addr, - bufs_len, - hi(pos), - lo(pos), - flags - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall_readonly!( - __NR_pwritev2, - fd, - bufs_addr, - bufs_len, - loff_t_from_u64(pos), - flags - )) - } -} - -#[inline] -pub(crate) unsafe fn close(fd: RawFd) { - // See the documentation for [`io::close`] for why errors are ignored. - syscall_readonly!(__NR_close, raw_fd(fd)).decode_void(); -} - -#[inline] -pub(crate) unsafe fn ioctl( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> io::Result { - ret_c_int(syscall!(__NR_ioctl, fd, c_uint(request), arg)) -} - -#[inline] -pub(crate) unsafe fn ioctl_readonly( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> io::Result { - ret_c_int(syscall_readonly!(__NR_ioctl, fd, c_uint(request), arg)) -} - -#[cfg(all(feature = "fs", feature = "net"))] -pub(crate) fn is_read_write(fd: BorrowedFd<'_>) -> io::Result<(bool, bool)> { - let (mut read, mut write) = crate::fs::fd::_is_file_read_write(fd)?; - let mut not_socket = false; - if read { - // Do a `recv` with `PEEK` and `DONTWAIT` for 1 byte. A 0 indicates - // the read side is shut down; an `EWOULDBLOCK` indicates the read - // side is still open. - // - // TODO: This code would benefit from having a better way to read into - // uninitialized memory. - let mut buf = [0]; - match crate::backend::net::syscalls::recv( - fd, - &mut buf, - RecvFlags::PEEK | RecvFlags::DONTWAIT, - ) { - Ok(0) => read = false, - Err(err) => { - #[allow(unreachable_patterns)] // `EAGAIN` may equal `EWOULDBLOCK` - match err { - io::Errno::AGAIN | io::Errno::WOULDBLOCK => (), - io::Errno::NOTSOCK => not_socket = true, - _ => return Err(err), - } - } - Ok(_) => (), - } - } - if write && !not_socket { - // Do a `send` with `DONTWAIT` for 0 bytes. An `EPIPE` indicates - // the write side is shut down. - #[allow(unreachable_patterns)] // `EAGAIN` equals `EWOULDBLOCK` - match crate::backend::net::syscalls::send(fd, &[], SendFlags::DONTWAIT) { - Err(io::Errno::AGAIN | io::Errno::WOULDBLOCK | io::Errno::NOTSOCK) => (), - Err(io::Errno::PIPE) => write = false, - Err(err) => return Err(err), - Ok(_) => (), - } - } - Ok((read, write)) -} - -#[inline] -pub(crate) fn dup(fd: BorrowedFd<'_>) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_dup, fd)) } -} - -#[allow(clippy::needless_pass_by_ref_mut)] -#[inline] -pub(crate) fn dup2(fd: BorrowedFd<'_>, new: &mut OwnedFd) -> io::Result<()> { - #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] - { - // We don't need to worry about the difference between `dup2` and - // `dup3` when the file descriptors are equal because we have an - // `&mut OwnedFd` which means `fd` doesn't alias it. - dup3(fd, new, DupFlags::empty()) - } - - #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] - unsafe { - ret_discarded_fd(syscall_readonly!(__NR_dup2, fd, new.as_fd())) - } -} - -#[allow(clippy::needless_pass_by_ref_mut)] -#[inline] -pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { - unsafe { ret_discarded_fd(syscall_readonly!(__NR_dup3, fd, new.as_fd(), flags)) } -} - -#[inline] -pub(crate) fn fcntl_getfd(fd: BorrowedFd<'_>) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - ret_c_uint(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GETFD))) - .map(FdFlags::from_bits_retain) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_c_uint(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GETFD))) - .map(FdFlags::from_bits_retain) - } -} - -#[inline] -pub(crate) fn fcntl_setfd(fd: BorrowedFd<'_>, flags: FdFlags) -> io::Result<()> { - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_SETFD), flags)) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!(__NR_fcntl, fd, c_uint(F_SETFD), flags)) - } -} - -#[inline] -pub(crate) fn fcntl_dupfd_cloexec(fd: BorrowedFd<'_>, min: RawFd) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - ret_owned_fd(syscall_readonly!( - __NR_fcntl64, - fd, - c_uint(F_DUPFD_CLOEXEC), - raw_fd(min) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_owned_fd(syscall_readonly!( - __NR_fcntl, - fd, - c_uint(F_DUPFD_CLOEXEC), - raw_fd(min) - )) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/io/types.rs b/third_party/rust/rustix/src/backend/linux_raw/io/types.rs deleted file mode 100644 index fb7e913a0492..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/io/types.rs +++ /dev/null @@ -1,57 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `FD_*` constants for use with [`fcntl_getfd`] and [`fcntl_setfd`]. - /// - /// [`fcntl_getfd`]: crate::io::fcntl_getfd - /// [`fcntl_setfd`]: crate::io::fcntl_setfd - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FdFlags: c::c_uint { - /// `FD_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::FD_CLOEXEC; - - /// - const _ = !0; - } -} - -bitflags! { - /// `RWF_*` constants for use with [`preadv2`] and [`pwritev2`]. - /// - /// [`preadv2`]: crate::io::preadv2 - /// [`pwritev2`]: crate::io::pwritev - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ReadWriteFlags: c::c_uint { - /// `RWF_DSYNC` (since Linux 4.7) - const DSYNC = linux_raw_sys::general::RWF_DSYNC; - /// `RWF_HIPRI` (since Linux 4.6) - const HIPRI = linux_raw_sys::general::RWF_HIPRI; - /// `RWF_SYNC` (since Linux 4.7) - const SYNC = linux_raw_sys::general::RWF_SYNC; - /// `RWF_NOWAIT` (since Linux 4.14) - const NOWAIT = linux_raw_sys::general::RWF_NOWAIT; - /// `RWF_APPEND` (since Linux 4.16) - const APPEND = linux_raw_sys::general::RWF_APPEND; - - /// - const _ = !0; - } -} - -bitflags! { - /// `O_*` constants for use with [`dup2`]. - /// - /// [`dup2`]: crate::io::dup2 - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct DupFlags: c::c_uint { - /// `O_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/io_uring/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/io_uring/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/io_uring/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/io_uring/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/io_uring/syscalls.rs deleted file mode 100644 index 90c82c12938d..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/io_uring/syscalls.rs +++ /dev/null @@ -1,63 +0,0 @@ -//! linux_raw syscalls supporting `rustix::io_uring`. -//! -//! # Safety -//! -//! See the `rustix::backend::syscalls` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::conv::{by_mut, c_uint, pass_usize, ret_c_uint, ret_owned_fd}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io; -use crate::io_uring::{io_uring_params, IoringEnterFlags, IoringRegisterOp}; -use core::ffi::c_void; - -#[inline] -pub(crate) fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result { - unsafe { - ret_owned_fd(syscall!( - __NR_io_uring_setup, - c_uint(entries), - by_mut(params) - )) - } -} - -#[inline] -pub(crate) unsafe fn io_uring_register( - fd: BorrowedFd<'_>, - opcode: IoringRegisterOp, - arg: *const c_void, - nr_args: u32, -) -> io::Result { - ret_c_uint(syscall_readonly!( - __NR_io_uring_register, - fd, - c_uint(opcode as u32), - arg, - c_uint(nr_args) - )) -} - -#[inline] -pub(crate) unsafe fn io_uring_enter( - fd: BorrowedFd<'_>, - to_submit: u32, - min_complete: u32, - flags: IoringEnterFlags, - arg: *const c_void, - size: usize, -) -> io::Result { - // This is not `_readonly` because `io_uring_enter` waits for I/O to - // complete, and I/O could involve writing to memory buffers, which - // could be a side effect depended on by the caller. - ret_c_uint(syscall!( - __NR_io_uring_enter, - fd, - c_uint(to_submit), - c_uint(min_complete), - flags, - arg, - pass_usize(size) - )) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/mm/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/mm/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/mm/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/mm/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/mm/syscalls.rs deleted file mode 100644 index b51f826a959a..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/mm/syscalls.rs +++ /dev/null @@ -1,212 +0,0 @@ -//! linux_raw syscalls supporting `rustix::io`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use super::types::{ - Advice, MapFlags, MlockFlags, MprotectFlags, MremapFlags, MsyncFlags, ProtFlags, - UserfaultfdFlags, -}; -use crate::backend::c; -#[cfg(target_pointer_width = "64")] -use crate::backend::conv::loff_t_from_u64; -use crate::backend::conv::{c_uint, no_fd, pass_usize, ret, ret_owned_fd, ret_void_star}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io; -use linux_raw_sys::general::MAP_ANONYMOUS; - -#[inline] -pub(crate) fn madvise(addr: *mut c::c_void, len: usize, advice: Advice) -> io::Result<()> { - unsafe { - ret(syscall!( - __NR_madvise, - addr, - pass_usize(len), - c_uint(advice as c::c_uint) - )) - } -} - -#[inline] -pub(crate) unsafe fn msync(addr: *mut c::c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { - ret(syscall!(__NR_msync, addr, pass_usize(len), flags)) -} - -/// # Safety -/// -/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working -/// with memory pointed to by raw pointers is unsafe. -#[inline] -pub(crate) unsafe fn mmap( - addr: *mut c::c_void, - length: usize, - prot: ProtFlags, - flags: MapFlags, - fd: BorrowedFd<'_>, - offset: u64, -) -> io::Result<*mut c::c_void> { - #[cfg(target_pointer_width = "32")] - { - ret_void_star(syscall!( - __NR_mmap2, - addr, - pass_usize(length), - prot, - flags, - fd, - (offset / 4096) - .try_into() - .map(pass_usize) - .map_err(|_| io::Errno::INVAL)? - )) - } - #[cfg(target_pointer_width = "64")] - { - ret_void_star(syscall!( - __NR_mmap, - addr, - pass_usize(length), - prot, - flags, - fd, - loff_t_from_u64(offset) - )) - } -} - -/// # Safety -/// -/// `mmap` is primarily unsafe due to the `addr` parameter, as anything working -/// with memory pointed to by raw pointers is unsafe. -#[inline] -pub(crate) unsafe fn mmap_anonymous( - addr: *mut c::c_void, - length: usize, - prot: ProtFlags, - flags: MapFlags, -) -> io::Result<*mut c::c_void> { - #[cfg(target_pointer_width = "32")] - { - ret_void_star(syscall!( - __NR_mmap2, - addr, - pass_usize(length), - prot, - c_uint(flags.bits() | MAP_ANONYMOUS), - no_fd(), - pass_usize(0) - )) - } - #[cfg(target_pointer_width = "64")] - { - ret_void_star(syscall!( - __NR_mmap, - addr, - pass_usize(length), - prot, - c_uint(flags.bits() | MAP_ANONYMOUS), - no_fd(), - loff_t_from_u64(0) - )) - } -} - -#[inline] -pub(crate) unsafe fn mprotect( - ptr: *mut c::c_void, - len: usize, - flags: MprotectFlags, -) -> io::Result<()> { - ret(syscall!(__NR_mprotect, ptr, pass_usize(len), flags)) -} - -/// # Safety -/// -/// `munmap` is primarily unsafe due to the `addr` parameter, as anything -/// working with memory pointed to by raw pointers is unsafe. -#[inline] -pub(crate) unsafe fn munmap(addr: *mut c::c_void, length: usize) -> io::Result<()> { - ret(syscall!(__NR_munmap, addr, pass_usize(length))) -} - -/// # Safety -/// -/// `mremap` is primarily unsafe due to the `old_address` parameter, as -/// anything working with memory pointed to by raw pointers is unsafe. -#[inline] -pub(crate) unsafe fn mremap( - old_address: *mut c::c_void, - old_size: usize, - new_size: usize, - flags: MremapFlags, -) -> io::Result<*mut c::c_void> { - ret_void_star(syscall!( - __NR_mremap, - old_address, - pass_usize(old_size), - pass_usize(new_size), - flags - )) -} - -/// # Safety -/// -/// `mremap_fixed` is primarily unsafe due to the `old_address` and -/// `new_address` parameters, as anything working with memory pointed to by raw -/// pointers is unsafe. -#[inline] -pub(crate) unsafe fn mremap_fixed( - old_address: *mut c::c_void, - old_size: usize, - new_size: usize, - flags: MremapFlags, - new_address: *mut c::c_void, -) -> io::Result<*mut c::c_void> { - ret_void_star(syscall!( - __NR_mremap, - old_address, - pass_usize(old_size), - pass_usize(new_size), - flags, - new_address - )) -} - -/// # Safety -/// -/// `mlock` operates on raw pointers and may round out to the nearest page -/// boundaries. -#[inline] -pub(crate) unsafe fn mlock(addr: *mut c::c_void, length: usize) -> io::Result<()> { - ret(syscall!(__NR_mlock, addr, pass_usize(length))) -} - -/// # Safety -/// -/// `mlock_with` operates on raw pointers and may round out to the nearest page -/// boundaries. -#[inline] -pub(crate) unsafe fn mlock_with( - addr: *mut c::c_void, - length: usize, - flags: MlockFlags, -) -> io::Result<()> { - ret(syscall!(__NR_mlock2, addr, pass_usize(length), flags)) -} - -/// # Safety -/// -/// `munlock` operates on raw pointers and may round out to the nearest page -/// boundaries. -#[inline] -pub(crate) unsafe fn munlock(addr: *mut c::c_void, length: usize) -> io::Result<()> { - ret(syscall!(__NR_munlock, addr, pass_usize(length))) -} - -#[inline] -pub(crate) unsafe fn userfaultfd(flags: UserfaultfdFlags) -> io::Result { - ret_owned_fd(syscall_readonly!(__NR_userfaultfd, flags)) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/mm/types.rs b/third_party/rust/rustix/src/backend/linux_raw/mm/types.rs deleted file mode 100644 index 0dfb410501d2..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/mm/types.rs +++ /dev/null @@ -1,264 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `PROT_*` flags for use with [`mmap`]. - /// - /// For `PROT_NONE`, use `ProtFlags::empty()`. - /// - /// [`mmap`]: crate::io::mmap - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ProtFlags: u32 { - /// `PROT_READ` - const READ = linux_raw_sys::general::PROT_READ; - /// `PROT_WRITE` - const WRITE = linux_raw_sys::general::PROT_WRITE; - /// `PROT_EXEC` - const EXEC = linux_raw_sys::general::PROT_EXEC; - - /// - const _ = !0; - } -} - -bitflags! { - /// `PROT_*` flags for use with [`mprotect`]. - /// - /// For `PROT_NONE`, use `MprotectFlags::empty()`. - /// - /// [`mprotect`]: crate::io::mprotect - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MprotectFlags: u32 { - /// `PROT_READ` - const READ = linux_raw_sys::general::PROT_READ; - /// `PROT_WRITE` - const WRITE = linux_raw_sys::general::PROT_WRITE; - /// `PROT_EXEC` - const EXEC = linux_raw_sys::general::PROT_EXEC; - /// `PROT_GROWSUP` - const GROWSUP = linux_raw_sys::general::PROT_GROWSUP; - /// `PROT_GROWSDOWN` - const GROWSDOWN = linux_raw_sys::general::PROT_GROWSDOWN; - /// `PROT_SEM` - const SEM = linux_raw_sys::general::PROT_SEM; - /// `PROT_BTI` - #[cfg(target_arch = "aarch64")] - const BTI = linux_raw_sys::general::PROT_BTI; - /// `PROT_MTE` - #[cfg(target_arch = "aarch64")] - const MTE = linux_raw_sys::general::PROT_MTE; - /// `PROT_SAO` - #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] - const SAO = linux_raw_sys::general::PROT_SAO; - /// `PROT_ADI` - #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] - const ADI = linux_raw_sys::general::PROT_ADI; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MAP_*` flags for use with [`mmap`]. - /// - /// For `MAP_ANONYMOUS` (aka `MAP_ANON`), see [`mmap_anonymous`]. - /// - /// [`mmap`]: crate::io::mmap - /// [`mmap_anonymous`]: crates::io::mmap_anonymous - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MapFlags: u32 { - /// `MAP_SHARED` - const SHARED = linux_raw_sys::general::MAP_SHARED; - /// `MAP_SHARED_VALIDATE` (since Linux 4.15) - const SHARED_VALIDATE = linux_raw_sys::general::MAP_SHARED_VALIDATE; - /// `MAP_PRIVATE` - const PRIVATE = linux_raw_sys::general::MAP_PRIVATE; - /// `MAP_DENYWRITE` - const DENYWRITE = linux_raw_sys::general::MAP_DENYWRITE; - /// `MAP_FIXED` - const FIXED = linux_raw_sys::general::MAP_FIXED; - /// `MAP_FIXED_NOREPLACE` (since Linux 4.17) - const FIXED_NOREPLACE = linux_raw_sys::general::MAP_FIXED_NOREPLACE; - /// `MAP_GROWSDOWN` - const GROWSDOWN = linux_raw_sys::general::MAP_GROWSDOWN; - /// `MAP_HUGETLB` - const HUGETLB = linux_raw_sys::general::MAP_HUGETLB; - /// `MAP_HUGE_2MB` (since Linux 3.8) - const HUGE_2MB = linux_raw_sys::general::MAP_HUGE_2MB; - /// `MAP_HUGE_1GB` (since Linux 3.8) - const HUGE_1GB = linux_raw_sys::general::MAP_HUGE_1GB; - /// `MAP_LOCKED` - const LOCKED = linux_raw_sys::general::MAP_LOCKED; - /// `MAP_NORESERVE` - const NORESERVE = linux_raw_sys::general::MAP_NORESERVE; - /// `MAP_POPULATE` - const POPULATE = linux_raw_sys::general::MAP_POPULATE; - /// `MAP_STACK` - const STACK = linux_raw_sys::general::MAP_STACK; - /// `MAP_SYNC` (since Linux 4.15) - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6", target_arch = "mips64", target_arch = "mips64r6")))] - const SYNC = linux_raw_sys::general::MAP_SYNC; - /// `MAP_UNINITIALIZED` - #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6", target_arch = "mips64", target_arch = "mips64r6")))] - const UNINITIALIZED = linux_raw_sys::general::MAP_UNINITIALIZED; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MREMAP_*` flags for use with [`mremap`]. - /// - /// For `MREMAP_FIXED`, see [`mremap_fixed`]. - /// - /// [`mremap`]: crate::io::mremap - /// [`mremap_fixed`]: crate::io::mremap_fixed - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MremapFlags: u32 { - /// `MREMAP_MAYMOVE` - const MAYMOVE = linux_raw_sys::general::MREMAP_MAYMOVE; - /// `MREMAP_DONTUNMAP` (since Linux 5.7) - const DONTUNMAP = linux_raw_sys::general::MREMAP_DONTUNMAP; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MS_*` flags for use with [`msync`]. - /// - /// [`msync`]: crate::io::msync - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MsyncFlags: u32 { - /// `MS_SYNC`—Requests an update and waits for it to complete. - const SYNC = linux_raw_sys::general::MS_SYNC; - /// `MS_ASYNC`—Specifies that an update be scheduled, but the call - /// returns immediately. - const ASYNC = linux_raw_sys::general::MS_ASYNC; - /// `MS_INVALIDATE`—Asks to invalidate other mappings of the same - /// file (so that they can be updated with the fresh values just - /// written). - const INVALIDATE = linux_raw_sys::general::MS_INVALIDATE; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MLOCK_*` flags for use with [`mlock_with`]. - /// - /// [`mlock_with`]: crate::io::mlock_with - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MlockFlags: u32 { - /// `MLOCK_ONFAULT` - const ONFAULT = linux_raw_sys::general::MLOCK_ONFAULT; - - /// - const _ = !0; - } -} - -/// `POSIX_MADV_*` constants for use with [`madvise`]. -/// -/// [`madvise`]: crate::mm::madvise -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -#[non_exhaustive] -pub enum Advice { - /// `POSIX_MADV_NORMAL` - Normal = linux_raw_sys::general::MADV_NORMAL, - - /// `POSIX_MADV_SEQUENTIAL` - Sequential = linux_raw_sys::general::MADV_SEQUENTIAL, - - /// `POSIX_MADV_RANDOM` - Random = linux_raw_sys::general::MADV_RANDOM, - - /// `POSIX_MADV_WILLNEED` - WillNeed = linux_raw_sys::general::MADV_WILLNEED, - - /// `MADV_DONTNEED` - LinuxDontNeed = linux_raw_sys::general::MADV_DONTNEED, - - /// `MADV_FREE` (since Linux 4.5) - LinuxFree = linux_raw_sys::general::MADV_FREE, - /// `MADV_REMOVE` - LinuxRemove = linux_raw_sys::general::MADV_REMOVE, - /// `MADV_DONTFORK` - LinuxDontFork = linux_raw_sys::general::MADV_DONTFORK, - /// `MADV_DOFORK` - LinuxDoFork = linux_raw_sys::general::MADV_DOFORK, - /// `MADV_HWPOISON` - LinuxHwPoison = linux_raw_sys::general::MADV_HWPOISON, - /// `MADV_SOFT_OFFLINE` - #[cfg(not(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" - )))] - LinuxSoftOffline = linux_raw_sys::general::MADV_SOFT_OFFLINE, - /// `MADV_MERGEABLE` - LinuxMergeable = linux_raw_sys::general::MADV_MERGEABLE, - /// `MADV_UNMERGEABLE` - LinuxUnmergeable = linux_raw_sys::general::MADV_UNMERGEABLE, - /// `MADV_HUGEPAGE` (since Linux 2.6.38) - LinuxHugepage = linux_raw_sys::general::MADV_HUGEPAGE, - /// `MADV_NOHUGEPAGE` (since Linux 2.6.38) - LinuxNoHugepage = linux_raw_sys::general::MADV_NOHUGEPAGE, - /// `MADV_DONTDUMP` (since Linux 3.4) - LinuxDontDump = linux_raw_sys::general::MADV_DONTDUMP, - /// `MADV_DODUMP` (since Linux 3.4) - LinuxDoDump = linux_raw_sys::general::MADV_DODUMP, - /// `MADV_WIPEONFORK` (since Linux 4.14) - LinuxWipeOnFork = linux_raw_sys::general::MADV_WIPEONFORK, - /// `MADV_KEEPONFORK` (since Linux 4.14) - LinuxKeepOnFork = linux_raw_sys::general::MADV_KEEPONFORK, - /// `MADV_COLD` (since Linux 5.4) - LinuxCold = linux_raw_sys::general::MADV_COLD, - /// `MADV_PAGEOUT` (since Linux 5.4) - LinuxPageOut = linux_raw_sys::general::MADV_PAGEOUT, - /// `MADV_POPULATE_READ` (since Linux 5.14) - LinuxPopulateRead = linux_raw_sys::general::MADV_POPULATE_READ, - /// `MADV_POPULATE_WRITE` (since Linux 5.14) - LinuxPopulateWrite = linux_raw_sys::general::MADV_POPULATE_WRITE, - /// `MADV_DONTNEED_LOCKED` (since Linux 5.18) - LinuxDontneedLocked = linux_raw_sys::general::MADV_DONTNEED_LOCKED, -} - -#[allow(non_upper_case_globals)] -impl Advice { - /// `POSIX_MADV_DONTNEED` - /// - /// On Linux, this is mapped to `POSIX_MADV_NORMAL` because - /// Linux's `MADV_DONTNEED` differs from `POSIX_MADV_DONTNEED`. See - /// `LinuxDontNeed` for the Linux behavior. - pub const DontNeed: Self = Self::Normal; -} - -bitflags! { - /// `O_*` flags for use with [`userfaultfd`]. - /// - /// [`userfaultfd`]: crate::io::userfaultfd - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct UserfaultfdFlags: c::c_uint { - /// `O_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; - /// `O_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::O_NONBLOCK; - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/mod.rs deleted file mode 100644 index 9a07467f424d..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/mod.rs +++ /dev/null @@ -1,113 +0,0 @@ -//! The linux_raw backend. -//! -//! This makes Linux syscalls directly, without going through libc. -//! -//! # Safety -//! -//! These files performs raw system calls, and sometimes passes them -//! uninitialized memory buffers. The signatures in this file are currently -//! manually maintained and must correspond with the signatures of the actual -//! Linux syscalls. -//! -//! Some of this could be auto-generated from the Linux header file -//! , but we often need more information than it provides, -//! such as which pointers are array slices, out parameters, or in-out -//! parameters, which integers are owned or borrowed file descriptors, etc. - -#[macro_use] -mod arch; -mod conv; -mod reg; -#[cfg(any(feature = "time", target_arch = "x86"))] -mod vdso; -#[cfg(any(feature = "time", target_arch = "x86"))] -mod vdso_wrappers; - -#[cfg(feature = "event")] -pub(crate) mod event; -#[cfg(any( - feature = "fs", - all( - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) - ) -))] -pub(crate) mod fs; -pub(crate) mod io; -#[cfg(feature = "io_uring")] -pub(crate) mod io_uring; -#[cfg(feature = "mm")] -pub(crate) mod mm; -#[cfg(feature = "mount")] -pub(crate) mod mount; -#[cfg(all(feature = "fs", not(feature = "mount")))] -pub(crate) mod mount; // for deprecated mount functions in "fs" -#[cfg(feature = "net")] -pub(crate) mod net; -#[cfg(any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", -))] -pub(crate) mod param; -#[cfg(feature = "pipe")] -pub(crate) mod pipe; -#[cfg(feature = "process")] -pub(crate) mod process; -#[cfg(feature = "pty")] -pub(crate) mod pty; -#[cfg(feature = "rand")] -pub(crate) mod rand; -#[cfg(feature = "runtime")] -pub(crate) mod runtime; -#[cfg(feature = "system")] -pub(crate) mod system; -#[cfg(feature = "termios")] -pub(crate) mod termios; -#[cfg(feature = "thread")] -pub(crate) mod thread; -#[cfg(feature = "time")] -pub(crate) mod time; - -pub(crate) mod fd { - pub use crate::maybe_polyfill::os::fd::{ - AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd, - }; -} - -// The linux_raw backend doesn't use actual libc, so we define selected -// libc-like definitions in a module called `c`. -pub(crate) mod c; - -// Private modules used by multiple public modules. -#[cfg(any(feature = "procfs", feature = "process", feature = "runtime"))] -pub(crate) mod pid; -#[cfg(any(feature = "process", feature = "thread"))] -pub(crate) mod prctl; -#[cfg(any( - feature = "fs", - feature = "process", - feature = "thread", - all( - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) - ) -))] -pub(crate) mod ugid; - -/// The maximum number of buffers that can be passed into a vectored I/O system -/// call on the current platform. -const MAX_IOV: usize = linux_raw_sys::general::UIO_MAXIOV as usize; diff --git a/third_party/rust/rustix/src/backend/linux_raw/mount/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/mount/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/mount/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/mount/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/mount/syscalls.rs deleted file mode 100644 index 77c2a181d185..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/mount/syscalls.rs +++ /dev/null @@ -1,239 +0,0 @@ -//! linux_raw syscalls supporting `rustix::mount`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::conv::ret; -#[cfg(feature = "mount")] -use crate::backend::conv::{ret_owned_fd, slice, zero}; -#[cfg(feature = "mount")] -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::ffi::CStr; -use crate::io; - -#[inline] -pub(crate) fn mount( - source: Option<&CStr>, - target: &CStr, - file_system_type: Option<&CStr>, - flags: super::types::MountFlagsArg, - data: Option<&CStr>, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_mount, - source, - target, - file_system_type, - flags, - data - )) - } -} - -#[inline] -pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_umount2, target, flags)) } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsopen(fs_name: &CStr, flags: super::types::FsOpenFlags) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_fsopen, fs_name, flags)) } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsmount( - fs_fd: BorrowedFd<'_>, - flags: super::types::FsMountFlags, - attr_flags: super::types::MountAttrFlags, -) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_fsmount, fs_fd, flags, attr_flags)) } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn move_mount( - from_dfd: BorrowedFd<'_>, - from_pathname: &CStr, - to_dfd: BorrowedFd<'_>, - to_pathname: &CStr, - flags: super::types::MoveMountFlags, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_move_mount, - from_dfd, - from_pathname, - to_dfd, - to_pathname, - flags - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn open_tree( - dfd: BorrowedFd<'_>, - filename: &CStr, - flags: super::types::OpenTreeFlags, -) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_open_tree, dfd, filename, flags)) } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fspick( - dfd: BorrowedFd<'_>, - path: &CStr, - flags: super::types::FsPickFlags, -) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_fspick, dfd, path, flags)) } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_set_flag(fs_fd: BorrowedFd<'_>, key: &CStr) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::SetFlag, - key, - zero(), - zero() - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_set_string( - fs_fd: BorrowedFd<'_>, - key: &CStr, - value: &CStr, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::SetString, - key, - value, - zero() - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_set_binary( - fs_fd: BorrowedFd<'_>, - key: &CStr, - value: &[u8], -) -> io::Result<()> { - let (value_addr, value_len) = slice(value); - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::SetBinary, - key, - value_addr, - value_len - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_set_fd( - fs_fd: BorrowedFd<'_>, - key: &CStr, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::SetFd, - key, - zero(), - fd - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_set_path( - fs_fd: BorrowedFd<'_>, - key: &CStr, - path: &CStr, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::SetPath, - key, - path, - fd - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_set_path_empty( - fs_fd: BorrowedFd<'_>, - key: &CStr, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::SetPathEmpty, - key, - cstr!(""), - fd - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_create(fs_fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::Create, - zero(), - zero(), - zero() - )) - } -} - -#[cfg(feature = "mount")] -#[inline] -pub(crate) fn fsconfig_reconfigure(fs_fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_fsconfig, - fs_fd, - super::types::FsConfigCmd::Reconfigure, - zero(), - zero(), - zero() - )) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/mount/types.rs b/third_party/rust/rustix/src/backend/linux_raw/mount/types.rs deleted file mode 100644 index 221f8f315853..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/mount/types.rs +++ /dev/null @@ -1,332 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `MS_*` constants for use with [`mount`]. - /// - /// [`mount`]: crate::mount::mount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MountFlags: c::c_uint { - /// `MS_BIND` - const BIND = linux_raw_sys::general::MS_BIND; - - /// `MS_DIRSYNC` - const DIRSYNC = linux_raw_sys::general::MS_DIRSYNC; - - /// `MS_LAZYTIME` - const LAZYTIME = linux_raw_sys::general::MS_LAZYTIME; - - /// `MS_MANDLOCK` - #[doc(alias = "MANDLOCK")] - const PERMIT_MANDATORY_FILE_LOCKING = linux_raw_sys::general::MS_MANDLOCK; - - /// `MS_NOATIME` - const NOATIME = linux_raw_sys::general::MS_NOATIME; - - /// `MS_NODEV` - const NODEV = linux_raw_sys::general::MS_NODEV; - - /// `MS_NODIRATIME` - const NODIRATIME = linux_raw_sys::general::MS_NODIRATIME; - - /// `MS_NOEXEC` - const NOEXEC = linux_raw_sys::general::MS_NOEXEC; - - /// `MS_NOSUID` - const NOSUID = linux_raw_sys::general::MS_NOSUID; - - /// `MS_RDONLY` - const RDONLY = linux_raw_sys::general::MS_RDONLY; - - /// `MS_REC` - const REC = linux_raw_sys::general::MS_REC; - - /// `MS_RELATIME` - const RELATIME = linux_raw_sys::general::MS_RELATIME; - - /// `MS_SILENT` - const SILENT = linux_raw_sys::general::MS_SILENT; - - /// `MS_STRICTATIME` - const STRICTATIME = linux_raw_sys::general::MS_STRICTATIME; - - /// `MS_SYNCHRONOUS` - const SYNCHRONOUS = linux_raw_sys::general::MS_SYNCHRONOUS; - - /// `MS_NOSYMFOLLOW` - const NOSYMFOLLOW = linux_raw_sys::general::MS_NOSYMFOLLOW; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MNT_*` constants for use with [`unmount`]. - /// - /// [`unmount`]: crate::mount::unmount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct UnmountFlags: c::c_uint { - /// `MNT_FORCE` - const FORCE = linux_raw_sys::general::MNT_FORCE; - /// `MNT_DETACH` - const DETACH = linux_raw_sys::general::MNT_DETACH; - /// `MNT_EXPIRE` - const EXPIRE = linux_raw_sys::general::MNT_EXPIRE; - /// `UMOUNT_NOFOLLOW` - const NOFOLLOW = linux_raw_sys::general::UMOUNT_NOFOLLOW; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -bitflags! { - /// `FSOPEN_*` constants for use with [`fsopen`]. - /// - /// [`fsopen`]: crate::mount::fsopen - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FsOpenFlags: c::c_uint { - /// `FSOPEN_CLOEXEC` - const FSOPEN_CLOEXEC = linux_raw_sys::general::FSOPEN_CLOEXEC; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -bitflags! { - /// `FSMOUNT_*` constants for use with [`fsmount`]. - /// - /// [`fsmount`]: crate::mount::fsmount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FsMountFlags: c::c_uint { - /// `FSMOUNT_CLOEXEC` - const FSMOUNT_CLOEXEC = linux_raw_sys::general::FSMOUNT_CLOEXEC; - - /// - const _ = !0; - } -} - -/// `FSCONFIG_*` constants for use with the `fsconfig` syscall. -#[cfg(feature = "mount")] -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -pub(crate) enum FsConfigCmd { - /// `FSCONFIG_SET_FLAG` - SetFlag = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_FLAG as u32, - - /// `FSCONFIG_SET_STRING` - SetString = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_STRING as u32, - - /// `FSCONFIG_SET_BINARY` - SetBinary = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_BINARY as u32, - - /// `FSCONFIG_SET_PATH` - SetPath = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_PATH as u32, - - /// `FSCONFIG_SET_PATH_EMPTY` - SetPathEmpty = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_PATH_EMPTY as u32, - - /// `FSCONFIG_SET_FD` - SetFd = linux_raw_sys::general::fsconfig_command::FSCONFIG_SET_FD as u32, - - /// `FSCONFIG_CMD_CREATE` - Create = linux_raw_sys::general::fsconfig_command::FSCONFIG_CMD_CREATE as u32, - - /// `FSCONFIG_CMD_RECONFIGURE` - Reconfigure = linux_raw_sys::general::fsconfig_command::FSCONFIG_CMD_RECONFIGURE as u32, -} - -#[cfg(feature = "mount")] -bitflags! { - /// `MOUNT_ATTR_*` constants for use with [`fsmount`]. - /// - /// [`fsmount`]: crate::mount::fsmount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MountAttrFlags: c::c_uint { - /// `MOUNT_ATTR_RDONLY` - const MOUNT_ATTR_RDONLY = linux_raw_sys::general::MOUNT_ATTR_RDONLY; - - /// `MOUNT_ATTR_NOSUID` - const MOUNT_ATTR_NOSUID = linux_raw_sys::general::MOUNT_ATTR_NOSUID; - - /// `MOUNT_ATTR_NODEV` - const MOUNT_ATTR_NODEV = linux_raw_sys::general::MOUNT_ATTR_NODEV; - - /// `MOUNT_ATTR_NOEXEC` - const MOUNT_ATTR_NOEXEC = linux_raw_sys::general::MOUNT_ATTR_NOEXEC; - - /// `MOUNT_ATTR__ATIME` - const MOUNT_ATTR__ATIME = linux_raw_sys::general::MOUNT_ATTR__ATIME; - - /// `MOUNT_ATTR_RELATIME` - const MOUNT_ATTR_RELATIME = linux_raw_sys::general::MOUNT_ATTR_RELATIME; - - /// `MOUNT_ATTR_NOATIME` - const MOUNT_ATTR_NOATIME = linux_raw_sys::general::MOUNT_ATTR_NOATIME; - - /// `MOUNT_ATTR_STRICTATIME` - const MOUNT_ATTR_STRICTATIME = linux_raw_sys::general::MOUNT_ATTR_STRICTATIME; - - /// `MOUNT_ATTR_NODIRATIME` - const MOUNT_ATTR_NODIRATIME = linux_raw_sys::general::MOUNT_ATTR_NODIRATIME; - - /// `MOUNT_ATTR_NOUSER` - const MOUNT_ATTR_IDMAP = linux_raw_sys::general::MOUNT_ATTR_IDMAP; - - /// `MOUNT_ATTR__ATIME_FLAGS` - const MOUNT_ATTR_NOSYMFOLLOW = linux_raw_sys::general::MOUNT_ATTR_NOSYMFOLLOW; - - /// `MOUNT_ATTR__ATIME_FLAGS` - const MOUNT_ATTR_SIZE_VER0 = linux_raw_sys::general::MOUNT_ATTR_SIZE_VER0; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -bitflags! { - /// `MOVE_MOUNT_*` constants for use with [`move_mount`]. - /// - /// [`move_mount`]: crate::mount::move_mount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MoveMountFlags: c::c_uint { - /// `MOVE_MOUNT_F_EMPTY_PATH` - const MOVE_MOUNT_F_SYMLINKS = linux_raw_sys::general::MOVE_MOUNT_F_SYMLINKS; - - /// `MOVE_MOUNT_F_AUTOMOUNTS` - const MOVE_MOUNT_F_AUTOMOUNTS = linux_raw_sys::general::MOVE_MOUNT_F_AUTOMOUNTS; - - /// `MOVE_MOUNT_F_EMPTY_PATH` - const MOVE_MOUNT_F_EMPTY_PATH = linux_raw_sys::general::MOVE_MOUNT_F_EMPTY_PATH; - - /// `MOVE_MOUNT_T_SYMLINKS` - const MOVE_MOUNT_T_SYMLINKS = linux_raw_sys::general::MOVE_MOUNT_T_SYMLINKS; - - /// `MOVE_MOUNT_T_AUTOMOUNTS` - const MOVE_MOUNT_T_AUTOMOUNTS = linux_raw_sys::general::MOVE_MOUNT_T_AUTOMOUNTS; - - /// `MOVE_MOUNT_T_EMPTY_PATH` - const MOVE_MOUNT_T_EMPTY_PATH = linux_raw_sys::general::MOVE_MOUNT_T_EMPTY_PATH; - - /// `MOVE_MOUNT__MASK` - const MOVE_MOUNT_SET_GROUP = linux_raw_sys::general::MOVE_MOUNT_SET_GROUP; - - // TODO: add when linux 6.5 is released - // /// `MOVE_MOUNT_BENEATH` - // const MOVE_MOUNT_BENEATH = linux_raw_sys::general::MOVE_MOUNT_BENEATH; - - /// `MOVE_MOUNT__MASK` - const MOVE_MOUNT__MASK = linux_raw_sys::general::MOVE_MOUNT__MASK; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -bitflags! { - /// `OPENTREE_*` constants for use with [`open_tree`]. - /// - /// [`open_tree`]: crate::mount::open_tree - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct OpenTreeFlags: c::c_uint { - /// `OPENTREE_CLONE` - const OPEN_TREE_CLONE = linux_raw_sys::general::OPEN_TREE_CLONE; - - /// `OPENTREE_CLOEXEC` - const OPEN_TREE_CLOEXEC = linux_raw_sys::general::OPEN_TREE_CLOEXEC; - - /// `AT_EMPTY_PATH` - const AT_EMPTY_PATH = linux_raw_sys::general::AT_EMPTY_PATH; - - /// `AT_NO_AUTOMOUNT` - const AT_NO_AUTOMOUNT = linux_raw_sys::general::AT_NO_AUTOMOUNT; - - /// `AT_RECURSIVE` - const AT_RECURSIVE = linux_raw_sys::general::AT_RECURSIVE; - - /// `AT_SYMLINK_NOFOLLOW` - const AT_SYMLINK_NOFOLLOW = linux_raw_sys::general::AT_SYMLINK_NOFOLLOW; - - /// - const _ = !0; - } -} - -#[cfg(feature = "mount")] -bitflags! { - /// `FSPICK_*` constants for use with [`fspick`]. - /// - /// [`fspick`]: crate::mount::fspick - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FsPickFlags: c::c_uint { - /// `FSPICK_CLOEXEC` - const FSPICK_CLOEXEC = linux_raw_sys::general::FSPICK_CLOEXEC; - - /// `FSPICK_SYMLINK_NOFOLLOW` - const FSPICK_SYMLINK_NOFOLLOW = linux_raw_sys::general::FSPICK_SYMLINK_NOFOLLOW; - - /// `FSPICK_NO_AUTOMOUNT` - const FSPICK_NO_AUTOMOUNT = linux_raw_sys::general::FSPICK_NO_AUTOMOUNT; - - /// `FSPICK_EMPTY_PATH` - const FSPICK_EMPTY_PATH = linux_raw_sys::general::FSPICK_EMPTY_PATH; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MS_*` constants for use with [`change_mount`]. - /// - /// [`change_mount`]: crate::mount::change_mount - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MountPropagationFlags: c::c_uint { - /// `MS_SILENT` - const SILENT = linux_raw_sys::general::MS_SILENT; - /// `MS_SHARED` - const SHARED = linux_raw_sys::general::MS_SHARED; - /// `MS_PRIVATE` - const PRIVATE = linux_raw_sys::general::MS_PRIVATE; - /// `MS_SLAVE` - const SLAVE = linux_raw_sys::general::MS_SLAVE; - /// `MS_UNBINDABLE` - const UNBINDABLE = linux_raw_sys::general::MS_UNBINDABLE; - /// `MS_REC` - const REC = linux_raw_sys::general::MS_REC; - - /// - const _ = !0; - } -} - -bitflags! { - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub(crate) struct InternalMountFlags: c::c_uint { - const REMOUNT = linux_raw_sys::general::MS_REMOUNT; - const MOVE = linux_raw_sys::general::MS_MOVE; - - /// - const _ = !0; - } -} - -#[repr(transparent)] -pub(crate) struct MountFlagsArg(pub(crate) c::c_uint); diff --git a/third_party/rust/rustix/src/backend/linux_raw/net/addr.rs b/third_party/rust/rustix/src/backend/linux_raw/net/addr.rs deleted file mode 100644 index e6b307a16fc3..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/net/addr.rs +++ /dev/null @@ -1,164 +0,0 @@ -//! Socket address utilities. -//! -//! # Safety -//! -//! This file uses `CStr::from_bytes_with_nul_unchecked` on a string it knows -//! to be NUL-terminated. -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::ffi::CStr; -use crate::{io, path}; -use core::cmp::Ordering; -use core::fmt; -use core::hash::{Hash, Hasher}; - -/// `struct sockaddr_un` -#[derive(Clone)] -#[doc(alias = "sockaddr_un")] -pub struct SocketAddrUnix { - pub(crate) unix: c::sockaddr_un, - len: c::socklen_t, -} - -impl SocketAddrUnix { - /// Construct a new Unix-domain address from a filesystem path. - #[inline] - pub fn new(path: P) -> io::Result { - path.into_with_c_str(Self::_new) - } - - #[inline] - fn _new(path: &CStr) -> io::Result { - let mut unix = Self::init(); - let bytes = path.to_bytes_with_nul(); - if bytes.len() > unix.sun_path.len() { - return Err(io::Errno::NAMETOOLONG); - } - for (i, b) in bytes.iter().enumerate() { - unix.sun_path[i] = *b; - } - let len = offsetof_sun_path() + bytes.len(); - let len = len.try_into().unwrap(); - Ok(Self { unix, len }) - } - - /// Construct a new abstract Unix-domain address from a byte slice. - #[inline] - pub fn new_abstract_name(name: &[u8]) -> io::Result { - let mut unix = Self::init(); - let id = &mut unix.sun_path[1..]; - if let Some(id) = id.get_mut(..name.len()) { - id.copy_from_slice(name); - let len = offsetof_sun_path() + 1 + name.len(); - let len = len.try_into().unwrap(); - Ok(Self { unix, len }) - } else { - Err(io::Errno::NAMETOOLONG) - } - } - - const fn init() -> c::sockaddr_un { - c::sockaddr_un { - sun_family: c::AF_UNIX as _, - sun_path: [0; 108], - } - } - - /// For a filesystem path address, return the path. - #[inline] - pub fn path(&self) -> Option<&CStr> { - let len = self.len(); - if len != 0 && self.unix.sun_path[0] != b'\0' { - let end = len as usize - offsetof_sun_path(); - let bytes = &self.unix.sun_path[..end]; - // SAFETY: `from_bytes_with_nul_unchecked` since the string is - // NUL-terminated. - unsafe { Some(CStr::from_bytes_with_nul_unchecked(bytes)) } - } else { - None - } - } - - /// For an abstract address, return the identifier. - #[inline] - pub fn abstract_name(&self) -> Option<&[u8]> { - let len = self.len(); - if len != 0 && self.unix.sun_path[0] == b'\0' { - let end = len as usize - offsetof_sun_path(); - Some(&self.unix.sun_path[1..end]) - } else { - None - } - } - - #[inline] - pub(crate) fn addr_len(&self) -> c::socklen_t { - self.len - } - - #[inline] - pub(crate) fn len(&self) -> usize { - self.addr_len() as usize - } -} - -impl PartialEq for SocketAddrUnix { - #[inline] - fn eq(&self, other: &Self) -> bool { - let self_len = self.len() - offsetof_sun_path(); - let other_len = other.len() - offsetof_sun_path(); - self.unix.sun_path[..self_len].eq(&other.unix.sun_path[..other_len]) - } -} - -impl Eq for SocketAddrUnix {} - -impl PartialOrd for SocketAddrUnix { - #[inline] - fn partial_cmp(&self, other: &Self) -> Option { - Some(self.cmp(other)) - } -} - -impl Ord for SocketAddrUnix { - #[inline] - fn cmp(&self, other: &Self) -> Ordering { - let self_len = self.len() - offsetof_sun_path(); - let other_len = other.len() - offsetof_sun_path(); - self.unix.sun_path[..self_len].cmp(&other.unix.sun_path[..other_len]) - } -} - -impl Hash for SocketAddrUnix { - #[inline] - fn hash(&self, state: &mut H) { - let self_len = self.len() - offsetof_sun_path(); - self.unix.sun_path[..self_len].hash(state) - } -} - -impl fmt::Debug for SocketAddrUnix { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - if let Some(path) = self.path() { - path.fmt(fmt) - } else if let Some(name) = self.abstract_name() { - name.fmt(fmt) - } else { - "(unnamed)".fmt(fmt) - } - } -} - -/// `struct sockaddr_storage` as a raw struct. -pub type SocketAddrStorage = c::sockaddr; - -/// Return the offset of the `sun_path` field of `sockaddr_un`. -#[inline] -pub(crate) fn offsetof_sun_path() -> usize { - let z = c::sockaddr_un { - sun_family: 0_u16, - sun_path: [0; 108], - }; - (crate::utils::as_ptr(&z.sun_path) as usize) - (crate::utils::as_ptr(&z) as usize) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/net/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/net/mod.rs deleted file mode 100644 index 2b6ab34ba0fd..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/net/mod.rs +++ /dev/null @@ -1,6 +0,0 @@ -pub(crate) mod addr; -pub(crate) mod msghdr; -pub(crate) mod read_sockaddr; -pub(crate) mod send_recv; -pub(crate) mod syscalls; -pub(crate) mod write_sockaddr; diff --git a/third_party/rust/rustix/src/backend/linux_raw/net/msghdr.rs b/third_party/rust/rustix/src/backend/linux_raw/net/msghdr.rs deleted file mode 100644 index 659093920717..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/net/msghdr.rs +++ /dev/null @@ -1,146 +0,0 @@ -//! Utilities for dealing with message headers. -//! -//! These take closures rather than returning a `c::msghdr` directly because -//! the message headers may reference stack-local data. - -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::backend::net::write_sockaddr::{encode_sockaddr_v4, encode_sockaddr_v6}; - -use crate::io::{self, IoSlice, IoSliceMut}; -use crate::net::{RecvAncillaryBuffer, SendAncillaryBuffer, SocketAddrV4, SocketAddrV6}; -use crate::utils::as_ptr; - -use core::mem::{size_of, MaybeUninit}; -use core::ptr::null_mut; - -fn msg_iov_len(len: usize) -> c::size_t { - // This cast cannot overflow. - len as c::size_t -} - -pub(crate) fn msg_control_len(len: usize) -> c::size_t { - // Same as above. - len as c::size_t -} - -/// Create a message header intended to receive a datagram. -pub(crate) fn with_recv_msghdr( - name: &mut MaybeUninit, - iov: &mut [IoSliceMut<'_>], - control: &mut RecvAncillaryBuffer<'_>, - f: impl FnOnce(&mut c::msghdr) -> io::Result, -) -> io::Result { - control.clear(); - - let namelen = size_of::() as c::c_int; - let mut msghdr = c::msghdr { - msg_name: name.as_mut_ptr().cast(), - msg_namelen: namelen, - msg_iov: iov.as_mut_ptr().cast(), - msg_iovlen: msg_iov_len(iov.len()), - msg_control: control.as_control_ptr().cast(), - msg_controllen: msg_control_len(control.control_len()), - msg_flags: 0, - }; - - let res = f(&mut msghdr); - - // Reset the control length. - if res.is_ok() { - unsafe { - control.set_control_len(msghdr.msg_controllen.try_into().unwrap_or(usize::MAX)); - } - } - - res -} - -/// Create a message header intended to send without an address. -pub(crate) fn with_noaddr_msghdr( - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - f(c::msghdr { - msg_name: null_mut(), - msg_namelen: 0, - msg_iov: iov.as_ptr() as _, - msg_iovlen: msg_iov_len(iov.len()), - msg_control: control.as_control_ptr().cast(), - msg_controllen: msg_control_len(control.control_len()), - msg_flags: 0, - }) -} - -/// Create a message header intended to send with an IPv4 address. -pub(crate) fn with_v4_msghdr( - addr: &SocketAddrV4, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - let encoded = encode_sockaddr_v4(addr); - - f(c::msghdr { - msg_name: as_ptr(&encoded) as _, - msg_namelen: size_of::() as _, - msg_iov: iov.as_ptr() as _, - msg_iovlen: msg_iov_len(iov.len()), - msg_control: control.as_control_ptr().cast(), - msg_controllen: msg_control_len(control.control_len()), - msg_flags: 0, - }) -} - -/// Create a message header intended to send with an IPv6 address. -pub(crate) fn with_v6_msghdr( - addr: &SocketAddrV6, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - let encoded = encode_sockaddr_v6(addr); - - f(c::msghdr { - msg_name: as_ptr(&encoded) as _, - msg_namelen: size_of::() as _, - msg_iov: iov.as_ptr() as _, - msg_iovlen: msg_iov_len(iov.len()), - msg_control: control.as_control_ptr().cast(), - msg_controllen: msg_control_len(control.control_len()), - msg_flags: 0, - }) -} - -/// Create a message header intended to send with a Unix address. -pub(crate) fn with_unix_msghdr( - addr: &crate::net::SocketAddrUnix, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - f: impl FnOnce(c::msghdr) -> R, -) -> R { - f(c::msghdr { - msg_name: as_ptr(addr) as _, - msg_namelen: addr.addr_len() as _, - msg_iov: iov.as_ptr() as _, - msg_iovlen: msg_iov_len(iov.len()), - msg_control: control.as_control_ptr().cast(), - msg_controllen: msg_control_len(control.control_len()), - msg_flags: 0, - }) -} - -/// Create a zero-initialized message header struct value. -pub(crate) fn zero_msghdr() -> c::msghdr { - c::msghdr { - msg_name: null_mut(), - msg_namelen: 0, - msg_iov: null_mut(), - msg_iovlen: 0, - msg_control: null_mut(), - msg_controllen: 0, - msg_flags: 0, - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/net/read_sockaddr.rs b/third_party/rust/rustix/src/backend/linux_raw/net/read_sockaddr.rs deleted file mode 100644 index f4b7d99140cb..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/net/read_sockaddr.rs +++ /dev/null @@ -1,185 +0,0 @@ -//! The BSD sockets API requires us to read the `ss_family` field before -//! we can interpret the rest of a `sockaddr` produced by the kernel. -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::io; -use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrUnix, SocketAddrV4, SocketAddrV6}; -use core::mem::size_of; - -// This must match the header of `sockaddr`. -#[repr(C)] -struct sockaddr_header { - ss_family: u16, -} - -/// Read the `ss_family` field from a socket address returned from the OS. -/// -/// # Safety -/// -/// `storage` must point to a valid socket address returned from the OS. -#[inline] -unsafe fn read_ss_family(storage: *const c::sockaddr) -> u16 { - // Assert that we know the layout of `sockaddr`. - let _ = c::sockaddr { - __storage: c::sockaddr_storage { - __bindgen_anon_1: linux_raw_sys::net::__kernel_sockaddr_storage__bindgen_ty_1 { - __bindgen_anon_1: - linux_raw_sys::net::__kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { - ss_family: 0_u16, - __data: [0; 126_usize], - }, - }, - }, - }; - - (*storage.cast::()).ss_family -} - -/// Set the `ss_family` field of a socket address to `AF_UNSPEC`, so that we -/// can test for `AF_UNSPEC` to test whether it was stored to. -#[inline] -pub(crate) unsafe fn initialize_family_to_unspec(storage: *mut c::sockaddr) { - (*storage.cast::()).ss_family = c::AF_UNSPEC as _; -} - -/// Read a socket address encoded in a platform-specific format. -/// -/// # Safety -/// -/// `storage` must point to valid socket address storage. -pub(crate) unsafe fn read_sockaddr( - storage: *const c::sockaddr, - len: usize, -) -> io::Result { - let offsetof_sun_path = super::addr::offsetof_sun_path(); - - if len < size_of::() { - return Err(io::Errno::INVAL); - } - match read_ss_family(storage).into() { - c::AF_INET => { - if len < size_of::() { - return Err(io::Errno::INVAL); - } - let decode = &*storage.cast::(); - Ok(SocketAddrAny::V4(SocketAddrV4::new( - Ipv4Addr::from(u32::from_be(decode.sin_addr.s_addr)), - u16::from_be(decode.sin_port), - ))) - } - c::AF_INET6 => { - if len < size_of::() { - return Err(io::Errno::INVAL); - } - let decode = &*storage.cast::(); - Ok(SocketAddrAny::V6(SocketAddrV6::new( - Ipv6Addr::from(decode.sin6_addr.in6_u.u6_addr8), - u16::from_be(decode.sin6_port), - u32::from_be(decode.sin6_flowinfo), - decode.sin6_scope_id, - ))) - } - c::AF_UNIX => { - if len < offsetof_sun_path { - return Err(io::Errno::INVAL); - } - if len == offsetof_sun_path { - Ok(SocketAddrAny::Unix(SocketAddrUnix::new(&[][..])?)) - } else { - let decode = &*storage.cast::(); - - // On Linux check for Linux's [abstract namespace]. - // - // [abstract namespace]: https://man7.org/linux/man-pages/man7/unix.7.html - if decode.sun_path[0] == 0 { - return SocketAddrUnix::new_abstract_name( - &decode.sun_path[1..len - offsetof_sun_path], - ) - .map(SocketAddrAny::Unix); - } - - // Otherwise we expect a NUL-terminated filesystem path. - assert_eq!(decode.sun_path[len - 1 - offsetof_sun_path], 0); - Ok(SocketAddrAny::Unix(SocketAddrUnix::new( - &decode.sun_path[..len - 1 - offsetof_sun_path], - )?)) - } - } - _ => Err(io::Errno::NOTSUP), - } -} - -/// Read a socket address returned from the OS. -/// -/// # Safety -/// -/// `storage` must point to a valid socket address returned from the OS. -pub(crate) unsafe fn maybe_read_sockaddr_os( - storage: *const c::sockaddr, - len: usize, -) -> Option { - if len == 0 { - None - } else { - Some(read_sockaddr_os(storage, len)) - } -} - -/// Read a socket address returned from the OS. -/// -/// # Safety -/// -/// `storage` must point to a valid socket address returned from the OS. -pub(crate) unsafe fn read_sockaddr_os(storage: *const c::sockaddr, len: usize) -> SocketAddrAny { - let offsetof_sun_path = super::addr::offsetof_sun_path(); - - assert!(len >= size_of::()); - match read_ss_family(storage).into() { - c::AF_INET => { - assert!(len >= size_of::()); - let decode = &*storage.cast::(); - SocketAddrAny::V4(SocketAddrV4::new( - Ipv4Addr::from(u32::from_be(decode.sin_addr.s_addr)), - u16::from_be(decode.sin_port), - )) - } - c::AF_INET6 => { - assert!(len >= size_of::()); - let decode = &*storage.cast::(); - SocketAddrAny::V6(SocketAddrV6::new( - Ipv6Addr::from(decode.sin6_addr.in6_u.u6_addr8), - u16::from_be(decode.sin6_port), - u32::from_be(decode.sin6_flowinfo), - decode.sin6_scope_id, - )) - } - c::AF_UNIX => { - assert!(len >= offsetof_sun_path); - if len == offsetof_sun_path { - SocketAddrAny::Unix(SocketAddrUnix::new(&[][..]).unwrap()) - } else { - let decode = &*storage.cast::(); - - // On Linux check for Linux's [abstract namespace]. - // - // [abstract namespace]: https://man7.org/linux/man-pages/man7/unix.7.html - if decode.sun_path[0] == 0 { - return SocketAddrAny::Unix( - SocketAddrUnix::new_abstract_name( - &decode.sun_path[1..len - offsetof_sun_path], - ) - .unwrap(), - ); - } - - // Otherwise we expect a NUL-terminated filesystem path. - assert_eq!(decode.sun_path[len - 1 - offsetof_sun_path], 0); - SocketAddrAny::Unix( - SocketAddrUnix::new(&decode.sun_path[..len - 1 - offsetof_sun_path]).unwrap(), - ) - } - } - other => unimplemented!("{:?}", other), - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/net/send_recv.rs b/third_party/rust/rustix/src/backend/linux_raw/net/send_recv.rs deleted file mode 100644 index 43b35341af1b..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/net/send_recv.rs +++ /dev/null @@ -1,58 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -bitflags! { - /// `MSG_* flags for use with [`send`], [`send_to`], and related functions. - /// - /// [`send`]: crate::net::send - /// [`sendto`]: crate::net::sendto - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SendFlags: u32 { - /// `MSG_CONFIRM` - const CONFIRM = c::MSG_CONFIRM; - /// `MSG_DONTROUTE` - const DONTROUTE = c::MSG_DONTROUTE; - /// `MSG_DONTWAIT` - const DONTWAIT = c::MSG_DONTWAIT; - /// `MSG_EOT` - const EOT = c::MSG_EOR; - /// `MSG_MORE` - const MORE = c::MSG_MORE; - /// `MSG_NOSIGNAL` - const NOSIGNAL = c::MSG_NOSIGNAL; - /// `MSG_OOB` - const OOB = c::MSG_OOB; - - /// - const _ = !0; - } -} - -bitflags! { - /// `MSG_* flags for use with [`recv`], [`recvfrom`], and related functions. - /// - /// [`recv`]: crate::net::recv - /// [`recvfrom`]: crate::net::recvfrom - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct RecvFlags: u32 { - /// `MSG_CMSG_CLOEXEC` - const CMSG_CLOEXEC = c::MSG_CMSG_CLOEXEC; - /// `MSG_DONTWAIT` - const DONTWAIT = c::MSG_DONTWAIT; - /// `MSG_ERRQUEUE` - const ERRQUEUE = c::MSG_ERRQUEUE; - /// `MSG_OOB` - const OOB = c::MSG_OOB; - /// `MSG_PEEK` - const PEEK = c::MSG_PEEK; - /// `MSG_TRUNC` - const TRUNC = c::MSG_TRUNC; - /// `MSG_WAITALL` - const WAITALL = c::MSG_WAITALL; - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/net/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/net/syscalls.rs deleted file mode 100644 index 2244a304c91a..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/net/syscalls.rs +++ /dev/null @@ -1,1481 +0,0 @@ -//! linux_raw syscalls supporting `rustix::net`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use super::msghdr::{ - with_noaddr_msghdr, with_recv_msghdr, with_unix_msghdr, with_v4_msghdr, with_v6_msghdr, -}; -use super::read_sockaddr::{initialize_family_to_unspec, maybe_read_sockaddr_os, read_sockaddr_os}; -use super::send_recv::{RecvFlags, SendFlags}; -use super::write_sockaddr::{encode_sockaddr_v4, encode_sockaddr_v6}; -use crate::backend::c; -use crate::backend::conv::{ - by_mut, by_ref, c_int, c_uint, ret, ret_owned_fd, ret_usize, size_of, slice, slice_mut, - socklen_t, zero, -}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io::{self, IoSlice, IoSliceMut}; -use crate::net::{ - AddressFamily, Protocol, RecvAncillaryBuffer, RecvMsgReturn, SendAncillaryBuffer, Shutdown, - SocketAddrAny, SocketAddrUnix, SocketAddrV4, SocketAddrV6, SocketFlags, SocketType, -}; -use c::{sockaddr, sockaddr_in, sockaddr_in6, socklen_t}; -use core::mem::MaybeUninit; -#[cfg(target_arch = "x86")] -use { - crate::backend::conv::{slice_just_addr, x86_sys}, - crate::backend::reg::{ArgReg, SocketArg}, - linux_raw_sys::net::{ - SYS_ACCEPT, SYS_ACCEPT4, SYS_BIND, SYS_CONNECT, SYS_GETPEERNAME, SYS_GETSOCKNAME, - SYS_GETSOCKOPT, SYS_LISTEN, SYS_RECV, SYS_RECVFROM, SYS_RECVMSG, SYS_SEND, SYS_SENDMSG, - SYS_SENDTO, SYS_SETSOCKOPT, SYS_SHUTDOWN, SYS_SOCKET, SYS_SOCKETPAIR, - }, -}; - -#[inline] -pub(crate) fn socket( - family: AddressFamily, - type_: SocketType, - protocol: Option, -) -> io::Result { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret_owned_fd(syscall_readonly!(__NR_socket, family, type_, protocol)) - } - #[cfg(target_arch = "x86")] - unsafe { - ret_owned_fd(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SOCKET), - slice_just_addr::, _>(&[ - family.into(), - type_.into(), - protocol.into(), - ]) - )) - } -} - -#[inline] -pub(crate) fn socket_with( - family: AddressFamily, - type_: SocketType, - flags: SocketFlags, - protocol: Option, -) -> io::Result { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret_owned_fd(syscall_readonly!( - __NR_socket, - family, - (type_, flags), - protocol - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret_owned_fd(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SOCKET), - slice_just_addr::, _>(&[ - family.into(), - (type_, flags).into(), - protocol.into(), - ]) - )) - } -} - -#[inline] -pub(crate) fn socketpair( - family: AddressFamily, - type_: SocketType, - flags: SocketFlags, - protocol: Option, -) -> io::Result<(OwnedFd, OwnedFd)> { - #[cfg(not(target_arch = "x86"))] - unsafe { - let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); - ret(syscall!( - __NR_socketpair, - family, - (type_, flags), - protocol, - &mut result - ))?; - let [fd0, fd1] = result.assume_init(); - Ok((fd0, fd1)) - } - #[cfg(target_arch = "x86")] - unsafe { - let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); - ret(syscall!( - __NR_socketcall, - x86_sys(SYS_SOCKETPAIR), - slice_just_addr::, _>(&[ - family.into(), - (type_, flags).into(), - protocol.into(), - (&mut result).into(), - ]) - ))?; - let [fd0, fd1] = result.assume_init(); - Ok((fd0, fd1)) - } -} - -#[inline] -pub(crate) fn accept(fd: BorrowedFd<'_>) -> io::Result { - #[cfg(not(target_arch = "x86"))] - unsafe { - let fd = ret_owned_fd(syscall_readonly!(__NR_accept, fd, zero(), zero()))?; - Ok(fd) - } - #[cfg(target_arch = "x86")] - unsafe { - let fd = ret_owned_fd(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_ACCEPT), - slice_just_addr::, _>(&[fd.into(), zero(), zero()]) - ))?; - Ok(fd) - } -} - -#[inline] -pub(crate) fn accept_with(fd: BorrowedFd<'_>, flags: SocketFlags) -> io::Result { - #[cfg(not(target_arch = "x86"))] - unsafe { - let fd = ret_owned_fd(syscall_readonly!(__NR_accept4, fd, zero(), zero(), flags))?; - Ok(fd) - } - #[cfg(target_arch = "x86")] - unsafe { - let fd = ret_owned_fd(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_ACCEPT4), - slice_just_addr::, _>(&[fd.into(), zero(), zero(), flags.into()]) - ))?; - Ok(fd) - } -} - -#[inline] -pub(crate) fn acceptfrom(fd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option)> { - #[cfg(not(target_arch = "x86"))] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - let fd = ret_owned_fd(syscall!( - __NR_accept, - fd, - &mut storage, - by_mut(&mut addrlen) - ))?; - Ok(( - fd, - maybe_read_sockaddr_os(&storage.assume_init(), addrlen.try_into().unwrap()), - )) - } - #[cfg(target_arch = "x86")] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - let fd = ret_owned_fd(syscall!( - __NR_socketcall, - x86_sys(SYS_ACCEPT), - slice_just_addr::, _>(&[ - fd.into(), - (&mut storage).into(), - by_mut(&mut addrlen), - ]) - ))?; - Ok(( - fd, - maybe_read_sockaddr_os(&storage.assume_init(), addrlen.try_into().unwrap()), - )) - } -} - -#[inline] -pub(crate) fn acceptfrom_with( - fd: BorrowedFd<'_>, - flags: SocketFlags, -) -> io::Result<(OwnedFd, Option)> { - #[cfg(not(target_arch = "x86"))] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - let fd = ret_owned_fd(syscall!( - __NR_accept4, - fd, - &mut storage, - by_mut(&mut addrlen), - flags - ))?; - Ok(( - fd, - maybe_read_sockaddr_os(&storage.assume_init(), addrlen.try_into().unwrap()), - )) - } - #[cfg(target_arch = "x86")] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - let fd = ret_owned_fd(syscall!( - __NR_socketcall, - x86_sys(SYS_ACCEPT4), - slice_just_addr::, _>(&[ - fd.into(), - (&mut storage).into(), - by_mut(&mut addrlen), - flags.into(), - ]) - ))?; - Ok(( - fd, - maybe_read_sockaddr_os(&storage.assume_init(), addrlen.try_into().unwrap()), - )) - } -} - -#[inline] -pub(crate) fn recvmsg( - sockfd: BorrowedFd<'_>, - iov: &mut [IoSliceMut<'_>], - control: &mut RecvAncillaryBuffer<'_>, - msg_flags: RecvFlags, -) -> io::Result { - let mut storage = MaybeUninit::::uninit(); - - with_recv_msghdr(&mut storage, iov, control, |msghdr| { - #[cfg(not(target_arch = "x86"))] - let result = - unsafe { ret_usize(syscall!(__NR_recvmsg, sockfd, by_mut(msghdr), msg_flags)) }; - - #[cfg(target_arch = "x86")] - let result = unsafe { - ret_usize(syscall!( - __NR_socketcall, - x86_sys(SYS_RECVMSG), - slice_just_addr::, _>(&[ - sockfd.into(), - by_mut(msghdr), - msg_flags.into(), - ]) - )) - }; - - result.map(|bytes| { - // Get the address of the sender, if any. - let addr = - unsafe { maybe_read_sockaddr_os(msghdr.msg_name as _, msghdr.msg_namelen as _) }; - - RecvMsgReturn { - bytes, - address: addr, - flags: RecvFlags::from_bits_retain(msghdr.msg_flags), - } - }) - }) -} - -#[inline] -pub(crate) fn sendmsg( - sockfd: BorrowedFd<'_>, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - with_noaddr_msghdr(iov, control, |msghdr| { - #[cfg(not(target_arch = "x86"))] - let result = - unsafe { ret_usize(syscall!(__NR_sendmsg, sockfd, by_ref(&msghdr), msg_flags)) }; - - #[cfg(target_arch = "x86")] - let result = unsafe { - ret_usize(syscall!( - __NR_socketcall, - x86_sys(SYS_SENDMSG), - slice_just_addr::, _>(&[ - sockfd.into(), - by_ref(&msghdr), - msg_flags.into() - ]) - )) - }; - - result - }) -} - -#[inline] -pub(crate) fn sendmsg_v4( - sockfd: BorrowedFd<'_>, - addr: &SocketAddrV4, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - with_v4_msghdr(addr, iov, control, |msghdr| { - #[cfg(not(target_arch = "x86"))] - let result = - unsafe { ret_usize(syscall!(__NR_sendmsg, sockfd, by_ref(&msghdr), msg_flags)) }; - - #[cfg(target_arch = "x86")] - let result = unsafe { - ret_usize(syscall!( - __NR_socketcall, - x86_sys(SYS_SENDMSG), - slice_just_addr::, _>(&[ - sockfd.into(), - by_ref(&msghdr), - msg_flags.into(), - ]) - )) - }; - - result - }) -} - -#[inline] -pub(crate) fn sendmsg_v6( - sockfd: BorrowedFd<'_>, - addr: &SocketAddrV6, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - with_v6_msghdr(addr, iov, control, |msghdr| { - #[cfg(not(target_arch = "x86"))] - let result = - unsafe { ret_usize(syscall!(__NR_sendmsg, sockfd, by_ref(&msghdr), msg_flags)) }; - - #[cfg(target_arch = "x86")] - let result = unsafe { - ret_usize(syscall!( - __NR_socketcall, - x86_sys(SYS_SENDMSG), - slice_just_addr::, _>(&[ - sockfd.into(), - by_ref(&msghdr), - msg_flags.into() - ]) - )) - }; - - result - }) -} - -#[inline] -pub(crate) fn sendmsg_unix( - sockfd: BorrowedFd<'_>, - addr: &SocketAddrUnix, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - msg_flags: SendFlags, -) -> io::Result { - with_unix_msghdr(addr, iov, control, |msghdr| { - #[cfg(not(target_arch = "x86"))] - let result = - unsafe { ret_usize(syscall!(__NR_sendmsg, sockfd, by_ref(&msghdr), msg_flags)) }; - - #[cfg(target_arch = "x86")] - let result = unsafe { - ret_usize(syscall!( - __NR_socketcall, - x86_sys(SYS_SENDMSG), - slice_just_addr::, _>(&[ - sockfd.into(), - by_ref(&msghdr), - msg_flags.into() - ]) - )) - }; - - result - }) -} - -#[inline] -pub(crate) fn shutdown(fd: BorrowedFd<'_>, how: Shutdown) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_shutdown, - fd, - c_uint(how as c::c_uint) - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SHUTDOWN), - slice_just_addr::, _>(&[fd.into(), c_uint(how as c::c_uint)]) - )) - } -} - -#[inline] -pub(crate) fn send(fd: BorrowedFd<'_>, buf: &[u8], flags: SendFlags) -> io::Result { - let (buf_addr, buf_len) = slice(buf); - - #[cfg(not(any( - target_arch = "aarch64", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "riscv64", - target_arch = "x86", - target_arch = "x86_64", - )))] - unsafe { - ret_usize(syscall_readonly!(__NR_send, fd, buf_addr, buf_len, flags)) - } - #[cfg(any( - target_arch = "aarch64", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "riscv64", - target_arch = "x86_64", - ))] - unsafe { - ret_usize(syscall_readonly!( - __NR_sendto, - fd, - buf_addr, - buf_len, - flags, - zero(), - zero() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret_usize(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SEND), - slice_just_addr::, _>(&[ - fd.into(), - buf_addr, - buf_len, - flags.into() - ]) - )) - } -} - -#[inline] -pub(crate) fn sendto_v4( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrV4, -) -> io::Result { - let (buf_addr, buf_len) = slice(buf); - - #[cfg(not(target_arch = "x86"))] - unsafe { - ret_usize(syscall_readonly!( - __NR_sendto, - fd, - buf_addr, - buf_len, - flags, - by_ref(&encode_sockaddr_v4(addr)), - size_of::() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret_usize(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SENDTO), - slice_just_addr::, _>(&[ - fd.into(), - buf_addr, - buf_len, - flags.into(), - by_ref(&encode_sockaddr_v4(addr)), - size_of::(), - ]) - )) - } -} - -#[inline] -pub(crate) fn sendto_v6( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrV6, -) -> io::Result { - let (buf_addr, buf_len) = slice(buf); - - #[cfg(not(target_arch = "x86"))] - unsafe { - ret_usize(syscall_readonly!( - __NR_sendto, - fd, - buf_addr, - buf_len, - flags, - by_ref(&encode_sockaddr_v6(addr)), - size_of::() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret_usize(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SENDTO), - slice_just_addr::, _>(&[ - fd.into(), - buf_addr, - buf_len, - flags.into(), - by_ref(&encode_sockaddr_v6(addr)), - size_of::(), - ]) - )) - } -} - -#[inline] -pub(crate) fn sendto_unix( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrUnix, -) -> io::Result { - let (buf_addr, buf_len) = slice(buf); - - #[cfg(not(target_arch = "x86"))] - unsafe { - ret_usize(syscall_readonly!( - __NR_sendto, - fd, - buf_addr, - buf_len, - flags, - by_ref(&addr.unix), - socklen_t(addr.addr_len()) - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret_usize(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SENDTO), - slice_just_addr::, _>(&[ - fd.into(), - buf_addr, - buf_len, - flags.into(), - by_ref(&addr.unix), - socklen_t(addr.addr_len()), - ]) - )) - } -} - -#[inline] -pub(crate) fn recv(fd: BorrowedFd<'_>, buf: &mut [u8], flags: RecvFlags) -> io::Result { - let (buf_addr_mut, buf_len) = slice_mut(buf); - - #[cfg(not(any( - target_arch = "aarch64", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "riscv64", - target_arch = "x86", - target_arch = "x86_64", - )))] - unsafe { - ret_usize(syscall!(__NR_recv, fd, buf_addr_mut, buf_len, flags)) - } - #[cfg(any( - target_arch = "aarch64", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "riscv64", - target_arch = "x86_64", - ))] - unsafe { - ret_usize(syscall!( - __NR_recvfrom, - fd, - buf_addr_mut, - buf_len, - flags, - zero(), - zero() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret_usize(syscall!( - __NR_socketcall, - x86_sys(SYS_RECV), - slice_just_addr::, _>(&[ - fd.into(), - buf_addr_mut, - buf_len, - flags.into(), - ]) - )) - } -} - -#[inline] -pub(crate) fn recvfrom( - fd: BorrowedFd<'_>, - buf: &mut [u8], - flags: RecvFlags, -) -> io::Result<(usize, Option)> { - let (buf_addr_mut, buf_len) = slice_mut(buf); - - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - - unsafe { - // `recvfrom` does not write to the storage if the socket is - // connection-oriented sockets, so we initialize the family field to - // `AF_UNSPEC` so that we can detect this case. - initialize_family_to_unspec(storage.as_mut_ptr()); - - #[cfg(not(target_arch = "x86"))] - let nread = ret_usize(syscall!( - __NR_recvfrom, - fd, - buf_addr_mut, - buf_len, - flags, - &mut storage, - by_mut(&mut addrlen) - ))?; - #[cfg(target_arch = "x86")] - let nread = ret_usize(syscall!( - __NR_socketcall, - x86_sys(SYS_RECVFROM), - slice_just_addr::, _>(&[ - fd.into(), - buf_addr_mut, - buf_len, - flags.into(), - (&mut storage).into(), - by_mut(&mut addrlen), - ]) - ))?; - - Ok(( - nread, - maybe_read_sockaddr_os(&storage.assume_init(), addrlen.try_into().unwrap()), - )) - } -} - -#[inline] -pub(crate) fn getpeername(fd: BorrowedFd<'_>) -> io::Result> { - #[cfg(not(target_arch = "x86"))] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - ret(syscall!( - __NR_getpeername, - fd, - &mut storage, - by_mut(&mut addrlen) - ))?; - Ok(maybe_read_sockaddr_os( - &storage.assume_init(), - addrlen.try_into().unwrap(), - )) - } - #[cfg(target_arch = "x86")] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - ret(syscall!( - __NR_socketcall, - x86_sys(SYS_GETPEERNAME), - slice_just_addr::, _>(&[ - fd.into(), - (&mut storage).into(), - by_mut(&mut addrlen), - ]) - ))?; - Ok(maybe_read_sockaddr_os( - &storage.assume_init(), - addrlen.try_into().unwrap(), - )) - } -} - -#[inline] -pub(crate) fn getsockname(fd: BorrowedFd<'_>) -> io::Result { - #[cfg(not(target_arch = "x86"))] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - ret(syscall!( - __NR_getsockname, - fd, - &mut storage, - by_mut(&mut addrlen) - ))?; - Ok(read_sockaddr_os( - &storage.assume_init(), - addrlen.try_into().unwrap(), - )) - } - #[cfg(target_arch = "x86")] - unsafe { - let mut addrlen = core::mem::size_of::() as socklen_t; - let mut storage = MaybeUninit::::uninit(); - ret(syscall!( - __NR_socketcall, - x86_sys(SYS_GETSOCKNAME), - slice_just_addr::, _>(&[ - fd.into(), - (&mut storage).into(), - by_mut(&mut addrlen), - ]) - ))?; - Ok(read_sockaddr_os( - &storage.assume_init(), - addrlen.try_into().unwrap(), - )) - } -} - -#[inline] -pub(crate) fn bind_v4(fd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_bind, - fd, - by_ref(&encode_sockaddr_v4(addr)), - size_of::() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_BIND), - slice_just_addr::, _>(&[ - fd.into(), - by_ref(&encode_sockaddr_v4(addr)), - size_of::(), - ]) - )) - } -} - -#[inline] -pub(crate) fn bind_v6(fd: BorrowedFd<'_>, addr: &SocketAddrV6) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_bind, - fd, - by_ref(&encode_sockaddr_v6(addr)), - size_of::() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_BIND), - slice_just_addr::, _>(&[ - fd.into(), - by_ref(&encode_sockaddr_v6(addr)), - size_of::(), - ]) - )) - } -} - -#[inline] -pub(crate) fn bind_unix(fd: BorrowedFd<'_>, addr: &SocketAddrUnix) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_bind, - fd, - by_ref(&addr.unix), - socklen_t(addr.addr_len()) - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_BIND), - slice_just_addr::, _>(&[ - fd.into(), - by_ref(&addr.unix), - socklen_t(addr.addr_len()), - ]) - )) - } -} - -#[inline] -pub(crate) fn connect_v4(fd: BorrowedFd<'_>, addr: &SocketAddrV4) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_connect, - fd, - by_ref(&encode_sockaddr_v4(addr)), - size_of::() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_CONNECT), - slice_just_addr::, _>(&[ - fd.into(), - by_ref(&encode_sockaddr_v4(addr)), - size_of::(), - ]) - )) - } -} - -#[inline] -pub(crate) fn connect_v6(fd: BorrowedFd<'_>, addr: &SocketAddrV6) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_connect, - fd, - by_ref(&encode_sockaddr_v6(addr)), - size_of::() - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_CONNECT), - slice_just_addr::, _>(&[ - fd.into(), - by_ref(&encode_sockaddr_v6(addr)), - size_of::(), - ]) - )) - } -} - -#[inline] -pub(crate) fn connect_unix(fd: BorrowedFd<'_>, addr: &SocketAddrUnix) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_connect, - fd, - by_ref(&addr.unix), - socklen_t(addr.addr_len()) - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_CONNECT), - slice_just_addr::, _>(&[ - fd.into(), - by_ref(&addr.unix), - socklen_t(addr.addr_len()), - ]) - )) - } -} - -#[inline] -pub(crate) fn listen(fd: BorrowedFd<'_>, backlog: c::c_int) -> io::Result<()> { - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!(__NR_listen, fd, c_int(backlog))) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_LISTEN), - slice_just_addr::, _>(&[fd.into(), c_int(backlog)]) - )) - } -} - -pub(crate) mod sockopt { - use super::{c, BorrowedFd}; - use crate::io; - use crate::net::sockopt::Timeout; - use crate::net::{AddressFamily, Ipv4Addr, Ipv6Addr, SocketType}; - use c::{SO_RCVTIMEO_NEW, SO_RCVTIMEO_OLD, SO_SNDTIMEO_NEW, SO_SNDTIMEO_OLD}; - use core::time::Duration; - use linux_raw_sys::general::{__kernel_timespec, timeval}; - - #[inline] - fn getsockopt(fd: BorrowedFd<'_>, level: u32, optname: u32) -> io::Result { - use super::*; - - let mut optlen = core::mem::size_of::(); - debug_assert!( - optlen as usize >= core::mem::size_of::(), - "Socket APIs don't ever use `bool` directly" - ); - - #[cfg(not(target_arch = "x86"))] - unsafe { - let mut value = MaybeUninit::::uninit(); - ret(syscall!( - __NR_getsockopt, - fd, - c_uint(level), - c_uint(optname), - &mut value, - by_mut(&mut optlen) - ))?; - - assert_eq!( - optlen as usize, - core::mem::size_of::(), - "unexpected getsockopt size" - ); - Ok(value.assume_init()) - } - #[cfg(target_arch = "x86")] - unsafe { - let mut value = MaybeUninit::::uninit(); - ret(syscall!( - __NR_socketcall, - x86_sys(SYS_GETSOCKOPT), - slice_just_addr::, _>(&[ - fd.into(), - c_uint(level), - c_uint(optname), - (&mut value).into(), - by_mut(&mut optlen), - ]) - ))?; - assert_eq!( - optlen as usize, - core::mem::size_of::(), - "unexpected getsockopt size" - ); - Ok(value.assume_init()) - } - } - - #[inline] - fn setsockopt( - fd: BorrowedFd<'_>, - level: u32, - optname: u32, - value: T, - ) -> io::Result<()> { - use super::*; - - let optlen = core::mem::size_of::().try_into().unwrap(); - debug_assert!( - optlen as usize >= core::mem::size_of::(), - "Socket APIs don't ever use `bool` directly" - ); - - #[cfg(not(target_arch = "x86"))] - unsafe { - ret(syscall_readonly!( - __NR_setsockopt, - fd, - c_uint(level), - c_uint(optname), - by_ref(&value), - socklen_t(optlen) - )) - } - #[cfg(target_arch = "x86")] - unsafe { - ret(syscall_readonly!( - __NR_socketcall, - x86_sys(SYS_SETSOCKOPT), - slice_just_addr::, _>(&[ - fd.into(), - c_uint(level), - c_uint(optname), - by_ref(&value), - socklen_t(optlen), - ]) - )) - } - } - - #[inline] - pub(crate) fn get_socket_type(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_TYPE) - } - - #[inline] - pub(crate) fn set_socket_reuseaddr(fd: BorrowedFd<'_>, reuseaddr: bool) -> io::Result<()> { - setsockopt( - fd, - c::SOL_SOCKET as _, - c::SO_REUSEADDR, - from_bool(reuseaddr), - ) - } - - #[inline] - pub(crate) fn set_socket_broadcast(fd: BorrowedFd<'_>, broadcast: bool) -> io::Result<()> { - setsockopt( - fd, - c::SOL_SOCKET as _, - c::SO_BROADCAST, - from_bool(broadcast), - ) - } - - #[inline] - pub(crate) fn get_socket_broadcast(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_BROADCAST).map(to_bool) - } - - #[inline] - pub(crate) fn set_socket_linger( - fd: BorrowedFd<'_>, - linger: Option, - ) -> io::Result<()> { - // Convert `linger` to seconds, rounding up. - let l_linger = if let Some(linger) = linger { - let mut l_linger = linger.as_secs(); - if linger.subsec_nanos() != 0 { - l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?; - } - l_linger.try_into().map_err(|_e| io::Errno::INVAL)? - } else { - 0 - }; - let linger = c::linger { - l_onoff: c::c_int::from(linger.is_some()), - l_linger, - }; - setsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER, linger) - } - - #[inline] - pub(crate) fn get_socket_linger(fd: BorrowedFd<'_>) -> io::Result> { - let linger: c::linger = getsockopt(fd, c::SOL_SOCKET as _, c::SO_LINGER)?; - Ok((linger.l_onoff != 0).then(|| Duration::from_secs(linger.l_linger as u64))) - } - - #[inline] - pub(crate) fn set_socket_passcred(fd: BorrowedFd<'_>, passcred: bool) -> io::Result<()> { - setsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED, from_bool(passcred)) - } - - #[inline] - pub(crate) fn get_socket_passcred(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_PASSCRED).map(to_bool) - } - - #[inline] - pub(crate) fn set_socket_timeout( - fd: BorrowedFd<'_>, - id: Timeout, - timeout: Option, - ) -> io::Result<()> { - let time = duration_to_linux(timeout)?; - let optname = match id { - Timeout::Recv => SO_RCVTIMEO_NEW, - Timeout::Send => SO_SNDTIMEO_NEW, - }; - match setsockopt(fd, c::SOL_SOCKET, optname, time) { - Err(io::Errno::NOPROTOOPT) if SO_RCVTIMEO_NEW != SO_RCVTIMEO_OLD => { - set_socket_timeout_old(fd, id, timeout) - } - otherwise => otherwise, - } - } - - /// Same as `set_socket_timeout` but uses `timeval` instead of - /// `__kernel_timespec` and `_OLD` constants instead of `_NEW`. - fn set_socket_timeout_old( - fd: BorrowedFd<'_>, - id: Timeout, - timeout: Option, - ) -> io::Result<()> { - let time = duration_to_linux_old(timeout)?; - let optname = match id { - Timeout::Recv => SO_RCVTIMEO_OLD, - Timeout::Send => SO_SNDTIMEO_OLD, - }; - setsockopt(fd, c::SOL_SOCKET, optname, time) - } - - #[inline] - pub(crate) fn get_socket_timeout( - fd: BorrowedFd<'_>, - id: Timeout, - ) -> io::Result> { - let optname = match id { - Timeout::Recv => SO_RCVTIMEO_NEW, - Timeout::Send => SO_SNDTIMEO_NEW, - }; - let time: __kernel_timespec = match getsockopt(fd, c::SOL_SOCKET, optname) { - Err(io::Errno::NOPROTOOPT) if SO_RCVTIMEO_NEW != SO_RCVTIMEO_OLD => { - return get_socket_timeout_old(fd, id) - } - otherwise => otherwise?, - }; - Ok(duration_from_linux(time)) - } - - /// Same as `get_socket_timeout` but uses `timeval` instead of - /// `__kernel_timespec` and `_OLD` constants instead of `_NEW`. - fn get_socket_timeout_old(fd: BorrowedFd<'_>, id: Timeout) -> io::Result> { - let optname = match id { - Timeout::Recv => SO_RCVTIMEO_OLD, - Timeout::Send => SO_SNDTIMEO_OLD, - }; - let time: timeval = getsockopt(fd, c::SOL_SOCKET, optname)?; - Ok(duration_from_linux_old(time)) - } - - /// Convert a C `timespec` to a Rust `Option`. - #[inline] - fn duration_from_linux(time: __kernel_timespec) -> Option { - if time.tv_sec == 0 && time.tv_nsec == 0 { - None - } else { - Some( - Duration::from_secs(time.tv_sec as u64) + Duration::from_nanos(time.tv_nsec as u64), - ) - } - } - - /// Like `duration_from_linux` but uses Linux's old 32-bit `timeval`. - fn duration_from_linux_old(time: timeval) -> Option { - if time.tv_sec == 0 && time.tv_usec == 0 { - None - } else { - Some( - Duration::from_secs(time.tv_sec as u64) - + Duration::from_micros(time.tv_usec as u64), - ) - } - } - - /// Convert a Rust `Option` to a C `timespec`. - #[inline] - fn duration_to_linux(timeout: Option) -> io::Result<__kernel_timespec> { - Ok(match timeout { - Some(timeout) => { - if timeout == Duration::ZERO { - return Err(io::Errno::INVAL); - } - let mut timeout = __kernel_timespec { - tv_sec: timeout.as_secs().try_into().unwrap_or(i64::MAX), - tv_nsec: timeout.subsec_nanos().into(), - }; - if timeout.tv_sec == 0 && timeout.tv_nsec == 0 { - timeout.tv_nsec = 1; - } - timeout - } - None => __kernel_timespec { - tv_sec: 0, - tv_nsec: 0, - }, - }) - } - - /// Like `duration_to_linux` but uses Linux's old 32-bit `timeval`. - fn duration_to_linux_old(timeout: Option) -> io::Result { - Ok(match timeout { - Some(timeout) => { - if timeout == Duration::ZERO { - return Err(io::Errno::INVAL); - } - - // `subsec_micros` rounds down, so we use `subsec_nanos` and - // manually round up. - let mut timeout = timeval { - tv_sec: timeout.as_secs().try_into().unwrap_or(c::c_long::MAX), - tv_usec: ((timeout.subsec_nanos() + 999) / 1000) as _, - }; - if timeout.tv_sec == 0 && timeout.tv_usec == 0 { - timeout.tv_usec = 1; - } - timeout - } - None => timeval { - tv_sec: 0, - tv_usec: 0, - }, - }) - } - - #[inline] - pub(crate) fn get_socket_error(fd: BorrowedFd<'_>) -> io::Result> { - let err: c::c_int = getsockopt(fd, c::SOL_SOCKET as _, c::SO_ERROR)?; - Ok(if err == 0 { - Ok(()) - } else { - Err(io::Errno::from_raw_os_error(err)) - }) - } - - #[inline] - pub(crate) fn set_socket_keepalive(fd: BorrowedFd<'_>, keepalive: bool) -> io::Result<()> { - setsockopt( - fd, - c::SOL_SOCKET as _, - c::SO_KEEPALIVE, - from_bool(keepalive), - ) - } - - #[inline] - pub(crate) fn get_socket_keepalive(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_KEEPALIVE).map(to_bool) - } - - #[inline] - pub(crate) fn set_socket_recv_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { - let size: c::c_int = size.try_into().map_err(|_| io::Errno::OVERFLOW)?; - setsockopt(fd, c::SOL_SOCKET as _, c::SO_RCVBUF, size) - } - - #[inline] - pub(crate) fn get_socket_recv_buffer_size(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_RCVBUF).map(|size: u32| size as usize) - } - - #[inline] - pub(crate) fn set_socket_send_buffer_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { - let size: c::c_int = size.try_into().map_err(|_| io::Errno::OVERFLOW)?; - setsockopt(fd, c::SOL_SOCKET as _, c::SO_SNDBUF, size) - } - - #[inline] - pub(crate) fn get_socket_send_buffer_size(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::SOL_SOCKET as _, c::SO_SNDBUF).map(|size: u32| size as usize) - } - - #[inline] - pub(crate) fn get_socket_domain(fd: BorrowedFd<'_>) -> io::Result { - let domain: c::c_int = getsockopt(fd, c::SOL_SOCKET as _, c::SO_DOMAIN)?; - Ok(AddressFamily( - domain.try_into().map_err(|_| io::Errno::OPNOTSUPP)?, - )) - } - - #[inline] - pub(crate) fn set_ip_ttl(fd: BorrowedFd<'_>, ttl: u32) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL, ttl) - } - - #[inline] - pub(crate) fn get_ip_ttl(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IP_TTL) - } - - #[inline] - pub(crate) fn set_ipv6_v6only(fd: BorrowedFd<'_>, only_v6: bool) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY, from_bool(only_v6)) - } - - #[inline] - pub(crate) fn get_ipv6_v6only(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_V6ONLY).map(to_bool) - } - - #[inline] - pub(crate) fn set_ip_multicast_loop( - fd: BorrowedFd<'_>, - multicast_loop: bool, - ) -> io::Result<()> { - setsockopt( - fd, - c::IPPROTO_IP as _, - c::IP_MULTICAST_LOOP, - from_bool(multicast_loop), - ) - } - - #[inline] - pub(crate) fn get_ip_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IP_MULTICAST_LOOP).map(to_bool) - } - - #[inline] - pub(crate) fn set_ip_multicast_ttl(fd: BorrowedFd<'_>, multicast_ttl: u32) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_IP as _, c::IP_MULTICAST_TTL, multicast_ttl) - } - - #[inline] - pub(crate) fn get_ip_multicast_ttl(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IP_MULTICAST_TTL) - } - - #[inline] - pub(crate) fn set_ipv6_multicast_loop( - fd: BorrowedFd<'_>, - multicast_loop: bool, - ) -> io::Result<()> { - setsockopt( - fd, - c::IPPROTO_IPV6 as _, - c::IPV6_MULTICAST_LOOP, - from_bool(multicast_loop), - ) - } - - #[inline] - pub(crate) fn get_ipv6_multicast_loop(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_MULTICAST_LOOP).map(to_bool) - } - - #[inline] - pub(crate) fn set_ipv6_multicast_hops( - fd: BorrowedFd<'_>, - multicast_hops: u32, - ) -> io::Result<()> { - setsockopt( - fd, - c::IPPROTO_IP as _, - c::IPV6_MULTICAST_HOPS, - multicast_hops, - ) - } - - #[inline] - pub(crate) fn get_ipv6_multicast_hops(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IP as _, c::IPV6_MULTICAST_HOPS) - } - - #[inline] - pub(crate) fn set_ip_add_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv4Addr, - interface: &Ipv4Addr, - ) -> io::Result<()> { - let mreq = to_imr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IP as _, c::IP_ADD_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn set_ipv6_add_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv6Addr, - interface: u32, - ) -> io::Result<()> { - let mreq = to_ipv6mr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_ADD_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn set_ip_drop_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv4Addr, - interface: &Ipv4Addr, - ) -> io::Result<()> { - let mreq = to_imr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IP as _, c::IP_DROP_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn set_ipv6_drop_membership( - fd: BorrowedFd<'_>, - multiaddr: &Ipv6Addr, - interface: u32, - ) -> io::Result<()> { - let mreq = to_ipv6mr(multiaddr, interface); - setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_DROP_MEMBERSHIP, mreq) - } - - #[inline] - pub(crate) fn get_ipv6_unicast_hops(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_UNICAST_HOPS).map(|hops: c::c_int| hops as u8) - } - - #[inline] - pub(crate) fn set_ipv6_unicast_hops(fd: BorrowedFd<'_>, hops: Option) -> io::Result<()> { - let hops = match hops { - Some(hops) => hops.into(), - None => -1, - }; - setsockopt(fd, c::IPPROTO_IPV6 as _, c::IPV6_UNICAST_HOPS, hops) - } - - #[inline] - pub(crate) fn set_tcp_nodelay(fd: BorrowedFd<'_>, nodelay: bool) -> io::Result<()> { - setsockopt(fd, c::IPPROTO_TCP as _, c::TCP_NODELAY, from_bool(nodelay)) - } - - #[inline] - pub(crate) fn get_tcp_nodelay(fd: BorrowedFd<'_>) -> io::Result { - getsockopt(fd, c::IPPROTO_TCP as _, c::TCP_NODELAY).map(to_bool) - } - - #[inline] - fn to_imr(multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> c::ip_mreq { - c::ip_mreq { - imr_multiaddr: to_imr_addr(multiaddr), - imr_interface: to_imr_addr(interface), - } - } - - #[inline] - fn to_imr_addr(addr: &Ipv4Addr) -> c::in_addr { - c::in_addr { - s_addr: u32::from_ne_bytes(addr.octets()), - } - } - - #[inline] - fn to_ipv6mr(multiaddr: &Ipv6Addr, interface: u32) -> c::ipv6_mreq { - c::ipv6_mreq { - ipv6mr_multiaddr: to_ipv6mr_multiaddr(multiaddr), - ipv6mr_ifindex: to_ipv6mr_interface(interface), - } - } - - #[inline] - fn to_ipv6mr_multiaddr(multiaddr: &Ipv6Addr) -> c::in6_addr { - c::in6_addr { - in6_u: linux_raw_sys::net::in6_addr__bindgen_ty_1 { - u6_addr8: multiaddr.octets(), - }, - } - } - - #[inline] - fn to_ipv6mr_interface(interface: u32) -> c::c_int { - interface as c::c_int - } - - #[inline] - fn from_bool(value: bool) -> c::c_uint { - c::c_uint::from(value) - } - - #[inline] - fn to_bool(value: c::c_uint) -> bool { - value != 0 - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/net/write_sockaddr.rs b/third_party/rust/rustix/src/backend/linux_raw/net/write_sockaddr.rs deleted file mode 100644 index 417f76e43039..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/net/write_sockaddr.rs +++ /dev/null @@ -1,60 +0,0 @@ -//! The BSD sockets API requires us to read the `ss_family` field before -//! we can interpret the rest of a `sockaddr` produced by the kernel. -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::net::{SocketAddrAny, SocketAddrStorage, SocketAddrUnix, SocketAddrV4, SocketAddrV6}; -use core::mem::size_of; - -pub(crate) unsafe fn write_sockaddr( - addr: &SocketAddrAny, - storage: *mut SocketAddrStorage, -) -> usize { - match addr { - SocketAddrAny::V4(v4) => write_sockaddr_v4(v4, storage), - SocketAddrAny::V6(v6) => write_sockaddr_v6(v6, storage), - SocketAddrAny::Unix(unix) => write_sockaddr_unix(unix, storage), - } -} - -pub(crate) fn encode_sockaddr_v4(v4: &SocketAddrV4) -> c::sockaddr_in { - c::sockaddr_in { - sin_family: c::AF_INET as _, - sin_port: u16::to_be(v4.port()), - sin_addr: c::in_addr { - s_addr: u32::from_ne_bytes(v4.ip().octets()), - }, - __pad: [0_u8; 8], - } -} - -unsafe fn write_sockaddr_v4(v4: &SocketAddrV4, storage: *mut SocketAddrStorage) -> usize { - let encoded = encode_sockaddr_v4(v4); - core::ptr::write(storage.cast(), encoded); - size_of::() -} - -pub(crate) fn encode_sockaddr_v6(v6: &SocketAddrV6) -> c::sockaddr_in6 { - c::sockaddr_in6 { - sin6_family: c::AF_INET6 as _, - sin6_port: u16::to_be(v6.port()), - sin6_flowinfo: u32::to_be(v6.flowinfo()), - sin6_addr: c::in6_addr { - in6_u: linux_raw_sys::net::in6_addr__bindgen_ty_1 { - u6_addr8: v6.ip().octets(), - }, - }, - sin6_scope_id: v6.scope_id(), - } -} - -unsafe fn write_sockaddr_v6(v6: &SocketAddrV6, storage: *mut SocketAddrStorage) -> usize { - let encoded = encode_sockaddr_v6(v6); - core::ptr::write(storage.cast(), encoded); - size_of::() -} - -unsafe fn write_sockaddr_unix(unix: &SocketAddrUnix, storage: *mut SocketAddrStorage) -> usize { - core::ptr::write(storage.cast(), unix.unix); - unix.len() -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/param/auxv.rs b/third_party/rust/rustix/src/backend/linux_raw/param/auxv.rs deleted file mode 100644 index 8b0423ae4591..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/param/auxv.rs +++ /dev/null @@ -1,426 +0,0 @@ -//! Linux auxv support. -//! -//! # Safety -//! -//! This uses raw pointers to locate and read the kernel-provided auxv array. -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::fd::OwnedFd; -#[cfg(feature = "param")] -use crate::ffi::CStr; -use crate::fs::{Mode, OFlags}; -use crate::utils::{as_ptr, check_raw_pointer}; -#[cfg(feature = "alloc")] -use alloc::vec::Vec; -use core::mem::size_of; -use core::ptr::{null_mut, read_unaligned, NonNull}; -use core::sync::atomic::Ordering::Relaxed; -use core::sync::atomic::{AtomicPtr, AtomicUsize}; -use linux_raw_sys::elf::*; -use linux_raw_sys::general::{ - AT_BASE, AT_CLKTCK, AT_EXECFN, AT_HWCAP, AT_HWCAP2, AT_NULL, AT_PAGESZ, AT_SYSINFO_EHDR, -}; -#[cfg(feature = "runtime")] -use linux_raw_sys::general::{AT_ENTRY, AT_PHDR, AT_PHENT, AT_PHNUM}; - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn page_size() -> usize { - let mut page_size = PAGE_SIZE.load(Relaxed); - - if page_size == 0 { - init_auxv(); - page_size = PAGE_SIZE.load(Relaxed); - } - - page_size -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn clock_ticks_per_second() -> u64 { - let mut ticks = CLOCK_TICKS_PER_SECOND.load(Relaxed); - - if ticks == 0 { - init_auxv(); - ticks = CLOCK_TICKS_PER_SECOND.load(Relaxed); - } - - ticks as u64 -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn linux_hwcap() -> (usize, usize) { - let mut hwcap = HWCAP.load(Relaxed); - let mut hwcap2 = HWCAP2.load(Relaxed); - - if hwcap == 0 || hwcap2 == 0 { - init_auxv(); - hwcap = HWCAP.load(Relaxed); - hwcap2 = HWCAP2.load(Relaxed); - } - - (hwcap, hwcap2) -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn linux_execfn() -> &'static CStr { - let mut execfn = EXECFN.load(Relaxed); - - if execfn.is_null() { - init_auxv(); - execfn = EXECFN.load(Relaxed); - } - - // SAFETY: We assume the `AT_EXECFN` value provided by the kernel is a - // valid pointer to a valid NUL-terminated array of bytes. - unsafe { CStr::from_ptr(execfn.cast()) } -} - -#[cfg(feature = "runtime")] -#[inline] -pub(crate) fn exe_phdrs() -> (*const c::c_void, usize, usize) { - let mut phdr = PHDR.load(Relaxed); - let mut phent = PHENT.load(Relaxed); - let mut phnum = PHNUM.load(Relaxed); - - if phdr.is_null() || phnum == 0 { - init_auxv(); - phdr = PHDR.load(Relaxed); - phent = PHENT.load(Relaxed); - phnum = PHNUM.load(Relaxed); - } - - (phdr.cast(), phent, phnum) -} - -/// `AT_SYSINFO_EHDR` isn't present on all platforms in all configurations, so -/// if we don't see it, this function returns a null pointer. -#[inline] -pub(in super::super) fn sysinfo_ehdr() -> *const Elf_Ehdr { - let mut ehdr = SYSINFO_EHDR.load(Relaxed); - - if ehdr.is_null() { - init_auxv(); - ehdr = SYSINFO_EHDR.load(Relaxed); - } - - ehdr -} - -#[cfg(feature = "runtime")] -#[inline] -pub(crate) fn entry() -> usize { - let mut entry = ENTRY.load(Relaxed); - - if entry == 0 { - init_auxv(); - entry = ENTRY.load(Relaxed); - } - - entry -} - -static PAGE_SIZE: AtomicUsize = AtomicUsize::new(0); -static CLOCK_TICKS_PER_SECOND: AtomicUsize = AtomicUsize::new(0); -static HWCAP: AtomicUsize = AtomicUsize::new(0); -static HWCAP2: AtomicUsize = AtomicUsize::new(0); -static EXECFN: AtomicPtr = AtomicPtr::new(null_mut()); -static SYSINFO_EHDR: AtomicPtr = AtomicPtr::new(null_mut()); -#[cfg(feature = "runtime")] -static PHDR: AtomicPtr = AtomicPtr::new(null_mut()); -#[cfg(feature = "runtime")] -static PHENT: AtomicUsize = AtomicUsize::new(0); -#[cfg(feature = "runtime")] -static PHNUM: AtomicUsize = AtomicUsize::new(0); -#[cfg(feature = "runtime")] -static ENTRY: AtomicUsize = AtomicUsize::new(0); - -#[cfg(feature = "alloc")] -fn pr_get_auxv() -> crate::io::Result> { - use super::super::conv::{c_int, pass_usize, ret_usize}; - const PR_GET_AUXV: c::c_int = 0x41555856; - let mut buffer = alloc::vec![0u8; 512]; - let len = unsafe { - ret_usize(syscall_always_asm!( - __NR_prctl, - c_int(PR_GET_AUXV), - buffer.as_ptr(), - pass_usize(buffer.len()), - pass_usize(0), - pass_usize(0) - ))? - }; - if len <= buffer.len() { - buffer.truncate(len); - return Ok(buffer); - } - buffer.resize(len, 0); - let len = unsafe { - ret_usize(syscall_always_asm!( - __NR_prctl, - c_int(PR_GET_AUXV), - buffer.as_ptr(), - pass_usize(buffer.len()), - pass_usize(0), - pass_usize(0) - ))? - }; - assert_eq!(len, buffer.len()); - return Ok(buffer); -} - -/// If we don't have "use-explicitly-provided-auxv" or "use-libc-auxv", we -/// read the aux vector via the `prctl` `PR_GET_AUXV`, with a fallback to -/// /proc/self/auxv for kernels that don't support `PR_GET_AUXV`. -#[cold] -fn init_auxv() { - #[cfg(feature = "alloc")] - { - match pr_get_auxv() { - Ok(buffer) => { - // SAFETY: We assume the kernel returns a valid auxv. - unsafe { - init_from_aux_iter(AuxPointer(buffer.as_ptr().cast())); - } - return; - } - Err(_) => { - // Fall back to /proc/self/auxv on error. - } - } - } - - // Open "/proc/self/auxv", either because we trust "/proc", or because - // we're running inside QEMU and `proc_self_auxv`'s extra checking foils - // QEMU's emulation so we need to do a plain open to get the right - // auxv records. - let file = crate::fs::open("/proc/self/auxv", OFlags::RDONLY, Mode::empty()).unwrap(); - - #[cfg(feature = "alloc")] - init_from_auxv_file(file).unwrap(); - - #[cfg(not(feature = "alloc"))] - unsafe { - init_from_aux_iter(AuxFile(file)).unwrap(); - } -} - -/// Process auxv entries from the open file `auxv`. -#[cfg(feature = "alloc")] -#[cold] -fn init_from_auxv_file(auxv: OwnedFd) -> Option<()> { - let mut buffer = Vec::::with_capacity(512); - loop { - let cur = buffer.len(); - - // Request one extra byte; `Vec` will often allocate more. - buffer.reserve(1); - - // Use all the space it allocated. - buffer.resize(buffer.capacity(), 0); - - // Read up to that many bytes. - let n = match crate::io::read(&auxv, &mut buffer[cur..]) { - Err(crate::io::Errno::INTR) => 0, - Err(_err) => panic!(), - Ok(0) => break, - Ok(n) => n, - }; - - // Account for the number of bytes actually read. - buffer.resize(cur + n, 0_u8); - } - - // SAFETY: We loaded from an auxv file into the buffer. - unsafe { init_from_aux_iter(AuxPointer(buffer.as_ptr().cast())) } -} - -/// Process auxv entries from the auxv array pointed to by `auxp`. -/// -/// # Safety -/// -/// This must be passed a pointer to an auxv array. -/// -/// The buffer contains `Elf_aux_t` elements, though it need not be aligned; -/// function uses `read_unaligned` to read from it. -#[cold] -unsafe fn init_from_aux_iter(aux_iter: impl Iterator) -> Option<()> { - let mut pagesz = 0; - let mut clktck = 0; - let mut hwcap = 0; - let mut hwcap2 = 0; - let mut execfn = null_mut(); - let mut sysinfo_ehdr = null_mut(); - #[cfg(feature = "runtime")] - let mut phdr = null_mut(); - #[cfg(feature = "runtime")] - let mut phnum = 0; - #[cfg(feature = "runtime")] - let mut phent = 0; - #[cfg(feature = "runtime")] - let mut entry = 0; - - for Elf_auxv_t { a_type, a_val } in aux_iter { - match a_type as _ { - AT_PAGESZ => pagesz = a_val as usize, - AT_CLKTCK => clktck = a_val as usize, - AT_HWCAP => hwcap = a_val as usize, - AT_HWCAP2 => hwcap2 = a_val as usize, - AT_EXECFN => execfn = check_raw_pointer::(a_val as *mut _)?.as_ptr(), - AT_SYSINFO_EHDR => sysinfo_ehdr = check_elf_base(a_val as *mut _)?.as_ptr(), - - AT_BASE => { - let _ = check_elf_base(a_val.cast())?; - } - - #[cfg(feature = "runtime")] - AT_PHDR => phdr = check_raw_pointer::(a_val as *mut _)?.as_ptr(), - #[cfg(feature = "runtime")] - AT_PHNUM => phnum = a_val as usize, - #[cfg(feature = "runtime")] - AT_PHENT => phent = a_val as usize, - #[cfg(feature = "runtime")] - AT_ENTRY => entry = a_val as usize, - - AT_NULL => break, - _ => (), - } - } - - #[cfg(feature = "runtime")] - assert_eq!(phent, size_of::()); - - // The base and sysinfo_ehdr (if present) matches our platform. Accept - // the aux values. - PAGE_SIZE.store(pagesz, Relaxed); - CLOCK_TICKS_PER_SECOND.store(clktck, Relaxed); - HWCAP.store(hwcap, Relaxed); - HWCAP2.store(hwcap2, Relaxed); - EXECFN.store(execfn, Relaxed); - SYSINFO_EHDR.store(sysinfo_ehdr, Relaxed); - #[cfg(feature = "runtime")] - PHDR.store(phdr, Relaxed); - #[cfg(feature = "runtime")] - PHNUM.store(phnum, Relaxed); - #[cfg(feature = "runtime")] - ENTRY.store(entry, Relaxed); - - Some(()) -} - -/// Check that `base` is a valid pointer to the kernel-provided vDSO. -/// -/// `base` is some value we got from a `AT_SYSINFO_EHDR` aux record somewhere, -/// which hopefully holds the value of the kernel-provided vDSO in memory. Do a -/// series of checks to be as sure as we can that it's safe to use. -#[cold] -unsafe fn check_elf_base(base: *const Elf_Ehdr) -> Option> { - // If we're reading a 64-bit auxv on a 32-bit platform, we'll see a zero - // `a_val` because `AT_*` values are never greater than `u32::MAX`. Zero is - // used by libc's `getauxval` to indicate errors, so it should never be a - // valid value. - if base.is_null() { - return None; - } - - let hdr = match check_raw_pointer::(base as *mut _) { - Some(hdr) => hdr, - None => return None, - }; - - let hdr = hdr.as_ref(); - if hdr.e_ident[..SELFMAG] != ELFMAG { - return None; // Wrong ELF magic - } - if !matches!(hdr.e_ident[EI_OSABI], ELFOSABI_SYSV | ELFOSABI_LINUX) { - return None; // Unrecognized ELF OS ABI - } - if hdr.e_ident[EI_ABIVERSION] != ELFABIVERSION { - return None; // Unrecognized ELF ABI version - } - if hdr.e_type != ET_DYN { - return None; // Wrong ELF type - } - - // If ELF is extended, we'll need to adjust. - if hdr.e_ident[EI_VERSION] != EV_CURRENT - || hdr.e_ehsize as usize != size_of::() - || hdr.e_phentsize as usize != size_of::() - { - return None; - } - // We don't currently support extra-large numbers of segments. - if hdr.e_phnum == PN_XNUM { - return None; - } - - // If `e_phoff` is zero, it's more likely that we're looking at memory that - // has been zeroed than that the kernel has somehow aliased the `Ehdr` and - // the `Phdr`. - if hdr.e_phoff < size_of::() { - return None; - } - - // Verify that the `EI_CLASS`/`EI_DATA`/`e_machine` fields match the - // architecture we're running as. This helps catch cases where we're - // running under QEMU. - if hdr.e_ident[EI_CLASS] != ELFCLASS { - return None; // Wrong ELF class - } - if hdr.e_ident[EI_DATA] != ELFDATA { - return None; // Wrong ELF data - } - if hdr.e_machine != EM_CURRENT { - return None; // Wrong machine type - } - - Some(NonNull::new_unchecked(as_ptr(hdr) as *mut _)) -} - -// Aux reading utilities - -// Read auxv records from an array in memory. -struct AuxPointer(*const Elf_auxv_t); - -impl Iterator for AuxPointer { - type Item = Elf_auxv_t; - - #[cold] - fn next(&mut self) -> Option { - unsafe { - let value = read_unaligned(self.0); - self.0 = self.0.add(1); - Some(value) - } - } -} - -// Read auxv records from a file. -#[cfg(not(feature = "alloc"))] -struct AuxFile(OwnedFd); - -#[cfg(not(feature = "alloc"))] -impl Iterator for AuxFile { - type Item = Elf_auxv_t; - - // This implementation does lots of `read`s and it isn't amazing, but - // hopefully we won't use it often. - #[cold] - fn next(&mut self) -> Option { - let mut buf = [0_u8; size_of::()]; - let mut slice = &mut buf[..]; - while !slice.is_empty() { - match crate::io::read(&self.0, slice) { - Ok(0) => panic!("unexpected end of auxv file"), - Ok(n) => slice = &mut slice[n..], - Err(crate::io::Errno::INTR) => continue, - Err(err) => Err(err).unwrap(), - } - } - Some(unsafe { read_unaligned(buf.as_ptr().cast()) }) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/param/init.rs b/third_party/rust/rustix/src/backend/linux_raw/param/init.rs deleted file mode 100644 index 46aae009a097..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/param/init.rs +++ /dev/null @@ -1,149 +0,0 @@ -//! Linux auxv `init` function, for "use-explicitly-provided-auxv" mode. -//! -//! # Safety -//! -//! This uses raw pointers to locate and read the kernel-provided auxv array. -#![allow(unsafe_code)] - -use crate::backend::c; -#[cfg(feature = "param")] -use crate::ffi::CStr; -use core::ffi::c_void; -use core::ptr::{null_mut, read, NonNull}; -use core::sync::atomic::{AtomicPtr, AtomicUsize, Ordering}; -use linux_raw_sys::elf::*; -use linux_raw_sys::general::{ - AT_CLKTCK, AT_EXECFN, AT_HWCAP, AT_HWCAP2, AT_NULL, AT_PAGESZ, AT_SYSINFO_EHDR, -}; -#[cfg(feature = "runtime")] -use linux_raw_sys::general::{AT_ENTRY, AT_PHDR, AT_PHENT, AT_PHNUM}; - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn page_size() -> usize { - unsafe { PAGE_SIZE.load(Ordering::Relaxed) } -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn clock_ticks_per_second() -> u64 { - unsafe { CLOCK_TICKS_PER_SECOND.load(Ordering::Relaxed) as u64 } -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn linux_hwcap() -> (usize, usize) { - unsafe { - ( - HWCAP.load(Ordering::Relaxed), - HWCAP2.load(Ordering::Relaxed), - ) - } -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn linux_execfn() -> &'static CStr { - let execfn = unsafe { EXECFN.load(Ordering::Relaxed) }; - - // SAFETY: We initialize `EXECFN` to a valid `CStr` pointer, and we assume - // the `AT_EXECFN` value provided by the kernel points to a valid C string. - unsafe { CStr::from_ptr(execfn.cast()) } -} - -#[cfg(feature = "runtime")] -#[inline] -pub(crate) fn exe_phdrs() -> (*const c_void, usize, usize) { - unsafe { - ( - PHDR.load(Ordering::Relaxed).cast(), - PHENT.load(Ordering::Relaxed), - PHNUM.load(Ordering::Relaxed), - ) - } -} - -/// `AT_SYSINFO_EHDR` isn't present on all platforms in all configurations, so -/// if we don't see it, this function returns a null pointer. -#[inline] -pub(in super::super) fn sysinfo_ehdr() -> *const Elf_Ehdr { - unsafe { SYSINFO_EHDR.load(Ordering::Relaxed) } -} - -#[cfg(feature = "runtime")] -#[inline] -pub(crate) fn entry() -> usize { - unsafe { ENTRY.load(Ordering::Relaxed) } -} - -static mut PAGE_SIZE: AtomicUsize = AtomicUsize::new(0); -static mut CLOCK_TICKS_PER_SECOND: AtomicUsize = AtomicUsize::new(0); -static mut HWCAP: AtomicUsize = AtomicUsize::new(0); -static mut HWCAP2: AtomicUsize = AtomicUsize::new(0); -static mut SYSINFO_EHDR: AtomicPtr = AtomicPtr::new(null_mut()); -// Initialize `EXECFN` to a valid `CStr` pointer so that we don't need to check -// for null on every `execfn` call. -static mut EXECFN: AtomicPtr = AtomicPtr::new(b"\0".as_ptr() as _); -// Use `dangling` so that we can always treat it like an empty slice. -#[cfg(feature = "runtime")] -static mut PHDR: AtomicPtr = AtomicPtr::new(NonNull::dangling().as_ptr()); -#[cfg(feature = "runtime")] -static mut PHENT: AtomicUsize = AtomicUsize::new(0); -#[cfg(feature = "runtime")] -static mut PHNUM: AtomicUsize = AtomicUsize::new(0); -#[cfg(feature = "runtime")] -static mut ENTRY: AtomicUsize = AtomicUsize::new(0); - -/// When "use-explicitly-provided-auxv" is enabled, we export a function to be -/// called during initialization, and passed a pointer to the original -/// environment variable block set up by the OS. -pub(crate) unsafe fn init(envp: *mut *mut u8) { - init_from_envp(envp); -} - -/// # Safety -/// -/// This must be passed a pointer to the environment variable buffer -/// provided by the kernel, which is followed in memory by the auxv array. -unsafe fn init_from_envp(mut envp: *mut *mut u8) { - while !(*envp).is_null() { - envp = envp.add(1); - } - init_from_auxp(envp.add(1).cast()) -} - -/// Process auxv entries from the auxv array pointed to by `auxp`. -/// -/// # Safety -/// -/// This must be passed a pointer to an auxv array. -/// -/// The buffer contains `Elf_aux_t` elements, though it need not be aligned; -/// function uses `read_unaligned` to read from it. -unsafe fn init_from_auxp(mut auxp: *const Elf_auxv_t) { - loop { - let Elf_auxv_t { a_type, a_val } = read(auxp); - - match a_type as _ { - AT_PAGESZ => PAGE_SIZE.store(a_val as usize, Ordering::Relaxed), - AT_CLKTCK => CLOCK_TICKS_PER_SECOND.store(a_val as usize, Ordering::Relaxed), - AT_HWCAP => HWCAP.store(a_val as usize, Ordering::Relaxed), - AT_HWCAP2 => HWCAP2.store(a_val as usize, Ordering::Relaxed), - AT_EXECFN => EXECFN.store(a_val.cast::(), Ordering::Relaxed), - AT_SYSINFO_EHDR => SYSINFO_EHDR.store(a_val.cast::(), Ordering::Relaxed), - - #[cfg(feature = "runtime")] - AT_PHDR => PHDR.store(a_val.cast::(), Ordering::Relaxed), - #[cfg(feature = "runtime")] - AT_PHNUM => PHNUM.store(a_val as usize, Ordering::Relaxed), - #[cfg(feature = "runtime")] - AT_PHENT => PHENT.store(a_val as usize, Ordering::Relaxed), - #[cfg(feature = "runtime")] - AT_ENTRY => ENTRY.store(a_val as usize, Ordering::Relaxed), - - AT_NULL => break, - _ => (), - } - auxp = auxp.add(1); - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/param/libc_auxv.rs b/third_party/rust/rustix/src/backend/linux_raw/param/libc_auxv.rs deleted file mode 100644 index 0e6ca6ed503f..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/param/libc_auxv.rs +++ /dev/null @@ -1,157 +0,0 @@ -//! Linux auxv support, using libc. -//! -//! # Safety -//! -//! This uses raw pointers to locate and read the kernel-provided auxv array. -#![allow(unsafe_code)] - -use crate::backend::c; -#[cfg(feature = "param")] -use crate::ffi::CStr; -#[cfg(not(feature = "runtime"))] -use core::ptr::null; -use linux_raw_sys::elf::*; - -// `getauxval` wasn't supported in glibc until 2.16. Also this lets us use -// `*mut` as the return type to preserve strict provenance. -#[cfg(not(feature = "runtime"))] -weak!(fn getauxval(c::c_ulong) -> *mut c::c_void); - -// With the "runtime" feature, go ahead and depend on `getauxval` existing so -// that we never fail. -#[cfg(feature = "runtime")] -extern "C" { - fn getauxval(type_: c::c_ulong) -> *mut c::c_void; -} - -#[cfg(feature = "runtime")] -const AT_PHDR: c::c_ulong = 3; -#[cfg(feature = "runtime")] -const AT_PHENT: c::c_ulong = 4; -#[cfg(feature = "runtime")] -const AT_PHNUM: c::c_ulong = 5; -#[cfg(feature = "runtime")] -const AT_ENTRY: c::c_ulong = 9; -const AT_HWCAP: c::c_ulong = 16; -const AT_HWCAP2: c::c_ulong = 26; -const AT_EXECFN: c::c_ulong = 31; -const AT_SYSINFO_EHDR: c::c_ulong = 33; - -// Declare `sysconf` ourselves so that we don't depend on all of libc just for -// this. -extern "C" { - fn sysconf(name: c::c_int) -> c::c_long; -} - -#[cfg(target_os = "android")] -const _SC_PAGESIZE: c::c_int = 39; -#[cfg(target_os = "linux")] -const _SC_PAGESIZE: c::c_int = 30; -#[cfg(target_os = "android")] -const _SC_CLK_TCK: c::c_int = 6; -#[cfg(target_os = "linux")] -const _SC_CLK_TCK: c::c_int = 2; - -#[test] -fn test_abi() { - const_assert_eq!(self::_SC_PAGESIZE, ::libc::_SC_PAGESIZE); - const_assert_eq!(self::_SC_CLK_TCK, ::libc::_SC_CLK_TCK); - const_assert_eq!(self::AT_HWCAP, ::libc::AT_HWCAP); - const_assert_eq!(self::AT_HWCAP2, ::libc::AT_HWCAP2); - const_assert_eq!(self::AT_EXECFN, ::libc::AT_EXECFN); - const_assert_eq!(self::AT_SYSINFO_EHDR, ::libc::AT_SYSINFO_EHDR); - #[cfg(feature = "runtime")] - const_assert_eq!(self::AT_PHDR, ::libc::AT_PHDR); - #[cfg(feature = "runtime")] - const_assert_eq!(self::AT_PHNUM, ::libc::AT_PHNUM); - #[cfg(feature = "runtime")] - const_assert_eq!(self::AT_ENTRY, ::libc::AT_ENTRY); -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn page_size() -> usize { - unsafe { sysconf(_SC_PAGESIZE) as usize } -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn clock_ticks_per_second() -> u64 { - unsafe { sysconf(_SC_CLK_TCK) as u64 } -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn linux_hwcap() -> (usize, usize) { - #[cfg(not(feature = "runtime"))] - unsafe { - if let Some(libc_getauxval) = getauxval.get() { - let hwcap = libc_getauxval(AT_HWCAP) as usize; - let hwcap2 = libc_getauxval(AT_HWCAP2) as usize; - (hwcap, hwcap2) - } else { - (0, 0) - } - } - - #[cfg(feature = "runtime")] - unsafe { - let hwcap = getauxval(AT_HWCAP) as usize; - let hwcap2 = getauxval(AT_HWCAP2) as usize; - (hwcap, hwcap2) - } -} - -#[cfg(feature = "param")] -#[inline] -pub(crate) fn linux_execfn() -> &'static CStr { - #[cfg(not(feature = "runtime"))] - unsafe { - if let Some(libc_getauxval) = getauxval.get() { - CStr::from_ptr(libc_getauxval(AT_EXECFN).cast()) - } else { - cstr!("") - } - } - - #[cfg(feature = "runtime")] - unsafe { - CStr::from_ptr(getauxval(AT_EXECFN).cast()) - } -} - -#[cfg(feature = "runtime")] -#[inline] -pub(crate) fn exe_phdrs() -> (*const c::c_void, usize, usize) { - unsafe { - let phdr = getauxval(AT_PHDR) as *const c::c_void; - let phent = getauxval(AT_PHENT) as usize; - let phnum = getauxval(AT_PHNUM) as usize; - (phdr, phent, phnum) - } -} - -/// `AT_SYSINFO_EHDR` isn't present on all platforms in all configurations, -/// so if we don't see it, this function returns a null pointer. -#[inline] -pub(in super::super) fn sysinfo_ehdr() -> *const Elf_Ehdr { - #[cfg(not(feature = "runtime"))] - unsafe { - if let Some(libc_getauxval) = getauxval.get() { - libc_getauxval(AT_SYSINFO_EHDR) as *const Elf_Ehdr - } else { - null() - } - } - - #[cfg(feature = "runtime")] - unsafe { - getauxval(AT_SYSINFO_EHDR) as *const Elf_Ehdr - } -} - -#[cfg(feature = "runtime")] -#[inline] -pub(crate) fn entry() -> usize { - unsafe { getauxval(AT_ENTRY) as usize } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/param/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/param/mod.rs deleted file mode 100644 index 365f0160430a..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/param/mod.rs +++ /dev/null @@ -1,15 +0,0 @@ -// With "use-explicitly-provided-auxv" enabled, we expect to be initialized -// with an explicit `rustix::param::init` call. -// -// With "use-libc-auxv" enabled, use libc's `getauxval`. -// -// Otherwise, we read aux values from /proc/self/auxv. -#[cfg_attr(feature = "use-explicitly-provided-auxv", path = "init.rs")] -#[cfg_attr( - all( - not(feature = "use-explicitly-provided-auxv"), - feature = "use-libc-auxv" - ), - path = "libc_auxv.rs" -)] -pub(crate) mod auxv; diff --git a/third_party/rust/rustix/src/backend/linux_raw/pid/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/pid/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/pid/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/pid/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/pid/syscalls.rs deleted file mode 100644 index f36bac04825c..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/pid/syscalls.rs +++ /dev/null @@ -1,18 +0,0 @@ -//! linux_raw syscalls for PIDs -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::conv::ret_usize_infallible; -use crate::pid::{Pid, RawPid}; - -#[inline] -pub(crate) fn getpid() -> Pid { - unsafe { - let pid = ret_usize_infallible(syscall_readonly!(__NR_getpid)) as RawPid; - Pid::from_raw_unchecked(pid) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/pipe/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/pipe/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/pipe/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/pipe/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/pipe/syscalls.rs deleted file mode 100644 index f0dc65233e0d..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/pipe/syscalls.rs +++ /dev/null @@ -1,136 +0,0 @@ -//! linux_raw syscalls supporting `rustix::pipe`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::conv::{c_int, c_uint, opt_mut, pass_usize, ret, ret_usize, slice}; -use crate::backend::{c, MAX_IOV}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::io; -use crate::pipe::{IoSliceRaw, PipeFlags, SpliceFlags}; -use core::cmp; -use core::mem::MaybeUninit; -use linux_raw_sys::general::{F_GETPIPE_SZ, F_SETPIPE_SZ}; - -#[inline] -pub(crate) fn pipe() -> io::Result<(OwnedFd, OwnedFd)> { - // aarch64 and risc64 omit `__NR_pipe`. On mips, `__NR_pipe` uses a special - // calling convention, but using it is not worth complicating our syscall - // wrapping infrastructure at this time. - #[cfg(any( - target_arch = "aarch64", - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "riscv64", - ))] - { - pipe_with(PipeFlags::empty()) - } - #[cfg(not(any( - target_arch = "aarch64", - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "riscv64", - )))] - unsafe { - let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); - ret(syscall!(__NR_pipe, &mut result))?; - let [p0, p1] = result.assume_init(); - Ok((p0, p1)) - } -} - -#[inline] -pub(crate) fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { - unsafe { - let mut result = MaybeUninit::<[OwnedFd; 2]>::uninit(); - ret(syscall!(__NR_pipe2, &mut result, flags))?; - let [p0, p1] = result.assume_init(); - Ok((p0, p1)) - } -} - -#[inline] -pub fn splice( - fd_in: BorrowedFd<'_>, - off_in: Option<&mut u64>, - fd_out: BorrowedFd<'_>, - off_out: Option<&mut u64>, - len: usize, - flags: SpliceFlags, -) -> io::Result { - unsafe { - ret_usize(syscall!( - __NR_splice, - fd_in, - opt_mut(off_in), - fd_out, - opt_mut(off_out), - pass_usize(len), - flags - )) - } -} - -#[inline] -pub unsafe fn vmsplice( - fd: BorrowedFd<'_>, - bufs: &[IoSliceRaw<'_>], - flags: SpliceFlags, -) -> io::Result { - let (bufs_addr, bufs_len) = slice(&bufs[..cmp::min(bufs.len(), MAX_IOV)]); - ret_usize(syscall!(__NR_vmsplice, fd, bufs_addr, bufs_len, flags)) -} - -#[inline] -pub fn tee( - fd_in: BorrowedFd<'_>, - fd_out: BorrowedFd<'_>, - len: usize, - flags: SpliceFlags, -) -> io::Result { - unsafe { ret_usize(syscall!(__NR_tee, fd_in, fd_out, pass_usize(len), flags)) } -} - -#[inline] -pub(crate) fn fcntl_getpipe_sz(fd: BorrowedFd<'_>) -> io::Result { - #[cfg(target_pointer_width = "32")] - unsafe { - ret_usize(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GETPIPE_SZ))) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret_usize(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GETPIPE_SZ))) - } -} - -#[inline] -pub(crate) fn fcntl_setpipe_sz(fd: BorrowedFd<'_>, size: usize) -> io::Result<()> { - let size: c::c_int = size.try_into().map_err(|_| io::Errno::PERM)?; - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!( - __NR_fcntl64, - fd, - c_uint(F_SETPIPE_SZ), - c_int(size) - )) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_fcntl, - fd, - c_uint(F_SETPIPE_SZ), - c_int(size) - )) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/pipe/types.rs b/third_party/rust/rustix/src/backend/linux_raw/pipe/types.rs deleted file mode 100644 index c950b5d0af6b..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/pipe/types.rs +++ /dev/null @@ -1,78 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; -use core::marker::PhantomData; - -bitflags! { - /// `O_*` constants for use with [`pipe_with`]. - /// - /// [`pipe_with`]: crate::io::pipe_with - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PipeFlags: c::c_uint { - /// `O_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; - /// `O_DIRECT` - const DIRECT = linux_raw_sys::general::O_DIRECT; - /// `O_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::O_NONBLOCK; - - /// - const _ = !0; - } -} - -bitflags! { - /// `SPLICE_F_*` constants for use with [`splice`] [`vmsplice`], and - /// [`tee`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SpliceFlags: c::c_uint { - /// `SPLICE_F_MOVE` - const MOVE = linux_raw_sys::general::SPLICE_F_MOVE; - /// `SPLICE_F_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::SPLICE_F_NONBLOCK; - /// `SPLICE_F_MORE` - const MORE = linux_raw_sys::general::SPLICE_F_MORE; - /// `SPLICE_F_GIFT` - const GIFT = linux_raw_sys::general::SPLICE_F_GIFT; - - /// - const _ = !0; - } -} - -/// A buffer type used with `vmsplice`. -/// -/// It is guaranteed to be ABI compatible with the iovec type on Unix platforms -/// and `WSABUF` on Windows. Unlike `IoSlice` and `IoSliceMut` it is -/// semantically like a raw pointer, and therefore can be shared or mutated as -/// needed. -#[repr(transparent)] -pub struct IoSliceRaw<'a> { - _buf: c::iovec, - _lifetime: PhantomData<&'a ()>, -} - -impl<'a> IoSliceRaw<'a> { - /// Creates a new `IoSlice` wrapping a byte slice. - pub fn from_slice(buf: &'a [u8]) -> Self { - IoSliceRaw { - _buf: c::iovec { - iov_base: (buf.as_ptr() as *mut u8).cast::(), - iov_len: buf.len() as _, - }, - _lifetime: PhantomData, - } - } - - /// Creates a new `IoSlice` wrapping a mutable byte slice. - pub fn from_slice_mut(buf: &'a mut [u8]) -> Self { - IoSliceRaw { - _buf: c::iovec { - iov_base: buf.as_mut_ptr().cast::(), - iov_len: buf.len() as _, - }, - _lifetime: PhantomData, - } - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/prctl/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/prctl/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/prctl/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/prctl/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/prctl/syscalls.rs deleted file mode 100644 index 193f4b7b495e..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/prctl/syscalls.rs +++ /dev/null @@ -1,22 +0,0 @@ -//! linux_raw syscalls supporting modules that use `prctl`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::c; -use crate::backend::conv::{c_int, ret_c_int}; -use crate::io; - -#[inline] -pub(crate) unsafe fn prctl( - option: c::c_int, - arg2: *mut c::c_void, - arg3: *mut c::c_void, - arg4: *mut c::c_void, - arg5: *mut c::c_void, -) -> io::Result { - ret_c_int(syscall!(__NR_prctl, c_int(option), arg2, arg3, arg4, arg5)) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/process/cpu_set.rs b/third_party/rust/rustix/src/backend/linux_raw/process/cpu_set.rs deleted file mode 100644 index 35146cfd2848..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/process/cpu_set.rs +++ /dev/null @@ -1,46 +0,0 @@ -//! Rust implementation of the `CPU_*` macro API. - -#![allow(non_snake_case)] - -use super::types::RawCpuSet; -use core::mem::size_of_val; - -#[inline] -pub(crate) fn CPU_SET(cpu: usize, cpuset: &mut RawCpuSet) { - let size_in_bits = 8 * size_of_val(&cpuset.bits[0]); // 32, 64 etc - let (idx, offset) = (cpu / size_in_bits, cpu % size_in_bits); - cpuset.bits[idx] |= 1 << offset -} - -#[inline] -pub(crate) fn CPU_ZERO(cpuset: &mut RawCpuSet) { - cpuset.bits.fill(0) -} - -#[inline] -pub(crate) fn CPU_CLR(cpu: usize, cpuset: &mut RawCpuSet) { - let size_in_bits = 8 * size_of_val(&cpuset.bits[0]); // 32, 64 etc - let (idx, offset) = (cpu / size_in_bits, cpu % size_in_bits); - cpuset.bits[idx] &= !(1 << offset) -} - -#[inline] -pub(crate) fn CPU_ISSET(cpu: usize, cpuset: &RawCpuSet) -> bool { - let size_in_bits = 8 * size_of_val(&cpuset.bits[0]); - let (idx, offset) = (cpu / size_in_bits, cpu % size_in_bits); - (cpuset.bits[idx] & (1 << offset)) != 0 -} - -#[inline] -pub(crate) fn CPU_COUNT_S(size_in_bytes: usize, cpuset: &RawCpuSet) -> u32 { - let size_of_mask = size_of_val(&cpuset.bits[0]); - let idx = size_in_bytes / size_of_mask; - cpuset.bits[..idx] - .iter() - .fold(0, |acc, i| acc + i.count_ones()) -} - -#[inline] -pub(crate) fn CPU_COUNT(cpuset: &RawCpuSet) -> u32 { - CPU_COUNT_S(core::mem::size_of::(), cpuset) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/process/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/process/mod.rs deleted file mode 100644 index 9b2c25f91c1a..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/process/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub(crate) mod cpu_set; -pub(crate) mod syscalls; -pub(crate) mod types; -pub(crate) mod wait; diff --git a/third_party/rust/rustix/src/backend/linux_raw/process/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/process/syscalls.rs deleted file mode 100644 index 3fe73b9384e2..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/process/syscalls.rs +++ /dev/null @@ -1,626 +0,0 @@ -//! linux_raw syscalls supporting `rustix::process`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use super::types::RawCpuSet; -use crate::backend::c; -#[cfg(all(feature = "alloc", feature = "fs"))] -use crate::backend::conv::slice_mut; -use crate::backend::conv::{ - by_mut, by_ref, c_int, c_uint, negative_pid, pass_usize, raw_fd, ret, ret_c_int, - ret_c_int_infallible, ret_c_uint, ret_infallible, ret_owned_fd, ret_usize, size_of, - slice_just_addr, zero, -}; -use crate::fd::{AsRawFd, BorrowedFd, OwnedFd, RawFd}; -#[cfg(feature = "fs")] -use crate::ffi::CStr; -use crate::io; -use crate::pid::RawPid; -use crate::process::{ - Cpuid, MembarrierCommand, MembarrierQuery, Pid, PidfdFlags, PidfdGetfdFlags, Resource, Rlimit, - Uid, WaitId, WaitOptions, WaitStatus, WaitidOptions, WaitidStatus, -}; -use crate::signal::Signal; -use crate::utils::as_mut_ptr; -use core::mem::MaybeUninit; -use core::ptr::{null, null_mut}; -use linux_raw_sys::general::{ - membarrier_cmd, membarrier_cmd_flag, rlimit, rlimit64, PRIO_PGRP, PRIO_PROCESS, PRIO_USER, - RLIM64_INFINITY, RLIM_INFINITY, -}; -#[cfg(feature = "fs")] -use {crate::backend::conv::ret_c_uint_infallible, crate::fs::Mode}; -#[cfg(feature = "alloc")] -use {crate::backend::conv::slice_just_addr_mut, crate::process::Gid}; - -#[cfg(feature = "fs")] -#[inline] -pub(crate) fn chdir(filename: &CStr) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_chdir, filename)) } -} - -#[inline] -pub(crate) fn fchdir(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_fchdir, fd)) } -} - -#[cfg(feature = "fs")] -#[inline] -pub(crate) fn chroot(filename: &CStr) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_chroot, filename)) } -} - -#[cfg(all(feature = "alloc", feature = "fs"))] -#[inline] -pub(crate) fn getcwd(buf: &mut [MaybeUninit]) -> io::Result { - let (buf_addr_mut, buf_len) = slice_mut(buf); - unsafe { ret_usize(syscall!(__NR_getcwd, buf_addr_mut, buf_len)) } -} - -#[inline] -pub(crate) fn membarrier_query() -> MembarrierQuery { - unsafe { - match ret_c_uint(syscall!( - __NR_membarrier, - c_int(membarrier_cmd::MEMBARRIER_CMD_QUERY as _), - c_uint(0) - )) { - Ok(query) => MembarrierQuery::from_bits_retain(query), - Err(_) => MembarrierQuery::empty(), - } - } -} - -#[inline] -pub(crate) fn membarrier(cmd: MembarrierCommand) -> io::Result<()> { - unsafe { ret(syscall!(__NR_membarrier, cmd, c_uint(0))) } -} - -#[inline] -pub(crate) fn membarrier_cpu(cmd: MembarrierCommand, cpu: Cpuid) -> io::Result<()> { - unsafe { - ret(syscall!( - __NR_membarrier, - cmd, - c_uint(membarrier_cmd_flag::MEMBARRIER_CMD_FLAG_CPU as _), - cpu - )) - } -} - -#[inline] -pub(crate) fn getppid() -> Option { - unsafe { - let ppid = ret_c_int_infallible(syscall_readonly!(__NR_getppid)); - Pid::from_raw(ppid) - } -} - -#[inline] -pub(crate) fn getpgid(pid: Option) -> io::Result { - unsafe { - let pgid = ret_c_int(syscall_readonly!(__NR_getpgid, c_int(Pid::as_raw(pid))))?; - debug_assert!(pgid > 0); - Ok(Pid::from_raw_unchecked(pgid)) - } -} - -#[inline] -pub(crate) fn setpgid(pid: Option, pgid: Option) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_setpgid, - c_int(Pid::as_raw(pid)), - c_int(Pid::as_raw(pgid)) - )) - } -} - -#[inline] -pub(crate) fn getpgrp() -> Pid { - // Use the `getpgrp` syscall if available. - #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))] - unsafe { - let pgid = ret_c_int_infallible(syscall_readonly!(__NR_getpgrp)); - debug_assert!(pgid > 0); - Pid::from_raw_unchecked(pgid) - } - - // Otherwise use `getpgrp` and pass it zero. - #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] - unsafe { - let pgid = ret_c_int_infallible(syscall_readonly!(__NR_getpgid, c_uint(0))); - debug_assert!(pgid > 0); - Pid::from_raw_unchecked(pgid) - } -} - -#[inline] -pub(crate) fn sched_getaffinity(pid: Option, cpuset: &mut RawCpuSet) -> io::Result<()> { - unsafe { - // The raw linux syscall returns the size (in bytes) of the `cpumask_t` - // data type that is used internally by the kernel to represent the CPU - // set bit mask. - let size = ret_usize(syscall!( - __NR_sched_getaffinity, - c_int(Pid::as_raw(pid)), - size_of::(), - by_mut(&mut cpuset.bits) - ))?; - let bytes = as_mut_ptr(cpuset).cast::(); - let rest = bytes.wrapping_add(size); - // Zero every byte in the cpuset not set by the kernel. - rest.write_bytes(0, core::mem::size_of::() - size); - Ok(()) - } -} - -#[inline] -pub(crate) fn sched_setaffinity(pid: Option, cpuset: &RawCpuSet) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_sched_setaffinity, - c_int(Pid::as_raw(pid)), - size_of::(), - slice_just_addr(&cpuset.bits) - )) - } -} - -#[inline] -pub(crate) fn sched_yield() { - unsafe { - // See the documentation for [`crate::process::sched_yield`] for why - // errors are ignored. - syscall_readonly!(__NR_sched_yield).decode_void(); - } -} - -#[cfg(feature = "fs")] -#[inline] -pub(crate) fn umask(mode: Mode) -> Mode { - unsafe { Mode::from_bits_retain(ret_c_uint_infallible(syscall_readonly!(__NR_umask, mode))) } -} - -#[inline] -pub(crate) fn nice(inc: i32) -> io::Result { - let priority = (if inc > -40 && inc < 40 { - inc + getpriority_process(None)? - } else { - inc - }) - .clamp(-20, 19); - setpriority_process(None, priority)?; - Ok(priority) -} - -#[inline] -pub(crate) fn getpriority_user(uid: Uid) -> io::Result { - unsafe { - Ok(20 - - ret_c_int(syscall_readonly!( - __NR_getpriority, - c_uint(PRIO_USER), - c_uint(uid.as_raw()) - ))?) - } -} - -#[inline] -pub(crate) fn getpriority_pgrp(pgid: Option) -> io::Result { - unsafe { - Ok(20 - - ret_c_int(syscall_readonly!( - __NR_getpriority, - c_uint(PRIO_PGRP), - c_int(Pid::as_raw(pgid)) - ))?) - } -} - -#[inline] -pub(crate) fn getpriority_process(pid: Option) -> io::Result { - unsafe { - Ok(20 - - ret_c_int(syscall_readonly!( - __NR_getpriority, - c_uint(PRIO_PROCESS), - c_int(Pid::as_raw(pid)) - ))?) - } -} - -#[inline] -pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_setpriority, - c_uint(PRIO_USER), - c_uint(uid.as_raw()), - c_int(priority) - )) - } -} - -#[inline] -pub(crate) fn setpriority_pgrp(pgid: Option, priority: i32) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_setpriority, - c_uint(PRIO_PGRP), - c_int(Pid::as_raw(pgid)), - c_int(priority) - )) - } -} - -#[inline] -pub(crate) fn setpriority_process(pid: Option, priority: i32) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_setpriority, - c_uint(PRIO_PROCESS), - c_int(Pid::as_raw(pid)), - c_int(priority) - )) - } -} - -#[inline] -pub(crate) fn getrlimit(limit: Resource) -> Rlimit { - let mut result = MaybeUninit::::uninit(); - unsafe { - match ret(syscall!( - __NR_prlimit64, - c_uint(0), - limit, - null::(), - &mut result - )) { - Ok(()) => rlimit_from_linux(result.assume_init()), - Err(err) => { - debug_assert_eq!(err, io::Errno::NOSYS); - getrlimit_old(limit) - } - } - } -} - -/// The old 32-bit-only `getrlimit` syscall, for when we lack the new -/// `prlimit64`. -unsafe fn getrlimit_old(limit: Resource) -> Rlimit { - let mut result = MaybeUninit::::uninit(); - - // On these platforms, `__NR_getrlimit` is called `__NR_ugetrlimit`. - #[cfg(any( - target_arch = "arm", - target_arch = "powerpc", - target_arch = "powerpc64", - target_arch = "x86", - ))] - { - ret_infallible(syscall!(__NR_ugetrlimit, limit, &mut result)); - } - - // On these platforms, it's just `__NR_getrlimit`. - #[cfg(not(any( - target_arch = "arm", - target_arch = "powerpc", - target_arch = "powerpc64", - target_arch = "x86", - )))] - { - ret_infallible(syscall!(__NR_getrlimit, limit, &mut result)); - } - - rlimit_from_linux_old(result.assume_init()) -} - -#[inline] -pub(crate) fn setrlimit(limit: Resource, new: Rlimit) -> io::Result<()> { - unsafe { - let lim = rlimit_to_linux(new.clone()); - match ret(syscall_readonly!( - __NR_prlimit64, - c_uint(0), - limit, - by_ref(&lim), - null_mut::() - )) { - Ok(()) => Ok(()), - Err(io::Errno::NOSYS) => setrlimit_old(limit, new), - Err(err) => Err(err), - } - } -} - -/// The old 32-bit-only `setrlimit` syscall, for when we lack the new -/// `prlimit64`. -unsafe fn setrlimit_old(limit: Resource, new: Rlimit) -> io::Result<()> { - let lim = rlimit_to_linux_old(new)?; - ret(syscall_readonly!(__NR_setrlimit, limit, by_ref(&lim))) -} - -#[inline] -pub(crate) fn prlimit(pid: Option, limit: Resource, new: Rlimit) -> io::Result { - let lim = rlimit_to_linux(new); - let mut result = MaybeUninit::::uninit(); - unsafe { - match ret(syscall!( - __NR_prlimit64, - c_int(Pid::as_raw(pid)), - limit, - by_ref(&lim), - &mut result - )) { - Ok(()) => Ok(rlimit_from_linux(result.assume_init())), - Err(err) => Err(err), - } - } -} - -/// Convert a Rust [`Rlimit`] to a C `rlimit64`. -#[inline] -fn rlimit_from_linux(lim: rlimit64) -> Rlimit { - let current = if lim.rlim_cur == RLIM64_INFINITY as _ { - None - } else { - Some(lim.rlim_cur) - }; - let maximum = if lim.rlim_max == RLIM64_INFINITY as _ { - None - } else { - Some(lim.rlim_max) - }; - Rlimit { current, maximum } -} - -/// Convert a C `rlimit64` to a Rust `Rlimit`. -#[inline] -fn rlimit_to_linux(lim: Rlimit) -> rlimit64 { - let rlim_cur = match lim.current { - Some(r) => r, - None => RLIM64_INFINITY as _, - }; - let rlim_max = match lim.maximum { - Some(r) => r, - None => RLIM64_INFINITY as _, - }; - rlimit64 { rlim_cur, rlim_max } -} - -/// Like `rlimit_from_linux` but uses Linux's old 32-bit `rlimit`. -#[allow(clippy::useless_conversion)] -fn rlimit_from_linux_old(lim: rlimit) -> Rlimit { - let current = if lim.rlim_cur == RLIM_INFINITY as _ { - None - } else { - Some(lim.rlim_cur.into()) - }; - let maximum = if lim.rlim_max == RLIM_INFINITY as _ { - None - } else { - Some(lim.rlim_max.into()) - }; - Rlimit { current, maximum } -} - -/// Like `rlimit_to_linux` but uses Linux's old 32-bit `rlimit`. -#[allow(clippy::useless_conversion)] -fn rlimit_to_linux_old(lim: Rlimit) -> io::Result { - let rlim_cur = match lim.current { - Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, - None => RLIM_INFINITY as _, - }; - let rlim_max = match lim.maximum { - Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, - None => RLIM_INFINITY as _, - }; - Ok(rlimit { rlim_cur, rlim_max }) -} - -#[inline] -pub(crate) fn wait(waitopts: WaitOptions) -> io::Result> { - _waitpid(!0, waitopts) -} - -#[inline] -pub(crate) fn waitpid( - pid: Option, - waitopts: WaitOptions, -) -> io::Result> { - _waitpid(Pid::as_raw(pid), waitopts) -} - -#[inline] -pub(crate) fn _waitpid( - pid: RawPid, - waitopts: WaitOptions, -) -> io::Result> { - unsafe { - let mut status = MaybeUninit::::uninit(); - let pid = ret_c_int(syscall!( - __NR_wait4, - c_int(pid as _), - &mut status, - c_int(waitopts.bits() as _), - zero() - ))?; - Ok(Pid::from_raw(pid).map(|pid| (pid, WaitStatus::new(status.assume_init())))) - } -} - -#[inline] -pub(crate) fn waitid(id: WaitId<'_>, options: WaitidOptions) -> io::Result> { - // Get the id to wait on. - match id { - WaitId::All => _waitid_all(options), - WaitId::Pid(pid) => _waitid_pid(pid, options), - WaitId::PidFd(fd) => _waitid_pidfd(fd, options), - } -} - -#[inline] -fn _waitid_all(options: WaitidOptions) -> io::Result> { - // `waitid` can return successfully without initializing the struct (no - // children found when using `WNOHANG`) - let mut status = MaybeUninit::::zeroed(); - unsafe { - ret(syscall!( - __NR_waitid, - c_uint(c::P_ALL), - c_uint(0), - by_mut(&mut status), - c_int(options.bits() as _), - zero() - ))? - }; - - Ok(unsafe { cvt_waitid_status(status) }) -} - -#[inline] -fn _waitid_pid(pid: Pid, options: WaitidOptions) -> io::Result> { - // `waitid` can return successfully without initializing the struct (no - // children found when using `WNOHANG`) - let mut status = MaybeUninit::::zeroed(); - unsafe { - ret(syscall!( - __NR_waitid, - c_uint(c::P_PID), - c_int(Pid::as_raw(Some(pid))), - by_mut(&mut status), - c_int(options.bits() as _), - zero() - ))? - }; - - Ok(unsafe { cvt_waitid_status(status) }) -} - -#[inline] -fn _waitid_pidfd(fd: BorrowedFd<'_>, options: WaitidOptions) -> io::Result> { - // `waitid` can return successfully without initializing the struct (no - // children found when using `WNOHANG`) - let mut status = MaybeUninit::::zeroed(); - unsafe { - ret(syscall!( - __NR_waitid, - c_uint(c::P_PIDFD), - c_uint(fd.as_raw_fd() as _), - by_mut(&mut status), - c_int(options.bits() as _), - zero() - ))? - }; - - Ok(unsafe { cvt_waitid_status(status) }) -} - -/// Convert a `siginfo_t` to a `WaitidStatus`. -/// -/// # Safety -/// -/// The caller must ensure that `status` is initialized and that `waitid` -/// returned successfully. -#[inline] -#[rustfmt::skip] -unsafe fn cvt_waitid_status(status: MaybeUninit) -> Option { - let status = status.assume_init(); - if status.__bindgen_anon_1.__bindgen_anon_1._sifields._sigchld._pid == 0 { - None - } else { - Some(WaitidStatus(status)) - } -} - -#[inline] -pub(crate) fn getsid(pid: Option) -> io::Result { - unsafe { - let pid = ret_c_int(syscall_readonly!(__NR_getsid, c_int(Pid::as_raw(pid))))?; - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[inline] -pub(crate) fn setsid() -> io::Result { - unsafe { - let pid = ret_c_int(syscall_readonly!(__NR_setsid))?; - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[inline] -pub(crate) fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_kill, pid, sig)) } -} - -#[inline] -pub(crate) fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_kill, negative_pid(pid), sig)) } -} - -#[inline] -pub(crate) fn kill_current_process_group(sig: Signal) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_kill, pass_usize(0), sig)) } -} - -#[inline] -pub(crate) fn test_kill_process(pid: Pid) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_kill, pid, pass_usize(0))) } -} - -#[inline] -pub(crate) fn test_kill_process_group(pid: Pid) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_kill, - negative_pid(pid), - pass_usize(0) - )) - } -} - -#[inline] -pub(crate) fn test_kill_current_process_group() -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_kill, pass_usize(0), pass_usize(0))) } -} - -#[inline] -pub(crate) fn pidfd_getfd( - pidfd: BorrowedFd<'_>, - targetfd: RawFd, - flags: PidfdGetfdFlags, -) -> io::Result { - unsafe { - ret_owned_fd(syscall_readonly!( - __NR_pidfd_getfd, - pidfd, - raw_fd(targetfd), - c_int(flags.bits() as _) - )) - } -} - -#[inline] -pub(crate) fn pidfd_open(pid: Pid, flags: PidfdFlags) -> io::Result { - unsafe { ret_owned_fd(syscall_readonly!(__NR_pidfd_open, pid, flags)) } -} - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn getgroups(buf: &mut [Gid]) -> io::Result { - let len = buf.len().try_into().map_err(|_| io::Errno::NOMEM)?; - - unsafe { - ret_usize(syscall!( - __NR_getgroups, - c_int(len), - slice_just_addr_mut(buf) - )) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/process/types.rs b/third_party/rust/rustix/src/backend/linux_raw/process/types.rs deleted file mode 100644 index 841668a60fcd..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/process/types.rs +++ /dev/null @@ -1,104 +0,0 @@ -use linux_raw_sys::general::membarrier_cmd; - -/// A command for use with [`membarrier`] and [`membarrier_cpu`]. -/// -/// For `MEMBARRIER_CMD_QUERY`, see [`membarrier_query`]. -/// -/// [`membarrier`]: crate::process::membarrier -/// [`membarrier_cpu`]: crate::process::membarrier_cpu -/// [`membarrier_query`]: crate::process::membarrier_query -#[derive(Copy, Clone, Eq, PartialEq, Debug)] -#[repr(u32)] -pub enum MembarrierCommand { - /// `MEMBARRIER_CMD_GLOBAL` - #[doc(alias = "Shared")] - #[doc(alias = "MEMBARRIER_CMD_SHARED")] - Global = membarrier_cmd::MEMBARRIER_CMD_GLOBAL as _, - /// `MEMBARRIER_CMD_GLOBAL_EXPEDITED` - GlobalExpedited = membarrier_cmd::MEMBARRIER_CMD_GLOBAL_EXPEDITED as _, - /// `MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED` - RegisterGlobalExpedited = membarrier_cmd::MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED as _, - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED` - PrivateExpedited = membarrier_cmd::MEMBARRIER_CMD_PRIVATE_EXPEDITED as _, - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED` - RegisterPrivateExpedited = membarrier_cmd::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED as _, - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE` - PrivateExpeditedSyncCore = membarrier_cmd::MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE as _, - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE` - RegisterPrivateExpeditedSyncCore = - membarrier_cmd::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE as _, - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) - PrivateExpeditedRseq = membarrier_cmd::MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ as _, - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) - RegisterPrivateExpeditedRseq = - membarrier_cmd::MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ as _, -} - -/// A resource value for use with [`getrlimit`], [`setrlimit`], and -/// [`prlimit`]. -/// -/// [`getrlimit`]: crate::process::getrlimit -/// [`setrlimit`]: crate::process::setrlimit -/// [`prlimit`]: crate::process::prlimit -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum Resource { - /// `RLIMIT_CPU` - Cpu = linux_raw_sys::general::RLIMIT_CPU, - /// `RLIMIT_FSIZE` - Fsize = linux_raw_sys::general::RLIMIT_FSIZE, - /// `RLIMIT_DATA` - Data = linux_raw_sys::general::RLIMIT_DATA, - /// `RLIMIT_STACK` - Stack = linux_raw_sys::general::RLIMIT_STACK, - /// `RLIMIT_CORE` - Core = linux_raw_sys::general::RLIMIT_CORE, - /// `RLIMIT_RSS` - Rss = linux_raw_sys::general::RLIMIT_RSS, - /// `RLIMIT_NPROC` - Nproc = linux_raw_sys::general::RLIMIT_NPROC, - /// `RLIMIT_NOFILE` - Nofile = linux_raw_sys::general::RLIMIT_NOFILE, - /// `RLIMIT_MEMLOCK` - Memlock = linux_raw_sys::general::RLIMIT_MEMLOCK, - /// `RLIMIT_AS` - As = linux_raw_sys::general::RLIMIT_AS, - /// `RLIMIT_LOCKS` - Locks = linux_raw_sys::general::RLIMIT_LOCKS, - /// `RLIMIT_SIGPENDING` - Sigpending = linux_raw_sys::general::RLIMIT_SIGPENDING, - /// `RLIMIT_MSGQUEUE` - Msgqueue = linux_raw_sys::general::RLIMIT_MSGQUEUE, - /// `RLIMIT_NICE` - Nice = linux_raw_sys::general::RLIMIT_NICE, - /// `RLIMIT_RTPRIO` - Rtprio = linux_raw_sys::general::RLIMIT_RTPRIO, - /// `RLIMIT_RTTIME` - Rttime = linux_raw_sys::general::RLIMIT_RTTIME, -} - -/// A CPU identifier as a raw integer. -pub type RawCpuid = u32; - -#[repr(C)] -#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] -pub(crate) struct RawCpuSet { - #[cfg(all(target_pointer_width = "32", not(target_arch = "x86_64")))] - pub(crate) bits: [u32; 32], - #[cfg(not(all(target_pointer_width = "32", not(target_arch = "x86_64"))))] - pub(crate) bits: [u64; 16], -} - -#[inline] -pub(crate) fn raw_cpu_set_new() -> RawCpuSet { - #[cfg(all(target_pointer_width = "32", not(target_arch = "x86_64")))] - { - RawCpuSet { bits: [0; 32] } - } - #[cfg(not(all(target_pointer_width = "32", not(target_arch = "x86_64"))))] - { - RawCpuSet { bits: [0; 16] } - } -} - -pub(crate) const CPU_SETSIZE: usize = 8 * core::mem::size_of::(); diff --git a/third_party/rust/rustix/src/backend/linux_raw/process/wait.rs b/third_party/rust/rustix/src/backend/linux_raw/process/wait.rs deleted file mode 100644 index 9af7f2b5e7fb..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/process/wait.rs +++ /dev/null @@ -1,68 +0,0 @@ -// The functions replacing the C macros use the same names as in libc. -#![allow(non_snake_case, unsafe_code)] - -use linux_raw_sys::ctypes::c_int; -pub(crate) use linux_raw_sys::general::{ - siginfo_t, WCONTINUED, WEXITED, WNOHANG, WNOWAIT, WSTOPPED, WUNTRACED, -}; - -#[inline] -pub(crate) fn WIFSTOPPED(status: u32) -> bool { - (status & 0xff) == 0x7f -} - -#[inline] -pub(crate) fn WSTOPSIG(status: u32) -> u32 { - (status >> 8) & 0xff -} - -#[inline] -pub(crate) fn WIFCONTINUED(status: u32) -> bool { - status == 0xffff -} - -#[inline] -pub(crate) fn WIFSIGNALED(status: u32) -> bool { - ((status & 0x7f) + 1) as i8 >= 2 -} - -#[inline] -pub(crate) fn WTERMSIG(status: u32) -> u32 { - status & 0x7f -} - -#[inline] -pub(crate) fn WIFEXITED(status: u32) -> bool { - (status & 0x7f) == 0 -} - -#[inline] -pub(crate) fn WEXITSTATUS(status: u32) -> u32 { - (status >> 8) & 0xff -} - -pub(crate) trait SiginfoExt { - fn si_code(&self) -> c_int; - unsafe fn si_status(&self) -> c_int; -} - -impl SiginfoExt for siginfo_t { - #[inline] - fn si_code(&self) -> c_int { - // SAFETY: This is technically a union access, but it's only a union - // with padding. - unsafe { self.__bindgen_anon_1.__bindgen_anon_1.si_code } - } - - /// Return the exit status or signal number recorded in a `siginfo_t`. - /// - /// # Safety - /// - /// `si_signo` must equal `SIGCHLD` (as it is guaranteed to do after a - /// `waitid` call). - #[inline] - #[rustfmt::skip] - unsafe fn si_status(&self) -> c_int { - self.__bindgen_anon_1.__bindgen_anon_1._sifields._sigchld._status - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/pty/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/pty/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/pty/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/pty/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/pty/syscalls.rs deleted file mode 100644 index 7fd24b068795..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/pty/syscalls.rs +++ /dev/null @@ -1,44 +0,0 @@ -//! linux_raw syscalls supporting `rustix::pty`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::conv::{by_ref, c_uint, ret}; -use crate::fd::BorrowedFd; -use crate::io; -use linux_raw_sys::ioctl::TIOCSPTLCK; -#[cfg(feature = "alloc")] -use { - crate::backend::c, crate::ffi::CString, crate::path::DecInt, alloc::vec::Vec, - core::mem::MaybeUninit, linux_raw_sys::ioctl::TIOCGPTN, -}; - -#[cfg(feature = "alloc")] -#[inline] -pub(crate) fn ptsname(fd: BorrowedFd<'_>, mut buffer: Vec) -> io::Result { - unsafe { - let mut n = MaybeUninit::::uninit(); - ret(syscall!(__NR_ioctl, fd, c_uint(TIOCGPTN), &mut n))?; - - buffer.clear(); - buffer.extend_from_slice(b"/dev/pts/"); - buffer.extend_from_slice(DecInt::new(n.assume_init()).as_bytes()); - buffer.push(b'\0'); - Ok(CString::from_vec_with_nul_unchecked(buffer)) - } -} - -#[inline] -pub(crate) fn unlockpt(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_ioctl, - fd, - c_uint(TIOCSPTLCK), - by_ref(&0) - )) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/rand/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/rand/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/rand/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/rand/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/rand/syscalls.rs deleted file mode 100644 index 95a6efcffd93..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/rand/syscalls.rs +++ /dev/null @@ -1,17 +0,0 @@ -//! linux_raw syscalls supporting `rustix::rand`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::conv::{ret_usize, slice_mut}; -use crate::io; -use crate::rand::GetRandomFlags; - -#[inline] -pub(crate) fn getrandom(buf: &mut [u8], flags: GetRandomFlags) -> io::Result { - let (buf_addr_mut, buf_len) = slice_mut(buf); - unsafe { ret_usize(syscall!(__NR_getrandom, buf_addr_mut, buf_len, flags)) } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/rand/types.rs b/third_party/rust/rustix/src/backend/linux_raw/rand/types.rs deleted file mode 100644 index 47b996d307da..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/rand/types.rs +++ /dev/null @@ -1,20 +0,0 @@ -use bitflags::bitflags; - -bitflags! { - /// `GRND_*` flags for use with [`getrandom`]. - /// - /// [`getrandom`]: crate::rand::getrandom - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct GetRandomFlags: u32 { - /// `GRND_RANDOM` - const RANDOM = linux_raw_sys::general::GRND_RANDOM; - /// `GRND_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::GRND_NONBLOCK; - /// `GRND_INSECURE` - const INSECURE = linux_raw_sys::general::GRND_INSECURE; - - /// - const _ = !0; - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/reg.rs b/third_party/rust/rustix/src/backend/linux_raw/reg.rs deleted file mode 100644 index c4e495c52ad5..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/reg.rs +++ /dev/null @@ -1,258 +0,0 @@ -//! Encapsulation for system call arguments and return values. -//! -//! The inline-asm code paths do some amount of reordering of arguments; to -//! ensure that we don't accidentally misroute an argument or return value, -//! we use distinct types for each argument index and return value. -//! -//! # Safety -//! -//! The `ToAsm` and `FromAsm` traits are unsafe to use; they should only be -//! used by the syscall code which executes actual syscall machine -//! instructions. - -#![allow(unsafe_code)] - -use super::c; -use super::fd::RawFd; -use core::marker::PhantomData; -use core::ops::Range; - -pub(super) trait ToAsm: private::Sealed { - /// Convert `self` to a `usize` ready to be passed to a syscall - /// machine instruction. - /// - /// # Safety - /// - /// This should be used immediately before the syscall instruction, and - /// the returned value shouldn't be used for any other purpose. - #[must_use] - unsafe fn to_asm(self) -> *mut Opaque; -} - -pub(super) trait FromAsm: private::Sealed { - /// Convert `raw` from a value produced by a syscall machine instruction - /// into a `Self`. - /// - /// # Safety - /// - /// This should be used immediately after the syscall instruction, and - /// the operand value shouldn't be used for any other purpose. - #[must_use] - unsafe fn from_asm(raw: *mut Opaque) -> Self; -} - -/// To preserve provenance, syscall arguments and return values are passed as -/// pointer types. They need a type to point to, so we define a custom private -/// type, to prevent it from being used for anything else. -#[repr(transparent)] -pub(super) struct Opaque(c::c_void); - -// Argument numbers. -pub(super) struct A0(()); -pub(super) struct A1(()); -pub(super) struct A2(()); -pub(super) struct A3(()); -pub(super) struct A4(()); -pub(super) struct A5(()); -#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] -pub(super) struct A6(()); -#[cfg(target_arch = "x86")] -pub(super) struct SocketArg; - -pub(super) trait ArgNumber: private::Sealed {} -impl ArgNumber for A0 {} -impl ArgNumber for A1 {} -impl ArgNumber for A2 {} -impl ArgNumber for A3 {} -impl ArgNumber for A4 {} -impl ArgNumber for A5 {} -#[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] -impl ArgNumber for A6 {} -#[cfg(target_arch = "x86")] -impl ArgNumber for SocketArg {} - -// Return value numbers. -pub(super) struct R0(()); - -pub(super) trait RetNumber: private::Sealed {} -impl RetNumber for R0 {} - -/// Syscall arguments use register-sized types. We use a newtype to -/// discourage accidental misuse of the raw integer values. -/// -/// This type doesn't implement `Clone` or `Copy`; it should be used exactly -/// once. And it has a lifetime to ensure that it doesn't outlive any resources -/// it might be pointing to. -#[repr(transparent)] -#[must_use] -pub(super) struct ArgReg<'a, Num: ArgNumber> { - raw: *mut Opaque, - _phantom: PhantomData<(&'a (), Num)>, -} - -impl<'a, Num: ArgNumber> ToAsm for ArgReg<'a, Num> { - #[inline] - unsafe fn to_asm(self) -> *mut Opaque { - self.raw - } -} - -/// Syscall return values use register-sized types. We use a newtype to -/// discourage accidental misuse of the raw integer values. -/// -/// This type doesn't implement `Clone` or `Copy`; it should be used exactly -/// once. -#[repr(transparent)] -#[must_use] -pub(super) struct RetReg { - raw: *mut Opaque, - _phantom: PhantomData, -} - -impl RetReg { - #[inline] - pub(super) fn decode_usize(self) -> usize { - debug_assert!(!(-4095..0).contains(&(self.raw as isize))); - self.raw as usize - } - - #[inline] - pub(super) fn decode_raw_fd(self) -> RawFd { - let bits = self.decode_usize(); - let raw_fd = bits as RawFd; - - // Converting `raw` to `RawFd` should be lossless. - debug_assert_eq!(raw_fd as usize, bits); - - raw_fd - } - - #[inline] - pub(super) fn decode_c_int(self) -> c::c_int { - let bits = self.decode_usize(); - let c_int_ = bits as c::c_int; - - // Converting `raw` to `c_int` should be lossless. - debug_assert_eq!(c_int_ as usize, bits); - - c_int_ - } - - #[inline] - pub(super) fn decode_c_uint(self) -> c::c_uint { - let bits = self.decode_usize(); - let c_uint_ = bits as c::c_uint; - - // Converting `raw` to `c_uint` should be lossless. - debug_assert_eq!(c_uint_ as usize, bits); - - c_uint_ - } - - #[inline] - pub(super) fn decode_void_star(self) -> *mut c::c_void { - self.raw.cast() - } - - #[cfg(target_pointer_width = "64")] - #[inline] - pub(super) fn decode_u64(self) -> u64 { - self.decode_usize() as u64 - } - - #[inline] - pub(super) fn decode_void(self) { - let ignore = self.decode_usize(); - debug_assert_eq!(ignore, 0); - } - - #[inline] - pub(super) fn decode_error_code(self) -> u16 { - let bits = self.raw as usize; - - // `raw` must be in `-4095..0`. Linux always returns errors in - // `-4095..0`, and we double-check it here. - debug_assert!((-4095..0).contains(&(bits as isize))); - - bits as u16 - } - - #[inline] - pub(super) fn is_nonzero(&self) -> bool { - !self.raw.is_null() - } - - #[inline] - pub(super) fn is_negative(&self) -> bool { - (self.raw as isize) < 0 - } - - #[inline] - pub(super) fn is_in_range(&self, range: Range) -> bool { - range.contains(&(self.raw as isize)) - } -} - -impl FromAsm for RetReg { - #[inline] - unsafe fn from_asm(raw: *mut Opaque) -> Self { - Self { - raw, - _phantom: PhantomData, - } - } -} - -#[repr(transparent)] -pub(super) struct SyscallNumber<'a> { - nr: usize, - _phantom: PhantomData<&'a ()>, -} - -impl<'a> ToAsm for SyscallNumber<'a> { - #[inline] - unsafe fn to_asm(self) -> *mut Opaque { - self.nr as usize as *mut Opaque - } -} - -/// Encode a system call argument as an `ArgReg`. -#[inline] -pub(super) fn raw_arg<'a, Num: ArgNumber>(raw: *mut Opaque) -> ArgReg<'a, Num> { - ArgReg { - raw, - _phantom: PhantomData, - } -} - -/// Encode a system call number (a `__NR_*` constant) as a `SyscallNumber`. -#[inline] -pub(super) const fn nr<'a>(nr: u32) -> SyscallNumber<'a> { - SyscallNumber { - nr: nr as usize, - _phantom: PhantomData, - } -} - -/// Seal our various traits using the technique documented [here]. -/// -/// [here]: https://rust-lang.github.io/api-guidelines/future-proofing.html -mod private { - pub trait Sealed {} - - // Implement for those same types, but no others. - impl<'a, Num: super::ArgNumber> Sealed for super::ArgReg<'a, Num> {} - impl Sealed for super::RetReg {} - impl<'a> Sealed for super::SyscallNumber<'a> {} - impl Sealed for super::A0 {} - impl Sealed for super::A1 {} - impl Sealed for super::A2 {} - impl Sealed for super::A3 {} - impl Sealed for super::A4 {} - impl Sealed for super::A5 {} - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] - impl Sealed for super::A6 {} - #[cfg(target_arch = "x86")] - impl Sealed for super::SocketArg {} - impl Sealed for super::R0 {} -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/runtime/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/runtime/mod.rs deleted file mode 100644 index 0b48649ce4bb..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/runtime/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod tls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/runtime/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/runtime/syscalls.rs deleted file mode 100644 index 06cdb1ad2cbc..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/runtime/syscalls.rs +++ /dev/null @@ -1,266 +0,0 @@ -//! linux_raw syscalls supporting `rustix::runtime`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::c; -#[cfg(target_arch = "x86")] -use crate::backend::conv::by_mut; -use crate::backend::conv::{ - by_ref, c_int, c_uint, ret, ret_c_int, ret_c_int_infallible, ret_error, size_of, zero, -}; -#[cfg(feature = "fs")] -use crate::fd::BorrowedFd; -use crate::ffi::CStr; -#[cfg(feature = "fs")] -use crate::fs::AtFlags; -use crate::io; -use crate::pid::Pid; -use crate::runtime::{How, Sigaction, Siginfo, Sigset, Stack}; -use crate::signal::Signal; -use crate::timespec::Timespec; -use crate::utils::option_as_ptr; -use core::mem::MaybeUninit; -#[cfg(target_pointer_width = "32")] -use linux_raw_sys::general::__kernel_old_timespec; -use linux_raw_sys::general::kernel_sigset_t; -use linux_raw_sys::prctl::PR_SET_NAME; -#[cfg(target_arch = "x86_64")] -use {crate::backend::conv::ret_infallible, linux_raw_sys::general::ARCH_SET_FS}; - -#[inline] -pub(crate) unsafe fn fork() -> io::Result> { - let pid = ret_c_int(syscall_readonly!( - __NR_clone, - c_int(c::SIGCHLD), - zero(), - zero(), - zero(), - zero() - ))?; - Ok(Pid::from_raw(pid)) -} - -#[cfg(feature = "fs")] -pub(crate) unsafe fn execveat( - dirfd: BorrowedFd<'_>, - path: &CStr, - args: *const *const u8, - env_vars: *const *const u8, - flags: AtFlags, -) -> io::Errno { - ret_error(syscall_readonly!( - __NR_execveat, - dirfd, - path, - args, - env_vars, - flags - )) -} - -pub(crate) unsafe fn execve( - path: &CStr, - args: *const *const u8, - env_vars: *const *const u8, -) -> io::Errno { - ret_error(syscall_readonly!(__NR_execve, path, args, env_vars)) -} - -pub(crate) mod tls { - use super::*; - #[cfg(target_arch = "x86")] - use crate::backend::runtime::tls::UserDesc; - - #[cfg(target_arch = "x86")] - #[inline] - pub(crate) unsafe fn set_thread_area(u_info: &mut UserDesc) -> io::Result<()> { - ret(syscall!(__NR_set_thread_area, by_mut(u_info))) - } - - #[cfg(target_arch = "arm")] - #[inline] - pub(crate) unsafe fn arm_set_tls(data: *mut c::c_void) -> io::Result<()> { - ret(syscall_readonly!(__ARM_NR_set_tls, data)) - } - - #[cfg(target_arch = "x86_64")] - #[inline] - pub(crate) unsafe fn set_fs(data: *mut c::c_void) { - ret_infallible(syscall_readonly!( - __NR_arch_prctl, - c_uint(ARCH_SET_FS), - data, - zero(), - zero(), - zero() - )) - } - - #[inline] - pub(crate) unsafe fn set_tid_address(data: *mut c::c_void) -> Pid { - let tid: i32 = ret_c_int_infallible(syscall_readonly!(__NR_set_tid_address, data)); - Pid::from_raw_unchecked(tid) - } - - #[inline] - pub(crate) unsafe fn set_thread_name(name: &CStr) -> io::Result<()> { - ret(syscall_readonly!( - __NR_prctl, - c_uint(PR_SET_NAME), - name, - zero(), - zero(), - zero() - )) - } - - #[inline] - pub(crate) fn exit_thread(code: c::c_int) -> ! { - unsafe { syscall_noreturn!(__NR_exit, c_int(code)) } - } -} - -#[inline] -pub(crate) unsafe fn sigaction(signal: Signal, new: Option) -> io::Result { - let mut old = MaybeUninit::::uninit(); - let new = option_as_ptr(new.as_ref()); - ret(syscall!( - __NR_rt_sigaction, - signal, - new, - &mut old, - size_of::() - ))?; - Ok(old.assume_init()) -} - -#[inline] -pub(crate) unsafe fn sigaltstack(new: Option) -> io::Result { - let mut old = MaybeUninit::::uninit(); - let new = option_as_ptr(new.as_ref()); - ret(syscall!(__NR_sigaltstack, new, &mut old))?; - Ok(old.assume_init()) -} - -#[inline] -pub(crate) unsafe fn tkill(tid: Pid, sig: Signal) -> io::Result<()> { - ret(syscall_readonly!(__NR_tkill, tid, sig)) -} - -#[inline] -pub(crate) unsafe fn sigprocmask(how: How, new: Option<&Sigset>) -> io::Result { - let mut old = MaybeUninit::::uninit(); - let new = option_as_ptr(new); - ret(syscall!( - __NR_rt_sigprocmask, - how, - new, - &mut old, - size_of::() - ))?; - Ok(old.assume_init()) -} - -#[inline] -pub(crate) fn sigwait(set: &Sigset) -> io::Result { - unsafe { - match Signal::from_raw(ret_c_int(syscall_readonly!( - __NR_rt_sigtimedwait, - by_ref(set), - zero(), - zero(), - size_of::() - ))?) { - Some(signum) => Ok(signum), - None => Err(io::Errno::NOTSUP), - } - } -} - -#[inline] -pub(crate) fn sigwaitinfo(set: &Sigset) -> io::Result { - let mut info = MaybeUninit::::uninit(); - unsafe { - let _signum = ret_c_int(syscall!( - __NR_rt_sigtimedwait, - by_ref(set), - &mut info, - zero(), - size_of::() - ))?; - Ok(info.assume_init()) - } -} - -#[inline] -pub(crate) fn sigtimedwait(set: &Sigset, timeout: Option) -> io::Result { - let mut info = MaybeUninit::::uninit(); - let timeout_ptr = option_as_ptr(timeout.as_ref()); - - // `rt_sigtimedwait_time64` was introduced in Linux 5.1. The old - // `rt_sigtimedwait` syscall is not y2038-compatible on 32-bit - // architectures. - #[cfg(target_pointer_width = "32")] - unsafe { - match ret_c_int(syscall!( - __NR_rt_sigtimedwait_time64, - by_ref(set), - &mut info, - timeout_ptr, - size_of::() - )) { - Ok(_signum) => (), - Err(io::Errno::NOSYS) => sigtimedwait_old(set, timeout, &mut info)?, - Err(err) => return Err(err), - } - Ok(info.assume_init()) - } - - #[cfg(target_pointer_width = "64")] - unsafe { - let _signum = ret_c_int(syscall!( - __NR_rt_sigtimedwait, - by_ref(set), - &mut info, - timeout_ptr, - size_of::() - ))?; - Ok(info.assume_init()) - } -} - -#[cfg(target_pointer_width = "32")] -unsafe fn sigtimedwait_old( - set: &Sigset, - timeout: Option, - info: &mut MaybeUninit, -) -> io::Result<()> { - let old_timeout = match timeout { - Some(timeout) => Some(__kernel_old_timespec { - tv_sec: timeout.tv_sec.try_into().map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: timeout.tv_nsec as _, - }), - None => None, - }; - - let old_timeout_ptr = option_as_ptr(old_timeout.as_ref()); - - let _signum = ret_c_int(syscall!( - __NR_rt_sigtimedwait, - by_ref(set), - info, - old_timeout_ptr, - size_of::() - ))?; - - Ok(()) -} - -#[inline] -pub(crate) fn exit_group(code: c::c_int) -> ! { - unsafe { syscall_noreturn!(__NR_exit_group, c_int(code)) } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/runtime/tls.rs b/third_party/rust/rustix/src/backend/linux_raw/runtime/tls.rs deleted file mode 100644 index ad1634894a5d..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/runtime/tls.rs +++ /dev/null @@ -1,78 +0,0 @@ -//! TLS utilities. -//! -//! # Safety -//! -//! This file contains code that reads the raw phdr array pointed to by the -//! kernel-provided AUXV values. -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::backend::param::auxv::exe_phdrs; -use core::ptr::{null, NonNull}; -use linux_raw_sys::elf::*; - -/// For use with [`set_thread_area`]. -/// -/// [`set_thread_area`]: crate::runtime::set_thread_area -#[cfg(target_arch = "x86")] -pub type UserDesc = linux_raw_sys::general::user_desc; - -pub(crate) fn startup_tls_info() -> StartupTlsInfo { - let mut base = null(); - let mut tls_phdr = null(); - let mut stack_size = 0; - - let (first_phdr, phent, phnum) = exe_phdrs(); - let mut current_phdr = first_phdr.cast::(); - - // SAFETY: We assume the phdr array pointer and length the kernel provided - // to the process describe a valid phdr array. - unsafe { - let phdrs_end = current_phdr.cast::().add(phnum * phent).cast(); - while current_phdr != phdrs_end { - let phdr = &*current_phdr; - current_phdr = current_phdr.cast::().add(phent).cast(); - - match phdr.p_type { - PT_PHDR => base = first_phdr.cast::().sub(phdr.p_vaddr), - PT_TLS => tls_phdr = phdr, - PT_GNU_STACK => stack_size = phdr.p_memsz, - _ => {} - } - } - - if tls_phdr.is_null() { - StartupTlsInfo { - addr: NonNull::dangling().as_ptr(), - mem_size: 0, - file_size: 0, - align: 1, - stack_size: 0, - } - } else { - StartupTlsInfo { - addr: base.cast::().add((*tls_phdr).p_vaddr).cast(), - mem_size: (*tls_phdr).p_memsz, - file_size: (*tls_phdr).p_filesz, - align: (*tls_phdr).p_align, - stack_size, - } - } - } -} - -/// The values returned from [`startup_tls_info`]. -/// -/// [`startup_tls_info`]: crate::runtime::startup_tls_info -pub struct StartupTlsInfo { - /// The base address of the TLS segment. - pub addr: *const c::c_void, - /// The size of the memory region. - pub mem_size: usize, - /// The size beyond which all memory is zero-initialized. - pub file_size: usize, - /// The required alignment for the TLS segment. - pub align: usize, - /// The requested minimum size for stacks. - pub stack_size: usize, -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/system/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/system/mod.rs deleted file mode 100644 index 1e0181a991f8..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/system/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/system/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/system/syscalls.rs deleted file mode 100644 index 514751d6f613..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/system/syscalls.rs +++ /dev/null @@ -1,37 +0,0 @@ -//! linux_raw syscalls supporting `rustix::system`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use super::types::RawUname; -use crate::backend::conv::{ret, ret_infallible, slice}; -use crate::io; -use crate::system::Sysinfo; -use core::mem::MaybeUninit; - -#[inline] -pub(crate) fn uname() -> RawUname { - let mut uname = MaybeUninit::::uninit(); - unsafe { - ret_infallible(syscall!(__NR_uname, &mut uname)); - uname.assume_init() - } -} - -#[inline] -pub(crate) fn sysinfo() -> Sysinfo { - let mut info = MaybeUninit::::uninit(); - unsafe { - ret_infallible(syscall!(__NR_sysinfo, &mut info)); - info.assume_init() - } -} - -#[inline] -pub(crate) fn sethostname(name: &[u8]) -> io::Result<()> { - let (ptr, len) = slice(name); - unsafe { ret(syscall_readonly!(__NR_sethostname, ptr, len)) } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/system/types.rs b/third_party/rust/rustix/src/backend/linux_raw/system/types.rs deleted file mode 100644 index 47292735c884..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/system/types.rs +++ /dev/null @@ -1,4 +0,0 @@ -/// `sysinfo` -pub type Sysinfo = linux_raw_sys::system::sysinfo; - -pub(crate) type RawUname = linux_raw_sys::system::new_utsname; diff --git a/third_party/rust/rustix/src/backend/linux_raw/termios/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/termios/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/termios/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/termios/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/termios/syscalls.rs deleted file mode 100644 index 0bd77db3d0cb..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/termios/syscalls.rs +++ /dev/null @@ -1,278 +0,0 @@ -//! linux_raw syscalls supporting `rustix::termios`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::c; -use crate::backend::conv::{by_ref, c_uint, ret}; -use crate::fd::BorrowedFd; -use crate::io; -use crate::pid::Pid; -#[cfg(all(feature = "alloc", feature = "procfs"))] -use crate::procfs; -use crate::termios::{ - Action, ControlModes, InputModes, LocalModes, OptionalActions, OutputModes, QueueSelector, - SpecialCodeIndex, Termios, Winsize, -}; -#[cfg(all(feature = "alloc", feature = "procfs"))] -use crate::{ffi::CStr, fs::FileType, path::DecInt}; -use core::mem::MaybeUninit; -use linux_raw_sys::general::IBSHIFT; -use linux_raw_sys::ioctl::{ - TCFLSH, TCSBRK, TCXONC, TIOCGPGRP, TIOCGSID, TIOCGWINSZ, TIOCSPGRP, TIOCSWINSZ, -}; - -#[inline] -pub(crate) fn tcgetwinsize(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_ioctl, fd, c_uint(TIOCGWINSZ), &mut result))?; - Ok(result.assume_init()) - } -} - -#[inline] -pub(crate) fn tcgetattr(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_ioctl, fd, c_uint(c::TCGETS2), &mut result))?; - Ok(result.assume_init()) - } -} - -#[inline] -pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_ioctl, fd, c_uint(TIOCGPGRP), &mut result))?; - let pid = result.assume_init(); - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[inline] -pub(crate) fn tcsetattr( - fd: BorrowedFd<'_>, - optional_actions: OptionalActions, - termios: &Termios, -) -> io::Result<()> { - // Translate from `optional_actions` into an ioctl request code. On MIPS, - // `optional_actions` already has `TCGETS` added to it. - let request = linux_raw_sys::ioctl::TCSETS2 - + if cfg!(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" - )) { - optional_actions as u32 - linux_raw_sys::ioctl::TCSETS - } else { - optional_actions as u32 - }; - unsafe { - ret(syscall_readonly!( - __NR_ioctl, - fd, - c_uint(request), - by_ref(termios) - )) - } -} - -#[inline] -pub(crate) fn tcsendbreak(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_ioctl, fd, c_uint(TCSBRK), c_uint(0))) } -} - -#[inline] -pub(crate) fn tcdrain(fd: BorrowedFd<'_>) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_ioctl, fd, c_uint(TCSBRK), c_uint(1))) } -} - -#[inline] -pub(crate) fn tcflush(fd: BorrowedFd<'_>, queue_selector: QueueSelector) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_ioctl, - fd, - c_uint(TCFLSH), - c_uint(queue_selector as u32) - )) - } -} - -#[inline] -pub(crate) fn tcflow(fd: BorrowedFd<'_>, action: Action) -> io::Result<()> { - unsafe { - ret(syscall_readonly!( - __NR_ioctl, - fd, - c_uint(TCXONC), - c_uint(action as u32) - )) - } -} - -#[inline] -pub(crate) fn tcgetsid(fd: BorrowedFd<'_>) -> io::Result { - unsafe { - let mut result = MaybeUninit::::uninit(); - ret(syscall!(__NR_ioctl, fd, c_uint(TIOCGSID), &mut result))?; - let pid = result.assume_init(); - Ok(Pid::from_raw_unchecked(pid)) - } -} - -#[inline] -pub(crate) fn tcsetwinsize(fd: BorrowedFd<'_>, winsize: Winsize) -> io::Result<()> { - unsafe { - ret(syscall!( - __NR_ioctl, - fd, - c_uint(TIOCSWINSZ), - by_ref(&winsize) - )) - } -} - -#[inline] -pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> { - unsafe { ret(syscall!(__NR_ioctl, fd, c_uint(TIOCSPGRP), pid)) } -} - -/// A wrapper around a conceptual `cfsetspeed` which handles an arbitrary -/// integer speed value. -#[inline] -pub(crate) fn set_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { - let encoded_speed = crate::termios::speed::encode(arbitrary_speed).unwrap_or(c::BOTHER); - - debug_assert_eq!(encoded_speed & !c::CBAUD, 0); - - termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD | c::CIBAUD); - termios.control_modes |= - ControlModes::from_bits_retain(encoded_speed | (encoded_speed << IBSHIFT)); - - termios.input_speed = arbitrary_speed; - termios.output_speed = arbitrary_speed; - - Ok(()) -} - -/// A wrapper around a conceptual `cfsetospeed` which handles an arbitrary -/// integer speed value. -#[inline] -pub(crate) fn set_output_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { - let encoded_speed = crate::termios::speed::encode(arbitrary_speed).unwrap_or(c::BOTHER); - - debug_assert_eq!(encoded_speed & !c::CBAUD, 0); - - termios.control_modes -= ControlModes::from_bits_retain(c::CBAUD); - termios.control_modes |= ControlModes::from_bits_retain(encoded_speed); - - termios.output_speed = arbitrary_speed; - - Ok(()) -} - -/// A wrapper around a conceptual `cfsetispeed` which handles an arbitrary -/// integer speed value. -#[inline] -pub(crate) fn set_input_speed(termios: &mut Termios, arbitrary_speed: u32) -> io::Result<()> { - let encoded_speed = crate::termios::speed::encode(arbitrary_speed).unwrap_or(c::BOTHER); - - debug_assert_eq!(encoded_speed & !c::CBAUD, 0); - - termios.control_modes -= ControlModes::from_bits_retain(c::CIBAUD); - termios.control_modes |= ControlModes::from_bits_retain(encoded_speed << IBSHIFT); - - termios.input_speed = arbitrary_speed; - - Ok(()) -} - -#[inline] -pub(crate) fn cfmakeraw(termios: &mut Termios) { - // From the Linux [`cfmakeraw` manual page]: - // - // [`cfmakeraw` manual page]: https://man7.org/linux/man-pages/man3/cfmakeraw.3.html - termios.input_modes -= InputModes::IGNBRK - | InputModes::BRKINT - | InputModes::PARMRK - | InputModes::ISTRIP - | InputModes::INLCR - | InputModes::IGNCR - | InputModes::ICRNL - | InputModes::IXON; - termios.output_modes -= OutputModes::OPOST; - termios.local_modes -= LocalModes::ECHO - | LocalModes::ECHONL - | LocalModes::ICANON - | LocalModes::ISIG - | LocalModes::IEXTEN; - termios.control_modes -= ControlModes::CSIZE | ControlModes::PARENB; - termios.control_modes |= ControlModes::CS8; - - // Musl and glibc also do these: - termios.special_codes[SpecialCodeIndex::VMIN] = 1; - termios.special_codes[SpecialCodeIndex::VTIME] = 0; -} - -#[inline] -pub(crate) fn isatty(fd: BorrowedFd<'_>) -> bool { - // On error, Linux will return either `EINVAL` (2.6.32) or `ENOTTY` - // (otherwise), because we assume we're never passing an invalid - // file descriptor (which would get `EBADF`). Either way, an error - // means we don't have a tty. - tcgetwinsize(fd).is_ok() -} - -#[cfg(all(feature = "alloc", feature = "procfs"))] -#[allow(unsafe_code)] -pub(crate) fn ttyname(fd: BorrowedFd<'_>, buf: &mut [MaybeUninit]) -> io::Result { - let fd_stat = crate::backend::fs::syscalls::fstat(fd)?; - - // Quick check: if `fd` isn't a character device, it's not a tty. - if FileType::from_raw_mode(fd_stat.st_mode) != FileType::CharacterDevice { - return Err(io::Errno::NOTTY); - } - - // Check that `fd` is really a tty. - tcgetwinsize(fd)?; - - // Get a fd to '/proc/self/fd'. - let proc_self_fd = procfs::proc_self_fd()?; - - // Gather the ttyname by reading the "fd" file inside `proc_self_fd`. - let r = crate::backend::fs::syscalls::readlinkat( - proc_self_fd, - DecInt::from_fd(fd).as_c_str(), - buf, - )?; - - // If the number of bytes is equal to the buffer length, truncation may - // have occurred. This check also ensures that we have enough space for - // adding a NUL terminator. - if r == buf.len() { - return Err(io::Errno::RANGE); - } - - // `readlinkat` returns the number of bytes placed in the buffer. - // NUL-terminate the string at that offset. - buf[r].write(b'\0'); - - // Check that the path we read refers to the same file as `fd`. - { - // SAFETY: We just wrote the NUL byte above - let path = unsafe { CStr::from_ptr(buf.as_ptr().cast()) }; - - let path_stat = crate::backend::fs::syscalls::stat(path)?; - if path_stat.st_dev != fd_stat.st_dev || path_stat.st_ino != fd_stat.st_ino { - return Err(io::Errno::NODEV); - } - } - - Ok(r) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/thread/futex.rs b/third_party/rust/rustix/src/backend/linux_raw/thread/futex.rs deleted file mode 100644 index 263e980707e8..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/thread/futex.rs +++ /dev/null @@ -1,45 +0,0 @@ -bitflags::bitflags! { - /// `FUTEX_*` flags for use with [`futex`]. - /// - /// [`futex`]: crate::thread::futex - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FutexFlags: u32 { - /// `FUTEX_PRIVATE_FLAG` - const PRIVATE = linux_raw_sys::general::FUTEX_PRIVATE_FLAG; - /// `FUTEX_CLOCK_REALTIME` - const CLOCK_REALTIME = linux_raw_sys::general::FUTEX_CLOCK_REALTIME; - - // This deliberately lacks a `const _ = !0`, so that users can use - // `from_bits_truncate` to extract the `SocketFlags` from a flags - // value that also includes a `SocketType`. - } -} - -/// `FUTEX_*` operations for use with [`futex`]. -/// -/// [`futex`]: crate::thread::futex -#[derive(Debug, Copy, Clone, Eq, PartialEq)] -#[repr(u32)] -pub enum FutexOperation { - /// `FUTEX_WAIT` - Wait = linux_raw_sys::general::FUTEX_WAIT, - /// `FUTEX_WAKE` - Wake = linux_raw_sys::general::FUTEX_WAKE, - /// `FUTEX_FD` - Fd = linux_raw_sys::general::FUTEX_FD, - /// `FUTEX_REQUEUE` - Requeue = linux_raw_sys::general::FUTEX_REQUEUE, - /// `FUTEX_CMP_REQUEUE` - CmpRequeue = linux_raw_sys::general::FUTEX_CMP_REQUEUE, - /// `FUTEX_WAKE_OP` - WakeOp = linux_raw_sys::general::FUTEX_WAKE_OP, - /// `FUTEX_LOCK_PI` - LockPi = linux_raw_sys::general::FUTEX_LOCK_PI, - /// `FUTEX_UNLOCK_PI` - UnlockPi = linux_raw_sys::general::FUTEX_UNLOCK_PI, - /// `FUTEX_TRYLOCK_PI` - TrylockPi = linux_raw_sys::general::FUTEX_TRYLOCK_PI, - /// `FUTEX_WAIT_BITSET` - WaitBitset = linux_raw_sys::general::FUTEX_WAIT_BITSET, -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/thread/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/thread/mod.rs deleted file mode 100644 index 6a002c632dfa..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/thread/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub(crate) mod futex; -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/thread/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/thread/syscalls.rs deleted file mode 100644 index e3f24fabf133..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/thread/syscalls.rs +++ /dev/null @@ -1,348 +0,0 @@ -//! linux_raw syscalls supporting `rustix::thread`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::c; -use crate::backend::conv::{ - by_mut, by_ref, c_int, c_uint, ret, ret_c_int, ret_c_int_infallible, ret_usize, - slice_just_addr, slice_just_addr_mut, zero, -}; -use crate::fd::BorrowedFd; -use crate::io; -use crate::pid::Pid; -use crate::thread::{ClockId, FutexFlags, FutexOperation, NanosleepRelativeResult, Timespec}; -use core::mem::MaybeUninit; -#[cfg(target_pointer_width = "32")] -use linux_raw_sys::general::timespec as __kernel_old_timespec; -use linux_raw_sys::general::{__kernel_timespec, TIMER_ABSTIME}; - -#[inline] -pub(crate) fn clock_nanosleep_relative( - id: ClockId, - req: &__kernel_timespec, -) -> NanosleepRelativeResult { - #[cfg(target_pointer_width = "32")] - unsafe { - let mut rem = MaybeUninit::<__kernel_timespec>::uninit(); - match ret(syscall!( - __NR_clock_nanosleep_time64, - id, - c_int(0), - by_ref(req), - &mut rem - )) - .or_else(|err| { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - if err == io::Errno::NOSYS { - clock_nanosleep_relative_old(id, req, &mut rem) - } else { - Err(err) - } - }) { - Ok(()) => NanosleepRelativeResult::Ok, - Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), - Err(err) => NanosleepRelativeResult::Err(err), - } - } - #[cfg(target_pointer_width = "64")] - unsafe { - let mut rem = MaybeUninit::<__kernel_timespec>::uninit(); - match ret(syscall!( - __NR_clock_nanosleep, - id, - c_int(0), - by_ref(req), - &mut rem - )) { - Ok(()) => NanosleepRelativeResult::Ok, - Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), - Err(err) => NanosleepRelativeResult::Err(err), - } - } -} - -#[cfg(target_pointer_width = "32")] -unsafe fn clock_nanosleep_relative_old( - id: ClockId, - req: &__kernel_timespec, - rem: &mut MaybeUninit<__kernel_timespec>, -) -> io::Result<()> { - let old_req = __kernel_old_timespec { - tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, - tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, - }; - let mut old_rem = MaybeUninit::<__kernel_old_timespec>::uninit(); - ret(syscall!( - __NR_clock_nanosleep, - id, - c_int(0), - by_ref(&old_req), - &mut old_rem - ))?; - let old_rem = old_rem.assume_init(); - rem.write(__kernel_timespec { - tv_sec: old_rem.tv_sec.into(), - tv_nsec: old_rem.tv_nsec.into(), - }); - Ok(()) -} - -#[inline] -pub(crate) fn clock_nanosleep_absolute(id: ClockId, req: &__kernel_timespec) -> io::Result<()> { - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall_readonly!( - __NR_clock_nanosleep_time64, - id, - c_uint(TIMER_ABSTIME), - by_ref(req), - zero() - )) - .or_else(|err| { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - if err == io::Errno::NOSYS { - clock_nanosleep_absolute_old(id, req) - } else { - Err(err) - } - }) - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_clock_nanosleep, - id, - c_uint(TIMER_ABSTIME), - by_ref(req), - zero() - )) - } -} - -#[cfg(target_pointer_width = "32")] -unsafe fn clock_nanosleep_absolute_old(id: ClockId, req: &__kernel_timespec) -> io::Result<()> { - let old_req = __kernel_old_timespec { - tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, - tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, - }; - ret(syscall_readonly!( - __NR_clock_nanosleep, - id, - c_int(0), - by_ref(&old_req), - zero() - )) -} - -#[inline] -pub(crate) fn nanosleep(req: &__kernel_timespec) -> NanosleepRelativeResult { - #[cfg(target_pointer_width = "32")] - unsafe { - let mut rem = MaybeUninit::<__kernel_timespec>::uninit(); - match ret(syscall!( - __NR_clock_nanosleep_time64, - ClockId::Realtime, - c_int(0), - by_ref(req), - &mut rem - )) - .or_else(|err| { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - if err == io::Errno::NOSYS { - nanosleep_old(req, &mut rem) - } else { - Err(err) - } - }) { - Ok(()) => NanosleepRelativeResult::Ok, - Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), - Err(err) => NanosleepRelativeResult::Err(err), - } - } - #[cfg(target_pointer_width = "64")] - unsafe { - let mut rem = MaybeUninit::<__kernel_timespec>::uninit(); - match ret(syscall!(__NR_nanosleep, by_ref(req), &mut rem)) { - Ok(()) => NanosleepRelativeResult::Ok, - Err(io::Errno::INTR) => NanosleepRelativeResult::Interrupted(rem.assume_init()), - Err(err) => NanosleepRelativeResult::Err(err), - } - } -} - -#[cfg(target_pointer_width = "32")] -unsafe fn nanosleep_old( - req: &__kernel_timespec, - rem: &mut MaybeUninit<__kernel_timespec>, -) -> io::Result<()> { - let old_req = __kernel_old_timespec { - tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, - tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, - }; - let mut old_rem = MaybeUninit::<__kernel_old_timespec>::uninit(); - ret(syscall!(__NR_nanosleep, by_ref(&old_req), &mut old_rem))?; - let old_rem = old_rem.assume_init(); - rem.write(__kernel_timespec { - tv_sec: old_rem.tv_sec.into(), - tv_nsec: old_rem.tv_nsec.into(), - }); - Ok(()) -} - -#[inline] -pub(crate) fn gettid() -> Pid { - unsafe { - let tid = ret_c_int_infallible(syscall_readonly!(__NR_gettid)); - Pid::from_raw_unchecked(tid) - } -} - -// TODO: This could be de-multiplexed. -#[inline] -pub(crate) unsafe fn futex( - uaddr: *mut u32, - op: FutexOperation, - flags: FutexFlags, - val: u32, - utime: *const Timespec, - uaddr2: *mut u32, - val3: u32, -) -> io::Result { - #[cfg(target_pointer_width = "32")] - { - ret_usize(syscall!( - __NR_futex_time64, - uaddr, - (op, flags), - c_uint(val), - utime, - uaddr2, - c_uint(val3) - )) - .or_else(|err| { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - if err == io::Errno::NOSYS { - futex_old(uaddr, op, flags, val, utime, uaddr2, val3) - } else { - Err(err) - } - }) - } - #[cfg(target_pointer_width = "64")] - ret_usize(syscall!( - __NR_futex, - uaddr, - (op, flags), - c_uint(val), - utime, - uaddr2, - c_uint(val3) - )) -} - -#[cfg(target_pointer_width = "32")] -unsafe fn futex_old( - uaddr: *mut u32, - op: FutexOperation, - flags: FutexFlags, - val: u32, - utime: *const Timespec, - uaddr2: *mut u32, - val3: u32, -) -> io::Result { - let old_utime = __kernel_old_timespec { - tv_sec: (*utime).tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, - tv_nsec: (*utime).tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, - }; - ret_usize(syscall!( - __NR_futex, - uaddr, - (op, flags), - c_uint(val), - by_ref(&old_utime), - uaddr2, - c_uint(val3) - )) -} - -#[inline] -pub(crate) fn setns(fd: BorrowedFd<'_>, nstype: c::c_int) -> io::Result { - unsafe { ret_c_int(syscall_readonly!(__NR_setns, fd, c_int(nstype))) } -} - -#[inline] -pub(crate) fn unshare(flags: crate::thread::UnshareFlags) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_unshare, flags)) } -} - -#[inline] -pub(crate) fn capget( - header: &mut linux_raw_sys::general::__user_cap_header_struct, - data: &mut [MaybeUninit], -) -> io::Result<()> { - unsafe { - ret(syscall!( - __NR_capget, - by_mut(header), - slice_just_addr_mut(data) - )) - } -} - -#[inline] -pub(crate) fn capset( - header: &mut linux_raw_sys::general::__user_cap_header_struct, - data: &[linux_raw_sys::general::__user_cap_data_struct], -) -> io::Result<()> { - unsafe { ret(syscall!(__NR_capset, by_mut(header), slice_just_addr(data))) } -} - -#[inline] -pub(crate) fn setuid_thread(uid: crate::ugid::Uid) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_setuid, uid)) } -} - -#[inline] -pub(crate) fn setresuid_thread( - ruid: crate::ugid::Uid, - euid: crate::ugid::Uid, - suid: crate::ugid::Uid, -) -> io::Result<()> { - #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] - unsafe { - ret(syscall_readonly!(__NR_setresuid32, ruid, euid, suid)) - } - #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] - unsafe { - ret(syscall_readonly!(__NR_setresuid, ruid, euid, suid)) - } -} - -#[inline] -pub(crate) fn setgid_thread(gid: crate::ugid::Gid) -> io::Result<()> { - unsafe { ret(syscall_readonly!(__NR_setgid, gid)) } -} - -#[inline] -pub(crate) fn setresgid_thread( - rgid: crate::ugid::Gid, - egid: crate::ugid::Gid, - sgid: crate::ugid::Gid, -) -> io::Result<()> { - #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc"))] - unsafe { - ret(syscall_readonly!(__NR_setresgid32, rgid, egid, sgid)) - } - #[cfg(not(any(target_arch = "x86", target_arch = "arm", target_arch = "sparc")))] - unsafe { - ret(syscall_readonly!(__NR_setresgid, rgid, egid, sgid)) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/time/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/time/mod.rs deleted file mode 100644 index c42592c4f84f..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/time/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -#[cfg(any(feature = "time", target_arch = "x86"))] -pub(crate) mod syscalls; -pub(crate) mod types; diff --git a/third_party/rust/rustix/src/backend/linux_raw/time/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/time/syscalls.rs deleted file mode 100644 index 634ce267472f..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/time/syscalls.rs +++ /dev/null @@ -1,258 +0,0 @@ -//! linux_raw syscalls supporting `rustix::time`. -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::conv::{ret, ret_infallible}; -use crate::clockid::ClockId; -use crate::io; -use crate::timespec::Timespec; -use core::mem::MaybeUninit; -#[cfg(all(feature = "time", target_pointer_width = "32"))] -use linux_raw_sys::general::itimerspec as __kernel_old_itimerspec; -#[cfg(target_pointer_width = "32")] -use linux_raw_sys::general::timespec as __kernel_old_timespec; -#[cfg(feature = "time")] -use { - crate::backend::conv::{by_ref, ret_owned_fd}, - crate::fd::BorrowedFd, - crate::fd::OwnedFd, - crate::time::{Itimerspec, TimerfdClockId, TimerfdFlags, TimerfdTimerFlags}, -}; - -// `clock_gettime` has special optimizations via the vDSO. -#[cfg(feature = "time")] -pub(crate) use crate::backend::vdso_wrappers::{clock_gettime, clock_gettime_dynamic}; - -#[inline] -pub(crate) fn clock_getres(which_clock: ClockId) -> Timespec { - #[cfg(target_pointer_width = "32")] - unsafe { - let mut result = MaybeUninit::::uninit(); - if let Err(err) = ret(syscall!(__NR_clock_getres_time64, which_clock, &mut result)) { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - debug_assert_eq!(err, io::Errno::NOSYS); - clock_getres_old(which_clock, &mut result); - } - result.assume_init() - } - #[cfg(target_pointer_width = "64")] - unsafe { - let mut result = MaybeUninit::::uninit(); - ret_infallible(syscall!(__NR_clock_getres, which_clock, &mut result)); - result.assume_init() - } -} - -#[cfg(target_pointer_width = "32")] -unsafe fn clock_getres_old(which_clock: ClockId, result: &mut MaybeUninit) { - let mut old_result = MaybeUninit::<__kernel_old_timespec>::uninit(); - ret_infallible(syscall!(__NR_clock_getres, which_clock, &mut old_result)); - let old_result = old_result.assume_init(); - result.write(Timespec { - tv_sec: old_result.tv_sec.into(), - tv_nsec: old_result.tv_nsec.into(), - }); -} - -#[cfg(feature = "time")] -#[inline] -pub(crate) fn clock_settime(which_clock: ClockId, timespec: Timespec) -> io::Result<()> { - // `clock_settime64` was introduced in Linux 5.1. The old `clock_settime` - // syscall is not y2038-compatible on 32-bit architectures. - #[cfg(target_pointer_width = "32")] - unsafe { - match ret(syscall_readonly!( - __NR_clock_settime64, - which_clock, - by_ref(×pec) - )) { - Err(io::Errno::NOSYS) => clock_settime_old(which_clock, timespec), - otherwise => otherwise, - } - } - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall_readonly!( - __NR_clock_settime, - which_clock, - by_ref(×pec) - )) - } -} - -#[cfg(feature = "time")] -#[cfg(target_pointer_width = "32")] -unsafe fn clock_settime_old(which_clock: ClockId, timespec: Timespec) -> io::Result<()> { - let old_timespec = __kernel_old_timespec { - tv_sec: timespec - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: timespec.tv_nsec as _, - }; - ret(syscall_readonly!( - __NR_clock_settime, - which_clock, - by_ref(&old_timespec) - )) -} - -#[cfg(feature = "time")] -#[inline] -pub(crate) fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result { - unsafe { ret_owned_fd(syscall!(__NR_timerfd_create, clockid, flags)) } -} - -#[cfg(feature = "time")] -#[inline] -pub(crate) fn timerfd_settime( - fd: BorrowedFd<'_>, - flags: TimerfdTimerFlags, - new_value: &Itimerspec, -) -> io::Result { - let mut result = MaybeUninit::::uninit(); - - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall!( - __NR_timerfd_settime, - fd, - flags, - by_ref(new_value), - &mut result - ))?; - Ok(result.assume_init()) - } - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall!( - __NR_timerfd_settime64, - fd, - flags, - by_ref(new_value), - &mut result - )) - .or_else(|err| { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - if err == io::Errno::NOSYS { - timerfd_settime_old(fd, flags, new_value, &mut result) - } else { - Err(err) - } - })?; - Ok(result.assume_init()) - } -} - -#[cfg(feature = "time")] -#[cfg(target_pointer_width = "32")] -unsafe fn timerfd_settime_old( - fd: BorrowedFd<'_>, - flags: TimerfdTimerFlags, - new_value: &Itimerspec, - result: &mut MaybeUninit, -) -> io::Result<()> { - let mut old_result = MaybeUninit::<__kernel_old_itimerspec>::uninit(); - - // Convert `new_value` to the old `__kernel_old_itimerspec` format. - let old_new_value = __kernel_old_itimerspec { - it_interval: __kernel_old_timespec { - tv_sec: new_value - .it_interval - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: new_value - .it_interval - .tv_nsec - .try_into() - .map_err(|_| io::Errno::INVAL)?, - }, - it_value: __kernel_old_timespec { - tv_sec: new_value - .it_value - .tv_sec - .try_into() - .map_err(|_| io::Errno::OVERFLOW)?, - tv_nsec: new_value - .it_value - .tv_nsec - .try_into() - .map_err(|_| io::Errno::INVAL)?, - }, - }; - ret(syscall!( - __NR_timerfd_settime, - fd, - flags, - by_ref(&old_new_value), - &mut old_result - ))?; - let old_result = old_result.assume_init(); - result.write(Itimerspec { - it_interval: Timespec { - tv_sec: old_result.it_interval.tv_sec.into(), - tv_nsec: old_result.it_interval.tv_nsec.into(), - }, - it_value: Timespec { - tv_sec: old_result.it_value.tv_sec.into(), - tv_nsec: old_result.it_value.tv_nsec.into(), - }, - }); - Ok(()) -} - -#[cfg(feature = "time")] -#[inline] -pub(crate) fn timerfd_gettime(fd: BorrowedFd<'_>) -> io::Result { - let mut result = MaybeUninit::::uninit(); - - #[cfg(target_pointer_width = "64")] - unsafe { - ret(syscall!(__NR_timerfd_gettime, fd, &mut result))?; - Ok(result.assume_init()) - } - - #[cfg(target_pointer_width = "32")] - unsafe { - ret(syscall!(__NR_timerfd_gettime64, fd, &mut result)).or_else(|err| { - // See the comments in `rustix_clock_gettime_via_syscall` about - // emulation. - if err == io::Errno::NOSYS { - timerfd_gettime_old(fd, &mut result) - } else { - Err(err) - } - })?; - Ok(result.assume_init()) - } -} - -#[cfg(feature = "time")] -#[cfg(target_pointer_width = "32")] -unsafe fn timerfd_gettime_old( - fd: BorrowedFd<'_>, - result: &mut MaybeUninit, -) -> io::Result<()> { - let mut old_result = MaybeUninit::<__kernel_old_itimerspec>::uninit(); - ret(syscall!(__NR_timerfd_gettime, fd, &mut old_result))?; - let old_result = old_result.assume_init(); - result.write(Itimerspec { - it_interval: Timespec { - tv_sec: old_result.it_interval.tv_sec.into(), - tv_nsec: old_result.it_interval.tv_nsec.into(), - }, - it_value: Timespec { - tv_sec: old_result.it_value.tv_sec.into(), - tv_nsec: old_result.it_value.tv_nsec.into(), - }, - }); - Ok(()) -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/time/types.rs b/third_party/rust/rustix/src/backend/linux_raw/time/types.rs deleted file mode 100644 index ab43aed7cafe..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/time/types.rs +++ /dev/null @@ -1,91 +0,0 @@ -use crate::backend::c; -use bitflags::bitflags; - -/// `struct itimerspec` for use with [`timerfd_gettime`] and -/// [`timerfd_settime`]. -/// -/// [`timerfd_gettime`]: crate::time::timerfd_gettime -/// [`timerfd_settime`]: crate::time::timerfd_settime -pub type Itimerspec = linux_raw_sys::general::__kernel_itimerspec; - -bitflags! { - /// `TFD_*` flags for use with [`timerfd_create`]. - /// - /// [`timerfd_create`]: crate::time::timerfd_create - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct TimerfdFlags: c::c_uint { - /// `TFD_NONBLOCK` - const NONBLOCK = linux_raw_sys::general::TFD_NONBLOCK; - - /// `TFD_CLOEXEC` - const CLOEXEC = linux_raw_sys::general::TFD_CLOEXEC; - - /// - const _ = !0; - } -} - -bitflags! { - /// `TFD_TIMER_*` flags for use with [`timerfd_settime`]. - /// - /// [`timerfd_settime`]: crate::time::timerfd_settime - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct TimerfdTimerFlags: c::c_uint { - /// `TFD_TIMER_ABSTIME` - const ABSTIME = linux_raw_sys::general::TFD_TIMER_ABSTIME; - - /// `TFD_TIMER_CANCEL_ON_SET` - const CANCEL_ON_SET = linux_raw_sys::general::TFD_TIMER_CANCEL_ON_SET; - - /// - const _ = !0; - } -} - -/// `CLOCK_*` constants for use with [`timerfd_create`]. -/// -/// [`timerfd_create`]: crate::time::timerfd_create -#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] -#[repr(u32)] -#[non_exhaustive] -pub enum TimerfdClockId { - /// `CLOCK_REALTIME`—A clock that tells the “real” time. - /// - /// This is a clock that tells the amount of time elapsed since the Unix - /// epoch, 1970-01-01T00:00:00Z. The clock is externally settable, so it is - /// not monotonic. Successive reads may see decreasing times, so it isn't - /// reliable for measuring durations. - Realtime = linux_raw_sys::general::CLOCK_REALTIME, - - /// `CLOCK_MONOTONIC`—A clock that tells an abstract time. - /// - /// Unlike `Realtime`, this clock is not based on a fixed known epoch, so - /// individual times aren't meaningful. However, since it isn't settable, - /// it is reliable for measuring durations. - /// - /// This clock does not advance while the system is suspended; see - /// `Boottime` for a clock that does. - Monotonic = linux_raw_sys::general::CLOCK_MONOTONIC, - - /// `CLOCK_BOOTTIME`—Like `Monotonic`, but advances while suspended. - /// - /// This clock is similar to `Monotonic`, but does advance while the system - /// is suspended. - Boottime = linux_raw_sys::general::CLOCK_BOOTTIME, - - /// `CLOCK_REALTIME_ALARM`—Like `Realtime`, but wakes a suspended system. - /// - /// This clock is like `Realtime`, but can wake up a suspended system. - /// - /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. - RealtimeAlarm = linux_raw_sys::general::CLOCK_REALTIME_ALARM, - - /// `CLOCK_BOOTTIME_ALARM`—Like `Boottime`, but wakes a suspended system. - /// - /// This clock is like `Boottime`, but can wake up a suspended system. - /// - /// Use of this clock requires the `CAP_WAKE_ALARM` Linux capability. - BoottimeAlarm = linux_raw_sys::general::CLOCK_BOOTTIME_ALARM, -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/ugid/mod.rs b/third_party/rust/rustix/src/backend/linux_raw/ugid/mod.rs deleted file mode 100644 index ef944f04d262..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/ugid/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub(crate) mod syscalls; diff --git a/third_party/rust/rustix/src/backend/linux_raw/ugid/syscalls.rs b/third_party/rust/rustix/src/backend/linux_raw/ugid/syscalls.rs deleted file mode 100644 index 12ff6dce10be..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/ugid/syscalls.rs +++ /dev/null @@ -1,67 +0,0 @@ -//! linux_raw syscalls for UIDs and GIDs -//! -//! # Safety -//! -//! See the `rustix::backend` module documentation for details. -#![allow(unsafe_code)] -#![allow(clippy::undocumented_unsafe_blocks)] - -use crate::backend::c; -use crate::backend::conv::ret_usize_infallible; -use crate::ugid::{Gid, Uid}; - -#[inline] -pub(crate) fn getuid() -> Uid { - #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] - unsafe { - let uid = ret_usize_infallible(syscall_readonly!(__NR_getuid32)) as c::uid_t; - Uid::from_raw(uid) - } - #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] - unsafe { - let uid = ret_usize_infallible(syscall_readonly!(__NR_getuid)) as c::uid_t; - Uid::from_raw(uid) - } -} - -#[inline] -pub(crate) fn geteuid() -> Uid { - #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] - unsafe { - let uid = ret_usize_infallible(syscall_readonly!(__NR_geteuid32)) as c::uid_t; - Uid::from_raw(uid) - } - #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] - unsafe { - let uid = ret_usize_infallible(syscall_readonly!(__NR_geteuid)) as c::uid_t; - Uid::from_raw(uid) - } -} - -#[inline] -pub(crate) fn getgid() -> Gid { - #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] - unsafe { - let gid = ret_usize_infallible(syscall_readonly!(__NR_getgid32)) as c::gid_t; - Gid::from_raw(gid) - } - #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] - unsafe { - let gid = ret_usize_infallible(syscall_readonly!(__NR_getgid)) as c::gid_t; - Gid::from_raw(gid) - } -} - -#[inline] -pub(crate) fn getegid() -> Gid { - #[cfg(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86"))] - unsafe { - let gid = ret_usize_infallible(syscall_readonly!(__NR_getegid32)) as c::gid_t; - Gid::from_raw(gid) - } - #[cfg(not(any(target_arch = "arm", target_arch = "sparc", target_arch = "x86")))] - unsafe { - let gid = ret_usize_infallible(syscall_readonly!(__NR_getegid)) as c::gid_t; - Gid::from_raw(gid) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/vdso.rs b/third_party/rust/rustix/src/backend/linux_raw/vdso.rs deleted file mode 100644 index 2934293a0be0..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/vdso.rs +++ /dev/null @@ -1,313 +0,0 @@ -//! Parse the Linux vDSO. -//! -//! The following code is transliterated from -//! tools/testing/selftests/vDSO/parse_vdso.c in Linux 5.11, which is licensed -//! with Creative Commons Zero License, version 1.0, -//! available at -//! -//! # Safety -//! -//! Parsing the vDSO involves a lot of raw pointer manipulation. This -//! implementation follows Linux's reference implementation, and adds several -//! additional safety checks. -#![allow(unsafe_code)] - -use super::c; -use crate::ffi::CStr; -use crate::utils::check_raw_pointer; -use core::ffi::c_void; -use core::mem::size_of; -use core::ptr::{null, null_mut}; -use linux_raw_sys::elf::*; - -pub(super) struct Vdso { - // Load information - load_addr: *const Elf_Ehdr, - load_end: *const c_void, // the end of the `PT_LOAD` segment - pv_offset: usize, // recorded paddr - recorded vaddr - - // Symbol table - symtab: *const Elf_Sym, - symstrings: *const u8, - bucket: *const u32, - chain: *const u32, - nbucket: u32, - //nchain: u32, - - // Version table - versym: *const u16, - verdef: *const Elf_Verdef, -} - -// Straight from the ELF specification. -fn elf_hash(name: &CStr) -> u32 { - let mut h: u32 = 0; - for b in name.to_bytes() { - h = (h << 4).wrapping_add(u32::from(*b)); - let g = h & 0xf000_0000; - if g != 0 { - h ^= g >> 24; - } - h &= !g; - } - h -} - -/// Create a `Vdso` value by parsing the vDSO at the `sysinfo_ehdr` address. -fn init_from_sysinfo_ehdr() -> Option { - // SAFETY: the auxv initialization code does extensive checks to ensure - // that the value we get really is an `AT_SYSINFO_EHDR` value from the - // kernel. - unsafe { - let hdr = super::param::auxv::sysinfo_ehdr(); - - // If the platform doesn't provide a `AT_SYSINFO_EHDR`, we can't locate - // the vDSO. - if hdr.is_null() { - return None; - } - - let mut vdso = Vdso { - load_addr: hdr, - load_end: hdr.cast(), - pv_offset: 0, - symtab: null(), - symstrings: null(), - bucket: null(), - chain: null(), - nbucket: 0, - //nchain: 0, - versym: null(), - verdef: null(), - }; - - let hdr = &*hdr; - let pt = check_raw_pointer::(vdso.base_plus(hdr.e_phoff)? as *mut _)?.as_ptr(); - let mut dyn_: *const Elf_Dyn = null(); - let mut num_dyn = 0; - - // We need two things from the segment table: the load offset - // and the dynamic table. - let mut found_vaddr = false; - for i in 0..hdr.e_phnum { - let phdr = &*pt.add(i as usize); - if phdr.p_flags & PF_W != 0 { - // Don't trust any vDSO that claims to be loading writable - // segments into memory. - return None; - } - if phdr.p_type == PT_LOAD && !found_vaddr { - // The segment should be readable and executable, because it - // contains the symbol table and the function bodies. - if phdr.p_flags & (PF_R | PF_X) != (PF_R | PF_X) { - return None; - } - found_vaddr = true; - vdso.load_end = vdso.base_plus(phdr.p_offset.checked_add(phdr.p_memsz)?)?; - vdso.pv_offset = phdr.p_offset.wrapping_sub(phdr.p_vaddr); - } else if phdr.p_type == PT_DYNAMIC { - // If `p_offset` is zero, it's more likely that we're looking at memory - // that has been zeroed than that the kernel has somehow aliased the - // `Ehdr` and the `Elf_Dyn` array. - if phdr.p_offset < size_of::() { - return None; - } - - dyn_ = check_raw_pointer::(vdso.base_plus(phdr.p_offset)? as *mut _)? - .as_ptr(); - num_dyn = phdr.p_memsz / size_of::(); - } else if phdr.p_type == PT_INTERP || phdr.p_type == PT_GNU_RELRO { - // Don't trust any ELF image that has an “interpreter” or that uses - // RELRO, which is likely to be a user ELF image rather and not the - // kernel vDSO. - return None; - } - } - - if !found_vaddr || dyn_.is_null() { - return None; // Failed - } - - // Fish out the useful bits of the dynamic table. - let mut hash: *const u32 = null(); - vdso.symstrings = null(); - vdso.symtab = null(); - vdso.versym = null(); - vdso.verdef = null(); - let mut i = 0; - loop { - if i == num_dyn { - return None; - } - let d = &*dyn_.add(i); - match d.d_tag { - DT_STRTAB => { - vdso.symstrings = - check_raw_pointer::(vdso.addr_from_elf(d.d_un.d_ptr)? as *mut _)? - .as_ptr(); - } - DT_SYMTAB => { - vdso.symtab = - check_raw_pointer::(vdso.addr_from_elf(d.d_un.d_ptr)? as *mut _)? - .as_ptr(); - } - DT_HASH => { - hash = check_raw_pointer::(vdso.addr_from_elf(d.d_un.d_ptr)? as *mut _)? - .as_ptr(); - } - DT_VERSYM => { - vdso.versym = - check_raw_pointer::(vdso.addr_from_elf(d.d_un.d_ptr)? as *mut _)? - .as_ptr(); - } - DT_VERDEF => { - vdso.verdef = check_raw_pointer::( - vdso.addr_from_elf(d.d_un.d_ptr)? as *mut _, - )? - .as_ptr(); - } - DT_SYMENT => { - if d.d_un.d_val != size_of::() as _ { - return None; // Failed - } - } - DT_NULL => break, - _ => {} - } - i = i.checked_add(1)?; - } - // The upstream code checks `symstrings`, `symtab`, and `hash` for null; - // here, `check_raw_pointer` has already done that. - - if vdso.verdef.is_null() { - vdso.versym = null(); - } - - // Parse the hash table header. - vdso.nbucket = *hash.add(0); - //vdso.nchain = *hash.add(1); - vdso.bucket = hash.add(2); - vdso.chain = hash.add(vdso.nbucket as usize + 2); - - // That's all we need. - Some(vdso) - } -} - -impl Vdso { - /// Parse the vDSO. - /// - /// Returns `None` if the vDSO can't be located or if it doesn't conform to - /// our expectations. - #[inline] - pub(super) fn new() -> Option { - init_from_sysinfo_ehdr() - } - - /// Check the version for a symbol. - /// - /// # Safety - /// - /// The raw pointers inside `self` must be valid. - unsafe fn match_version(&self, mut ver: u16, name: &CStr, hash: u32) -> bool { - // This is a helper function to check if the version indexed by - // ver matches name (which hashes to hash). - // - // The version definition table is a mess, and I don't know how - // to do this in better than linear time without allocating memory - // to build an index. I also don't know why the table has - // variable size entries in the first place. - // - // For added fun, I can't find a comprehensible specification of how - // to parse all the weird flags in the table. - // - // So I just parse the whole table every time. - - // First step: find the version definition - ver &= 0x7fff; // Apparently bit 15 means "hidden" - let mut def = self.verdef; - loop { - if (*def).vd_version != VER_DEF_CURRENT { - return false; // Failed - } - - if ((*def).vd_flags & VER_FLG_BASE) == 0 && ((*def).vd_ndx & 0x7fff) == ver { - break; - } - - if (*def).vd_next == 0 { - return false; // No definition. - } - - def = def - .cast::() - .add((*def).vd_next as usize) - .cast::(); - } - - // Now figure out whether it matches. - let aux = &*(def.cast::()) - .add((*def).vd_aux as usize) - .cast::(); - (*def).vd_hash == hash - && (name == CStr::from_ptr(self.symstrings.add(aux.vda_name as usize).cast())) - } - - /// Look up a symbol in the vDSO. - pub(super) fn sym(&self, version: &CStr, name: &CStr) -> *mut c::c_void { - let ver_hash = elf_hash(version); - let name_hash = elf_hash(name); - - // SAFETY: The pointers in `self` must be valid. - unsafe { - let mut chain = *self.bucket.add((name_hash % self.nbucket) as usize); - - while chain != STN_UNDEF { - let sym = &*self.symtab.add(chain as usize); - - // Check for a defined global or weak function w/ right name. - // - // The reference parser in Linux's parse_vdso.c requires - // symbols to have type `STT_FUNC`, but on powerpc64, the vDSO - // uses `STT_NOTYPE`, so allow that too. - if (ELF_ST_TYPE(sym.st_info) != STT_FUNC && - ELF_ST_TYPE(sym.st_info) != STT_NOTYPE) - || (ELF_ST_BIND(sym.st_info) != STB_GLOBAL - && ELF_ST_BIND(sym.st_info) != STB_WEAK) - || sym.st_shndx == SHN_UNDEF - || sym.st_shndx == SHN_ABS - || ELF_ST_VISIBILITY(sym.st_other) != STV_DEFAULT - || (name != CStr::from_ptr(self.symstrings.add(sym.st_name as usize).cast())) - // Check symbol version. - || (!self.versym.is_null() - && !self.match_version(*self.versym.add(chain as usize), version, ver_hash)) - { - chain = *self.chain.add(chain as usize); - continue; - } - - let sum = self.addr_from_elf(sym.st_value).unwrap(); - assert!( - sum as usize >= self.load_addr as usize - && sum as usize <= self.load_end as usize - ); - return sum as *mut c::c_void; - } - } - - null_mut() - } - - /// Add the given address to the vDSO base address. - unsafe fn base_plus(&self, offset: usize) -> Option<*const c_void> { - // Check for overflow. - let _ = (self.load_addr as usize).checked_add(offset)?; - // Add the offset to the base. - Some(self.load_addr.cast::().add(offset).cast()) - } - - /// Translate an ELF-address-space address into a usable virtual address. - unsafe fn addr_from_elf(&self, elf_addr: usize) -> Option<*const c_void> { - self.base_plus(elf_addr.wrapping_add(self.pv_offset)) - } -} diff --git a/third_party/rust/rustix/src/backend/linux_raw/vdso_wrappers.rs b/third_party/rust/rustix/src/backend/linux_raw/vdso_wrappers.rs deleted file mode 100644 index 1ff50415b305..000000000000 --- a/third_party/rust/rustix/src/backend/linux_raw/vdso_wrappers.rs +++ /dev/null @@ -1,446 +0,0 @@ -//! Implement syscalls using the vDSO. -//! -//! -//! -//! # Safety -//! -//! Similar to syscalls.rs, this file performs raw system calls, and sometimes -//! passes them uninitialized memory buffers. This file also calls vDSO -//! functions. -#![allow(unsafe_code)] - -#[cfg(target_arch = "x86")] -use super::reg::{ArgReg, RetReg, SyscallNumber, A0, A1, A2, A3, A4, A5, R0}; -use super::vdso; -#[cfg(target_arch = "x86")] -use core::arch::global_asm; -use core::mem::transmute; -use core::ptr::null_mut; -use core::sync::atomic::AtomicPtr; -use core::sync::atomic::Ordering::Relaxed; -#[cfg(target_pointer_width = "32")] -#[cfg(feature = "time")] -use linux_raw_sys::general::timespec as __kernel_old_timespec; -#[cfg(feature = "time")] -use { - super::c, - super::conv::{c_int, ret}, - crate::clockid::{ClockId, DynamicClockId}, - crate::io, - crate::timespec::Timespec, - core::mem::MaybeUninit, - linux_raw_sys::general::{__kernel_clockid_t, __kernel_timespec}, -}; - -#[cfg(feature = "time")] -#[inline] -pub(crate) fn clock_gettime(which_clock: ClockId) -> __kernel_timespec { - // SAFETY: `CLOCK_GETTIME` contains either null or the address of a - // function with an ABI like libc `clock_gettime`, and calling it has - // the side effect of writing to the result buffer, and no others. - unsafe { - let mut result = MaybeUninit::<__kernel_timespec>::uninit(); - let callee = match transmute(CLOCK_GETTIME.load(Relaxed)) { - Some(callee) => callee, - None => init_clock_gettime(), - }; - let r0 = callee(which_clock as c::c_int, result.as_mut_ptr()); - // The `ClockId` enum only contains clocks which never fail. It may be - // tempting to change this to `debug_assert_eq`, however they can still - // fail on uncommon kernel configs, so we leave this in place to ensure - // that we don't execute undefined behavior if they ever do fail. - assert_eq!(r0, 0); - result.assume_init() - } -} - -#[cfg(feature = "time")] -#[inline] -pub(crate) fn clock_gettime_dynamic(which_clock: DynamicClockId<'_>) -> io::Result { - let id = match which_clock { - DynamicClockId::Known(id) => id as __kernel_clockid_t, - - DynamicClockId::Dynamic(fd) => { - // See `FD_TO_CLOCKID` in Linux's `clock_gettime` documentation. - use crate::backend::fd::AsRawFd; - const CLOCKFD: i32 = 3; - ((!fd.as_raw_fd() << 3) | CLOCKFD) as __kernel_clockid_t - } - - DynamicClockId::RealtimeAlarm => { - linux_raw_sys::general::CLOCK_REALTIME_ALARM as __kernel_clockid_t - } - DynamicClockId::Tai => linux_raw_sys::general::CLOCK_TAI as __kernel_clockid_t, - DynamicClockId::Boottime => linux_raw_sys::general::CLOCK_BOOTTIME as __kernel_clockid_t, - DynamicClockId::BoottimeAlarm => { - linux_raw_sys::general::CLOCK_BOOTTIME_ALARM as __kernel_clockid_t - } - }; - - // SAFETY: `CLOCK_GETTIME` contains either null or the address of a - // function with an ABI like libc `clock_gettime`, and calling it has - // the side effect of writing to the result buffer, and no others. - unsafe { - const EINVAL: c::c_int = -(c::EINVAL as c::c_int); - let mut timespec = MaybeUninit::::uninit(); - let callee = match transmute(CLOCK_GETTIME.load(Relaxed)) { - Some(callee) => callee, - None => init_clock_gettime(), - }; - match callee(id, timespec.as_mut_ptr()) { - 0 => (), - EINVAL => return Err(io::Errno::INVAL), - _ => _rustix_clock_gettime_via_syscall(id, timespec.as_mut_ptr())?, - } - Ok(timespec.assume_init()) - } -} - -#[cfg(target_arch = "x86")] -pub(super) mod x86_via_vdso { - use super::{transmute, ArgReg, Relaxed, RetReg, SyscallNumber, A0, A1, A2, A3, A4, A5, R0}; - use crate::backend::arch::asm; - - #[inline] - pub(in crate::backend) unsafe fn syscall0(nr: SyscallNumber<'_>) -> RetReg { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall0(callee, nr) - } - - #[inline] - pub(in crate::backend) unsafe fn syscall1<'a>( - nr: SyscallNumber<'a>, - a0: ArgReg<'a, A0>, - ) -> RetReg { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall1(callee, nr, a0) - } - - #[inline] - pub(in crate::backend) unsafe fn syscall1_noreturn<'a>( - nr: SyscallNumber<'a>, - a0: ArgReg<'a, A0>, - ) -> ! { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall1_noreturn(callee, nr, a0) - } - - #[inline] - pub(in crate::backend) unsafe fn syscall2<'a>( - nr: SyscallNumber<'a>, - a0: ArgReg<'a, A0>, - a1: ArgReg<'a, A1>, - ) -> RetReg { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall2(callee, nr, a0, a1) - } - - #[inline] - pub(in crate::backend) unsafe fn syscall3<'a>( - nr: SyscallNumber<'a>, - a0: ArgReg<'a, A0>, - a1: ArgReg<'a, A1>, - a2: ArgReg<'a, A2>, - ) -> RetReg { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall3(callee, nr, a0, a1, a2) - } - - #[inline] - pub(in crate::backend) unsafe fn syscall4<'a>( - nr: SyscallNumber<'a>, - a0: ArgReg<'a, A0>, - a1: ArgReg<'a, A1>, - a2: ArgReg<'a, A2>, - a3: ArgReg<'a, A3>, - ) -> RetReg { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall4(callee, nr, a0, a1, a2, a3) - } - - #[inline] - pub(in crate::backend) unsafe fn syscall5<'a>( - nr: SyscallNumber<'a>, - a0: ArgReg<'a, A0>, - a1: ArgReg<'a, A1>, - a2: ArgReg<'a, A2>, - a3: ArgReg<'a, A3>, - a4: ArgReg<'a, A4>, - ) -> RetReg { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall5(callee, nr, a0, a1, a2, a3, a4) - } - - #[inline] - pub(in crate::backend) unsafe fn syscall6<'a>( - nr: SyscallNumber<'a>, - a0: ArgReg<'a, A0>, - a1: ArgReg<'a, A1>, - a2: ArgReg<'a, A2>, - a3: ArgReg<'a, A3>, - a4: ArgReg<'a, A4>, - a5: ArgReg<'a, A5>, - ) -> RetReg { - let callee = match transmute(super::SYSCALL.load(Relaxed)) { - Some(callee) => callee, - None => super::init_syscall(), - }; - asm::indirect_syscall6(callee, nr, a0, a1, a2, a3, a4, a5) - } - - // With the indirect call, it isn't meaningful to do a separate - // `_readonly` optimization. - #[allow(unused_imports)] - pub(in crate::backend) use { - syscall0 as syscall0_readonly, syscall1 as syscall1_readonly, - syscall2 as syscall2_readonly, syscall3 as syscall3_readonly, - syscall4 as syscall4_readonly, syscall5 as syscall5_readonly, - syscall6 as syscall6_readonly, - }; -} - -#[cfg(feature = "time")] -type ClockGettimeType = unsafe extern "C" fn(c::c_int, *mut Timespec) -> c::c_int; - -/// The underlying syscall functions are only called from asm, using the -/// special syscall calling convention to pass arguments and return values, -/// which the signature here doesn't reflect. -#[cfg(target_arch = "x86")] -pub(super) type SyscallType = unsafe extern "C" fn(); - -/// Initialize `CLOCK_GETTIME` and return its value. -#[cfg(feature = "time")] -#[cold] -fn init_clock_gettime() -> ClockGettimeType { - init(); - // SAFETY: Load the function address from static storage that we - // just initialized. - unsafe { transmute(CLOCK_GETTIME.load(Relaxed)) } -} - -/// Initialize `SYSCALL` and return its value. -#[cfg(target_arch = "x86")] -#[cold] -fn init_syscall() -> SyscallType { - init(); - // SAFETY: Load the function address from static storage that we - // just initialized. - unsafe { transmute(SYSCALL.load(Relaxed)) } -} - -/// `AtomicPtr` can't hold a `fn` pointer, so we use a `*` pointer to this -/// placeholder type, and cast it as needed. -struct Function; -#[cfg(feature = "time")] -static mut CLOCK_GETTIME: AtomicPtr = AtomicPtr::new(null_mut()); -#[cfg(target_arch = "x86")] -static mut SYSCALL: AtomicPtr = AtomicPtr::new(null_mut()); - -#[cfg(feature = "time")] -unsafe extern "C" fn rustix_clock_gettime_via_syscall( - clockid: c::c_int, - res: *mut Timespec, -) -> c::c_int { - match _rustix_clock_gettime_via_syscall(clockid, res) { - Ok(()) => 0, - Err(err) => err.raw_os_error().wrapping_neg(), - } -} - -#[cfg(feature = "time")] -#[cfg(target_pointer_width = "32")] -unsafe fn _rustix_clock_gettime_via_syscall( - clockid: c::c_int, - res: *mut Timespec, -) -> io::Result<()> { - let r0 = syscall!(__NR_clock_gettime64, c_int(clockid), res); - match ret(r0) { - Err(io::Errno::NOSYS) => _rustix_clock_gettime_via_syscall_old(clockid, res), - otherwise => otherwise, - } -} - -#[cfg(feature = "time")] -#[cfg(target_pointer_width = "32")] -unsafe fn _rustix_clock_gettime_via_syscall_old( - clockid: c::c_int, - res: *mut Timespec, -) -> io::Result<()> { - // Ordinarily `rustix` doesn't like to emulate system calls, but in the - // case of time APIs, it's specific to Linux, specific to 32-bit - // architectures *and* specific to old kernel versions, and it's not that - // hard to fix up here, so that no other code needs to worry about this. - let mut old_result = MaybeUninit::<__kernel_old_timespec>::uninit(); - let r0 = syscall!(__NR_clock_gettime, c_int(clockid), &mut old_result); - match ret(r0) { - Ok(()) => { - let old_result = old_result.assume_init(); - *res = Timespec { - tv_sec: old_result.tv_sec.into(), - tv_nsec: old_result.tv_nsec.into(), - }; - Ok(()) - } - otherwise => otherwise, - } -} - -#[cfg(feature = "time")] -#[cfg(target_pointer_width = "64")] -unsafe fn _rustix_clock_gettime_via_syscall( - clockid: c::c_int, - res: *mut Timespec, -) -> io::Result<()> { - ret(syscall!(__NR_clock_gettime, c_int(clockid), res)) -} - -#[cfg(target_arch = "x86")] -extern "C" { - /// A symbol pointing to an `int 0x80` instruction. This “function” is only - /// called from assembly, and only with the x86 syscall calling convention. - /// so its signature here is not its true signature. - /// - /// This extern block and the `global_asm!` below can be replaced with - /// `#[naked]` if it's stabilized. - fn rustix_int_0x80(); -} - -#[cfg(target_arch = "x86")] -global_asm!( - r#" - .section .text.rustix_int_0x80,"ax",@progbits - .p2align 4 - .weak rustix_int_0x80 - .hidden rustix_int_0x80 - .type rustix_int_0x80, @function -rustix_int_0x80: - .cfi_startproc - int 0x80 - ret - .cfi_endproc - .size rustix_int_0x80, .-rustix_int_0x80 -"# -); - -fn minimal_init() { - // SAFETY: Store default function addresses in static storage so that if we - // end up making any system calls while we read the vDSO, they'll work. - // If the memory happens to already be initialized, this is redundant, but - // not harmful. - unsafe { - #[cfg(feature = "time")] - { - CLOCK_GETTIME - .compare_exchange( - null_mut(), - rustix_clock_gettime_via_syscall as *mut Function, - Relaxed, - Relaxed, - ) - .ok(); - } - - #[cfg(target_arch = "x86")] - { - SYSCALL - .compare_exchange( - null_mut(), - rustix_int_0x80 as *mut Function, - Relaxed, - Relaxed, - ) - .ok(); - } - } -} - -fn init() { - minimal_init(); - - if let Some(vdso) = vdso::Vdso::new() { - #[cfg(feature = "time")] - { - // Look up the platform-specific `clock_gettime` symbol as documented - // [here], except on 32-bit platforms where we look up the - // `64`-suffixed variant and fail if we don't find it. - // - // [here]: https://man7.org/linux/man-pages/man7/vdso.7.html - #[cfg(target_arch = "x86_64")] - let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime")); - #[cfg(target_arch = "arm")] - let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime64")); - #[cfg(target_arch = "aarch64")] - let ptr = vdso.sym(cstr!("LINUX_2.6.39"), cstr!("__kernel_clock_gettime")); - #[cfg(target_arch = "x86")] - let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime64")); - #[cfg(target_arch = "riscv64")] - let ptr = vdso.sym(cstr!("LINUX_4.15"), cstr!("__vdso_clock_gettime")); - #[cfg(target_arch = "powerpc64")] - let ptr = vdso.sym(cstr!("LINUX_2.6.15"), cstr!("__kernel_clock_gettime")); - #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] - let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime64")); - #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] - let ptr = vdso.sym(cstr!("LINUX_2.6"), cstr!("__vdso_clock_gettime")); - - // On all 64-bit platforms, the 64-bit `clock_gettime` symbols are - // always available. - #[cfg(target_pointer_width = "64")] - let ok = true; - - // On some 32-bit platforms, the 64-bit `clock_gettime` symbols are not - // available on older kernel versions. - #[cfg(any( - target_arch = "arm", - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "x86" - ))] - let ok = !ptr.is_null(); - - if ok { - assert!(!ptr.is_null()); - - // SAFETY: Store the computed function addresses in static storage - // so that we don't need to compute it again (but if we do, it - // doesn't hurt anything). - unsafe { - CLOCK_GETTIME.store(ptr.cast(), Relaxed); - } - } - } - - // On x86, also look up the vsyscall entry point. - #[cfg(target_arch = "x86")] - { - let ptr = vdso.sym(cstr!("LINUX_2.5"), cstr!("__kernel_vsyscall")); - assert!(!ptr.is_null()); - - // SAFETY: As above, store the computed function addresses in - // static storage. - unsafe { - SYSCALL.store(ptr.cast(), Relaxed); - } - } - } -} diff --git a/third_party/rust/rustix/src/bitcast.rs b/third_party/rust/rustix/src/bitcast.rs deleted file mode 100644 index 3924c29d567e..000000000000 --- a/third_party/rust/rustix/src/bitcast.rs +++ /dev/null @@ -1,32 +0,0 @@ -// Ensure that the source and destination types are both primitive integer -// types and the same size, and then bitcast. -#[allow(unused_macros)] -macro_rules! bitcast { - ($x:expr) => {{ - if false { - // Ensure the source and destinations are primitive integer types. - let _ = !$x; - let _ = $x as u8; - 0 - } else if false { - // Ensure that the source and destinations are the same size. - // SAFETY: This code is under an `if false`. - #[allow(unsafe_code, unused_unsafe, clippy::useless_transmute)] - unsafe { - ::core::mem::transmute($x) - } - } else { - // Do the conversion. - $x as _ - } - }}; -} - -/// Return a [`bitcast`] of the value of `$x.bits()`, where `$x` is a -/// `bitflags` type. -#[allow(unused_macros)] -macro_rules! bitflags_bits { - ($x:expr) => {{ - bitcast!($x.bits()) - }}; -} diff --git a/third_party/rust/rustix/src/check_types.rs b/third_party/rust/rustix/src/check_types.rs deleted file mode 100644 index bea04e0b7210..000000000000 --- a/third_party/rust/rustix/src/check_types.rs +++ /dev/null @@ -1,91 +0,0 @@ -//! Macros for checking that types have the same layout as other types. - -#![allow(unused_macros)] - -/// Check that the size and alignment of a type match the `sys` bindings. -macro_rules! check_type { - ($struct:ident) => { - assert_eq_size!($struct, c::$struct); - assert_eq_align!($struct, c::$struct); - }; -} - -/// The same as `check_type`, but for unions and anonymous structs we've -/// renamed to avoid having types like `bindgen_ty_1` in the API. -macro_rules! check_renamed_type { - ($to:ident, $from:ident) => { - assert_eq_size!($to, c::$from); - assert_eq_align!($to, c::$from); - }; -} - -/// Check that the field of a struct has the same offset as the -/// corresponding field in the `sys` bindings. -macro_rules! check_struct_field { - ($struct:ident, $field:ident) => { - const_assert_eq!( - memoffset::offset_of!($struct, $field), - memoffset::offset_of!(c::$struct, $field) - ); - - // This can't use `const_assert_eq` because `span_of` returns a - // `Range`, which can't be compared in const contexts. - assert_eq!( - memoffset::span_of!($struct, $field), - memoffset::span_of!(c::$struct, $field) - ); - }; -} - -/// The same as `check_struct_field`, but for unions and anonymous structs -/// we've renamed to avoid having types like `bindgen_ty_1` in the API. -macro_rules! check_struct_renamed_field { - ($struct:ident, $to:ident, $from:ident) => { - const_assert_eq!( - memoffset::offset_of!($struct, $to), - memoffset::offset_of!(c::$struct, $from) - ); - - // As above, this can't use `const_assert_eq`. - assert_eq!( - memoffset::span_of!($struct, $to), - memoffset::span_of!(c::$struct, $from) - ); - }; -} - -/// The same as `check_struct_renamed_field`, but for when both the struct -/// and a field are renamed. -macro_rules! check_renamed_struct_renamed_field { - ($to_struct:ident, $from_struct:ident, $to:ident, $from:ident) => { - const_assert_eq!( - memoffset::offset_of!($to_struct, $to), - memoffset::offset_of!(c::$from_struct, $from) - ); - - // As above, this can't use `const_assert_eq`. - assert_eq!( - memoffset::span_of!($to_struct, $to), - memoffset::span_of!(c::$from_struct, $from) - ); - }; -} - -/// For the common case of no renaming, check all fields of a struct. -macro_rules! check_struct { - ($name:ident, $($field:ident),*) => { - // Check the size and alignment. - check_type!($name); - - // Check that we have all the fields. - if false { - #[allow(unreachable_code)] - let _test = $name { - $($field: panic!()),* - }; - } - - // Check that the fields have the right sizes and offsets. - $(check_struct_field!($name, $field));* - }; -} diff --git a/third_party/rust/rustix/src/clockid.rs b/third_party/rust/rustix/src/clockid.rs deleted file mode 100644 index 5c3018e281c6..000000000000 --- a/third_party/rust/rustix/src/clockid.rs +++ /dev/null @@ -1,113 +0,0 @@ -use crate::backend::c; -use crate::fd::BorrowedFd; - -/// `CLOCK_*` constants for use with [`clock_gettime`]. -/// -/// These constants are always supported at runtime, so `clock_gettime` never -/// has to fail with `INVAL` due to an unsupported clock. See -/// [`DynamicClockId`] for a greater set of clocks, with the caveat that not -/// all of them are always supported. -/// -/// [`clock_gettime`]: crate::time::clock_gettime -#[cfg(not(any(apple, target_os = "wasi")))] -#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] -#[cfg_attr(not(any(target_os = "aix", target_os = "dragonfly")), repr(i32))] -#[cfg_attr(target_os = "dragonfly", repr(u64))] -#[cfg_attr(target_os = "aix", repr(i64))] -#[non_exhaustive] -pub enum ClockId { - /// `CLOCK_REALTIME` - Realtime = c::CLOCK_REALTIME, - - /// `CLOCK_MONOTONIC` - Monotonic = c::CLOCK_MONOTONIC, - - /// `CLOCK_UPTIME` - #[cfg(any(freebsdlike, target_os = "openbsd"))] - Uptime = c::CLOCK_UPTIME, - - /// `CLOCK_PROCESS_CPUTIME_ID` - #[cfg(not(any(solarish, target_os = "netbsd", target_os = "redox")))] - ProcessCPUTime = c::CLOCK_PROCESS_CPUTIME_ID, - - /// `CLOCK_THREAD_CPUTIME_ID` - #[cfg(not(any(solarish, target_os = "netbsd", target_os = "redox")))] - ThreadCPUTime = c::CLOCK_THREAD_CPUTIME_ID, - - /// `CLOCK_REALTIME_COARSE` - #[cfg(any(linux_kernel, target_os = "freebsd"))] - RealtimeCoarse = c::CLOCK_REALTIME_COARSE, - - /// `CLOCK_MONOTONIC_COARSE` - #[cfg(any(linux_kernel, target_os = "freebsd"))] - MonotonicCoarse = c::CLOCK_MONOTONIC_COARSE, - - /// `CLOCK_MONOTONIC_RAW` - #[cfg(linux_kernel)] - MonotonicRaw = c::CLOCK_MONOTONIC_RAW, -} - -/// `CLOCK_*` constants for use with [`clock_gettime`]. -/// -/// These constants are always supported at runtime, so `clock_gettime` never -/// has to fail with `INVAL` due to an unsupported clock. See -/// [`DynamicClockId`] for a greater set of clocks, with the caveat that not -/// all of them are always supported. -/// -/// [`clock_gettime`]: crate::time::clock_gettime -#[cfg(apple)] -#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] -#[repr(u32)] -#[non_exhaustive] -pub enum ClockId { - /// `CLOCK_REALTIME` - Realtime = c::CLOCK_REALTIME, - - /// `CLOCK_MONOTONIC` - Monotonic = c::CLOCK_MONOTONIC, - - /// `CLOCK_PROCESS_CPUTIME_ID` - ProcessCPUTime = c::CLOCK_PROCESS_CPUTIME_ID, - - /// `CLOCK_THREAD_CPUTIME_ID` - ThreadCPUTime = c::CLOCK_THREAD_CPUTIME_ID, -} - -/// `CLOCK_*` constants for use with [`clock_gettime_dynamic`]. -/// -/// These constants may be unsupported at runtime, depending on the OS version, -/// and `clock_gettime_dynamic` may fail with `INVAL`. See [`ClockId`] for -/// clocks which are always supported at runtime. -/// -/// [`clock_gettime_dynamic`]: crate::time::clock_gettime_dynamic -#[cfg(not(target_os = "wasi"))] -#[derive(Debug, Copy, Clone)] -#[non_exhaustive] -pub enum DynamicClockId<'a> { - /// `ClockId` values that are always supported at runtime. - Known(ClockId), - - /// Linux dynamic clocks. - Dynamic(BorrowedFd<'a>), - - /// `CLOCK_REALTIME_ALARM`, available on Linux >= 3.0 - #[cfg(linux_kernel)] - RealtimeAlarm, - - /// `CLOCK_TAI`, available on Linux >= 3.10 - #[cfg(linux_kernel)] - Tai, - - /// `CLOCK_BOOTTIME`, available on Linux >= 2.6.39 - #[cfg(any( - freebsdlike, - linux_kernel, - target_os = "fuchsia", - target_os = "openbsd" - ))] - Boottime, - - /// `CLOCK_BOOTTIME_ALARM`, available on Linux >= 2.6.39 - #[cfg(any(linux_kernel, target_os = "fuchsia"))] - BoottimeAlarm, -} diff --git a/third_party/rust/rustix/src/cstr.rs b/third_party/rust/rustix/src/cstr.rs deleted file mode 100644 index d32436e1805f..000000000000 --- a/third_party/rust/rustix/src/cstr.rs +++ /dev/null @@ -1,76 +0,0 @@ -/// A macro for [`CStr`] literals. -/// -/// This can make passing string literals to rustix APIs more efficient, since -/// most underlying system calls with string arguments expect NUL-terminated -/// strings, and passing strings to rustix as `CStr`s means that rustix doesn't -/// need to copy them into a separate buffer to NUL-terminate them. -/// -/// [`CStr`]: crate::ffi::CStr -/// -/// # Examples -/// -/// ``` -/// # #[cfg(feature = "fs")] -/// # fn main() -> rustix::io::Result<()> { -/// use rustix::cstr; -/// use rustix::fs::{statat, AtFlags, CWD}; -/// -/// let metadata = statat(CWD, cstr!("Cargo.toml"), AtFlags::empty())?; -/// # Ok(()) -/// # } -/// # #[cfg(not(feature = "fs"))] -/// # fn main() {} -/// ``` -#[allow(unused_macros)] -#[macro_export] -macro_rules! cstr { - ($str:literal) => {{ - // Check for NUL manually, to ensure safety. - // - // In release builds, with strings that don't contain NULs, this - // constant-folds away. - // - // We don't use std's `CStr::from_bytes_with_nul`; as of this writing, - // that function isn't defined as `#[inline]` in std and doesn't - // constant-fold away. - assert!( - !$str.bytes().any(|b| b == b'\0'), - "cstr argument contains embedded NUL bytes", - ); - - #[allow(unsafe_code, unused_unsafe)] - { - // Now that we know the string doesn't have embedded NULs, we can - // call `from_bytes_with_nul_unchecked`, which as of this writing - // is defined as `#[inline]` and completely optimizes away. - // - // SAFETY: We have manually checked that the string does not contain - // embedded NULs above, and we append or own NUL terminator here. - unsafe { - $crate::ffi::CStr::from_bytes_with_nul_unchecked(concat!($str, "\0").as_bytes()) - } - } - }}; -} - -#[test] -fn test_cstr() { - use crate::ffi::CString; - use alloc::borrow::ToOwned; - assert_eq!(cstr!(""), &*CString::new("").unwrap()); - assert_eq!(cstr!("").to_owned(), CString::new("").unwrap()); - assert_eq!(cstr!("hello"), &*CString::new("hello").unwrap()); - assert_eq!(cstr!("hello").to_owned(), CString::new("hello").unwrap()); -} - -#[test] -#[should_panic] -fn test_invalid_cstr() { - let _ = cstr!("hello\0world"); -} - -#[test] -#[should_panic] -fn test_invalid_empty_cstr() { - let _ = cstr!("\0"); -} diff --git a/third_party/rust/rustix/src/event/eventfd.rs b/third_party/rust/rustix/src/event/eventfd.rs deleted file mode 100644 index a76f2cfcff9b..000000000000 --- a/third_party/rust/rustix/src/event/eventfd.rs +++ /dev/null @@ -1,20 +0,0 @@ -use crate::fd::OwnedFd; -use crate::{backend, io}; - -pub use backend::event::types::EventfdFlags; - -/// `eventfd(initval, flags)`—Creates a file descriptor for event -/// notification. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [illumos] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/eventfd.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?eventfd -/// [illumos]: https://illumos.org/man/3C/eventfd -#[inline] -pub fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result { - backend::event::syscalls::eventfd(initval, flags) -} diff --git a/third_party/rust/rustix/src/event/kqueue.rs b/third_party/rust/rustix/src/event/kqueue.rs deleted file mode 100644 index 05ee4d71b985..000000000000 --- a/third_party/rust/rustix/src/event/kqueue.rs +++ /dev/null @@ -1,449 +0,0 @@ -//! An API for interfacing with `kqueue`. - -use crate::fd::{AsFd, OwnedFd, RawFd}; -use crate::pid::Pid; -use crate::signal::Signal; -use crate::{backend, io}; - -use backend::c::{self, intptr_t, kevent as kevent_t, uintptr_t}; -use backend::event::syscalls; - -use alloc::vec::Vec; -use core::mem::zeroed; -use core::ptr::slice_from_raw_parts_mut; -use core::time::Duration; - -/// A `kqueue` event. -#[repr(transparent)] -#[derive(Copy, Clone)] -pub struct Event { - // The layout varies between BSDs and macOS. - inner: kevent_t, -} - -impl Event { - /// Create a new `Event`. - #[allow(clippy::needless_update)] - pub fn new(filter: EventFilter, flags: EventFlags, udata: isize) -> Event { - let (ident, data, filter, fflags) = match filter { - EventFilter::Read(fd) => (fd as uintptr_t, 0, c::EVFILT_READ, 0), - EventFilter::Write(fd) => (fd as _, 0, c::EVFILT_WRITE, 0), - #[cfg(target_os = "freebsd")] - EventFilter::Empty(fd) => (fd as _, 0, c::EVFILT_EMPTY, 0), - EventFilter::Vnode { vnode, flags } => (vnode as _, 0, c::EVFILT_VNODE, flags.bits()), - EventFilter::Proc { pid, flags } => { - (Pid::as_raw(Some(pid)) as _, 0, c::EVFILT_PROC, flags.bits()) - } - EventFilter::Signal { signal, times: _ } => (signal as _, 0, c::EVFILT_SIGNAL, 0), - EventFilter::Timer { ident, timer } => { - #[cfg(any(apple, target_os = "freebsd", target_os = "netbsd"))] - let (data, fflags) = match timer { - Some(timer) => { - if timer.subsec_millis() == 0 { - (timer.as_secs() as _, c::NOTE_SECONDS) - } else if timer.subsec_nanos() == 0 { - (timer.as_micros() as _, c::NOTE_USECONDS) - } else { - (timer.as_nanos() as _, c::NOTE_NSECONDS) - } - } - None => (intptr_t::MAX, c::NOTE_SECONDS), - }; - #[cfg(any(target_os = "dragonfly", target_os = "openbsd"))] - let (data, fflags) = match timer { - Some(timer) => (timer.as_millis() as _, 0), - None => (intptr_t::MAX, 0), - }; - - (ident as _, data, c::EVFILT_TIMER, fflags) - } - #[cfg(any(apple, freebsdlike))] - EventFilter::User { - ident, - flags, - user_flags, - } => (ident as _, 0, c::EVFILT_USER, flags.bits() | user_flags.0), - EventFilter::Unknown => panic!("unknown filter"), - }; - - Event { - inner: kevent_t { - ident, - filter: filter as _, - flags: flags.bits() as _, - fflags, - data: { - // On openbsd, data is an i64 and not an isize - data as _ - }, - udata: { - // On netbsd, udata is an isize and not a pointer. - // TODO: Strict provenance, prevent int-to-ptr cast. - udata as _ - }, - ..unsafe { zeroed() } - }, - } - } - - /// Get the event flags for this event. - pub fn flags(&self) -> EventFlags { - EventFlags::from_bits_retain(self.inner.flags as _) - } - - /// Get the user data for this event. - pub fn udata(&self) -> isize { - // On netbsd, udata is an isize and not a pointer. - // TODO: Strict provenance, prevent ptr-to-int cast. - - self.inner.udata as _ - } - - /// Get the raw data for this event. - pub fn data(&self) -> i64 { - // On some bsds, data is an isize and not an i64 - self.inner.data as _ - } - - /// Get the filter of this event. - pub fn filter(&self) -> EventFilter { - match self.inner.filter as _ { - c::EVFILT_READ => EventFilter::Read(self.inner.ident as _), - c::EVFILT_WRITE => EventFilter::Write(self.inner.ident as _), - #[cfg(target_os = "freebsd")] - c::EVFILT_EMPTY => EventFilter::Empty(self.inner.ident as _), - c::EVFILT_VNODE => EventFilter::Vnode { - vnode: self.inner.ident as _, - flags: VnodeEvents::from_bits_retain(self.inner.fflags), - }, - c::EVFILT_PROC => EventFilter::Proc { - pid: Pid::from_raw(self.inner.ident as _).unwrap(), - flags: ProcessEvents::from_bits_retain(self.inner.fflags), - }, - c::EVFILT_SIGNAL => EventFilter::Signal { - signal: Signal::from_raw(self.inner.ident as _).unwrap(), - times: self.inner.data as _, - }, - c::EVFILT_TIMER => EventFilter::Timer { - ident: self.inner.ident as _, - timer: { - let (data, fflags) = (self.inner.data, self.inner.fflags); - #[cfg(not(any(apple, target_os = "freebsd", target_os = "netbsd")))] - let _ = fflags; - #[cfg(any(apple, target_os = "freebsd", target_os = "netbsd"))] - match fflags as _ { - c::NOTE_SECONDS => Some(Duration::from_secs(data as _)), - c::NOTE_USECONDS => Some(Duration::from_micros(data as _)), - c::NOTE_NSECONDS => Some(Duration::from_nanos(data as _)), - _ => { - // Unknown timer flags. - None - } - } - #[cfg(any(target_os = "dragonfly", target_os = "openbsd"))] - Some(Duration::from_millis(data as _)) - }, - }, - #[cfg(any(apple, freebsdlike))] - c::EVFILT_USER => EventFilter::User { - ident: self.inner.ident as _, - flags: UserFlags::from_bits_retain(self.inner.fflags), - user_flags: UserDefinedFlags(self.inner.fflags & EVFILT_USER_FLAGS), - }, - _ => EventFilter::Unknown, - } - } -} - -/// Bottom 24 bits of a u32. -#[cfg(any(apple, freebsdlike))] -const EVFILT_USER_FLAGS: u32 = 0x00ff_ffff; - -/// The possible filters for a `kqueue`. -#[repr(i16)] -#[non_exhaustive] -pub enum EventFilter { - /// A read filter. - Read(RawFd), - - /// A write filter. - Write(RawFd), - - /// An empty filter. - #[cfg(target_os = "freebsd")] - Empty(RawFd), - - /// A VNode filter. - Vnode { - /// The file descriptor we looked for events in. - vnode: RawFd, - - /// The flags for this event. - flags: VnodeEvents, - }, - - /// A process filter. - Proc { - /// The process ID we waited on. - pid: Pid, - - /// The flags for this event. - flags: ProcessEvents, - }, - - /// A signal filter. - Signal { - /// The signal number we waited on. - signal: Signal, - - /// The number of times the signal has been - /// received since the last call to kevent. - times: usize, - }, - - /// A timer filter. - Timer { - /// The identifier for this event. - ident: intptr_t, - - /// The duration for this event. - timer: Option, - }, - - /// A user filter. - #[cfg(any(apple, freebsdlike))] - User { - /// The identifier for this event. - ident: intptr_t, - - /// The flags for this event. - flags: UserFlags, - - /// The user-defined flags for this event. - user_flags: UserDefinedFlags, - }, - - /// This filter is unknown. - /// - /// # Panics - /// - /// Passing this into `Event::new()` will result in a panic. - Unknown, -} - -bitflags::bitflags! { - /// The flags for a `kqueue` event specifying actions to perform. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct EventFlags: u16 { - /// Add the event to the `kqueue`. - const ADD = c::EV_ADD as _; - - /// Enable the event. - const ENABLE = c::EV_ENABLE as _; - - /// Disable the event. - const DISABLE = c::EV_DISABLE as _; - - /// Delete the event from the `kqueue`. - const DELETE = c::EV_DELETE as _; - - /// TODO - const RECEIPT = c::EV_RECEIPT as _; - - /// Clear the event after it is triggered. - const ONESHOT = c::EV_ONESHOT as _; - - /// TODO - const CLEAR = c::EV_CLEAR as _; - - /// TODO - const EOF = c::EV_EOF as _; - - /// TODO - const ERROR = c::EV_ERROR as _; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// The flags for a virtual node event. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct VnodeEvents: u32 { - /// The file was deleted. - const DELETE = c::NOTE_DELETE; - - /// The file was written to. - const WRITE = c::NOTE_WRITE; - - /// The file was extended. - const EXTEND = c::NOTE_EXTEND; - - /// The file had its attributes changed. - const ATTRIBUTES = c::NOTE_ATTRIB; - - /// The file was renamed. - const RENAME = c::NOTE_RENAME; - - /// Access to the file was revoked. - const REVOKE = c::NOTE_REVOKE; - - /// The link count of the file has changed. - const LINK = c::NOTE_LINK; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// The flags for a process event. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ProcessEvents: u32 { - /// The process exited. - const EXIT = c::NOTE_EXIT; - - /// The process forked itself. - const FORK = c::NOTE_FORK; - - /// The process executed a new process. - const EXEC = c::NOTE_EXEC; - - /// Follow the process through `fork` calls (write only). - const TRACK = c::NOTE_TRACK; - - /// An error has occurred with following the process. - const TRACKERR = c::NOTE_TRACKERR; - - /// - const _ = !0; - } -} - -#[cfg(any(apple, freebsdlike))] -bitflags::bitflags! { - /// The flags for a user event. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct UserFlags: u32 { - /// Ignore the user input flags. - const NOINPUT = c::NOTE_FFNOP; - - /// Bitwise AND `fflags`. - const AND = c::NOTE_FFAND; - - /// Bitwise OR `fflags`. - const OR = c::NOTE_FFOR; - - /// Copy `fflags`. - const COPY = c::NOTE_FFCOPY; - - /// Control mask for operations. - const CTRLMASK = c::NOTE_FFCTRLMASK; - - /// User defined flags for masks. - const UDFMASK = c::NOTE_FFLAGSMASK; - - /// Trigger the event. - const TRIGGER = c::NOTE_TRIGGER; - - /// - const _ = !0; - } -} - -/// User-defined flags. -/// -/// Only the lower 24 bits are used in this struct. -#[repr(transparent)] -#[cfg(any(apple, freebsdlike))] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] -pub struct UserDefinedFlags(u32); - -#[cfg(any(apple, freebsdlike))] -impl UserDefinedFlags { - /// Create a new `UserDefinedFlags` from a `u32`. - pub fn new(flags: u32) -> Self { - Self(flags & EVFILT_USER_FLAGS) - } - - /// Get the underlying `u32`. - pub fn get(self) -> u32 { - self.0 - } -} - -/// `kqueue()`—Create a new `kqueue` file descriptor. -/// -/// # References -/// - [Apple] -/// - [FreeBSD] -/// - [OpenBSD] -/// - [NetBSD] -/// - [DragonFly BSD] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/kqueue.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 -/// [OpenBSD]: https://man.openbsd.org/kqueue.2 -/// [NetBSD]: https://man.netbsd.org/kqueue.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=kqueue§ion=2 -pub fn kqueue() -> io::Result { - syscalls::kqueue() -} - -/// `kevent(kqueue, changelist, eventlist, timeout)`—Wait for events on a -/// `kqueue`. -/// -/// Note: in order to receive events, make sure to allocate capacity in the -/// eventlist! Otherwise, the function will return immediately. -/// -/// # Safety -/// -/// The file descriptors referred to by the `Event` structs must be valid for -/// the lifetime of the `kqueue` file descriptor. -/// -/// # References -/// - [Apple] -/// - [FreeBSD] -/// - [OpenBSD] -/// - [NetBSD] -/// - [DragonFly BSD] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/kevent.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=kevent&sektion=2 -/// [OpenBSD]: https://man.openbsd.org/kevent.2 -/// [NetBSD]: https://man.netbsd.org/kevent.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=kevent§ion=2 -pub unsafe fn kevent( - kqueue: impl AsFd, - changelist: &[Event], - eventlist: &mut Vec, - timeout: Option, -) -> io::Result { - let timeout = timeout.map(|timeout| backend::c::timespec { - tv_sec: timeout.as_secs() as _, - tv_nsec: timeout.subsec_nanos() as _, - }); - - // Populate the event list with events. - eventlist.set_len(0); - let out_slice = slice_from_raw_parts_mut(eventlist.as_mut_ptr().cast(), eventlist.capacity()); - let res = syscalls::kevent( - kqueue.as_fd(), - changelist, - &mut *out_slice, - timeout.as_ref(), - ) - .map(|res| res as _); - - // Update the event list. - if let Ok(len) = res { - eventlist.set_len(len); - } - - res -} diff --git a/third_party/rust/rustix/src/event/mod.rs b/third_party/rust/rustix/src/event/mod.rs deleted file mode 100644 index 03abc9f12346..000000000000 --- a/third_party/rust/rustix/src/event/mod.rs +++ /dev/null @@ -1,25 +0,0 @@ -//! Event operations. - -#[cfg(any( - linux_kernel, - target_os = "freebsd", - target_os = "illumos", - target_os = "espidf" -))] -mod eventfd; -#[cfg(all(feature = "alloc", bsd))] -pub mod kqueue; -mod poll; -#[cfg(solarish)] -pub mod port; - -#[cfg(all(feature = "alloc", linux_kernel))] -pub use crate::backend::event::epoll; -#[cfg(any( - linux_kernel, - target_os = "freebsd", - target_os = "illumos", - target_os = "espidf" -))] -pub use eventfd::{eventfd, EventfdFlags}; -pub use poll::{poll, PollFd, PollFlags}; diff --git a/third_party/rust/rustix/src/event/poll.rs b/third_party/rust/rustix/src/event/poll.rs deleted file mode 100644 index 2ee40521f3c5..000000000000 --- a/third_party/rust/rustix/src/event/poll.rs +++ /dev/null @@ -1,32 +0,0 @@ -use crate::{backend, io}; - -pub use backend::event::poll_fd::{PollFd, PollFlags}; - -/// `poll(self.fds, timeout)` -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/slightly-advanced-techniques.html#poll -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html -/// [Linux]: https://man7.org/linux/man-pages/man2/poll.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/poll.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsapoll -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=poll&sektion=2 -/// [NetBSD]: https://man.netbsd.org/poll.2 -/// [OpenBSD]: https://man.openbsd.org/poll.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=poll§ion=2 -/// [illumos]: https://illumos.org/man/2/poll -#[inline] -pub fn poll(fds: &mut [PollFd<'_>], timeout: i32) -> io::Result { - backend::event::syscalls::poll(fds, timeout) -} diff --git a/third_party/rust/rustix/src/event/port.rs b/third_party/rust/rustix/src/event/port.rs deleted file mode 100644 index 39fe5ac16af2..000000000000 --- a/third_party/rust/rustix/src/event/port.rs +++ /dev/null @@ -1,151 +0,0 @@ -//! Solaris/illumos event ports. - -use crate::backend::c; -use crate::backend::event::syscalls; -use crate::fd::{AsFd, AsRawFd, OwnedFd}; -use crate::io; - -use super::PollFlags; - -use core::time::Duration; - -/// The structure representing a port event. -#[repr(transparent)] -pub struct Event(pub(crate) c::port_event); - -impl Event { - /// Get the events associated with this event. - pub fn events(&self) -> i32 { - self.0.portev_events - } - - /// Get the event source associated with this event. - pub fn object(&self) -> usize { - self.0.portev_object - } - - /// Get the userdata associated with this event. - pub fn userdata(&self) -> *mut c::c_void { - self.0.portev_user - } -} - -/// `port_create()`—Creates a new port. -/// -/// # References -/// - [OpenSolaris] -/// - [illumos] -/// -/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_create/ -/// [illumos]: https://illumos.org/man/3C/port_create -pub fn port_create() -> io::Result { - syscalls::port_create() -} - -/// `port_associate(_, PORT_SOURCE_FD, _, _, _)`—Associates a file descriptor -/// with a port. -/// -/// # Safety -/// -/// Any `object`s passed into the `port` must be valid for the lifetime of the -/// `port`. Logically, `port` keeps a borrowed reference to the `object` until -/// it is removed via `port_dissociate_fd`. -/// -/// # References -/// - [OpenSolaris] -/// - [illumos] -/// -/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_associate/ -/// [illumos]: https://illumos.org/man/3C/port_associate -pub unsafe fn port_associate_fd( - port: impl AsFd, - object: impl AsRawFd, - events: PollFlags, - userdata: *mut c::c_void, -) -> io::Result<()> { - syscalls::port_associate( - port.as_fd(), - c::PORT_SOURCE_FD, - object.as_raw_fd() as _, - events.bits() as _, - userdata.cast(), - ) -} - -/// `port_dissociate(_, PORT_SOURCE_FD, _)`—Dissociates a file descriptor -/// from a port. -/// -/// # Safety -/// -/// The file descriptor passed into this function must have been previously -/// associated with the port via [`port_associate_fd`]. -/// -/// # References -/// - [OpenSolaris] -/// - [illumos] -/// -/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_dissociate -/// [illumos]: https://illumos.org/man/3C/port_dissociate -pub unsafe fn port_dissociate_fd(port: impl AsFd, object: impl AsRawFd) -> io::Result<()> { - syscalls::port_dissociate(port.as_fd(), c::PORT_SOURCE_FD, object.as_raw_fd() as _) -} - -/// `port_get(port, timeout)`—Gets an event from a port. -/// -/// # References -/// - [OpenSolaris] -/// - [illumos] -/// -/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_get/ -/// [illumos]: https://illumos.org/man/3C/port_get -pub fn port_get(port: impl AsFd, timeout: Option) -> io::Result { - let mut timeout = timeout.map(|timeout| c::timespec { - tv_sec: timeout.as_secs().try_into().unwrap(), - tv_nsec: timeout.subsec_nanos() as _, - }); - - syscalls::port_get(port.as_fd(), timeout.as_mut()) -} - -/// `port_getn(port, events, min_events, timeout)`—Gets multiple events from a -/// port. -/// -/// # References -/// - [OpenSolaris] -/// - [illumos] -/// -/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_getn/ -/// [illumos]: https://illumos.org/man/3C/port_getn -#[cfg(feature = "alloc")] -pub fn port_getn( - port: impl AsFd, - events: &mut Vec, - min_events: usize, - timeout: Option, -) -> io::Result<()> { - events.clear(); - - let mut timeout = timeout.map(|timeout| c::timespec { - tv_sec: timeout.as_secs().try_into().unwrap(), - tv_nsec: timeout.subsec_nanos() as _, - }); - - syscalls::port_getn( - port.as_fd(), - timeout.as_mut(), - events, - min_events.try_into().unwrap(), - ) -} - -/// `port_send(port, events, userdata)`—Sends an event to a port. -/// -/// # References -/// - [OpenSolaris] -/// - [illumos] -/// -/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_send/ -/// [illumos]: https://illumos.org/man/3C/port_send -pub fn port_send(port: impl AsFd, events: i32, userdata: *mut c::c_void) -> io::Result<()> { - syscalls::port_send(port.as_fd(), events, userdata.cast()) -} diff --git a/third_party/rust/rustix/src/ffi.rs b/third_party/rust/rustix/src/ffi.rs deleted file mode 100644 index ef9f87d81020..000000000000 --- a/third_party/rust/rustix/src/ffi.rs +++ /dev/null @@ -1,15 +0,0 @@ -//! Utilities related to FFI bindings. - -// If we have std, use it. -#[cfg(feature = "std")] -pub use { - std::ffi::{CStr, CString, FromBytesWithNulError, NulError}, - std::os::raw::c_char, -}; - -// If we don't have std, we can depend on core and alloc having these features -// in Rust 1.64+. -#[cfg(all(feature = "alloc", not(feature = "std")))] -pub use alloc::ffi::{CString, NulError}; -#[cfg(not(feature = "std"))] -pub use core::ffi::{c_char, CStr, FromBytesWithNulError}; diff --git a/third_party/rust/rustix/src/fs/abs.rs b/third_party/rust/rustix/src/fs/abs.rs deleted file mode 100644 index b61224f2c9cb..000000000000 --- a/third_party/rust/rustix/src/fs/abs.rs +++ /dev/null @@ -1,282 +0,0 @@ -//! POSIX-style filesystem functions which operate on bare paths. - -use crate::fd::OwnedFd; -#[cfg(not(target_os = "espidf"))] -use crate::fs::Access; -#[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -use crate::fs::StatFs; -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -use crate::fs::StatVfs; -use crate::fs::{Mode, OFlags, Stat}; -use crate::{backend, io, path}; -#[cfg(feature = "alloc")] -use { - crate::ffi::{CStr, CString}, - crate::path::SMALL_PATH_BUFFER_SIZE, - alloc::vec::Vec, -}; - -/// `open(path, oflags, mode)`—Opens a file. -/// -/// POSIX guarantees that `open` will use the lowest unused file descriptor, -/// however it is not safe in general to rely on this, as file descriptors may -/// be unexpectedly allocated on other threads or in libraries. -/// -/// The `Mode` argument is only significant when creating a file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html -/// [Linux]: https://man7.org/linux/man-pages/man2/open.2.html -#[inline] -pub fn open(path: P, flags: OFlags, mode: Mode) -> io::Result { - path.into_with_c_str(|path| backend::fs::syscalls::open(path, flags, mode)) -} - -/// `chmod(path, mode)`—Sets file or directory permissions. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chmod.html -/// [Linux]: https://man7.org/linux/man-pages/man2/chmod.2.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn chmod(path: P, mode: Mode) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::chmod(path, mode)) -} - -/// `stat(path)`—Queries metadata for a file or directory. -/// -/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to -/// interpret the `st_mode` field. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/stat.2.html -/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode -/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode -#[inline] -pub fn stat(path: P) -> io::Result { - path.into_with_c_str(backend::fs::syscalls::stat) -} - -/// `lstat(path)`—Queries metadata for a file or directory, without following -/// symlinks. -/// -/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to -/// interpret the `st_mode` field. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lstat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/lstat.2.html -/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode -/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode -#[inline] -pub fn lstat(path: P) -> io::Result { - path.into_with_c_str(backend::fs::syscalls::lstat) -} - -/// `readlink(path)`—Reads the contents of a symlink. -/// -/// If `reuse` is non-empty, reuse its buffer to store the result if possible. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html -/// [Linux]: https://man7.org/linux/man-pages/man2/readlink.2.html -#[cfg(feature = "alloc")] -#[inline] -pub fn readlink>>(path: P, reuse: B) -> io::Result { - path.into_with_c_str(|path| _readlink(path, reuse.into())) -} - -#[cfg(feature = "alloc")] -fn _readlink(path: &CStr, mut buffer: Vec) -> io::Result { - // This code would benefit from having a better way to read into - // uninitialized memory, but that requires `unsafe`. - buffer.clear(); - buffer.reserve(SMALL_PATH_BUFFER_SIZE); - buffer.resize(buffer.capacity(), 0_u8); - - loop { - let nread = backend::fs::syscalls::readlink(path, &mut buffer)?; - - let nread = nread as usize; - assert!(nread <= buffer.len()); - if nread < buffer.len() { - buffer.resize(nread, 0_u8); - return Ok(CString::new(buffer).unwrap()); - } - buffer.reserve(1); // use `Vec` reallocation strategy to grow capacity exponentially - buffer.resize(buffer.capacity(), 0_u8); - } -} - -/// `rename(old_path, new_path)`—Renames a file or directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html -/// [Linux]: https://man7.org/linux/man-pages/man2/rename.2.html -#[inline] -pub fn rename(old_path: P, new_path: Q) -> io::Result<()> { - old_path.into_with_c_str(|old_path| { - new_path.into_with_c_str(|new_path| backend::fs::syscalls::rename(old_path, new_path)) - }) -} - -/// `unlink(path)`—Unlinks a file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlink.html -/// [Linux]: https://man7.org/linux/man-pages/man2/unlink.2.html -#[inline] -pub fn unlink(path: P) -> io::Result<()> { - path.into_with_c_str(backend::fs::syscalls::unlink) -} - -/// `rmdir(path)`—Removes a directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/rmdir.html -/// [Linux]: https://man7.org/linux/man-pages/man2/rmdir.2.html -#[inline] -pub fn rmdir(path: P) -> io::Result<()> { - path.into_with_c_str(backend::fs::syscalls::rmdir) -} - -/// `link(old_path, new_path)`—Creates a hard link. -/// -/// POSIX leaves it implementation-defined whether `link` follows a symlink in -/// `old_path`, or creates a new link to the symbolic link itself. On platforms -/// which have it, [`linkat`] avoids this problem since it has an [`AtFlags`] -/// paramter and the [`AtFlags::SYMLINK_FOLLOW`] flag determines whether -/// symlinks should be followed. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html -/// [Linux]: https://man7.org/linux/man-pages/man2/link.2.html -/// [`linkat`]: crate::fs::linkat -/// [`AtFlags`]: crate::fs::AtFlags -/// [`AtFlags::SYMLINK_FOLLOW`]: crate::fs::AtFlags::SYMLINK_FOLLOW -#[inline] -pub fn link(old_path: P, new_path: Q) -> io::Result<()> { - old_path.into_with_c_str(|old_path| { - new_path.into_with_c_str(|new_path| backend::fs::syscalls::link(old_path, new_path)) - }) -} - -/// `symlink(old_path, new_path)`—Creates a symlink. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/symlink.html -/// [Linux]: https://man7.org/linux/man-pages/man2/symlink.2.html -#[inline] -pub fn symlink(old_path: P, new_path: Q) -> io::Result<()> { - old_path.into_with_c_str(|old_path| { - new_path.into_with_c_str(|new_path| backend::fs::syscalls::symlink(old_path, new_path)) - }) -} - -/// `mkdir(path, mode)`—Creates a directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html -/// [Linux]: https://man7.org/linux/man-pages/man2/mkdir.2.html -#[inline] -pub fn mkdir(path: P, mode: Mode) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::mkdir(path, mode)) -} - -/// `access(path, access)`—Tests permissions for a file or directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html -/// [Linux]: https://man7.org/linux/man-pages/man2/access.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn access(path: P, access: Access) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::access(path, access)) -} - -/// `statfs`—Queries filesystem metadata. -/// -/// Compared to [`statvfs`], this function often provides more information, -/// though it's less portable. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/statfs.2.html -#[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub fn statfs(path: P) -> io::Result { - path.into_with_c_str(backend::fs::syscalls::statfs) -} - -/// `statvfs`—Queries filesystem metadata, POSIX version. -/// -/// Compared to [`statfs`], this function often provides less information, -/// but it is more portable. But even so, filesystems are very diverse and not -/// all the fields are meaningful for every filesystem. And `f_fsid` doesn't -/// seem to have a clear meaning anywhere. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/statvfs.html -/// [Linux]: https://man7.org/linux/man-pages/man2/statvfs.2.html -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -#[inline] -pub fn statvfs(path: P) -> io::Result { - path.into_with_c_str(backend::fs::syscalls::statvfs) -} diff --git a/third_party/rust/rustix/src/fs/at.rs b/third_party/rust/rustix/src/fs/at.rs deleted file mode 100644 index 36450da21b8e..000000000000 --- a/third_party/rust/rustix/src/fs/at.rs +++ /dev/null @@ -1,432 +0,0 @@ -//! POSIX-style `*at` functions. -//! -//! The `dirfd` argument to these functions may be a file descriptor for a -//! directory, or the special value [`CWD`]. -//! -//! [`cwd`]: crate::fs::CWD - -use crate::fd::OwnedFd; -#[cfg(apple)] -use crate::fs::CloneFlags; -#[cfg(not(any(apple, target_os = "espidf", target_os = "wasi")))] -use crate::fs::FileType; -#[cfg(linux_kernel)] -use crate::fs::RenameFlags; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -use crate::fs::{Gid, Uid}; -use crate::fs::{Mode, OFlags}; -use crate::{backend, io, path}; -use backend::fd::AsFd; -#[cfg(feature = "alloc")] -use { - crate::ffi::{CStr, CString}, - crate::path::SMALL_PATH_BUFFER_SIZE, - alloc::vec::Vec, - backend::fd::BorrowedFd, -}; -#[cfg(not(target_os = "espidf"))] -use { - crate::fs::{Access, AtFlags, Stat, Timestamps}, - crate::timespec::Nsecs, -}; - -pub use backend::fs::types::{Dev, RawMode}; - -/// `UTIME_NOW` for use with [`utimensat`]. -/// -/// [`utimensat`]: crate::fs::utimensat -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -pub const UTIME_NOW: Nsecs = backend::c::UTIME_NOW as Nsecs; - -/// `UTIME_OMIT` for use with [`utimensat`]. -/// -/// [`utimensat`]: crate::fs::utimensat -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -pub const UTIME_OMIT: Nsecs = backend::c::UTIME_OMIT as Nsecs; - -/// `openat(dirfd, path, oflags, mode)`—Opens a file. -/// -/// POSIX guarantees that `openat` will use the lowest unused file descriptor, -/// however it is not safe in general to rely on this, as file descriptors may -/// be unexpectedly allocated on other threads or in libraries. -/// -/// The `Mode` argument is only significant when creating a file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/openat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/openat.2.html -#[inline] -pub fn openat( - dirfd: Fd, - path: P, - oflags: OFlags, - create_mode: Mode, -) -> io::Result { - path.into_with_c_str(|path| { - backend::fs::syscalls::openat(dirfd.as_fd(), path, oflags, create_mode) - }) -} - -/// `readlinkat(fd, path)`—Reads the contents of a symlink. -/// -/// If `reuse` already has available capacity, reuse it if possible. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/readlinkat.2.html -#[cfg(feature = "alloc")] -#[inline] -pub fn readlinkat>>( - dirfd: Fd, - path: P, - reuse: B, -) -> io::Result { - path.into_with_c_str(|path| _readlinkat(dirfd.as_fd(), path, reuse.into())) -} - -#[cfg(feature = "alloc")] -#[allow(unsafe_code)] -fn _readlinkat(dirfd: BorrowedFd<'_>, path: &CStr, mut buffer: Vec) -> io::Result { - buffer.clear(); - buffer.reserve(SMALL_PATH_BUFFER_SIZE); - - loop { - let nread = - backend::fs::syscalls::readlinkat(dirfd.as_fd(), path, buffer.spare_capacity_mut())?; - - debug_assert!(nread <= buffer.capacity()); - if nread < buffer.capacity() { - // SAFETY: From the [documentation]: - // "On success, these calls return the number of bytes placed in buf." - // - // [documentation]: https://man7.org/linux/man-pages/man2/readlinkat.2.html - unsafe { - buffer.set_len(nread); - } - - // SAFETY: - // - "readlink places the contents of the symbolic link pathname in the buffer - // buf" - // - [POSIX definition 3.271: Pathname]: "A string that is used to identify a - // file." - // - [POSIX definition 3.375: String]: "A contiguous sequence of bytes - // terminated by and including the first null byte." - // - "readlink does not append a terminating null byte to buf." - // - // Thus, there will be no NUL bytes in the string. - // - // [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271 - // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_375 - unsafe { - return Ok(CString::from_vec_unchecked(buffer)); - } - } - - buffer.reserve(buffer.capacity() + 1); // use `Vec` reallocation - // strategy to grow capacity - // exponentially - } -} - -/// `mkdirat(fd, path, mode)`—Creates a directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdirat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/mkdirat.2.html -#[inline] -pub fn mkdirat(dirfd: Fd, path: P, mode: Mode) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::mkdirat(dirfd.as_fd(), path, mode)) -} - -/// `linkat(old_dirfd, old_path, new_dirfd, new_path, flags)`—Creates a hard -/// link. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/linkat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/linkat.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn linkat( - old_dirfd: PFd, - old_path: P, - new_dirfd: QFd, - new_path: Q, - flags: AtFlags, -) -> io::Result<()> { - old_path.into_with_c_str(|old_path| { - new_path.into_with_c_str(|new_path| { - backend::fs::syscalls::linkat( - old_dirfd.as_fd(), - old_path, - new_dirfd.as_fd(), - new_path, - flags, - ) - }) - }) -} - -/// `unlinkat(fd, path, flags)`—Unlinks a file or remove a directory. -/// -/// With the [`REMOVEDIR`] flag, this removes a directory. This is in place -/// of a `rmdirat` function. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [`REMOVEDIR`]: AtFlags::REMOVEDIR -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlinkat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/unlinkat.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn unlinkat(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::unlinkat(dirfd.as_fd(), path, flags)) -} - -/// `renameat(old_dirfd, old_path, new_dirfd, new_path)`—Renames a file or -/// directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/renameat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/renameat.2.html -#[inline] -pub fn renameat( - old_dirfd: PFd, - old_path: P, - new_dirfd: QFd, - new_path: Q, -) -> io::Result<()> { - old_path.into_with_c_str(|old_path| { - new_path.into_with_c_str(|new_path| { - backend::fs::syscalls::renameat( - old_dirfd.as_fd(), - old_path, - new_dirfd.as_fd(), - new_path, - ) - }) - }) -} - -/// `renameat2(old_dirfd, old_path, new_dirfd, new_path, flags)`—Renames a -/// file or directory. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/renameat2.2.html -#[cfg(linux_kernel)] -#[inline] -#[doc(alias = "renameat2")] -pub fn renameat_with( - old_dirfd: PFd, - old_path: P, - new_dirfd: QFd, - new_path: Q, - flags: RenameFlags, -) -> io::Result<()> { - old_path.into_with_c_str(|old_path| { - new_path.into_with_c_str(|new_path| { - backend::fs::syscalls::renameat2( - old_dirfd.as_fd(), - old_path, - new_dirfd.as_fd(), - new_path, - flags, - ) - }) - }) -} - -/// `symlinkat(old_path, new_dirfd, new_path)`—Creates a symlink. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/symlinkat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/symlinkat.2.html -#[inline] -pub fn symlinkat( - old_path: P, - new_dirfd: Fd, - new_path: Q, -) -> io::Result<()> { - old_path.into_with_c_str(|old_path| { - new_path.into_with_c_str(|new_path| { - backend::fs::syscalls::symlinkat(old_path, new_dirfd.as_fd(), new_path) - }) - }) -} - -/// `fstatat(dirfd, path, flags)`—Queries metadata for a file or directory. -/// -/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to -/// interpret the `st_mode` field. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstatat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fstatat.2.html -/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode -/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "fstatat")] -pub fn statat(dirfd: Fd, path: P, flags: AtFlags) -> io::Result { - path.into_with_c_str(|path| backend::fs::syscalls::statat(dirfd.as_fd(), path, flags)) -} - -/// `faccessat(dirfd, path, access, flags)`—Tests permissions for a file or -/// directory. -/// -/// On Linux before 5.8, this function uses the `faccessat` system call which -/// doesn't support any flags. This function emulates support for the -/// [`AtFlags::EACCESS`] flag by checking whether the uid and gid of the -/// process match the effective uid and gid, in which case the `EACCESS` flag -/// can be ignored. In Linux 5.8 and beyond `faccessat2` is used, which -/// supports flags. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/faccessat.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "faccessat")] -pub fn accessat( - dirfd: Fd, - path: P, - access: Access, - flags: AtFlags, -) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::accessat(dirfd.as_fd(), path, access, flags)) -} - -/// `utimensat(dirfd, path, times, flags)`—Sets file or directory timestamps. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/utimensat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn utimensat( - dirfd: Fd, - path: P, - times: &Timestamps, - flags: AtFlags, -) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::utimensat(dirfd.as_fd(), path, times, flags)) -} - -/// `fchmodat(dirfd, path, mode, flags)`—Sets file or directory permissions. -/// -/// Platform support for flags varies widely, for example on Linux -/// [`AtFlags::SYMLINK_NOFOLLOW`] is not implemented and therefore -/// [`io::Errno::OPNOTSUPP`] will be returned. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchmodat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fchmodat.2.html -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -#[doc(alias = "fchmodat")] -pub fn chmodat( - dirfd: Fd, - path: P, - mode: Mode, - flags: AtFlags, -) -> io::Result<()> { - path.into_with_c_str(|path| backend::fs::syscalls::chmodat(dirfd.as_fd(), path, mode, flags)) -} - -/// `fclonefileat(src, dst_dir, dst, flags)`—Efficiently copies between files. -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://opensource.apple.com/source/xnu/xnu-3789.21.4/bsd/man/man2/clonefile.2.auto.html -#[cfg(apple)] -#[inline] -pub fn fclonefileat( - src: Fd, - dst_dir: DstFd, - dst: P, - flags: CloneFlags, -) -> io::Result<()> { - dst.into_with_c_str(|dst| { - backend::fs::syscalls::fclonefileat(src.as_fd(), dst_dir.as_fd(), dst, flags) - }) -} - -/// `mknodat(dirfd, path, mode, dev)`—Creates special or normal files. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mknodat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/mknodat.2.html -#[cfg(not(any(apple, target_os = "espidf", target_os = "wasi")))] -#[inline] -pub fn mknodat( - dirfd: Fd, - path: P, - file_type: FileType, - mode: Mode, - dev: Dev, -) -> io::Result<()> { - path.into_with_c_str(|path| { - backend::fs::syscalls::mknodat(dirfd.as_fd(), path, file_type, mode, dev) - }) -} - -/// `fchownat(dirfd, path, owner, group, flags)`—Sets file or directory -/// ownership. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchownat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fchownat.2.html -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -#[doc(alias = "fchownat")] -pub fn chownat( - dirfd: Fd, - path: P, - owner: Option, - group: Option, - flags: AtFlags, -) -> io::Result<()> { - path.into_with_c_str(|path| { - backend::fs::syscalls::chownat(dirfd.as_fd(), path, owner, group, flags) - }) -} diff --git a/third_party/rust/rustix/src/fs/constants.rs b/third_party/rust/rustix/src/fs/constants.rs deleted file mode 100644 index 85889d90e4d4..000000000000 --- a/third_party/rust/rustix/src/fs/constants.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! Filesystem API constants, translated into `bitflags` constants. - -use crate::backend; - -pub use crate::io::FdFlags; -#[cfg(not(target_os = "espidf"))] -pub use backend::fs::types::Access; -pub use backend::fs::types::{Dev, Mode, OFlags}; - -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -pub use backend::fs::types::AtFlags; - -#[cfg(apple)] -pub use backend::fs::types::{CloneFlags, CopyfileFlags}; - -#[cfg(linux_kernel)] -pub use backend::fs::types::*; - -pub use crate::timespec::{Nsecs, Secs, Timespec}; diff --git a/third_party/rust/rustix/src/fs/copy_file_range.rs b/third_party/rust/rustix/src/fs/copy_file_range.rs deleted file mode 100644 index b927d572b720..000000000000 --- a/third_party/rust/rustix/src/fs/copy_file_range.rs +++ /dev/null @@ -1,20 +0,0 @@ -use crate::{backend, io}; -use backend::fd::AsFd; - -/// `copy_file_range(fd_in, off_in, fd_out, off_out, len, 0)`—Copies data -/// from one file to another. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/copy_file_range.2.html -#[inline] -pub fn copy_file_range( - fd_in: InFd, - off_in: Option<&mut u64>, - fd_out: OutFd, - off_out: Option<&mut u64>, - len: usize, -) -> io::Result { - backend::fs::syscalls::copy_file_range(fd_in.as_fd(), off_in, fd_out.as_fd(), off_out, len) -} diff --git a/third_party/rust/rustix/src/fs/cwd.rs b/third_party/rust/rustix/src/fs/cwd.rs deleted file mode 100644 index e66360e431b9..000000000000 --- a/third_party/rust/rustix/src/fs/cwd.rs +++ /dev/null @@ -1,39 +0,0 @@ -//! The `cwd` function, representing the current working directory. -//! -//! # Safety -//! -//! This file uses `AT_FDCWD`, which is a raw file descriptor, but which is -//! always valid. - -#![allow(unsafe_code)] - -use crate::backend; -use backend::c; -use backend::fd::{BorrowedFd, RawFd}; - -/// `AT_FDCWD`—A handle representing the current working directory. -/// -/// This is a file descriptor which refers to the process current directory -/// which can be used as the directory argument in `*at` functions such as -/// [`openat`]. -/// -/// # References -/// - [POSIX] -/// -/// [`openat`]: crate::fs::openat -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html -// SAFETY: `AT_FDCWD` is a reserved value that is never dynamically -// allocated, so it'll remain valid for the duration of `'static`. -#[doc(alias = "AT_FDCWD")] -pub const CWD: BorrowedFd<'static> = - unsafe { BorrowedFd::<'static>::borrow_raw(c::AT_FDCWD as RawFd) }; - -/// Return the value of [`CWD`]. -#[deprecated(note = "Use `CWD` in place of `cwd()`.")] -pub const fn cwd() -> BorrowedFd<'static> { - let at_fdcwd = c::AT_FDCWD as RawFd; - - // SAFETY: `AT_FDCWD` is a reserved value that is never dynamically - // allocated, so it'll remain valid for the duration of `'static`. - unsafe { BorrowedFd::<'static>::borrow_raw(at_fdcwd) } -} diff --git a/third_party/rust/rustix/src/fs/dir.rs b/third_party/rust/rustix/src/fs/dir.rs deleted file mode 100644 index b3e1e3b999d9..000000000000 --- a/third_party/rust/rustix/src/fs/dir.rs +++ /dev/null @@ -1,5 +0,0 @@ -//! `Dir` and `DirEntry`. - -use crate::backend; - -pub use backend::fs::dir::{Dir, DirEntry}; diff --git a/third_party/rust/rustix/src/fs/fadvise.rs b/third_party/rust/rustix/src/fs/fadvise.rs deleted file mode 100644 index 5bc3a588a07b..000000000000 --- a/third_party/rust/rustix/src/fs/fadvise.rs +++ /dev/null @@ -1,19 +0,0 @@ -use crate::{backend, io}; -use backend::fd::AsFd; - -pub use backend::fs::types::Advice; - -/// `posix_fadvise(fd, offset, len, advice)`—Declares an expected access -/// pattern for a file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_fadvise.html -/// [Linux]: https://man7.org/linux/man-pages/man2/posix_fadvise.2.html -#[inline] -#[doc(alias = "posix_fadvise")] -pub fn fadvise(fd: Fd, offset: u64, len: u64, advice: Advice) -> io::Result<()> { - backend::fs::syscalls::fadvise(fd.as_fd(), offset, len, advice) -} diff --git a/third_party/rust/rustix/src/fs/fcntl.rs b/third_party/rust/rustix/src/fs/fcntl.rs deleted file mode 100644 index facbc9fa39f2..000000000000 --- a/third_party/rust/rustix/src/fs/fcntl.rs +++ /dev/null @@ -1,110 +0,0 @@ -//! The Unix `fcntl` function is effectively lots of different functions -//! hidden behind a single dynamic dispatch interface. In order to provide -//! a type-safe API, rustix makes them all separate functions so that they -//! can have dedicated static type signatures. - -#[cfg(not(any( - target_os = "emscripten", - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -use crate::fs::FlockOperation; -use crate::{backend, io}; -use backend::fd::AsFd; -use backend::fs::types::OFlags; - -// These `fcntl` functions live in the `io` module because they're not specific -// to files, directories, or memfd objects. We re-export them here in the `fs` -// module because the other the `fcntl` functions are here. -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub use crate::io::fcntl_dupfd_cloexec; -pub use crate::io::{fcntl_getfd, fcntl_setfd}; - -/// `fcntl(fd, F_GETFL)`—Returns a file descriptor's access mode and status. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -#[inline] -#[doc(alias = "F_GETFL")] -pub fn fcntl_getfl(fd: Fd) -> io::Result { - backend::fs::syscalls::fcntl_getfl(fd.as_fd()) -} - -/// `fcntl(fd, F_SETFL, flags)`—Sets a file descriptor's status. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -#[inline] -#[doc(alias = "F_SETFL")] -pub fn fcntl_setfl(fd: Fd, flags: OFlags) -> io::Result<()> { - backend::fs::syscalls::fcntl_setfl(fd.as_fd(), flags) -} - -/// `fcntl(fd, F_GET_SEALS)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] -#[inline] -#[doc(alias = "F_GET_SEALS")] -pub fn fcntl_get_seals(fd: Fd) -> io::Result { - backend::fs::syscalls::fcntl_get_seals(fd.as_fd()) -} - -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] -pub use backend::fs::types::SealFlags; - -/// `fcntl(fd, F_ADD_SEALS)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] -#[inline] -#[doc(alias = "F_ADD_SEALS")] -pub fn fcntl_add_seals(fd: Fd, seals: SealFlags) -> io::Result<()> { - backend::fs::syscalls::fcntl_add_seals(fd.as_fd(), seals) -} - -/// `fcntl(fd, F_SETLK)`—Acquire or release an `fcntl`-style lock. -/// -/// This function doesn't currently have an offset or len; it currently always -/// sets the `l_len` field to 0, which is a special case that means the entire -/// file should be locked. -/// -/// Unlike `flock`-style locks, `fcntl`-style locks are process-associated, -/// meaning that they don't guard against being acquired by two threads in -/// the same process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -#[cfg(not(any( - target_os = "emscripten", - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -#[inline] -#[doc(alias = "F_SETLK")] -#[doc(alias = "F_SETLKW")] -pub fn fcntl_lock(fd: Fd, operation: FlockOperation) -> io::Result<()> { - backend::fs::syscalls::fcntl_lock(fd.as_fd(), operation) -} diff --git a/third_party/rust/rustix/src/fs/fcntl_apple.rs b/third_party/rust/rustix/src/fs/fcntl_apple.rs deleted file mode 100644 index a32e46d74739..000000000000 --- a/third_party/rust/rustix/src/fs/fcntl_apple.rs +++ /dev/null @@ -1,66 +0,0 @@ -use crate::{backend, io}; -use backend::fd::AsFd; - -/// `fcntl(fd, F_RDADVISE, radvisory { offset, len })` -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -#[doc(alias = "F_RDADVISE")] -#[inline] -pub fn fcntl_rdadvise(fd: Fd, offset: u64, len: u64) -> io::Result<()> { - backend::fs::syscalls::fcntl_rdadvise(fd.as_fd(), offset, len) -} - -/// `fcntl(fd, F_FULLFSYNC)` -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -#[doc(alias = "F_FULLSYNC")] -#[inline] -pub fn fcntl_fullfsync(fd: Fd) -> io::Result<()> { - backend::fs::syscalls::fcntl_fullfsync(fd.as_fd()) -} - -/// `fcntl(fd, F_NOCACHE, value)`—Turn data caching off or on for a file -/// descriptor. -/// -/// See [this mailing list post] for additional information about the meanings -/// of `F_NOCACHE` and `F_GLOBAL_NOCACHE`. -/// -/// [this mailing list post]: https://lists.apple.com/archives/filesystem-dev/2007/Sep/msg00010.html -/// -/// See also [`fcntl_global_nocache`]. -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -#[doc(alias = "F_NOCACHE")] -#[inline] -pub fn fcntl_nocache(fd: Fd, value: bool) -> io::Result<()> { - backend::fs::syscalls::fcntl_nocache(fd.as_fd(), value) -} - -/// `fcntl(fd, F_GLOBAL_NOCACHE, value)`—Turn data caching off or on for all -/// file descriptors. -/// -/// See [this mailing list post] for additional information about the meanings -/// of `F_NOCACHE` and `F_GLOBAL_NOCACHE`. -/// -/// [this mailing list post]: https://lists.apple.com/archives/filesystem-dev/2007/Sep/msg00010.html -/// -/// See also [`fcntl_nocache`]. -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -#[doc(alias = "F_GLOBAL_NOCACHE")] -#[inline] -pub fn fcntl_global_nocache(fd: Fd, value: bool) -> io::Result<()> { - backend::fs::syscalls::fcntl_global_nocache(fd.as_fd(), value) -} diff --git a/third_party/rust/rustix/src/fs/fcopyfile.rs b/third_party/rust/rustix/src/fs/fcopyfile.rs deleted file mode 100644 index d8931733fd39..000000000000 --- a/third_party/rust/rustix/src/fs/fcopyfile.rs +++ /dev/null @@ -1,90 +0,0 @@ -use crate::fs::CopyfileFlags; -use crate::{backend, io}; -use backend::fd::AsFd; - -/// `copyfile_state_t` -pub use backend::fs::types::copyfile_state_t; - -/// `fcopyfile(from, to, state, flags)` -/// -/// # Safety -/// -/// The `state` operand must be allocated with `copyfile_state_alloc` and not -/// yet freed with `copyfile_state_free`. -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html -#[inline] -pub unsafe fn fcopyfile( - from: FromFd, - to: ToFd, - state: copyfile_state_t, - flags: CopyfileFlags, -) -> io::Result<()> { - backend::fs::syscalls::fcopyfile(from.as_fd(), to.as_fd(), state, flags) -} - -/// `copyfile_state_alloc()` -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html -#[inline] -pub fn copyfile_state_alloc() -> io::Result { - backend::fs::syscalls::copyfile_state_alloc() -} - -/// `copyfile_state_free(state)` -/// -/// # Safety -/// -/// The `state` operand must be allocated with `copyfile_state_alloc` and not -/// yet freed with `copyfile_state_free`. -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html -#[inline] -pub unsafe fn copyfile_state_free(state: copyfile_state_t) -> io::Result<()> { - backend::fs::syscalls::copyfile_state_free(state) -} - -/// `copyfile_state_get(state, COPYFILE_STATE_COPIED)` -/// -/// # Safety -/// -/// The `state` operand must be allocated with `copyfile_state_alloc` and not -/// yet freed with `copyfile_state_free`. -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html -#[inline] -pub unsafe fn copyfile_state_get_copied(state: copyfile_state_t) -> io::Result { - backend::fs::syscalls::copyfile_state_get_copied(state) -} - -/// `copyfile_state_get(state, flags, dst)` -/// -/// # Safety -/// -/// The `state` operand must be allocated with `copyfile_state_alloc` and not -/// yet freed with `copyfile_state_free`. -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html -#[inline] -pub unsafe fn copyfile_state_get( - state: copyfile_state_t, - flag: u32, - dst: *mut core::ffi::c_void, -) -> io::Result<()> { - backend::fs::syscalls::copyfile_state_get(state, flag, dst) -} diff --git a/third_party/rust/rustix/src/fs/fd.rs b/third_party/rust/rustix/src/fs/fd.rs deleted file mode 100644 index 43b2e57b1267..000000000000 --- a/third_party/rust/rustix/src/fs/fd.rs +++ /dev/null @@ -1,348 +0,0 @@ -//! Functions which operate on file descriptors. - -#[cfg(not(target_os = "wasi"))] -use crate::fs::Mode; -#[cfg(not(target_os = "wasi"))] -use crate::fs::{Gid, Uid}; -use crate::fs::{OFlags, SeekFrom, Timespec}; -use crate::{backend, io}; -use backend::fd::{AsFd, BorrowedFd}; - -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub use backend::fs::types::FlockOperation; - -#[cfg(not(any( - netbsdlike, - solarish, - target_os = "aix", - target_os = "dragonfly", - target_os = "espidf", - target_os = "nto", - target_os = "redox", -)))] -pub use backend::fs::types::FallocateFlags; - -pub use backend::fs::types::Stat; - -#[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -pub use backend::fs::types::StatFs; - -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -pub use backend::fs::types::{StatVfs, StatVfsMountFlags}; - -#[cfg(linux_kernel)] -pub use backend::fs::types::FsWord; - -/// Timestamps used by [`utimensat`] and [`futimens`]. -/// -/// [`utimensat`]: crate::fs::utimensat -/// [`futimens`]: crate::fs::futimens -// This is `repr(C)` and specifically laid out to match the representation used -// by `utimensat` and `futimens`, which expect 2-element arrays of timestamps. -#[repr(C)] -#[derive(Clone, Debug)] -pub struct Timestamps { - /// The timestamp of the last access to a filesystem object. - pub last_access: Timespec, - - /// The timestamp of the last modification of a filesystem object. - pub last_modification: Timespec, -} - -/// The filesystem magic number for procfs. -/// -/// See [the `fstatfs` manual page] for more information. -/// -/// [the `fstatfs` manual page]: https://man7.org/linux/man-pages/man2/fstatfs.2.html#DESCRIPTION -#[cfg(linux_kernel)] -pub const PROC_SUPER_MAGIC: FsWord = backend::c::PROC_SUPER_MAGIC as FsWord; - -/// The filesystem magic number for NFS. -/// -/// See [the `fstatfs` manual page] for more information. -/// -/// [the `fstatfs` manual page]: https://man7.org/linux/man-pages/man2/fstatfs.2.html#DESCRIPTION -#[cfg(linux_kernel)] -pub const NFS_SUPER_MAGIC: FsWord = backend::c::NFS_SUPER_MAGIC as FsWord; - -/// `lseek(fd, offset, whence)`—Repositions a file descriptor within a file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html -/// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html -#[inline] -#[doc(alias = "lseek")] -pub fn seek(fd: Fd, pos: SeekFrom) -> io::Result { - backend::fs::syscalls::seek(fd.as_fd(), pos) -} - -/// `lseek(fd, 0, SEEK_CUR)`—Returns the current position within a file. -/// -/// Return the current position of the file descriptor. This is a subset of -/// the functionality of `seek`, but this interface makes it easier for users -/// to declare their intent not to mutate any state. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html -/// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html -#[inline] -#[doc(alias = "lseek")] -pub fn tell(fd: Fd) -> io::Result { - backend::fs::syscalls::tell(fd.as_fd()) -} - -/// `fchmod(fd)`—Sets open file or directory permissions. -/// -/// This implementation does not support `O_PATH` file descriptors, even on -/// platforms where the host libc emulates it. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchmod.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fchmod.2.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn fchmod(fd: Fd, mode: Mode) -> io::Result<()> { - backend::fs::syscalls::fchmod(fd.as_fd(), mode) -} - -/// `fchown(fd)`—Sets open file or directory ownership. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchown.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fchown.2.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn fchown(fd: Fd, owner: Option, group: Option) -> io::Result<()> { - backend::fs::syscalls::fchown(fd.as_fd(), owner, group) -} - -/// `fstat(fd)`—Queries metadata for an open file or directory. -/// -/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to -/// interpret the `st_mode` field. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fstat.2.html -/// [`Mode::from_raw_mode`]: Mode::from_raw_mode -/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode -#[inline] -pub fn fstat(fd: Fd) -> io::Result { - backend::fs::syscalls::fstat(fd.as_fd()) -} - -/// `fstatfs(fd)`—Queries filesystem statistics for an open file or directory. -/// -/// Compared to [`fstatvfs`], this function often provides more information, -/// though it's less portable. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fstatfs.2.html -#[cfg(not(any( - solarish, - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub fn fstatfs(fd: Fd) -> io::Result { - backend::fs::syscalls::fstatfs(fd.as_fd()) -} - -/// `fstatvfs(fd)`—Queries filesystem statistics for an open file or -/// directory, POSIX version. -/// -/// Compared to [`fstatfs`], this function often provides less information, -/// but it is more portable. But even so, filesystems are very diverse and not -/// all the fields are meaningful for every filesystem. And `f_fsid` doesn't -/// seem to have a clear meaning anywhere. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstatvfs.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fstatvfs.2.html -#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] -#[inline] -pub fn fstatvfs(fd: Fd) -> io::Result { - backend::fs::syscalls::fstatvfs(fd.as_fd()) -} - -/// `futimens(fd, times)`—Sets timestamps for an open file or directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html -/// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn futimens(fd: Fd, times: &Timestamps) -> io::Result<()> { - backend::fs::syscalls::futimens(fd.as_fd(), times) -} - -/// `fallocate(fd, mode, offset, len)`—Adjusts file allocation. -/// -/// This is a more general form of `posix_fallocate`, adding a `mode` argument -/// which modifies the behavior. On platforms which only support -/// `posix_fallocate` and not the more general form, no `FallocateFlags` values -/// are defined so it will always be empty. -/// -/// # References -/// - [POSIX] -/// - [Linux `fallocate`] -/// - [Linux `posix_fallocate`] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_fallocate.html -/// [Linux `fallocate`]: https://man7.org/linux/man-pages/man2/fallocate.2.html -/// [Linux `posix_fallocate`]: https://man7.org/linux/man-pages/man3/posix_fallocate.3.html -#[cfg(not(any( - netbsdlike, - solarish, - target_os = "aix", - target_os = "dragonfly", - target_os = "espidf", - target_os = "nto", - target_os = "redox", -)))] // not implemented in libc for netbsd yet -#[inline] -#[doc(alias = "posix_fallocate")] -pub fn fallocate(fd: Fd, mode: FallocateFlags, offset: u64, len: u64) -> io::Result<()> { - backend::fs::syscalls::fallocate(fd.as_fd(), mode, offset, len) -} - -/// `fcntl(fd, F_GETFL) & O_ACCMODE` -/// -/// Returns a pair of booleans indicating whether the file descriptor is -/// readable and/or writable, respectively. This is only reliable on files; for -/// example, it doesn't reflect whether sockets have been shut down; for -/// general I/O handle support, use [`io::is_read_write`]. -#[inline] -pub fn is_file_read_write(fd: Fd) -> io::Result<(bool, bool)> { - _is_file_read_write(fd.as_fd()) -} - -pub(crate) fn _is_file_read_write(fd: BorrowedFd<'_>) -> io::Result<(bool, bool)> { - let mode = backend::fs::syscalls::fcntl_getfl(fd)?; - - // Check for `O_PATH`. - #[cfg(any(linux_kernel, target_os = "fuchsia", target_os = "emscripten"))] - if mode.contains(OFlags::PATH) { - return Ok((false, false)); - } - - // Use `RWMODE` rather than `ACCMODE` as `ACCMODE` may include `O_PATH`. - // We handled `O_PATH` above. - match mode & OFlags::RWMODE { - OFlags::RDONLY => Ok((true, false)), - OFlags::RDWR => Ok((true, true)), - OFlags::WRONLY => Ok((false, true)), - _ => unreachable!(), - } -} - -/// `fsync(fd)`—Ensures that file data and metadata is written to the -/// underlying storage device. -/// -/// On iOS and macOS this isn't sufficient to ensure that data has reached -/// persistent storage; use [`fcntl_fullfsync`] to ensure that. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fsync.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fsync.2.html -/// [`fcntl_fullfsync`]: https://docs.rs/rustix/*/x86_64-apple-darwin/rustix/fs/fn.fcntl_fullfsync.html -#[inline] -pub fn fsync(fd: Fd) -> io::Result<()> { - backend::fs::syscalls::fsync(fd.as_fd()) -} - -/// `fdatasync(fd)`—Ensures that file data is written to the underlying -/// storage device. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fdatasync.2.html -#[cfg(not(any( - apple, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", -)))] -#[inline] -pub fn fdatasync(fd: Fd) -> io::Result<()> { - backend::fs::syscalls::fdatasync(fd.as_fd()) -} - -/// `ftruncate(fd, length)`—Sets the length of a file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html -/// [Linux]: https://man7.org/linux/man-pages/man2/ftruncate.2.html -#[inline] -pub fn ftruncate(fd: Fd, length: u64) -> io::Result<()> { - backend::fs::syscalls::ftruncate(fd.as_fd(), length) -} - -/// `flock(fd, operation)`—Acquire or release an advisory lock on an open file. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/flock.2.html -#[cfg(not(any(target_os = "espidf", target_os = "solaris", target_os = "wasi")))] -#[inline] -pub fn flock(fd: Fd, operation: FlockOperation) -> io::Result<()> { - backend::fs::syscalls::flock(fd.as_fd(), operation) -} - -/// `syncfs(fd)`—Flush cached filesystem data. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/syncfs.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn syncfs(fd: Fd) -> io::Result<()> { - backend::fs::syscalls::syncfs(fd.as_fd()) -} diff --git a/third_party/rust/rustix/src/fs/file_type.rs b/third_party/rust/rustix/src/fs/file_type.rs deleted file mode 100644 index cf8fc1d383b6..000000000000 --- a/third_party/rust/rustix/src/fs/file_type.rs +++ /dev/null @@ -1,4 +0,0 @@ -use crate::backend; - -/// `S_IF*` constants. -pub use backend::fs::types::FileType; diff --git a/third_party/rust/rustix/src/fs/getpath.rs b/third_party/rust/rustix/src/fs/getpath.rs deleted file mode 100644 index 8e14ff2f20e6..000000000000 --- a/third_party/rust/rustix/src/fs/getpath.rs +++ /dev/null @@ -1,14 +0,0 @@ -use crate::ffi::CString; -use crate::{backend, io}; -use backend::fd::AsFd; - -/// `fcntl(fd, F_GETPATH)` -/// -/// # References -/// - [Apple] -/// -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -#[inline] -pub fn getpath(fd: Fd) -> io::Result { - backend::fs::syscalls::getpath(fd.as_fd()) -} diff --git a/third_party/rust/rustix/src/fs/id.rs b/third_party/rust/rustix/src/fs/id.rs deleted file mode 100644 index 1fc2ef81f840..000000000000 --- a/third_party/rust/rustix/src/fs/id.rs +++ /dev/null @@ -1 +0,0 @@ -pub use crate::ugid::{Gid, Uid}; diff --git a/third_party/rust/rustix/src/fs/ioctl.rs b/third_party/rust/rustix/src/fs/ioctl.rs deleted file mode 100644 index 75222752fc88..000000000000 --- a/third_party/rust/rustix/src/fs/ioctl.rs +++ /dev/null @@ -1,92 +0,0 @@ -//! Filesystem-oriented `ioctl` functions. - -#![allow(unsafe_code)] - -#[cfg(linux_kernel)] -use { - crate::fd::AsFd, - crate::{backend, io, ioctl}, - backend::c, -}; - -#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] -use crate::fd::{AsRawFd, BorrowedFd}; - -/// `ioctl(fd, BLKSSZGET)`—Returns the logical block size of a block device. -/// -/// This is mentioned in the [Linux `openat` manual page]. -/// -/// [Linux `openat` manual page]: https://man7.org/linux/man-pages/man2/openat.2.html -#[cfg(linux_kernel)] -#[inline] -#[doc(alias = "BLKSSZGET")] -pub fn ioctl_blksszget(fd: Fd) -> io::Result { - // SAFETY: BLZSSZGET is a getter opcode that gets a u32. - unsafe { - let ctl = ioctl::Getter::, c::c_uint>::new(); - ioctl::ioctl(fd, ctl) - } -} - -/// `ioctl(fd, BLKPBSZGET)`—Returns the physical block size of a block device. -#[cfg(linux_kernel)] -#[inline] -#[doc(alias = "BLKPBSZGET")] -pub fn ioctl_blkpbszget(fd: Fd) -> io::Result { - // SAFETY: BLKPBSZGET is a getter opcode that gets a u32. - unsafe { - let ctl = ioctl::Getter::, c::c_uint>::new(); - ioctl::ioctl(fd, ctl) - } -} - -/// `ioctl(fd, FICLONE, src_fd)`—Share data between open files. -/// -/// This ioctl is not available on Sparc platforms -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl_ficlone.2.html -#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] -#[inline] -#[doc(alias = "FICLONE")] -pub fn ioctl_ficlone(fd: Fd, src_fd: SrcFd) -> io::Result<()> { - unsafe { ioctl::ioctl(fd, Ficlone(src_fd.as_fd())) } -} - -/// `ioctl(fd, EXT4_IOC_RESIZE_FS, blocks)`—Resize ext4 filesystem on fd. -#[cfg(linux_kernel)] -#[inline] -#[doc(alias = "EXT4_IOC_RESIZE_FS")] -pub fn ext4_ioc_resize_fs(fd: Fd, blocks: u64) -> io::Result<()> { - // SAFETY: EXT4_IOC_RESIZE_FS is a pointer setter opcode. - unsafe { - let ctl = ioctl::Setter::, u64>::new( - blocks, - ); - ioctl::ioctl(fd, ctl) - } -} - -#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] -struct Ficlone<'a>(BorrowedFd<'a>); - -#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] -unsafe impl ioctl::Ioctl for Ficlone<'_> { - type Output = (); - - const IS_MUTATING: bool = false; - const OPCODE: ioctl::Opcode = ioctl::Opcode::old(c::FICLONE as ioctl::RawOpcode); - - fn as_ptr(&mut self) -> *mut c::c_void { - self.0.as_raw_fd() as *mut c::c_void - } - - unsafe fn output_from_ptr( - _: ioctl::IoctlOutput, - _: *mut c::c_void, - ) -> io::Result { - Ok(()) - } -} diff --git a/third_party/rust/rustix/src/fs/makedev.rs b/third_party/rust/rustix/src/fs/makedev.rs deleted file mode 100644 index 5793058ffad0..000000000000 --- a/third_party/rust/rustix/src/fs/makedev.rs +++ /dev/null @@ -1,35 +0,0 @@ -use crate::backend; -use crate::fs::Dev; - -/// `makedev(maj, min)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/makedev.3.html -#[inline] -pub fn makedev(maj: u32, min: u32) -> Dev { - backend::fs::makedev::makedev(maj, min) -} - -/// `minor(dev)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/minor.3.html -#[inline] -pub fn minor(dev: Dev) -> u32 { - backend::fs::makedev::minor(dev) -} - -/// `major(dev)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/major.3.html -#[inline] -pub fn major(dev: Dev) -> u32 { - backend::fs::makedev::major(dev) -} diff --git a/third_party/rust/rustix/src/fs/memfd_create.rs b/third_party/rust/rustix/src/fs/memfd_create.rs deleted file mode 100644 index bbcbab258f8c..000000000000 --- a/third_party/rust/rustix/src/fs/memfd_create.rs +++ /dev/null @@ -1,19 +0,0 @@ -use crate::fd::OwnedFd; -use crate::{backend, io, path}; - -pub use backend::fs::types::MemfdFlags; - -/// `memfd_create(path, flags)` -/// -/// # References -/// - [Linux] -/// - [glibc] -/// - [FreeBSD] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/memfd_create.2.html -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-memfd_005fcreate -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?memfd_create -#[inline] -pub fn memfd_create(path: P, flags: MemfdFlags) -> io::Result { - path.into_with_c_str(|path| backend::fs::syscalls::memfd_create(path, flags)) -} diff --git a/third_party/rust/rustix/src/fs/mod.rs b/third_party/rust/rustix/src/fs/mod.rs deleted file mode 100644 index 1ea0d1351ef4..000000000000 --- a/third_party/rust/rustix/src/fs/mod.rs +++ /dev/null @@ -1,131 +0,0 @@ -//! Filesystem operations. - -mod abs; -#[cfg(not(target_os = "redox"))] -mod at; -mod constants; -#[cfg(linux_kernel)] -mod copy_file_range; -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -#[cfg(not(target_os = "haiku"))] // Haiku needs -mod cwd; -#[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))] -mod dir; -#[cfg(not(any( - apple, - netbsdlike, - solarish, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", -)))] -mod fadvise; -pub(crate) mod fcntl; -#[cfg(apple)] -mod fcntl_apple; -#[cfg(apple)] -mod fcopyfile; -pub(crate) mod fd; -mod file_type; -#[cfg(apple)] -mod getpath; -#[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id. -mod id; -#[cfg(not(target_os = "wasi"))] -mod ioctl; -#[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "redox", - target_os = "wasi" -)))] -mod makedev; -#[cfg(any(linux_kernel, target_os = "freebsd"))] -mod memfd_create; -#[cfg(linux_kernel)] -#[cfg(feature = "fs")] -mod mount; -#[cfg(linux_kernel)] -mod openat2; -#[cfg(linux_kernel)] -mod raw_dir; -mod seek_from; -#[cfg(target_os = "linux")] -mod sendfile; -#[cfg(linux_kernel)] -mod statx; -#[cfg(not(any(target_os = "espidf", target_os = "redox", target_os = "wasi")))] -mod sync; -#[cfg(any(apple, linux_kernel))] -mod xattr; - -#[cfg(linux_kernel)] -pub use crate::backend::fs::inotify; -pub use abs::*; -#[cfg(not(target_os = "redox"))] -pub use at::*; -pub use constants::*; -#[cfg(linux_kernel)] -pub use copy_file_range::copy_file_range; -#[cfg(not(any(target_os = "espidf", target_os = "redox")))] -#[cfg(not(target_os = "haiku"))] // Haiku needs -pub use cwd::*; -#[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))] -pub use dir::{Dir, DirEntry}; -#[cfg(not(any( - apple, - netbsdlike, - solarish, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "redox", -)))] -pub use fadvise::{fadvise, Advice}; -pub use fcntl::*; -#[cfg(apple)] -pub use fcntl_apple::*; -#[cfg(apple)] -pub use fcopyfile::*; -pub use fd::*; -pub use file_type::FileType; -#[cfg(apple)] -pub use getpath::getpath; -#[cfg(not(target_os = "wasi"))] -pub use id::*; -#[cfg(not(target_os = "wasi"))] -pub use ioctl::*; -#[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "redox", - target_os = "wasi" -)))] -pub use makedev::*; -#[cfg(any(linux_kernel, target_os = "freebsd"))] -pub use memfd_create::{memfd_create, MemfdFlags}; -#[cfg(linux_kernel)] -#[cfg(feature = "fs")] -pub use mount::*; -#[cfg(linux_kernel)] -pub use openat2::openat2; -#[cfg(linux_kernel)] -pub use raw_dir::{RawDir, RawDirEntry}; -pub use seek_from::SeekFrom; -#[cfg(target_os = "linux")] -pub use sendfile::sendfile; -#[cfg(linux_kernel)] -pub use statx::{statx, Statx, StatxFlags, StatxTimestamp}; -#[cfg(not(any(target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub use sync::sync; -#[cfg(any(apple, linux_kernel))] -pub use xattr::*; - -/// Re-export types common to POSIX-ish platforms. -#[cfg(feature = "std")] -#[cfg(unix)] -pub use std::os::unix::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt}; -#[cfg(feature = "std")] -#[cfg(all(wasi_ext, target_os = "wasi"))] -pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt}; diff --git a/third_party/rust/rustix/src/fs/mount.rs b/third_party/rust/rustix/src/fs/mount.rs deleted file mode 100644 index 0f04b7f69ebf..000000000000 --- a/third_party/rust/rustix/src/fs/mount.rs +++ /dev/null @@ -1,55 +0,0 @@ -//! Linux `mount`. -//! -//! These have been moved to a new `rustix::mount` module. - -#[deprecated(note = "rustix::fs::UnmountFlags` moved to `rustix::mount::UnmountFlags`.")] -#[doc(hidden)] -pub use crate::mount::UnmountFlags; - -#[deprecated(note = "rustix::fs::MountFlags` moved to `rustix::mount::MountFlags`.")] -#[doc(hidden)] -pub use crate::mount::MountFlags; - -#[deprecated( - note = "rustix::fs::MountPropagationFlags` moved to `rustix::mount::MountPropagationFlags`." -)] -#[doc(hidden)] -pub use crate::mount::MountPropagationFlags; - -#[deprecated(note = "`rustix::fs::mount` moved to `rustix::mount::mount`.")] -#[doc(hidden)] -pub use crate::mount::mount; - -#[deprecated(note = "`rustix::fs::unmount` moved to `rustix::mount::unmount`.")] -#[doc(hidden)] -pub use crate::mount::unmount; - -#[deprecated( - note = "`rustix::fs::remount` is renamed and moved to `rustix::mount::mount_remount`." -)] -#[doc(hidden)] -pub use crate::mount::mount_remount as remount; - -#[deprecated( - note = "`rustix::fs::bind_mount` is renamed and moved to `rustix::mount::mount_bind`." -)] -#[doc(hidden)] -pub use crate::mount::mount_bind as bind_mount; - -#[deprecated( - note = "`rustix::fs::recursive_bind_mount` is renamed and moved to `rustix::mount::mount_recursive_bind`." -)] -#[doc(hidden)] -pub use crate::mount::mount_recursive_bind as recursive_bind_mount; - -#[deprecated( - note = "`rustix::fs::change_mount` is renamed and moved to `rustix::mount::mount_change`." -)] -#[doc(hidden)] -pub use crate::mount::mount_change as change_mount; - -#[deprecated( - note = "`rustix::fs::move_mount` is renamed and moved to `rustix::mount::mount_move`." -)] -#[doc(hidden)] -pub use crate::mount::mount_move as move_mount; diff --git a/third_party/rust/rustix/src/fs/openat2.rs b/third_party/rust/rustix/src/fs/openat2.rs deleted file mode 100644 index 4918e0034199..000000000000 --- a/third_party/rust/rustix/src/fs/openat2.rs +++ /dev/null @@ -1,23 +0,0 @@ -use crate::fd::OwnedFd; -use crate::{backend, io, path}; -use backend::fd::AsFd; -use backend::fs::types::{Mode, OFlags, ResolveFlags}; - -/// `openat2(dirfd, path, OpenHow { oflags, mode, resolve }, sizeof(OpenHow))` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/openat2.2.html -#[inline] -pub fn openat2( - dirfd: Fd, - path: P, - oflags: OFlags, - mode: Mode, - resolve: ResolveFlags, -) -> io::Result { - path.into_with_c_str(|path| { - backend::fs::syscalls::openat2(dirfd.as_fd(), path, oflags, mode, resolve) - }) -} diff --git a/third_party/rust/rustix/src/fs/raw_dir.rs b/third_party/rust/rustix/src/fs/raw_dir.rs deleted file mode 100644 index fd8aefa3a98c..000000000000 --- a/third_party/rust/rustix/src/fs/raw_dir.rs +++ /dev/null @@ -1,234 +0,0 @@ -//! `RawDir` and `RawDirEntry`. - -use core::fmt; -use core::mem::{align_of, MaybeUninit}; -use linux_raw_sys::general::linux_dirent64; - -use crate::backend::fs::syscalls::getdents_uninit; -use crate::fd::AsFd; -use crate::ffi::CStr; -use crate::fs::FileType; -use crate::io; - -/// A directory iterator implemented with getdents. -/// -/// Note: This implementation does not handle growing the buffer. If this -/// functionality is necessary, you'll need to drop the current iterator, -/// resize the buffer, and then re-create the iterator. The iterator is -/// guaranteed to continue where it left off provided the file descriptor isn't -/// changed. See the example in [`RawDir::new`]. -pub struct RawDir<'buf, Fd: AsFd> { - fd: Fd, - buf: &'buf mut [MaybeUninit], - initialized: usize, - offset: usize, -} - -impl<'buf, Fd: AsFd> RawDir<'buf, Fd> { - /// Create a new iterator from the given file descriptor and buffer. - /// - /// Note: the buffer size may be trimmed to accommodate alignment - /// requirements. - /// - /// # Examples - /// - /// ## Simple but non-portable - /// - /// These examples are non-portable, because file systems may not have a - /// maximum file name length. If you can make assumptions that bound - /// this length, then these examples may suffice. - /// - /// Using the heap: - /// - /// ``` - /// # use std::mem::MaybeUninit; - /// # use rustix::fs::{CWD, Mode, OFlags, openat, RawDir}; - /// - /// let fd = openat( - /// CWD, - /// ".", - /// OFlags::RDONLY | OFlags::DIRECTORY | OFlags::CLOEXEC, - /// Mode::empty(), - /// ) - /// .unwrap(); - /// - /// let mut buf = Vec::with_capacity(8192); - /// let mut iter = RawDir::new(fd, buf.spare_capacity_mut()); - /// while let Some(entry) = iter.next() { - /// let entry = entry.unwrap(); - /// dbg!(&entry); - /// } - /// ``` - /// - /// Using the stack: - /// - /// ``` - /// # use std::mem::MaybeUninit; - /// # use rustix::fs::{CWD, Mode, OFlags, openat, RawDir}; - /// - /// let fd = openat( - /// CWD, - /// ".", - /// OFlags::RDONLY | OFlags::DIRECTORY | OFlags::CLOEXEC, - /// Mode::empty(), - /// ) - /// .unwrap(); - /// - /// let mut buf = [MaybeUninit::uninit(); 2048]; - /// let mut iter = RawDir::new(fd, &mut buf); - /// while let Some(entry) = iter.next() { - /// let entry = entry.unwrap(); - /// dbg!(&entry); - /// } - /// ``` - /// - /// ## Portable - /// - /// Heap allocated growing buffer for supporting directory entries with - /// arbitrarily large file names: - /// - /// ```notrust - /// # // The `notrust` above can be removed when we can depend on Rust 1.65. - /// # use std::mem::MaybeUninit; - /// # use rustix::fs::{CWD, Mode, OFlags, openat, RawDir}; - /// # use rustix::io::Errno; - /// - /// let fd = openat( - /// CWD, - /// ".", - /// OFlags::RDONLY | OFlags::DIRECTORY | OFlags::CLOEXEC, - /// Mode::empty(), - /// ) - /// .unwrap(); - /// - /// let mut buf = Vec::with_capacity(8192); - /// 'read: loop { - /// 'resize: { - /// let mut iter = RawDir::new(&fd, buf.spare_capacity_mut()); - /// while let Some(entry) = iter.next() { - /// let entry = match entry { - /// Err(Errno::INVAL) => break 'resize, - /// r => r.unwrap(), - /// }; - /// dbg!(&entry); - /// } - /// break 'read; - /// } - /// - /// let new_capacity = buf.capacity() * 2; - /// buf.reserve(new_capacity); - /// } - /// ``` - pub fn new(fd: Fd, buf: &'buf mut [MaybeUninit]) -> Self { - Self { - fd, - buf: { - let offset = buf.as_ptr().align_offset(align_of::()); - if offset < buf.len() { - &mut buf[offset..] - } else { - &mut [] - } - }, - initialized: 0, - offset: 0, - } - } -} - -/// A raw directory entry, similar to [`std::fs::DirEntry`]. -/// -/// Unlike the std version, this may represent the `.` or `..` entries. -pub struct RawDirEntry<'a> { - file_name: &'a CStr, - file_type: u8, - inode_number: u64, - next_entry_cookie: i64, -} - -impl<'a> fmt::Debug for RawDirEntry<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - let mut f = f.debug_struct("RawDirEntry"); - f.field("file_name", &self.file_name()); - f.field("file_type", &self.file_type()); - f.field("ino", &self.ino()); - f.field("next_entry_cookie", &self.next_entry_cookie()); - f.finish() - } -} - -impl<'a> RawDirEntry<'a> { - /// Returns the file name of this directory entry. - #[inline] - pub fn file_name(&self) -> &CStr { - self.file_name - } - - /// Returns the type of this directory entry. - #[inline] - pub fn file_type(&self) -> FileType { - FileType::from_dirent_d_type(self.file_type) - } - - /// Returns the inode number of this directory entry. - #[inline] - #[doc(alias = "inode_number")] - pub fn ino(&self) -> u64 { - self.inode_number - } - - /// Returns the seek cookie to the next directory entry. - #[inline] - #[doc(alias = "off")] - pub fn next_entry_cookie(&self) -> u64 { - self.next_entry_cookie as u64 - } -} - -impl<'buf, Fd: AsFd> RawDir<'buf, Fd> { - /// Identical to [`Iterator::next`] except that [`Iterator::Item`] borrows - /// from self. - /// - /// Note: this interface will be broken to implement a stdlib iterator API - /// with GAT support once one becomes available. - #[allow(unsafe_code)] - #[allow(clippy::should_implement_trait)] - pub fn next(&mut self) -> Option>> { - if self.is_buffer_empty() { - match getdents_uninit(self.fd.as_fd(), self.buf) { - Ok(0) => return None, - Ok(bytes_read) => { - self.initialized = bytes_read; - self.offset = 0; - } - Err(e) => return Some(Err(e)), - } - } - - let dirent_ptr = self.buf[self.offset..].as_ptr(); - // SAFETY: - // - This data is initialized by the check above. - // - Assumption: the kernel will not give us partial structs. - // - Assumption: the kernel uses proper alignment between structs. - // - The starting pointer is aligned (performed in RawDir::new) - let dirent = unsafe { &*dirent_ptr.cast::() }; - - self.offset += usize::from(dirent.d_reclen); - - Some(Ok(RawDirEntry { - file_type: dirent.d_type, - inode_number: dirent.d_ino.into(), - next_entry_cookie: dirent.d_off.into(), - // SAFETY: The kernel guarantees a NUL-terminated string. - file_name: unsafe { CStr::from_ptr(dirent.d_name.as_ptr().cast()) }, - })) - } - - /// Returns true if the internal buffer is empty and will be refilled when - /// calling [`next`]. - /// - /// [`next`]: Self::next - pub fn is_buffer_empty(&self) -> bool { - self.offset >= self.initialized - } -} diff --git a/third_party/rust/rustix/src/fs/seek_from.rs b/third_party/rust/rustix/src/fs/seek_from.rs deleted file mode 100644 index c08abd2e6aff..000000000000 --- a/third_party/rust/rustix/src/fs/seek_from.rs +++ /dev/null @@ -1,53 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/io/mod.rs at revision -//! dca3f1b786efd27be3b325ed1e01e247aa589c3b. - -/// Enumeration of possible methods to seek within an I/O object. -/// -/// It is used by the [`seek`] function. -/// -/// This is similar to [`std::io::SeekFrom`], however it adds platform-specific -/// seek options. -/// -/// [`seek`]: crate::fs::seek -#[derive(Copy, PartialEq, Eq, Clone, Debug)] -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub enum SeekFrom { - /// Sets the offset to the provided number of bytes. - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - Start(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] u64), - - /// Sets the offset to the size of this object plus the specified number of - /// bytes. - /// - /// It is possible to seek beyond the end of an object, but it's an error - /// to seek before byte 0. - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - End(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] i64), - - /// Sets the offset to the current position plus the specified number of - /// bytes. - /// - /// It is possible to seek beyond the end of an object, but it's an error - /// to seek before byte 0. - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - Current(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] i64), - - /// Sets the offset to the current position plus the specified number of - /// bytes, plus the distance to the next byte which is not in a hole. - /// - /// If the offset is in a hole at the end of the file, the seek will fail - /// with [`Errno::NXIO`]. - /// - /// [`Errno::NXIO`]: crate::io::Errno::NXIO - #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] - Data(i64), - - /// Sets the offset to the current position plus the specified number of - /// bytes, plus the distance to the next byte which is in a hole. - /// - /// If there is no hole past the offset, it will be set to the end of the - /// file i.e. there is an implicit hole at the end of any file. - #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] - Hole(i64), -} diff --git a/third_party/rust/rustix/src/fs/sendfile.rs b/third_party/rust/rustix/src/fs/sendfile.rs deleted file mode 100644 index 7f5c8482da2f..000000000000 --- a/third_party/rust/rustix/src/fs/sendfile.rs +++ /dev/null @@ -1,19 +0,0 @@ -use crate::{backend, io}; -use backend::fd::AsFd; - -/// `sendfile(out_fd, in_fd, offset, count)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/sendfile.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn sendfile( - out_fd: OutFd, - in_fd: InFd, - offset: Option<&mut u64>, - count: usize, -) -> io::Result { - backend::fs::syscalls::sendfile(out_fd.as_fd(), in_fd.as_fd(), offset, count) -} diff --git a/third_party/rust/rustix/src/fs/statx.rs b/third_party/rust/rustix/src/fs/statx.rs deleted file mode 100644 index 32ae84ed35bb..000000000000 --- a/third_party/rust/rustix/src/fs/statx.rs +++ /dev/null @@ -1,105 +0,0 @@ -//! Linux `statx`. - -use crate::fd::AsFd; -use crate::fs::AtFlags; -use crate::{backend, io, path}; - -pub use backend::fs::types::{Statx, StatxFlags, StatxTimestamp}; - -#[cfg(feature = "linux_4_11")] -use backend::fs::syscalls::statx as _statx; -#[cfg(not(feature = "linux_4_11"))] -use compat::statx as _statx; - -/// `statx(dirfd, path, flags, mask, statxbuf)` -/// -/// This function returns [`io::Errno::NOSYS`] if `statx` is not available on -/// the platform, such as Linux before 4.11. This also includes older Docker -/// versions where the actual syscall fails with different error codes; rustix -/// handles this and translates them into `NOSYS`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/statx.2.html -#[inline] -pub fn statx( - dirfd: Fd, - path: P, - flags: AtFlags, - mask: StatxFlags, -) -> io::Result { - path.into_with_c_str(|path| _statx(dirfd.as_fd(), path, flags, mask)) -} - -#[cfg(not(feature = "linux_4_11"))] -mod compat { - use crate::fd::BorrowedFd; - use crate::ffi::CStr; - use crate::fs::AtFlags; - use crate::{backend, io}; - use core::sync::atomic::{AtomicU8, Ordering}; - - use backend::fs::types::{Statx, StatxFlags}; - - // Linux kernel prior to 4.11 old versions of Docker don't support `statx`. - // We store the availability in a global to avoid unnecessary syscalls. - // - // 0: Unknown - // 1: Not available - // 2: Available - static STATX_STATE: AtomicU8 = AtomicU8::new(0); - - #[inline] - pub fn statx( - dirfd: BorrowedFd<'_>, - path: &CStr, - flags: AtFlags, - mask: StatxFlags, - ) -> io::Result { - match STATX_STATE.load(Ordering::Relaxed) { - 0 => statx_init(dirfd, path, flags, mask), - 1 => Err(io::Errno::NOSYS), - _ => backend::fs::syscalls::statx(dirfd, path, flags, mask), - } - } - - /// The first `statx` call. We don't know if `statx` is available yet. - fn statx_init( - dirfd: BorrowedFd<'_>, - path: &CStr, - flags: AtFlags, - mask: StatxFlags, - ) -> io::Result { - match backend::fs::syscalls::statx(dirfd, path, flags, mask) { - Err(io::Errno::NOSYS) => statx_error_nosys(), - Err(io::Errno::PERM) => statx_error_perm(), - result => { - STATX_STATE.store(2, Ordering::Relaxed); - result - } - } - } - - /// The first `statx` call failed with `NOSYS` (or something we're treating - /// like `NOSYS`). - #[cold] - fn statx_error_nosys() -> io::Result { - STATX_STATE.store(1, Ordering::Relaxed); - Err(io::Errno::NOSYS) - } - - /// The first `statx` call failed with `PERM`. - #[cold] - fn statx_error_perm() -> io::Result { - // Some old versions of Docker have `statx` fail with `PERM` when it - // isn't recognized. Check whether `statx` really is available, and if - // so, fail with `PERM`, and if not, treat it like `NOSYS`. - if backend::fs::syscalls::is_statx_available() { - STATX_STATE.store(2, Ordering::Relaxed); - Err(io::Errno::PERM) - } else { - statx_error_nosys() - } - } -} diff --git a/third_party/rust/rustix/src/fs/sync.rs b/third_party/rust/rustix/src/fs/sync.rs deleted file mode 100644 index 3d2d08920151..000000000000 --- a/third_party/rust/rustix/src/fs/sync.rs +++ /dev/null @@ -1,14 +0,0 @@ -use crate::backend; - -/// `sync`—Flush cached filesystem data for all filesystems. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sync.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sync.2.html -#[inline] -pub fn sync() { - backend::fs::syscalls::sync(); -} diff --git a/third_party/rust/rustix/src/fs/xattr.rs b/third_party/rust/rustix/src/fs/xattr.rs deleted file mode 100644 index 53612f71f7db..000000000000 --- a/third_party/rust/rustix/src/fs/xattr.rs +++ /dev/null @@ -1,202 +0,0 @@ -use crate::{backend, io, path}; -use backend::c; -use backend::fd::AsFd; -use bitflags::bitflags; - -bitflags! { - /// `XATTR_*` constants for use with [`setxattr`], and other `*setxattr` - /// functions. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct XattrFlags: c::c_uint { - /// `XATTR_CREATE` - const CREATE = c::XATTR_CREATE as c::c_uint; - - /// `XATTR_REPLACE` - const REPLACE = c::XATTR_REPLACE as c::c_uint; - - /// - const _ = !0; - } -} - -/// `getxattr(path, name, value.as_ptr(), value.len())`—Get extended -/// filesystem attributes. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/getxattr.2.html -#[inline] -pub fn getxattr( - path: P, - name: Name, - value: &mut [u8], -) -> io::Result { - path.into_with_c_str(|path| { - name.into_with_c_str(|name| backend::fs::syscalls::getxattr(path, name, value)) - }) -} - -/// `lgetxattr(path, name, value.as_ptr(), value.len())`—Get extended -/// filesystem attributes, without following symlinks in the last path -/// component. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/lgetxattr.2.html -#[inline] -pub fn lgetxattr( - path: P, - name: Name, - value: &mut [u8], -) -> io::Result { - path.into_with_c_str(|path| { - name.into_with_c_str(|name| backend::fs::syscalls::lgetxattr(path, name, value)) - }) -} - -/// `fgetxattr(fd, name, value.as_ptr(), value.len())`—Get extended -/// filesystem attributes on an open file descriptor. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fgetxattr.2.html -#[inline] -pub fn fgetxattr( - fd: Fd, - name: Name, - value: &mut [u8], -) -> io::Result { - name.into_with_c_str(|name| backend::fs::syscalls::fgetxattr(fd.as_fd(), name, value)) -} - -/// `setxattr(path, name, value.as_ptr(), value.len(), flags)`—Set extended -/// filesystem attributes. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/setxattr.2.html -#[inline] -pub fn setxattr( - path: P, - name: Name, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - path.into_with_c_str(|path| { - name.into_with_c_str(|name| backend::fs::syscalls::setxattr(path, name, value, flags)) - }) -} - -/// `setxattr(path, name, value.as_ptr(), value.len(), flags)`—Set extended -/// filesystem attributes, without following symlinks in the last path -/// component. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/lsetxattr.2.html -#[inline] -pub fn lsetxattr( - path: P, - name: Name, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - path.into_with_c_str(|path| { - name.into_with_c_str(|name| backend::fs::syscalls::lsetxattr(path, name, value, flags)) - }) -} - -/// `fsetxattr(fd, name, value.as_ptr(), value.len(), flags)`—Set extended -/// filesystem attributes on an open file descriptor. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fsetxattr.2.html -#[inline] -pub fn fsetxattr( - fd: Fd, - name: Name, - value: &[u8], - flags: XattrFlags, -) -> io::Result<()> { - name.into_with_c_str(|name| backend::fs::syscalls::fsetxattr(fd.as_fd(), name, value, flags)) -} - -/// `listxattr(path, list.as_ptr(), list.len())`—List extended filesystem -/// attributes. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/listxattr.2.html -#[inline] -pub fn listxattr(path: P, list: &mut [c::c_char]) -> io::Result { - path.into_with_c_str(|path| backend::fs::syscalls::listxattr(path, list)) -} - -/// `llistxattr(path, list.as_ptr(), list.len())`—List extended filesystem -/// attributes, without following symlinks in the last path component. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/llistxattr.2.html -#[inline] -pub fn llistxattr(path: P, list: &mut [c::c_char]) -> io::Result { - path.into_with_c_str(|path| backend::fs::syscalls::llistxattr(path, list)) -} - -/// `flistxattr(fd, list.as_ptr(), list.len())`—List extended filesystem -/// attributes on an open file descriptor. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/flistxattr.2.html -#[inline] -pub fn flistxattr(fd: Fd, list: &mut [c::c_char]) -> io::Result { - backend::fs::syscalls::flistxattr(fd.as_fd(), list) -} - -/// `removexattr(path, name)`—Remove an extended filesystem attribute. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/removexattr.2.html -pub fn removexattr(path: P, name: Name) -> io::Result<()> { - path.into_with_c_str(|path| { - name.into_with_c_str(|name| backend::fs::syscalls::removexattr(path, name)) - }) -} - -/// `lremovexattr(path, name)`—Remove an extended filesystem attribute, -/// without following symlinks in the last path component. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/lremovexattr.2.html -pub fn lremovexattr(path: P, name: Name) -> io::Result<()> { - path.into_with_c_str(|path| { - name.into_with_c_str(|name| backend::fs::syscalls::lremovexattr(path, name)) - }) -} - -/// `fremovexattr(fd, name)`—Remove an extended filesystem attribute on an -/// open file descriptor. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fremovexattr.2.html -pub fn fremovexattr(fd: Fd, name: Name) -> io::Result<()> { - name.into_with_c_str(|name| backend::fs::syscalls::fremovexattr(fd.as_fd(), name)) -} diff --git a/third_party/rust/rustix/src/io/close.rs b/third_party/rust/rustix/src/io/close.rs deleted file mode 100644 index aad2c20a3b0f..000000000000 --- a/third_party/rust/rustix/src/io/close.rs +++ /dev/null @@ -1,55 +0,0 @@ -//! The unsafe `close` for raw file descriptors. -//! -//! # Safety -//! -//! Operating on raw file descriptors is unsafe. -#![allow(unsafe_code)] - -use crate::backend; -use backend::fd::RawFd; - -/// `close(raw_fd)`—Closes a `RawFd` directly. -/// -/// Most users won't need to use this, as `OwnedFd` automatically closes its -/// file descriptor on `Drop`. -/// -/// This function does not return a `Result`, as it is the [responsibility] of -/// filesystem designers to not return errors from `close`. Users who chose to -/// use NFS or similar filesystems should take care to monitor for problems -/// externally. -/// -/// [responsibility]: https://lwn.net/Articles/576518/ -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#close-and-shutdownget-outta-my-face -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/close.html -/// [Linux]: https://man7.org/linux/man-pages/man2/close.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/close.2.html#//apple_ref/doc/man/2/close -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-closesocket -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=close&sektion=2 -/// [NetBSD]: https://man.netbsd.org/close.2 -/// [OpenBSD]: https://man.openbsd.org/close.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=close§ion=2 -/// [illumos]: https://illumos.org/man/2/close -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Opening-and-Closing-Files.html#index-close -/// -/// # Safety -/// -/// This function takes a `RawFd`, which must be valid before the call, and is -/// not valid after the call. -#[inline] -pub unsafe fn close(raw_fd: RawFd) { - backend::io::syscalls::close(raw_fd) -} diff --git a/third_party/rust/rustix/src/io/dup.rs b/third_party/rust/rustix/src/io/dup.rs deleted file mode 100644 index 9f5186192cd7..000000000000 --- a/third_party/rust/rustix/src/io/dup.rs +++ /dev/null @@ -1,123 +0,0 @@ -//! Functions which duplicate file descriptors. - -use crate::fd::OwnedFd; -use crate::{backend, io}; -use backend::fd::AsFd; - -#[cfg(not(target_os = "wasi"))] -pub use backend::io::types::DupFlags; - -/// `dup(fd)`—Creates a new `OwnedFd` instance that shares the same -/// underlying [file description] as `fd`. -/// -/// This function does not set the `O_CLOEXEC` flag. To do a `dup` that does -/// set `O_CLOEXEC`, use [`fcntl_dupfd_cloexec`]. -/// -/// POSIX guarantees that `dup` will use the lowest unused file descriptor, -/// however it is not safe in general to rely on this, as file descriptors may -/// be unexpectedly allocated on other threads or in libraries. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 -/// [`fcntl_dupfd_cloexec`]: crate::io::fcntl_dupfd_cloexec -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/dup.html -/// [Linux]: https://man7.org/linux/man-pages/man2/dup.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/dup.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup&sektion=2 -/// [NetBSD]: https://man.netbsd.org/dup.2 -/// [OpenBSD]: https://man.openbsd.org/dup.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup§ion=2 -/// [illumos]: https://illumos.org/man/2/dup -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Duplicating-Descriptors.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn dup(fd: Fd) -> io::Result { - backend::io::syscalls::dup(fd.as_fd()) -} - -/// `dup2(fd, new)`—Changes the [file description] of a file descriptor. -/// -/// `dup2` conceptually closes `new` and then sets the file description for -/// `new` to be the same as the one for `fd`. This is a very unusual operation, -/// and should only be used on file descriptors where you know how `new` will -/// be subsequently used. -/// -/// This function does not set the `O_CLOEXEC` flag. To do a `dup2` that does -/// set `O_CLOEXEC`, use [`dup3`] with [`DupFlags::CLOEXEC`] on platforms which -/// support it, or [`fcntl_dupfd_cloexec`] -/// -/// For `dup2` to stdin, stdout, and stderr, see [`stdio::dup2_stdin`], -/// [`stdio::dup2_stdout`], and [`stdio::dup2_stderr`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 -/// [`fcntl_dupfd_cloexec`]: crate::io::fcntl_dupfd_cloexec -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/dup2.html -/// [Linux]: https://man7.org/linux/man-pages/man2/dup2.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/dup2.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup2&sektion=2 -/// [NetBSD]: https://man.netbsd.org/dup2.2 -/// [OpenBSD]: https://man.openbsd.org/dup2.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup2§ion=2 -/// [illumos]: https://illumos.org/man/2/dup -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Duplicating-Descriptors.html -/// [`stdio::dup2_stdin`]: https://docs.rs/rustix/*/rustix/stdio/fn.dup2_stdin.html -/// [`stdio::dup2_stdout`]: https://docs.rs/rustix/*/rustix/stdio/fn.dup2_stdout.html -/// [`stdio::dup2_stderr`]: https://docs.rs/rustix/*/rustix/stdio/fn.dup2_stderr.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn dup2(fd: Fd, new: &mut OwnedFd) -> io::Result<()> { - backend::io::syscalls::dup2(fd.as_fd(), new) -} - -/// `dup3(fd, new, flags)`—Changes the [file description] of a file -/// descriptor, with flags. -/// -/// `dup3` is the same as [`dup2`] but adds an additional flags operand, and it -/// fails in the case that `fd` and `new` have the same file descriptor value. -/// This additional difference is the reason this function isn't named -/// `dup2_with`. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 -/// [Linux]: https://man7.org/linux/man-pages/man2/dup3.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup3&sektion=3 -/// [NetBSD]: https://man.netbsd.org/dup3.2 -/// [OpenBSD]: https://man.openbsd.org/dup3.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup3§ion=3 -#[cfg(not(any( - target_os = "aix", - target_os = "espidf", - target_os = "nto", - target_os = "wasi" -)))] -#[inline] -pub fn dup3(fd: Fd, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { - backend::io::syscalls::dup3(fd.as_fd(), new, flags) -} diff --git a/third_party/rust/rustix/src/io/errno.rs b/third_party/rust/rustix/src/io/errno.rs deleted file mode 100644 index 2b72de005d9e..000000000000 --- a/third_party/rust/rustix/src/io/errno.rs +++ /dev/null @@ -1,72 +0,0 @@ -//! The `Errno` type, which is a minimal wrapper around an error code. -//! -//! We define the error constants as individual `const`s instead of an enum -//! because we may not know about all of the host's error values and we don't -//! want unrecognized values to create undefined behavior. - -use crate::backend; -use core::{fmt, result}; -#[cfg(feature = "std")] -use std::error; - -/// A specialized [`Result`] type for `rustix` APIs. -pub type Result = result::Result; - -pub use backend::io::errno::Errno; - -impl Errno { - /// Shorthand for `std::io::Error::from(self).kind()`. - #[cfg(feature = "std")] - #[inline] - pub fn kind(self) -> std::io::ErrorKind { - std::io::Error::from(self).kind() - } -} - -impl fmt::Display for Errno { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - #[cfg(feature = "std")] - { - std::io::Error::from(*self).fmt(fmt) - } - #[cfg(not(feature = "std"))] - { - write!(fmt, "os error {}", self.raw_os_error()) - } - } -} - -impl fmt::Debug for Errno { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - #[cfg(feature = "std")] - { - std::io::Error::from(*self).fmt(fmt) - } - #[cfg(not(feature = "std"))] - { - write!(fmt, "os error {}", self.raw_os_error()) - } - } -} - -#[cfg(feature = "std")] -impl error::Error for Errno {} - -#[cfg(feature = "std")] -impl From for std::io::Error { - #[inline] - fn from(err: Errno) -> Self { - Self::from_raw_os_error(err.raw_os_error() as _) - } -} - -/// Call `f` until it either succeeds or fails other than [`Errno::INTR`]. -#[inline] -pub fn retry_on_intr Result>(mut f: F) -> Result { - loop { - match f() { - Err(Errno::INTR) => (), - result => return result, - } - } -} diff --git a/third_party/rust/rustix/src/io/fcntl.rs b/third_party/rust/rustix/src/io/fcntl.rs deleted file mode 100644 index 913e9d06222a..000000000000 --- a/third_party/rust/rustix/src/io/fcntl.rs +++ /dev/null @@ -1,141 +0,0 @@ -//! The Unix `fcntl` function is effectively lots of different functions -//! hidden behind a single dynamic dispatch interface. In order to provide -//! a type-safe API, rustix makes them all separate functions so that they -//! can have dedicated static type signatures. -//! -//! `fcntl` functions which are not specific to files or directories live -//! in the [`io`] module instead. -//! -//! [`io`]: crate::io - -use crate::{backend, io}; -use backend::fd::{AsFd, OwnedFd, RawFd}; - -pub use backend::io::types::FdFlags; - -/// `fcntl(fd, F_GETFD)`—Returns a file descriptor's flags. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 -/// [NetBSD]: https://man.netbsd.org/fcntl.2 -/// [OpenBSD]: https://man.openbsd.org/fcntl.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 -/// [illumos]: https://illumos.org/man/2/fcntl -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function -#[inline] -#[doc(alias = "F_GETFD")] -pub fn fcntl_getfd(fd: Fd) -> io::Result { - backend::io::syscalls::fcntl_getfd(fd.as_fd()) -} - -/// `fcntl(fd, F_SETFD, flags)`—Sets a file descriptor's flags. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 -/// [NetBSD]: https://man.netbsd.org/fcntl.2 -/// [OpenBSD]: https://man.openbsd.org/fcntl.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 -/// [illumos]: https://illumos.org/man/2/fcntl -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function -#[inline] -#[doc(alias = "F_SETFD")] -pub fn fcntl_setfd(fd: Fd, flags: FdFlags) -> io::Result<()> { - backend::io::syscalls::fcntl_setfd(fd.as_fd(), flags) -} - -/// `fcntl(fd, F_DUPFD_CLOEXEC)`—Creates a new `OwnedFd` instance, with value -/// at least `min`, that has `O_CLOEXEC` set and that shares the same -/// underlying [file description] as `fd`. -/// -/// POSIX guarantees that `F_DUPFD_CLOEXEC` will use the lowest unused file -/// descriptor which is at least `min`, however it is not safe in general to -/// rely on this, as file descriptors may be unexpectedly allocated on other -/// threads or in libraries. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 -/// [NetBSD]: https://man.netbsd.org/fcntl.2 -/// [OpenBSD]: https://man.openbsd.org/fcntl.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 -/// [illumos]: https://illumos.org/man/2/fcntl -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -#[inline] -#[doc(alias = "F_DUPFD_CLOEXEC")] -pub fn fcntl_dupfd_cloexec(fd: Fd, min: RawFd) -> io::Result { - backend::io::syscalls::fcntl_dupfd_cloexec(fd.as_fd(), min) -} - -/// `fcntl(fd, F_DUPFD)`—Creates a new `OwnedFd` instance, with value at least -/// `min`, that shares the same underlying [file description] as `fd`. -/// -/// POSIX guarantees that `F_DUPFD` will use the lowest unused file descriptor -/// which is at least `min`, however it is not safe in general to rely on this, -/// as file descriptors may be unexpectedly allocated on other threads or in -/// libraries. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 -/// [NetBSD]: https://man.netbsd.org/fcntl.2 -/// [OpenBSD]: https://man.openbsd.org/fcntl.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 -/// [illumos]: https://illumos.org/man/2/fcntl -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function -#[cfg(target_os = "espidf")] -#[inline] -#[doc(alias = "F_DUPFD")] -pub fn fcntl_dupfd(fd: Fd, min: RawFd) -> io::Result { - backend::io::syscalls::fcntl_dupfd(fd.as_fd(), min) -} diff --git a/third_party/rust/rustix/src/io/ioctl.rs b/third_party/rust/rustix/src/io/ioctl.rs deleted file mode 100644 index e85719a4d8bc..000000000000 --- a/third_party/rust/rustix/src/io/ioctl.rs +++ /dev/null @@ -1,85 +0,0 @@ -//! The Unix `ioctl` function is effectively lots of different functions hidden -//! behind a single dynamic dispatch interface. In order to provide a type-safe -//! API, rustix makes them all separate functions so that they can have -//! dedicated static type signatures. -//! -//! Some ioctls, such as those related to filesystems, terminals, and -//! processes, live in other top-level API modules. - -#![allow(unsafe_code)] - -use crate::{backend, io, ioctl}; -use backend::c; -use backend::fd::AsFd; - -/// `ioctl(fd, FIOCLEX, NULL)`—Set the close-on-exec flag. -/// -/// Also known as `fcntl(fd, F_SETFD, FD_CLOEXEC)`. -/// -/// # References -/// - [Winsock2] -/// - [NetBSD] -/// - [OpenBSD] -/// -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-ioctlsocket -/// [NetBSD]: https://man.netbsd.org/ioctl.2#GENERIC%20IOCTLS -/// [OpenBSD]: https://man.openbsd.org/ioctl.2#GENERIC_IOCTLS -#[cfg(apple)] -#[inline] -#[doc(alias = "FIOCLEX")] -#[doc(alias = "FD_CLOEXEC")] -pub fn ioctl_fioclex(fd: Fd) -> io::Result<()> { - // SAFETY: FIOCLEX is a no-argument setter opcode. - unsafe { - let ctl = ioctl::NoArg::>::new(); - ioctl::ioctl(fd, ctl) - } -} - -/// `ioctl(fd, FIONBIO, &value)`—Enables or disables non-blocking mode. -/// -/// # References -/// - [Winsock2] -/// - [NetBSD] -/// - [OpenBSD] -/// -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/winsock/winsock-ioctls#unix-ioctl-codes -/// [NetBSD]: https://man.netbsd.org/ioctl.2#GENERIC%20IOCTLS -/// [OpenBSD]: https://man.openbsd.org/ioctl.2#GENERIC_IOCTLS -#[inline] -#[doc(alias = "FIONBIO")] -pub fn ioctl_fionbio(fd: Fd, value: bool) -> io::Result<()> { - // SAFETY: FIONBIO is a pointer setter opcode. - unsafe { - let ctl = ioctl::Setter::, c::c_int>::new(value.into()); - ioctl::ioctl(fd, ctl) - } -} - -/// `ioctl(fd, FIONREAD)`—Returns the number of bytes ready to be read. -/// -/// The result of this function gets silently coerced into a C `int` -/// by the OS, so it may contain a wrapped value. -/// -/// # References -/// - [Linux] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl_tty.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/winsock/winsock-ioctls#unix-ioctl-codes -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=ioctl&sektion=2#GENERIC%09IOCTLS -/// [NetBSD]: https://man.netbsd.org/ioctl.2#GENERIC%20IOCTLS -/// [OpenBSD]: https://man.openbsd.org/ioctl.2#GENERIC_IOCTLS -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "FIONREAD")] -pub fn ioctl_fionread(fd: Fd) -> io::Result { - // SAFETY: FIONREAD is a getter opcode that gets a c_int. - unsafe { - let ctl = ioctl::Getter::, c::c_int>::new(); - ioctl::ioctl(fd, ctl).map(|n| n as u64) - } -} diff --git a/third_party/rust/rustix/src/io/is_read_write.rs b/third_party/rust/rustix/src/io/is_read_write.rs deleted file mode 100644 index af33806cb27a..000000000000 --- a/third_party/rust/rustix/src/io/is_read_write.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! The [`is_read_write`] function. -//! -//! [`is_read_write`]: https://docs.rs/rustix/*/rustix/io/fn.is_read_write.html - -use crate::{backend, io}; -use backend::fd::AsFd; - -/// Returns a pair of booleans indicating whether the file descriptor is -/// readable and/or writable, respectively. -/// -/// Unlike [`is_file_read_write`], this correctly detects whether sockets -/// have been shutdown, partially or completely. -/// -/// [`is_file_read_write`]: crate::fs::is_file_read_write -#[inline] -#[cfg_attr(doc_cfg, doc(cfg(all(feature = "fs", feature = "net"))))] -pub fn is_read_write(fd: Fd) -> io::Result<(bool, bool)> { - backend::io::syscalls::is_read_write(fd.as_fd()) -} diff --git a/third_party/rust/rustix/src/io/mod.rs b/third_party/rust/rustix/src/io/mod.rs deleted file mode 100644 index bddd12acda89..000000000000 --- a/third_party/rust/rustix/src/io/mod.rs +++ /dev/null @@ -1,32 +0,0 @@ -//! I/O operations. -//! -//! If you're looking for [`SeekFrom`], that's in the [`fs`] module. -//! -//! [`SeekFrom`]: https://docs.rs/rustix/*/rustix/fs/enum.SeekFrom.html -//! [`fs`]: https://docs.rs/rustix/*/rustix/fs/index.html - -mod close; -#[cfg(not(windows))] -mod dup; -mod errno; -#[cfg(not(windows))] -mod fcntl; -mod ioctl; -#[cfg(not(any(windows, target_os = "redox")))] -#[cfg(all(feature = "fs", feature = "net"))] -mod is_read_write; -#[cfg(not(windows))] -mod read_write; - -pub use close::close; -#[cfg(not(windows))] -pub use dup::*; -pub use errno::{retry_on_intr, Errno, Result}; -#[cfg(not(windows))] -pub use fcntl::*; -pub use ioctl::*; -#[cfg(not(any(windows, target_os = "redox")))] -#[cfg(all(feature = "fs", feature = "net"))] -pub use is_read_write::*; -#[cfg(not(windows))] -pub use read_write::*; diff --git a/third_party/rust/rustix/src/io/read_write.rs b/third_party/rust/rustix/src/io/read_write.rs deleted file mode 100644 index 91a28bc39e43..000000000000 --- a/third_party/rust/rustix/src/io/read_write.rs +++ /dev/null @@ -1,271 +0,0 @@ -//! `read` and `write`, optionally positioned, optionally vectored - -use crate::{backend, io}; -use backend::fd::AsFd; - -// Declare `IoSlice` and `IoSliceMut`. -#[cfg(not(windows))] -pub use crate::maybe_polyfill::io::{IoSlice, IoSliceMut}; - -#[cfg(linux_kernel)] -pub use backend::io::types::ReadWriteFlags; - -/// `read(fd, buf)`—Reads from a stream. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/read.html -/// [Linux]: https://man7.org/linux/man-pages/man2/read.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/read.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=read&sektion=2 -/// [NetBSD]: https://man.netbsd.org/read.2 -/// [OpenBSD]: https://man.openbsd.org/read.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=read§ion=2 -/// [illumos]: https://illumos.org/man/2/read -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/I_002fO-Primitives.html#index-reading-from-a-file-descriptor -#[inline] -pub fn read(fd: Fd, buf: &mut [u8]) -> io::Result { - backend::io::syscalls::read(fd.as_fd(), buf) -} - -/// `write(fd, buf)`—Writes to a stream. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html -/// [Linux]: https://man7.org/linux/man-pages/man2/write.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/write.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=write&sektion=2 -/// [NetBSD]: https://man.netbsd.org/write.2 -/// [OpenBSD]: https://man.openbsd.org/write.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=write§ion=2 -/// [illumos]: https://illumos.org/man/2/write -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/I_002fO-Primitives.html#index-writing-to-a-file-descriptor -#[inline] -pub fn write(fd: Fd, buf: &[u8]) -> io::Result { - backend::io::syscalls::write(fd.as_fd(), buf) -} - -/// `pread(fd, buf, offset)`—Reads from a file at a given position. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pread.html -/// [Linux]: https://man7.org/linux/man-pages/man2/pread.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pread.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pread&sektion=2 -/// [NetBSD]: https://man.netbsd.org/pread.2 -/// [OpenBSD]: https://man.openbsd.org/pread.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pread§ion=2 -/// [illumos]: https://illumos.org/man/2/pread -#[inline] -pub fn pread(fd: Fd, buf: &mut [u8], offset: u64) -> io::Result { - backend::io::syscalls::pread(fd.as_fd(), buf, offset) -} - -/// `pwrite(fd, bufs)`—Writes to a file at a given position. -/// -/// Contrary to POSIX, on many popular platforms including Linux and FreeBSD, -/// if the file is opened in append mode, this ignores the offset appends the -/// data to the end of the file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html -/// [Linux]: https://man7.org/linux/man-pages/man2/pwrite.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pwrite.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pwrite&sektion=2 -/// [NetBSD]: https://man.netbsd.org/pwrite.2 -/// [OpenBSD]: https://man.openbsd.org/pwrite.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwrite§ion=2 -/// [illumos]: https://illumos.org/man/2/pwrite -#[inline] -pub fn pwrite(fd: Fd, buf: &[u8], offset: u64) -> io::Result { - backend::io::syscalls::pwrite(fd.as_fd(), buf, offset) -} - -/// `readv(fd, bufs)`—Reads from a stream into multiple buffers. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readv.html -/// [Linux]: https://man7.org/linux/man-pages/man2/readv.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/readv.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=readv&sektion=2 -/// [NetBSD]: https://man.netbsd.org/readv.2 -/// [OpenBSD]: https://man.openbsd.org/readv.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=readv§ion=2 -/// [illumos]: https://illumos.org/man/2/readv -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn readv(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result { - backend::io::syscalls::readv(fd.as_fd(), bufs) -} - -/// `writev(fd, bufs)`—Writes to a stream from multiple buffers. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/writev.html -/// [Linux]: https://man7.org/linux/man-pages/man2/writev.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/writev.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=writev&sektion=2 -/// [NetBSD]: https://man.netbsd.org/writev.2 -/// [OpenBSD]: https://man.openbsd.org/writev.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=writev§ion=2 -/// [illumos]: https://illumos.org/man/2/writev -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn writev(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result { - backend::io::syscalls::writev(fd.as_fd(), bufs) -} - -/// `preadv(fd, bufs, offset)`—Reads from a file at a given position into -/// multiple buffers. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/preadv.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=preadv&sektion=2 -/// [NetBSD]: https://man.netbsd.org/preadv.2 -/// [OpenBSD]: https://man.openbsd.org/preadv.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=preadv§ion=2 -/// [illumos]: https://illumos.org/man/2/preadv -#[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - target_os = "solaris" -)))] -#[inline] -pub fn preadv(fd: Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io::Result { - backend::io::syscalls::preadv(fd.as_fd(), bufs, offset) -} - -/// `pwritev(fd, bufs, offset)`—Writes to a file at a given position from -/// multiple buffers. -/// -/// Contrary to POSIX, on many popular platforms including Linux and FreeBSD, -/// if the file is opened in append mode, this ignores the offset appends the -/// data to the end of the file. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pwritev&sektion=2 -/// [NetBSD]: https://man.netbsd.org/pwritev.2 -/// [OpenBSD]: https://man.openbsd.org/pwritev.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwritev§ion=2 -/// [illumos]: https://illumos.org/man/2/pwritev -#[cfg(not(any( - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - target_os = "solaris" -)))] -#[inline] -pub fn pwritev(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Result { - backend::io::syscalls::pwritev(fd.as_fd(), bufs, offset) -} - -/// `preadv2(fd, bufs, offset, flags)`—Reads data, with several options. -/// -/// An `offset` of `u64::MAX` means to use and update the current file offset. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/preadv2.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn preadv2( - fd: Fd, - bufs: &mut [IoSliceMut<'_>], - offset: u64, - flags: ReadWriteFlags, -) -> io::Result { - backend::io::syscalls::preadv2(fd.as_fd(), bufs, offset, flags) -} - -/// `pwritev2(fd, bufs, offset, flags)`—Writes data, with several options. -/// -/// An `offset` of `u64::MAX` means to use and update the current file offset. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev2.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn pwritev2( - fd: Fd, - bufs: &[IoSlice<'_>], - offset: u64, - flags: ReadWriteFlags, -) -> io::Result { - backend::io::syscalls::pwritev2(fd.as_fd(), bufs, offset, flags) -} diff --git a/third_party/rust/rustix/src/io_uring.rs b/third_party/rust/rustix/src/io_uring.rs deleted file mode 100644 index 7be65705e545..000000000000 --- a/third_party/rust/rustix/src/io_uring.rs +++ /dev/null @@ -1,1460 +0,0 @@ -//! Linux [io_uring]. -//! -//! This API is very low-level. The main adaptations it makes from the raw -//! Linux io_uring API are the use of appropriately-sized `bitflags`, `enum`, -//! `Result`, `OwnedFd`, `AsFd`, `RawFd`, and `*mut c_void` in place of plain -//! integers. -//! -//! For a higher-level API built on top of this, see the [rustix-uring] crate. -//! -//! # Safety -//! -//! io_uring operates on raw pointers and raw file descriptors. Rustix does not -//! attempt to provide a safe API for these, because the abstraction level is -//! too low for this to be practical. Safety should be introduced in -//! higher-level abstraction layers. -//! -//! # References -//! - [Linux] -//! - [io_uring header] -//! -//! [Linux]: https://man.archlinux.org/man/io_uring.7.en -//! [io_uring]: https://en.wikipedia.org/wiki/Io_uring -//! [io_uring header]: https://github.com/torvalds/linux/blob/master/include/uapi/linux/io_uring.h -//! [rustix-uring]: https://crates.io/crates/rustix-uring -#![allow(unsafe_code)] - -use crate::fd::{AsFd, BorrowedFd, OwnedFd, RawFd}; -use crate::{backend, io}; -use core::ffi::c_void; -use core::mem::MaybeUninit; -use core::ptr::{null_mut, write_bytes}; -use linux_raw_sys::net; - -mod sys { - pub(super) use linux_raw_sys::io_uring::*; - #[cfg(test)] - pub(super) use {crate::backend::c::iovec, linux_raw_sys::general::open_how}; -} - -/// `io_uring_setup(entries, params)`—Setup a context for performing -/// asynchronous I/O. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man.archlinux.org/man/io_uring_setup.2.en -#[inline] -pub fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result { - backend::io_uring::syscalls::io_uring_setup(entries, params) -} - -/// `io_uring_register(fd, opcode, arg, nr_args)`—Register files or user -/// buffers for asynchronous I/O. -/// -/// # Safety -/// -/// io_uring operates on raw pointers and raw file descriptors. Users are -/// responsible for ensuring that memory and resources are only accessed in -/// valid ways. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man.archlinux.org/man/io_uring_register.2.en -#[inline] -pub unsafe fn io_uring_register( - fd: Fd, - opcode: IoringRegisterOp, - arg: *const c_void, - nr_args: u32, -) -> io::Result { - backend::io_uring::syscalls::io_uring_register(fd.as_fd(), opcode, arg, nr_args) -} - -/// `io_uring_enter(fd, to_submit, min_complete, flags, arg, size)`—Initiate -/// and/or complete asynchronous I/O. -/// -/// # Safety -/// -/// io_uring operates on raw pointers and raw file descriptors. Users are -/// responsible for ensuring that memory and resources are only accessed in -/// valid ways. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man.archlinux.org/man/io_uring_enter.2.en -#[inline] -pub unsafe fn io_uring_enter( - fd: Fd, - to_submit: u32, - min_complete: u32, - flags: IoringEnterFlags, - arg: *const c_void, - size: usize, -) -> io::Result { - backend::io_uring::syscalls::io_uring_enter( - fd.as_fd(), - to_submit, - min_complete, - flags, - arg, - size, - ) -} - -bitflags::bitflags! { - /// `IORING_ENTER_*` flags for use with [`io_uring_enter`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringEnterFlags: u32 { - /// `IORING_ENTER_GETEVENTS` - const GETEVENTS = sys::IORING_ENTER_GETEVENTS; - - /// `IORING_ENTER_SQ_WAKEUP` - const SQ_WAKEUP = sys::IORING_ENTER_SQ_WAKEUP; - - /// `IORING_ENTER_SQ_WAIT` - const SQ_WAIT = sys::IORING_ENTER_SQ_WAIT; - - /// `IORING_ENTER_EXT_ARG` - const EXT_ARG = sys::IORING_ENTER_EXT_ARG; - - /// - const _ = !0; - } -} - -/// `IORING_REGISTER_*` and `IORING_UNREGISTER_*` constants for use with -/// [`io_uring_register`]. -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u8)] -#[non_exhaustive] -pub enum IoringRegisterOp { - /// `IORING_REGISTER_BUFFERS` - RegisterBuffers = sys::IORING_REGISTER_BUFFERS as _, - - /// `IORING_UNREGISTER_BUFFERS` - UnregisterBuffers = sys::IORING_UNREGISTER_BUFFERS as _, - - /// `IORING_REGISTER_FILES` - RegisterFiles = sys::IORING_REGISTER_FILES as _, - - /// `IORING_UNREGISTER_FILES` - UnregisterFiles = sys::IORING_UNREGISTER_FILES as _, - - /// `IORING_REGISTER_EVENTFD` - RegisterEventfd = sys::IORING_REGISTER_EVENTFD as _, - - /// `IORING_UNREGISTER_EVENTFD` - UnregisterEventfd = sys::IORING_UNREGISTER_EVENTFD as _, - - /// `IORING_REGISTER_FILES_UPDATE` - RegisterFilesUpdate = sys::IORING_REGISTER_FILES_UPDATE as _, - - /// `IORING_REGISTER_EVENTFD_ASYNC` - RegisterEventfdAsync = sys::IORING_REGISTER_EVENTFD_ASYNC as _, - - /// `IORING_REGISTER_PROBE` - RegisterProbe = sys::IORING_REGISTER_PROBE as _, - - /// `IORING_REGISTER_PERSONALITY` - RegisterPersonality = sys::IORING_REGISTER_PERSONALITY as _, - - /// `IORING_UNREGISTER_PERSONALITY` - UnregisterPersonality = sys::IORING_UNREGISTER_PERSONALITY as _, - - /// `IORING_REGISTER_RESTRICTIONS` - RegisterRestrictions = sys::IORING_REGISTER_RESTRICTIONS as _, - - /// `IORING_REGISTER_ENABLE_RINGS` - RegisterEnableRings = sys::IORING_REGISTER_ENABLE_RINGS as _, - - /// `IORING_REGISTER_BUFFERS2` - RegisterBuffers2 = sys::IORING_REGISTER_BUFFERS2 as _, - - /// `IORING_REGISTER_BUFFERS_UPDATE` - RegisterBuffersUpdate = sys::IORING_REGISTER_BUFFERS_UPDATE as _, - - /// `IORING_REGISTER_FILES2` - RegisterFiles2 = sys::IORING_REGISTER_FILES2 as _, - - /// `IORING_REGISTER_FILES_SKIP` - RegisterFilesSkip = sys::IORING_REGISTER_FILES_SKIP as _, - - /// `IORING_REGISTER_FILES_UPDATE2` - RegisterFilesUpdate2 = sys::IORING_REGISTER_FILES_UPDATE2 as _, - - /// `IORING_REGISTER_IOWQ_AFF` - RegisterIowqAff = sys::IORING_REGISTER_IOWQ_AFF as _, - - /// `IORING_UNREGISTER_IOWQ_AFF` - UnregisterIowqAff = sys::IORING_UNREGISTER_IOWQ_AFF as _, - - /// `IORING_REGISTER_IOWQ_MAX_WORKERS` - RegisterIowqMaxWorkers = sys::IORING_REGISTER_IOWQ_MAX_WORKERS as _, - - /// `IORING_REGISTER_RING_FDS` - RegisterRingFds = sys::IORING_REGISTER_RING_FDS as _, - - /// `IORING_UNREGISTER_RING_FDS` - UnregisterRingFds = sys::IORING_UNREGISTER_RING_FDS as _, - - /// `IORING_REGISTER_PBUF_RING` - RegisterPbufRing = sys::IORING_REGISTER_PBUF_RING as _, - - /// `IORING_UNREGISTER_PBUF_RING` - UnregisterPbufRing = sys::IORING_UNREGISTER_PBUF_RING as _, - - /// `IORING_REGISTER_SYNC_CANCEL` - RegisterSyncCancel = sys::IORING_REGISTER_SYNC_CANCEL as _, - - /// `IORING_REGISTER_FILE_ALLOC_RANGE` - RegisterFileAllocRange = sys::IORING_REGISTER_FILE_ALLOC_RANGE as _, -} - -/// `IORING_OP_*` constants for use with [`io_uring_sqe`]. -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u8)] -#[non_exhaustive] -pub enum IoringOp { - /// `IORING_OP_NOP` - Nop = sys::io_uring_op::IORING_OP_NOP as _, - - /// `IORING_OP_ACCEPT` - Accept = sys::io_uring_op::IORING_OP_ACCEPT as _, - - /// `IORING_OP_ASYNC_CANCEL` - AsyncCancel = sys::io_uring_op::IORING_OP_ASYNC_CANCEL as _, - - /// `IORING_OP_CLOSE` - Close = sys::io_uring_op::IORING_OP_CLOSE as _, - - /// `IORING_OP_CONNECT` - Connect = sys::io_uring_op::IORING_OP_CONNECT as _, - - /// `IORING_OP_EPOLL_CTL` - EpollCtl = sys::io_uring_op::IORING_OP_EPOLL_CTL as _, - - /// `IORING_OP_FADVISE` - Fadvise = sys::io_uring_op::IORING_OP_FADVISE as _, - - /// `IORING_OP_FALLOCATE` - Fallocate = sys::io_uring_op::IORING_OP_FALLOCATE as _, - - /// `IORING_OP_FILES_UPDATE` - FilesUpdate = sys::io_uring_op::IORING_OP_FILES_UPDATE as _, - - /// `IORING_OP_FSYNC` - Fsync = sys::io_uring_op::IORING_OP_FSYNC as _, - - /// `IORING_OP_LINKAT` - Linkat = sys::io_uring_op::IORING_OP_LINKAT as _, - - /// `IORING_OP_LINK_TIMEOUT` - LinkTimeout = sys::io_uring_op::IORING_OP_LINK_TIMEOUT as _, - - /// `IORING_OP_MADVISE` - Madvise = sys::io_uring_op::IORING_OP_MADVISE as _, - - /// `IORING_OP_MKDIRAT` - Mkdirat = sys::io_uring_op::IORING_OP_MKDIRAT as _, - - /// `IORING_OP_OPENAT` - Openat = sys::io_uring_op::IORING_OP_OPENAT as _, - - /// `IORING_OP_OPENAT2` - Openat2 = sys::io_uring_op::IORING_OP_OPENAT2 as _, - - /// `IORING_OP_POLL_ADD` - PollAdd = sys::io_uring_op::IORING_OP_POLL_ADD as _, - - /// `IORING_OP_POLL_REMOVE` - PollRemove = sys::io_uring_op::IORING_OP_POLL_REMOVE as _, - - /// `IORING_OP_PROVIDE_BUFFERS` - ProvideBuffers = sys::io_uring_op::IORING_OP_PROVIDE_BUFFERS as _, - - /// `IORING_OP_READ` - Read = sys::io_uring_op::IORING_OP_READ as _, - - /// `IORING_OP_READV` - Readv = sys::io_uring_op::IORING_OP_READV as _, - - /// `IORING_OP_READ_FIXED` - ReadFixed = sys::io_uring_op::IORING_OP_READ_FIXED as _, - - /// `IORING_OP_RECV` - Recv = sys::io_uring_op::IORING_OP_RECV as _, - - /// `IORING_OP_RECVMSG` - Recvmsg = sys::io_uring_op::IORING_OP_RECVMSG as _, - - /// `IORING_OP_REMOVE_BUFFERS` - RemoveBuffers = sys::io_uring_op::IORING_OP_REMOVE_BUFFERS as _, - - /// `IORING_OP_RENAMEAT` - Renameat = sys::io_uring_op::IORING_OP_RENAMEAT as _, - - /// `IORING_OP_SEND` - Send = sys::io_uring_op::IORING_OP_SEND as _, - - /// `IORING_OP_SENDMSG` - Sendmsg = sys::io_uring_op::IORING_OP_SENDMSG as _, - - /// `IORING_OP_SHUTDOWN` - Shutdown = sys::io_uring_op::IORING_OP_SHUTDOWN as _, - - /// `IORING_OP_SPLICE` - Splice = sys::io_uring_op::IORING_OP_SPLICE as _, - - /// `IORING_OP_STATX` - Statx = sys::io_uring_op::IORING_OP_STATX as _, - - /// `IORING_OP_SYMLINKAT` - Symlinkat = sys::io_uring_op::IORING_OP_SYMLINKAT as _, - - /// `IORING_OP_SYNC_FILE_RANGE` - SyncFileRange = sys::io_uring_op::IORING_OP_SYNC_FILE_RANGE as _, - - /// `IORING_OP_TEE` - Tee = sys::io_uring_op::IORING_OP_TEE as _, - - /// `IORING_OP_TIMEOUT` - Timeout = sys::io_uring_op::IORING_OP_TIMEOUT as _, - - /// `IORING_OP_TIMEOUT_REMOVE` - TimeoutRemove = sys::io_uring_op::IORING_OP_TIMEOUT_REMOVE as _, - - /// `IORING_OP_UNLINKAT` - Unlinkat = sys::io_uring_op::IORING_OP_UNLINKAT as _, - - /// `IORING_OP_WRITE` - Write = sys::io_uring_op::IORING_OP_WRITE as _, - - /// `IORING_OP_WRITEV` - Writev = sys::io_uring_op::IORING_OP_WRITEV as _, - - /// `IORING_OP_WRITE_FIXED` - WriteFixed = sys::io_uring_op::IORING_OP_WRITE_FIXED as _, - - /// `IORING_OP_MSG_RING` - MsgRing = sys::io_uring_op::IORING_OP_MSG_RING as _, - - /// `IORING_OP_FSETXATTR` - Fsetxattr = sys::io_uring_op::IORING_OP_FSETXATTR as _, - - /// `IORING_OP_SETXATTR` - Setxattr = sys::io_uring_op::IORING_OP_SETXATTR as _, - - /// `IORING_OP_FGETXATTR` - Fgetxattr = sys::io_uring_op::IORING_OP_FGETXATTR as _, - - /// `IORING_OP_GETXATTR` - Getxattr = sys::io_uring_op::IORING_OP_GETXATTR as _, - - /// `IORING_OP_SOCKET` - Socket = sys::io_uring_op::IORING_OP_SOCKET as _, - - /// `IORING_OP_URING_CMD` - UringCmd = sys::io_uring_op::IORING_OP_URING_CMD as _, - - /// `IORING_OP_SEND_ZC` - SendZc = sys::io_uring_op::IORING_OP_SEND_ZC as _, - - /// `IORING_OP_SENDMSG_ZC` - SendmsgZc = sys::io_uring_op::IORING_OP_SENDMSG_ZC as _, -} - -impl Default for IoringOp { - #[inline] - fn default() -> Self { - Self::Nop - } -} - -/// `IORING_RESTRICTION_*` constants for use with [`io_uring_restriction`]. -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u16)] -#[non_exhaustive] -pub enum IoringRestrictionOp { - /// `IORING_RESTRICTION_REGISTER_OP` - RegisterOp = sys::IORING_RESTRICTION_REGISTER_OP as _, - - /// `IORING_RESTRICTION_SQE_FLAGS_ALLOWED` - SqeFlagsAllowed = sys::IORING_RESTRICTION_SQE_FLAGS_ALLOWED as _, - - /// `IORING_RESTRICTION_SQE_FLAGS_REQUIRED` - SqeFlagsRequired = sys::IORING_RESTRICTION_SQE_FLAGS_REQUIRED as _, - - /// `IORING_RESTRICTION_SQE_OP` - SqeOp = sys::IORING_RESTRICTION_SQE_OP as _, -} - -impl Default for IoringRestrictionOp { - #[inline] - fn default() -> Self { - Self::RegisterOp - } -} - -/// `IORING_MSG_*` constants which represent commands for use with -/// [`IoringOp::MsgRing`], (`seq.addr`) -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u64)] -#[non_exhaustive] -pub enum IoringMsgringCmds { - /// `IORING_MSG_DATA` - Data = sys::IORING_MSG_DATA as _, - - /// `IORING_MSG_SEND_FD` - SendFd = sys::IORING_MSG_SEND_FD as _, -} - -bitflags::bitflags! { - /// `IORING_SETUP_*` flags for use with [`io_uring_params`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringSetupFlags: u32 { - /// `IORING_SETUP_ATTACH_WQ` - const ATTACH_WQ = sys::IORING_SETUP_ATTACH_WQ; - - /// `IORING_SETUP_CLAMP` - const CLAMP = sys::IORING_SETUP_CLAMP; - - /// `IORING_SETUP_CQSIZE` - const CQSIZE = sys::IORING_SETUP_CQSIZE; - - /// `IORING_SETUP_IOPOLL` - const IOPOLL = sys::IORING_SETUP_IOPOLL; - - /// `IORING_SETUP_R_DISABLED` - const R_DISABLED = sys::IORING_SETUP_R_DISABLED; - - /// `IORING_SETUP_SQPOLL` - const SQPOLL = sys::IORING_SETUP_SQPOLL; - - /// `IORING_SETUP_SQ_AFF` - const SQ_AFF = sys::IORING_SETUP_SQ_AFF; - - /// `IORING_SETUP_SQE128` - const SQE128 = sys::IORING_SETUP_SQE128; - - /// `IORING_SETUP_CQE32` - const CQE32 = sys::IORING_SETUP_CQE32; - - /// `IORING_SETUP_SUBMIT_ALL` - const SUBMIT_ALL = sys::IORING_SETUP_SUBMIT_ALL; - - /// `IORING_SETUP_COOP_TRASKRUN` - const COOP_TASKRUN = sys::IORING_SETUP_COOP_TASKRUN; - - /// `IORING_SETUP_TASKRUN_FLAG` - const TASKRUN_FLAG = sys::IORING_SETUP_TASKRUN_FLAG; - - /// `IORING_SETUP_SINGLE_ISSUER` - const SINGLE_ISSUER = sys::IORING_SETUP_SINGLE_ISSUER; - - /// `IORING_SETUP_DEFER_TASKRUN` - const DEFER_TASKRUN = sys::IORING_SETUP_DEFER_TASKRUN; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IOSQE_*` flags for use with [`io_uring_sqe`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringSqeFlags: u8 { - /// `1 << IOSQE_ASYNC_BIT` - const ASYNC = 1 << sys::IOSQE_ASYNC_BIT as u8; - - /// `1 << IOSQE_BUFFER_SELECT_BIT` - const BUFFER_SELECT = 1 << sys::IOSQE_BUFFER_SELECT_BIT as u8; - - /// `1 << IOSQE_FIXED_FILE_BIT` - const FIXED_FILE = 1 << sys::IOSQE_FIXED_FILE_BIT as u8; - - /// 1 << `IOSQE_IO_DRAIN_BIT` - const IO_DRAIN = 1 << sys::IOSQE_IO_DRAIN_BIT as u8; - - /// `1 << IOSQE_IO_HARDLINK_BIT` - const IO_HARDLINK = 1 << sys::IOSQE_IO_HARDLINK_BIT as u8; - - /// `1 << IOSQE_IO_LINK_BIT` - const IO_LINK = 1 << sys::IOSQE_IO_LINK_BIT as u8; - - /// `1 << IOSQE_CQE_SKIP_SUCCESS_BIT` - const CQE_SKIP_SUCCESS = 1 << sys::IOSQE_CQE_SKIP_SUCCESS_BIT as u8; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_CQE_F_*` flags for use with [`io_uring_cqe`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringCqeFlags: u32 { - /// `IORING_CQE_F_BUFFER` - const BUFFER = bitcast!(sys::IORING_CQE_F_BUFFER); - - /// `IORING_CQE_F_MORE` - const MORE = bitcast!(sys::IORING_CQE_F_MORE); - - /// `IORING_CQE_F_SOCK_NONEMPTY` - const SOCK_NONEMPTY = bitcast!(sys::IORING_CQE_F_SOCK_NONEMPTY); - - /// `IORING_CQE_F_NOTIF` - const NOTIF = bitcast!(sys::IORING_CQE_F_NOTIF); - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_FSYNC_*` flags for use with [`io_uring_sqe`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringFsyncFlags: u32 { - /// `IORING_FSYNC_DATASYNC` - const DATASYNC = sys::IORING_FSYNC_DATASYNC; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_TIMEOUT_*` and `IORING_LINK_TIMEOUT_UPDATE` flags for use with - /// [`io_uring_sqe`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringTimeoutFlags: u32 { - /// `IORING_TIMEOUT_ABS` - const ABS = sys::IORING_TIMEOUT_ABS; - - /// `IORING_TIMEOUT_UPDATE` - const UPDATE = sys::IORING_TIMEOUT_UPDATE; - - /// `IORING_TIMEOUT_BOOTTIME` - const BOOTTIME = sys::IORING_TIMEOUT_BOOTTIME; - - /// `IORING_TIMEOUT_ETIME_SUCCESS` - const ETIME_SUCCESS = sys::IORING_TIMEOUT_ETIME_SUCCESS; - - /// `IORING_TIMEOUT_REALTIME` - const REALTIME = sys::IORING_TIMEOUT_REALTIME; - - /// `IORING_TIMEOUT_CLOCK_MASK` - const CLOCK_MASK = sys::IORING_TIMEOUT_CLOCK_MASK; - - /// `IORING_TIMEOUT_UPDATE_MASK` - const UPDATE_MASK = sys::IORING_TIMEOUT_UPDATE_MASK; - - /// `IORING_LINK_TIMEOUT_UPDATE` - const LINK_TIMEOUT_UPDATE = sys::IORING_LINK_TIMEOUT_UPDATE; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `SPLICE_F_*` flags for use with [`io_uring_sqe`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SpliceFlags: u32 { - /// `SPLICE_F_FD_IN_FIXED` - const FD_IN_FIXED = sys::SPLICE_F_FD_IN_FIXED; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_MSG_RING_*` flags for use with [`io_uring_sqe`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringMsgringFlags: u32 { - /// `IORING_MSG_RING_CQE_SKIP` - const CQE_SKIP = sys::IORING_MSG_RING_CQE_SKIP; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_ASYNC_CANCEL_*` flags for use with [`io_uring_sqe`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringAsyncCancelFlags: u32 { - /// `IORING_ASYNC_CANCEL_ALL` - const ALL = sys::IORING_ASYNC_CANCEL_ALL; - - /// `IORING_ASYNC_CANCEL_FD` - const FD = sys::IORING_ASYNC_CANCEL_FD; - - /// `IORING_ASYNC_CANCEL_FD` - const ANY = sys::IORING_ASYNC_CANCEL_ANY; - - /// `IORING_ASYNC_CANCEL_FD` - const FD_FIXED = sys::IORING_ASYNC_CANCEL_FD_FIXED; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_FEAT_*` flags for use with [`io_uring_params`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringFeatureFlags: u32 { - /// `IORING_FEAT_CQE_SKIP` - const CQE_SKIP = sys::IORING_FEAT_CQE_SKIP; - - /// `IORING_FEAT_CUR_PERSONALITY` - const CUR_PERSONALITY = sys::IORING_FEAT_CUR_PERSONALITY; - - /// `IORING_FEAT_EXT_ARG` - const EXT_ARG = sys::IORING_FEAT_EXT_ARG; - - /// `IORING_FEAT_FAST_POLL` - const FAST_POLL = sys::IORING_FEAT_FAST_POLL; - - /// `IORING_FEAT_NATIVE_WORKERS` - const NATIVE_WORKERS = sys::IORING_FEAT_NATIVE_WORKERS; - - /// `IORING_FEAT_NODROP` - const NODROP = sys::IORING_FEAT_NODROP; - - /// `IORING_FEAT_POLL_32BITS` - const POLL_32BITS = sys::IORING_FEAT_POLL_32BITS; - - /// `IORING_FEAT_RSRC_TAGS` - const RSRC_TAGS = sys::IORING_FEAT_RSRC_TAGS; - - /// `IORING_FEAT_RW_CUR_POS` - const RW_CUR_POS = sys::IORING_FEAT_RW_CUR_POS; - - /// `IORING_FEAT_SINGLE_MMAP` - const SINGLE_MMAP = sys::IORING_FEAT_SINGLE_MMAP; - - /// `IORING_FEAT_SQPOLL_NONFIXED` - const SQPOLL_NONFIXED = sys::IORING_FEAT_SQPOLL_NONFIXED; - - /// `IORING_FEAT_SUBMIT_STABLE` - const SUBMIT_STABLE = sys::IORING_FEAT_SUBMIT_STABLE; - - /// `IORING_FEAT_LINKED_FILE` - const LINKED_FILE = sys::IORING_FEAT_LINKED_FILE; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IO_URING_OP_*` flags for use with [`io_uring_probe_op`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringOpFlags: u16 { - /// `IO_URING_OP_SUPPORTED` - const SUPPORTED = sys::IO_URING_OP_SUPPORTED as _; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_RSRC_*` flags for use with [`io_uring_rsrc_register`]. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringRsrcFlags: u32 { - /// `IORING_RSRC_REGISTER_SPARSE` - const REGISTER_SPARSE = sys::IORING_RSRC_REGISTER_SPARSE as _; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_SQ_*` flags. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringSqFlags: u32 { - /// `IORING_SQ_NEED_WAKEUP` - const NEED_WAKEUP = sys::IORING_SQ_NEED_WAKEUP; - - /// `IORING_SQ_CQ_OVERFLOW` - const CQ_OVERFLOW = sys::IORING_SQ_CQ_OVERFLOW; - - /// `IORING_SQ_TASKRUN` - const TASKRUN = sys::IORING_SQ_TASKRUN; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_CQ_*` flags. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringCqFlags: u32 { - /// `IORING_CQ_EVENTFD_DISABLED` - const EVENTFD_DISABLED = sys::IORING_CQ_EVENTFD_DISABLED; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// `IORING_POLL_*` flags. - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringPollFlags: u32 { - /// `IORING_POLL_ADD_MULTI` - const ADD_MULTI = sys::IORING_POLL_ADD_MULTI; - - /// `IORING_POLL_UPDATE_EVENTS` - const UPDATE_EVENTS = sys::IORING_POLL_UPDATE_EVENTS; - - /// `IORING_POLL_UPDATE_USER_DATA` - const UPDATE_USER_DATA = sys::IORING_POLL_UPDATE_USER_DATA; - - /// `IORING_POLL_ADD_LEVEL` - const ADD_LEVEL = sys::IORING_POLL_ADD_LEVEL; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// send/sendmsg flags (`sqe.ioprio`) - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringSendFlags: u16 { - /// `IORING_RECVSEND_POLL_FIRST`. - /// - /// See also [`IoringRecvFlags::POLL_FIRST`]. - const POLL_FIRST = sys::IORING_RECVSEND_POLL_FIRST as _; - - /// `IORING_RECVSEND_FIXED_BUF` - /// - /// See also [`IoringRecvFlags::FIXED_BUF`]. - const FIXED_BUF = sys::IORING_RECVSEND_FIXED_BUF as _; - - /// `IORING_SEND_ZC_REPORT_USAGE` (since Linux 6.2) - const ZC_REPORT_USAGE = sys::IORING_SEND_ZC_REPORT_USAGE as _; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// recv/recvmsg flags (`sqe.ioprio`) - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringRecvFlags: u16 { - /// `IORING_RECVSEND_POLL_FIRST` - /// - /// See also [`IoringSendFlags::POLL_FIRST`]. - const POLL_FIRST = sys::IORING_RECVSEND_POLL_FIRST as _; - - /// `IORING_RECV_MULTISHOT` - const MULTISHOT = sys::IORING_RECV_MULTISHOT as _; - - /// `IORING_RECVSEND_FIXED_BUF` - /// - /// See also [`IoringSendFlags::FIXED_BUF`]. - const FIXED_BUF = sys::IORING_RECVSEND_FIXED_BUF as _; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// accept flags (`sqe.ioprio`) - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct IoringAcceptFlags: u16 { - /// `IORING_ACCEPT_MULTISHOT` - const MULTISHOT = sys::IORING_ACCEPT_MULTISHOT as _; - - /// - const _ = !0; - } -} - -bitflags::bitflags! { - /// recvmsg out flags - #[repr(transparent)] - #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct RecvmsgOutFlags: u32 { - /// `MSG_EOR` - const EOR = net::MSG_EOR; - - /// `MSG_TRUNC` - const TRUNC = net::MSG_TRUNC; - - /// `MSG_CTRUNC` - const CTRUNC = net::MSG_CTRUNC; - - /// `MSG_OOB` - const OOB = net::MSG_OOB; - - /// `MSG_ERRQUEUE` - const ERRQUEUE = net::MSG_ERRQUEUE; - - /// - const _ = !0; - } -} - -#[allow(missing_docs)] -pub const IORING_CQE_BUFFER_SHIFT: u32 = sys::IORING_CQE_BUFFER_SHIFT as _; -#[allow(missing_docs)] -pub const IORING_FILE_INDEX_ALLOC: i32 = sys::IORING_FILE_INDEX_ALLOC as _; - -// Re-export these as `u64`, which is the `offset` type in `rustix::io::mmap`. -#[allow(missing_docs)] -pub const IORING_OFF_SQ_RING: u64 = sys::IORING_OFF_SQ_RING as _; -#[allow(missing_docs)] -pub const IORING_OFF_CQ_RING: u64 = sys::IORING_OFF_CQ_RING as _; -#[allow(missing_docs)] -pub const IORING_OFF_SQES: u64 = sys::IORING_OFF_SQES as _; - -/// `IORING_REGISTER_FILES_SKIP` -#[inline] -#[doc(alias = "IORING_REGISTER_FILES_SKIP")] -pub const fn io_uring_register_files_skip() -> BorrowedFd<'static> { - let files_skip = sys::IORING_REGISTER_FILES_SKIP as RawFd; - - // SAFETY: `IORING_REGISTER_FILES_SKIP` is a reserved value that is never - // dynamically allocated, so it'll remain valid for the duration of - // `'static`. - unsafe { BorrowedFd::<'static>::borrow_raw(files_skip) } -} - -/// `IORING_NOTIF_USAGE_ZC_COPIED` (since Linux 6.2) -pub const IORING_NOTIF_USAGE_ZC_COPIED: i32 = sys::IORING_NOTIF_USAGE_ZC_COPIED as _; - -/// A pointer in the io_uring API. -/// -/// `io_uring`'s native API represents pointers as `u64` values. In order to -/// preserve strict-provenance, use a `*mut c_void`. On platforms where -/// pointers are narrower than 64 bits, this requires additional padding. -#[repr(C)] -#[derive(Copy, Clone)] -pub struct io_uring_ptr { - #[cfg(all(target_pointer_width = "32", target_endian = "big"))] - #[doc(hidden)] - pub __pad32: u32, - #[cfg(all(target_pointer_width = "16", target_endian = "big"))] - #[doc(hidden)] - pub __pad16: u16, - - /// The pointer value. - pub ptr: *mut c_void, - - #[cfg(all(target_pointer_width = "16", target_endian = "little"))] - #[doc(hidden)] - pub __pad16: u16, - #[cfg(all(target_pointer_width = "32", target_endian = "little"))] - #[doc(hidden)] - pub __pad32: u32, -} - -impl From<*mut c_void> for io_uring_ptr { - #[inline] - fn from(ptr: *mut c_void) -> Self { - Self { - ptr, - - #[cfg(target_pointer_width = "16")] - __pad16: Default::default(), - #[cfg(any(target_pointer_width = "16", target_pointer_width = "32"))] - __pad32: Default::default(), - } - } -} - -impl Default for io_uring_ptr { - #[inline] - fn default() -> Self { - Self::from(null_mut()) - } -} - -/// User data in the io_uring API. -/// -/// `io_uring`'s native API represents `user_data` fields as `u64` values. In -/// order to preserve strict-provenance, use a union which allows users to -/// optionally store pointers. -#[repr(C)] -#[derive(Copy, Clone)] -pub union io_uring_user_data { - /// An arbitrary `u64`. - pub u64_: u64, - - /// A pointer. - pub ptr: io_uring_ptr, -} - -impl io_uring_user_data { - /// Return the `u64` value. - #[inline] - pub fn u64_(self) -> u64 { - // SAFETY: All the fields have the same underlying representation. - unsafe { self.u64_ } - } - - /// Create a `Self` from a `u64` value. - #[inline] - pub fn from_u64(u64_: u64) -> Self { - Self { u64_ } - } - - /// Return the `ptr` pointer value. - #[inline] - pub fn ptr(self) -> *mut c_void { - // SAFETY: All the fields have the same underlying representation. - unsafe { self.ptr }.ptr - } - - /// Create a `Self` from a pointer value. - #[inline] - pub fn from_ptr(ptr: *mut c_void) -> Self { - Self { - ptr: io_uring_ptr::from(ptr), - } - } -} - -impl Default for io_uring_user_data { - #[inline] - fn default() -> Self { - let mut s = MaybeUninit::::uninit(); - // SAFETY: All of Linux's io_uring structs may be zero-initialized. - unsafe { - write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} - -impl core::fmt::Debug for io_uring_user_data { - fn fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - // SAFETY: Just format as a `u64`, since formatting doesn't preserve - // provenance, and we don't have a discriminant. - unsafe { self.u64_.fmt(fmt) } - } -} - -/// An io_uring Submission Queue Entry. -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone, Default)] -pub struct io_uring_sqe { - pub opcode: IoringOp, - pub flags: IoringSqeFlags, - pub ioprio: ioprio_union, - pub fd: RawFd, - pub off_or_addr2: off_or_addr2_union, - pub addr_or_splice_off_in: addr_or_splice_off_in_union, - pub len: len_union, - pub op_flags: op_flags_union, - pub user_data: io_uring_user_data, - pub buf: buf_union, - pub personality: u16, - pub splice_fd_in_or_file_index: splice_fd_in_or_file_index_union, - pub addr3_or_cmd: addr3_or_cmd_union, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union ioprio_union { - pub recv_flags: IoringRecvFlags, - pub send_flags: IoringSendFlags, - pub accept_flags: IoringAcceptFlags, - pub ioprio: u16, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union len_union { - pub poll_flags: IoringPollFlags, - pub len: u32, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union addr3_or_cmd_union { - pub addr3: addr3_struct, - pub cmd: [u8; 0], -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone, Default)] -pub struct addr3_struct { - pub addr3: u64, - pub __pad2: [u64; 1], -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union off_or_addr2_union { - pub off: u64, - pub addr2: io_uring_ptr, - pub cmd_op: cmd_op_struct, - pub user_data: io_uring_user_data, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct cmd_op_struct { - pub cmd_op: u32, - pub __pad1: u32, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union addr_or_splice_off_in_union { - pub addr: io_uring_ptr, - pub splice_off_in: u64, - pub msgring_cmd: IoringMsgringCmds, - pub user_data: io_uring_user_data, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union op_flags_union { - pub rw_flags: crate::io::ReadWriteFlags, - pub fsync_flags: IoringFsyncFlags, - pub poll_events: u16, - pub poll32_events: u32, - pub sync_range_flags: u32, - /// `msg_flags` is split into `send_flags` and `recv_flags`. - #[doc(alias = "msg_flags")] - pub send_flags: crate::net::SendFlags, - /// `msg_flags` is split into `send_flags` and `recv_flags`. - #[doc(alias = "msg_flags")] - pub recv_flags: crate::net::RecvFlags, - pub timeout_flags: IoringTimeoutFlags, - pub accept_flags: crate::net::SocketFlags, - pub cancel_flags: IoringAsyncCancelFlags, - pub open_flags: crate::fs::OFlags, - pub statx_flags: crate::fs::AtFlags, - pub fadvise_advice: crate::fs::Advice, - pub splice_flags: SpliceFlags, - pub rename_flags: crate::fs::RenameFlags, - pub unlink_flags: crate::fs::AtFlags, - pub hardlink_flags: crate::fs::AtFlags, - pub msg_ring_flags: IoringMsgringFlags, -} - -#[allow(missing_docs)] -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union buf_union { - pub buf_index: u16, - pub buf_group: u16, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union splice_fd_in_or_file_index_union { - pub splice_fd_in: i32, - pub file_index: u32, -} - -/// An io_uring Completion Queue Entry. -/// -/// This does not derive `Copy` or `Clone` because the `big_cqe` field is not -/// automatically copyable. -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Default)] -pub struct io_uring_cqe { - pub user_data: io_uring_user_data, - pub res: i32, - pub flags: IoringCqeFlags, - pub big_cqe: sys::__IncompleteArrayField, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone, Default)] -pub struct io_uring_restriction { - pub opcode: IoringRestrictionOp, - pub register_or_sqe_op_or_sqe_flags: register_or_sqe_op_or_sqe_flags_union, - pub resv: u8, - pub resv2: [u32; 3], -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Copy, Clone)] -pub union register_or_sqe_op_or_sqe_flags_union { - pub register_op: IoringRegisterOp, - pub sqe_op: IoringOp, - pub sqe_flags: IoringSqeFlags, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_params { - pub sq_entries: u32, - pub cq_entries: u32, - pub flags: IoringSetupFlags, - pub sq_thread_cpu: u32, - pub sq_thread_idle: u32, - pub features: IoringFeatureFlags, - pub wq_fd: u32, - pub resv: [u32; 3], - pub sq_off: io_sqring_offsets, - pub cq_off: io_cqring_offsets, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_sqring_offsets { - pub head: u32, - pub tail: u32, - pub ring_mask: u32, - pub ring_entries: u32, - pub flags: u32, - pub dropped: u32, - pub array: u32, - pub resv1: u32, - pub resv2: u64, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_cqring_offsets { - pub head: u32, - pub tail: u32, - pub ring_mask: u32, - pub ring_entries: u32, - pub overflow: u32, - pub cqes: u32, - pub flags: u32, - pub resv1: u32, - pub resv2: u64, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Default)] -pub struct io_uring_probe { - pub last_op: IoringOp, - pub ops_len: u8, - pub resv: u16, - pub resv2: [u32; 3], - pub ops: sys::__IncompleteArrayField, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_probe_op { - pub op: IoringOp, - pub resv: u8, - pub flags: IoringOpFlags, - pub resv2: u32, -} - -#[allow(missing_docs)] -#[repr(C, align(8))] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_files_update { - pub offset: u32, - pub resv: u32, - pub fds: u64, -} - -#[allow(missing_docs)] -#[repr(C, align(8))] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_rsrc_register { - pub nr: u32, - pub flags: IoringRsrcFlags, - pub resv2: u64, - pub data: u64, - pub tags: u64, -} - -#[allow(missing_docs)] -#[repr(C, align(8))] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_rsrc_update { - pub offset: u32, - pub resv: u32, - pub data: u64, -} - -#[allow(missing_docs)] -#[repr(C, align(8))] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_rsrc_update2 { - pub offset: u32, - pub resv: u32, - pub data: u64, - pub tags: u64, - pub nr: u32, - pub resv2: u32, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_getevents_arg { - pub sigmask: u64, - pub sigmask_sz: u32, - pub pad: u32, - pub ts: u64, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct io_uring_recvmsg_out { - pub namelen: u32, - pub controllen: u32, - pub payloadlen: u32, - pub flags: RecvmsgOutFlags, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut c_void, - pub iov_len: usize, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct open_how { - /// An [`OFlags`] value represented as a `u64`. - /// - /// [`OFlags`]: crate::fs::OFlags - pub flags: u64, - - /// A [`Mode`] value represented as a `u64`. - /// - /// [`Mode`]: crate::fs::Mode - pub mode: u64, - - pub resolve: crate::fs::ResolveFlags, -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_buf_reg { - pub ring_addr: u64, - pub ring_entries: u32, - pub bgid: u16, - pub pad: u16, - pub resv: [u64; 3_usize], -} - -#[allow(missing_docs)] -#[repr(C)] -#[derive(Debug, Copy, Clone, Default)] -pub struct io_uring_buf { - pub addr: u64, - pub len: u32, - pub bid: u16, - pub resv: u16, -} - -impl Default for ioprio_union { - #[inline] - fn default() -> Self { - default_union!(ioprio_union, ioprio) - } -} - -impl Default for len_union { - #[inline] - fn default() -> Self { - default_union!(len_union, len) - } -} - -impl Default for off_or_addr2_union { - #[inline] - fn default() -> Self { - default_union!(off_or_addr2_union, off) - } -} - -impl Default for addr_or_splice_off_in_union { - #[inline] - fn default() -> Self { - default_union!(addr_or_splice_off_in_union, splice_off_in) - } -} - -impl Default for addr3_or_cmd_union { - #[inline] - fn default() -> Self { - default_union!(addr3_or_cmd_union, addr3) - } -} - -impl Default for op_flags_union { - #[inline] - fn default() -> Self { - default_union!(op_flags_union, sync_range_flags) - } -} - -impl Default for buf_union { - #[inline] - fn default() -> Self { - default_union!(buf_union, buf_index) - } -} - -impl Default for splice_fd_in_or_file_index_union { - #[inline] - fn default() -> Self { - default_union!(splice_fd_in_or_file_index_union, splice_fd_in) - } -} - -impl Default for register_or_sqe_op_or_sqe_flags_union { - #[inline] - fn default() -> Self { - default_union!(register_or_sqe_op_or_sqe_flags_union, sqe_flags) - } -} - -/// Check that our custom structs and unions have the same layout as the -/// kernel's versions. -#[test] -fn io_uring_layouts() { - use sys as c; - - check_renamed_type!(off_or_addr2_union, io_uring_sqe__bindgen_ty_1); - check_renamed_type!(addr_or_splice_off_in_union, io_uring_sqe__bindgen_ty_2); - check_renamed_type!(addr3_or_cmd_union, io_uring_sqe__bindgen_ty_6); - check_renamed_type!(op_flags_union, io_uring_sqe__bindgen_ty_3); - check_renamed_type!(buf_union, io_uring_sqe__bindgen_ty_4); - check_renamed_type!(splice_fd_in_or_file_index_union, io_uring_sqe__bindgen_ty_5); - check_renamed_type!( - register_or_sqe_op_or_sqe_flags_union, - io_uring_restriction__bindgen_ty_1 - ); - - check_renamed_type!(addr3_struct, io_uring_sqe__bindgen_ty_6__bindgen_ty_1); - check_renamed_type!(cmd_op_struct, io_uring_sqe__bindgen_ty_1__bindgen_ty_1); - - check_type!(io_uring_sqe); - check_struct_field!(io_uring_sqe, opcode); - check_struct_field!(io_uring_sqe, flags); - check_struct_field!(io_uring_sqe, ioprio); - check_struct_field!(io_uring_sqe, fd); - check_struct_renamed_field!(io_uring_sqe, off_or_addr2, __bindgen_anon_1); - check_struct_renamed_field!(io_uring_sqe, addr_or_splice_off_in, __bindgen_anon_2); - check_struct_field!(io_uring_sqe, len); - check_struct_renamed_field!(io_uring_sqe, op_flags, __bindgen_anon_3); - check_struct_field!(io_uring_sqe, user_data); - check_struct_renamed_field!(io_uring_sqe, buf, __bindgen_anon_4); - check_struct_field!(io_uring_sqe, personality); - check_struct_renamed_field!(io_uring_sqe, splice_fd_in_or_file_index, __bindgen_anon_5); - check_struct_renamed_field!(io_uring_sqe, addr3_or_cmd, __bindgen_anon_6); - - check_type!(io_uring_restriction); - check_struct_field!(io_uring_restriction, opcode); - check_struct_renamed_field!( - io_uring_restriction, - register_or_sqe_op_or_sqe_flags, - __bindgen_anon_1 - ); - check_struct_field!(io_uring_restriction, resv); - check_struct_field!(io_uring_restriction, resv2); - - check_struct!(io_uring_cqe, user_data, res, flags, big_cqe); - check_struct!( - io_uring_params, - sq_entries, - cq_entries, - flags, - sq_thread_cpu, - sq_thread_idle, - features, - wq_fd, - resv, - sq_off, - cq_off - ); - check_struct!( - io_sqring_offsets, - head, - tail, - ring_mask, - ring_entries, - flags, - dropped, - array, - resv1, - resv2 - ); - check_struct!( - io_cqring_offsets, - head, - tail, - ring_mask, - ring_entries, - overflow, - cqes, - flags, - resv1, - resv2 - ); - check_struct!(io_uring_recvmsg_out, namelen, controllen, payloadlen, flags); - check_struct!(io_uring_probe, last_op, ops_len, resv, resv2, ops); - check_struct!(io_uring_probe_op, op, resv, flags, resv2); - check_struct!(io_uring_files_update, offset, resv, fds); - check_struct!(io_uring_rsrc_register, nr, flags, resv2, data, tags); - check_struct!(io_uring_rsrc_update, offset, resv, data); - check_struct!(io_uring_rsrc_update2, offset, resv, data, tags, nr, resv2); - check_struct!(io_uring_getevents_arg, sigmask, sigmask_sz, pad, ts); - check_struct!(iovec, iov_base, iov_len); - check_struct!(open_how, flags, mode, resolve); - check_struct!(io_uring_buf_reg, ring_addr, ring_entries, bgid, pad, resv); - check_struct!(io_uring_buf, addr, len, bid, resv); -} diff --git a/third_party/rust/rustix/src/ioctl/bsd.rs b/third_party/rust/rustix/src/ioctl/bsd.rs deleted file mode 100644 index 66b75b54b605..000000000000 --- a/third_party/rust/rustix/src/ioctl/bsd.rs +++ /dev/null @@ -1,24 +0,0 @@ -//! `ioctl` opcode behavior for Linux platforms. - -use super::{Direction, RawOpcode}; - -pub(super) const fn compose_opcode( - dir: Direction, - group: RawOpcode, - num: RawOpcode, - size: RawOpcode, -) -> RawOpcode { - let dir = match dir { - Direction::None => NONE, - Direction::Read => READ, - Direction::Write => WRITE, - Direction::ReadWrite => READ | WRITE, - }; - - dir | num | (group << 8) | ((size & IOCPARAM_MASK) << 16) -} - -pub const NONE: RawOpcode = 0x2000_0000; -pub const WRITE: RawOpcode = 0x4000_0000; -pub const READ: RawOpcode = 0x8000_0000; -pub const IOCPARAM_MASK: RawOpcode = 0x1FFF; diff --git a/third_party/rust/rustix/src/ioctl/linux.rs b/third_party/rust/rustix/src/ioctl/linux.rs deleted file mode 100644 index 9bf1d261deda..000000000000 --- a/third_party/rust/rustix/src/ioctl/linux.rs +++ /dev/null @@ -1,81 +0,0 @@ -//! `ioctl` opcode behavior for Linux platforms. - -use super::{Direction, RawOpcode}; -use consts::*; - -/// Compose an opcode from its component parts. -pub(super) const fn compose_opcode( - dir: Direction, - group: RawOpcode, - num: RawOpcode, - size: RawOpcode, -) -> RawOpcode { - macro_rules! shift_and_mask { - ($val:expr, $shift:expr, $mask:expr) => {{ - ($val << $shift) & $mask - }}; - } - - let dir = match dir { - Direction::None => NONE, - Direction::Read => READ, - Direction::Write => WRITE, - Direction::ReadWrite => READ | WRITE, - }; - - shift_and_mask!(group, GROUP_SHIFT, GROUP_MASK) - | shift_and_mask!(num, NUM_SHIFT, NUM_MASK) - | shift_and_mask!(size, SIZE_SHIFT, SIZE_MASK) - | shift_and_mask!(dir, DIR_SHIFT, DIR_MASK) -} - -const NUM_BITS: RawOpcode = 8; -const GROUP_BITS: RawOpcode = 8; - -const NUM_SHIFT: RawOpcode = 0; -const GROUP_SHIFT: RawOpcode = NUM_SHIFT + NUM_BITS; -const SIZE_SHIFT: RawOpcode = GROUP_SHIFT + GROUP_BITS; -const DIR_SHIFT: RawOpcode = SIZE_SHIFT + SIZE_BITS; - -const NUM_MASK: RawOpcode = (1 << NUM_BITS) - 1; -const GROUP_MASK: RawOpcode = (1 << GROUP_BITS) - 1; -const SIZE_MASK: RawOpcode = (1 << SIZE_BITS) - 1; -const DIR_MASK: RawOpcode = (1 << DIR_BITS) - 1; - -#[cfg(any( - target_arch = "x86", - target_arch = "arm", - target_arch = "s390x", - target_arch = "x86_64", - target_arch = "aarch64", - target_arch = "riscv32", - target_arch = "riscv64", - target_arch = "loongarch64" -))] -mod consts { - use super::RawOpcode; - - pub(super) const NONE: RawOpcode = 0; - pub(super) const READ: RawOpcode = 2; - pub(super) const WRITE: RawOpcode = 1; - pub(super) const SIZE_BITS: RawOpcode = 14; - pub(super) const DIR_BITS: RawOpcode = 2; -} - -#[cfg(any( - target_arch = "mips", - target_arch = "mips64", - target_arch = "powerpc", - target_arch = "powerpc64", - target_arch = "sparc", - target_arch = "sparc64" -))] -mod consts { - use super::RawOpcode; - - pub(super) const NONE: RawOpcode = 1; - pub(super) const READ: RawOpcode = 2; - pub(super) const WRITE: RawOpcode = 4; - pub(super) const SIZE_BITS: RawOpcode = 13; - pub(super) const DIR_BITS: RawOpcode = 3; -} diff --git a/third_party/rust/rustix/src/ioctl/mod.rs b/third_party/rust/rustix/src/ioctl/mod.rs deleted file mode 100644 index 61a08b8e1498..000000000000 --- a/third_party/rust/rustix/src/ioctl/mod.rs +++ /dev/null @@ -1,329 +0,0 @@ -//! Unsafe `ioctl` API. -//! -//! Unix systems expose a number of `ioctl`'s. `ioctl`s have been adopted as a -//! general purpose system call for making calls into the kernel. In addition -//! to the wide variety of system calls that are included by default in the -//! kernel, many drivers expose their own `ioctl`'s for controlling their -//! behavior, some of which are proprietary. Therefore it is impossible to make -//! a safe interface for every `ioctl` call, as they all have wildly varying -//! semantics. -//! -//! This module provides an unsafe interface to write your own `ioctl` API. To -//! start, create a type that implements [`Ioctl`]. Then, pass it to [`ioctl`] -//! to make the `ioctl` call. - -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::fd::{AsFd, BorrowedFd}; -use crate::io::Result; - -#[cfg(any(linux_kernel, apple, bsd))] -use core::mem; - -pub use patterns::*; - -mod patterns; - -#[cfg(linux_kernel)] -mod linux; - -#[cfg(any(apple, bsd))] -mod bsd; - -#[cfg(linux_kernel)] -use linux as platform; - -#[cfg(any(apple, bsd))] -use bsd as platform; - -/// Perform an `ioctl` call. -/// -/// `ioctl` was originally intended to act as a way of modifying the behavior -/// of files, but has since been adopted as a general purpose system call for -/// making calls into the kernel. In addition to the default calls exposed by -/// generic file descriptors, many drivers expose their own `ioctl` calls for -/// controlling their behavior, some of which are proprietary. -/// -/// This crate exposes many other `ioctl` interfaces with safe and idiomatic -/// wrappers, like [`ioctl_fionbio`](crate::io::ioctl_fionbio) and -/// [`ioctl_fionread`](crate::io::ioctl_fionread). It is recommended to use -/// those instead of this function, as they are safer and more idiomatic. -/// For other cases, implement the [`Ioctl`] API and pass it to this function. -/// -/// See documentation for [`Ioctl`] for more information. -/// -/// # Safety -/// -/// While [`Ioctl`] takes much of the unsafety out of `ioctl` calls, it is -/// still unsafe to call this code with arbitrary device drivers, as it is up -/// to the device driver to implement the `ioctl` call correctly. It is on the -/// onus of the protocol between the user and the driver to ensure that the -/// `ioctl` call is safe to make. -/// -/// # References -/// -/// - [Linux] -/// - [WinSock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [Apple] -/// - [Solaris] -/// - [illumos] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl.2.html -/// [Winsock2]: https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-ioctlsocket -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=ioctl&sektion=2 -/// [NetBSD]: https://man.netbsd.org/ioctl.2 -/// [OpenBSD]: https://man.openbsd.org/ioctl.2 -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/ioctl.2.html -/// [Solaris]: https://docs.oracle.com/cd/E23824_01/html/821-1463/ioctl-2.html -/// [illumos]: https://illumos.org/man/2/ioctl -#[inline] -pub unsafe fn ioctl(fd: F, mut ioctl: I) -> Result { - let fd = fd.as_fd(); - let request = I::OPCODE.raw(); - let arg = ioctl.as_ptr(); - - // SAFETY: The variant of `Ioctl` asserts that this is a valid IOCTL call to - // make. - let output = if I::IS_MUTATING { - _ioctl(fd, request, arg)? - } else { - _ioctl_readonly(fd, request, arg)? - }; - - // SAFETY: The variant of `Ioctl` asserts that this is a valid pointer to the - // output data. - I::output_from_ptr(output, arg) -} - -unsafe fn _ioctl( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> Result { - crate::backend::io::syscalls::ioctl(fd, request, arg) -} - -unsafe fn _ioctl_readonly( - fd: BorrowedFd<'_>, - request: RawOpcode, - arg: *mut c::c_void, -) -> Result { - crate::backend::io::syscalls::ioctl_readonly(fd, request, arg) -} - -/// A trait defining the properties of an `ioctl` command. -/// -/// Objects implementing this trait can be passed to [`ioctl`] to make an -/// `ioctl` call. The contents of the object represent the inputs to the -/// `ioctl` call. The inputs must be convertible to a pointer through the -/// `as_ptr` method. In most cases, this involves either casting a number to -/// a pointer, or creating a pointer to the actual data. The latter case is -/// necessary for `ioctl` calls that modify userspace data. -/// -/// # Safety -/// -/// This trait is unsafe to implement because it is impossible to guarantee -/// that the `ioctl` call is safe. The `ioctl` call may be proprietary, or it -/// may be unsafe to call in certain circumstances. -/// -/// By implementing this trait, you guarantee that: -/// -/// - The `ioctl` call expects the input provided by `as_ptr` and produces the -/// output as indicated by `output`. -/// - That `output_from_ptr` can safely take the pointer from `as_ptr` and cast -/// it to the correct type, *only* after the `ioctl` call. -/// - That `OPCODE` uniquely identifies the `ioctl` call. -/// - That, for whatever platforms you are targeting, the `ioctl` call is safe -/// to make. -/// - If `IS_MUTATING` is false, that no userspace data will be modified by the -/// `ioctl` call. -pub unsafe trait Ioctl { - /// The type of the output data. - /// - /// Given a pointer, one should be able to construct an instance of this - /// type. - type Output; - - /// The opcode used by this `ioctl` command. - /// - /// There are different types of opcode depending on the operation. See - /// documentation for the [`Opcode`] struct for more information. - const OPCODE: Opcode; - - /// Does the `ioctl` mutate any data in the userspace? - /// - /// If the `ioctl` call does not mutate any data in the userspace, then - /// making this `false` enables optimizations that can make the call - /// faster. When in doubt, set this to `true`. - /// - /// # SAFETY - /// - /// This should only be set to `false` if the `ioctl` call does not mutate - /// any data in the userspace. Undefined behavior may occur if this is - /// set to `false` when it should be `true`. - const IS_MUTATING: bool; - - /// Get a pointer to the data to be passed to the `ioctl` command. - /// - /// See trait-level documentation for more information. - fn as_ptr(&mut self) -> *mut c::c_void; - - /// Cast the output data to the correct type. - /// - /// # Safety - /// - /// The `extract_output` value must be the resulting value after a - /// successful `ioctl` call, and `out` is the direct return value of an - /// `ioctl` call that did not fail. In this case `extract_output` is - /// the pointer that was passed to the `ioctl` call. - unsafe fn output_from_ptr( - out: IoctlOutput, - extract_output: *mut c::c_void, - ) -> Result; -} - -/// The opcode used by an `Ioctl`. -#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub struct Opcode { - /// The raw opcode. - raw: RawOpcode, -} - -impl Opcode { - /// Create a new old `Opcode` from a raw opcode. - /// - /// Rather than being a composition of several attributes, old opcodes are - /// just numbers. In general most drivers follow stricter conventions, - /// but older drivers may still use this strategy. - #[inline] - pub const fn old(raw: RawOpcode) -> Self { - Self { raw } - } - - /// Create a new opcode from a direction, group, number and size. - #[cfg(any(linux_kernel, apple, bsd))] - #[inline] - pub const fn from_components( - direction: Direction, - group: u8, - number: u8, - data_size: usize, - ) -> Self { - if data_size > RawOpcode::MAX as usize { - panic!("data size is too large"); - } - - Self::old(platform::compose_opcode( - direction, - group as RawOpcode, - number as RawOpcode, - data_size as RawOpcode, - )) - } - - /// Create a new non-mutating opcode from a group, a number and the type of - /// data. - #[cfg(any(linux_kernel, apple, bsd))] - #[inline] - pub const fn none(group: u8, number: u8) -> Self { - Self::from_components(Direction::None, group, number, mem::size_of::()) - } - - /// Create a new reading opcode from a group, a number and the type of - /// data. - #[cfg(any(linux_kernel, apple, bsd))] - #[inline] - pub const fn read(group: u8, number: u8) -> Self { - Self::from_components(Direction::Read, group, number, mem::size_of::()) - } - - /// Create a new writing opcode from a group, a number and the type of - /// data. - #[cfg(any(linux_kernel, apple, bsd))] - #[inline] - pub const fn write(group: u8, number: u8) -> Self { - Self::from_components(Direction::Write, group, number, mem::size_of::()) - } - - /// Create a new reading and writing opcode from a group, a number and the - /// type of data. - #[cfg(any(linux_kernel, apple, bsd))] - #[inline] - pub const fn read_write(group: u8, number: u8) -> Self { - Self::from_components(Direction::ReadWrite, group, number, mem::size_of::()) - } - - /// Get the raw opcode. - #[inline] - pub fn raw(self) -> RawOpcode { - self.raw - } -} - -/// The direction that an `ioctl` is going. -/// -/// Note that this is relative to userspace. `Read` means reading data from the -/// kernel, and write means the kernel writing data to userspace. -#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub enum Direction { - /// None of the above. - None, - - /// Read data from the kernel. - Read, - - /// Write data to the kernel. - Write, - - /// Read and write data to the kernel. - ReadWrite, -} - -/// The type used by the `ioctl` to signify the output. -pub type IoctlOutput = c::c_int; - -/// The type used by the `ioctl` to signify the command. -pub type RawOpcode = _RawOpcode; - -// Under raw Linux, this is an unsigned int. -#[cfg(linux_raw)] -type _RawOpcode = c::c_uint; - -// On libc Linux with GNU libc, this is an unsigned long. -#[cfg(all(not(linux_raw), target_os = "linux", target_env = "gnu"))] -type _RawOpcode = c::c_ulong; - -// Musl uses a c_int -#[cfg(all(not(linux_raw), target_os = "linux", not(target_env = "gnu")))] -type _RawOpcode = c::c_int; - -// Android uses c_int -#[cfg(all(not(linux_raw), target_os = "android"))] -type _RawOpcode = c::c_int; - -// Every BSD I looked at, Haiku and Redox uses an unsigned long. -#[cfg(any(apple, bsd, target_os = "redox", target_os = "haiku"))] -type _RawOpcode = c::c_ulong; - -// Solaris, Fuchsia, Emscripten and WASI use an int -#[cfg(any( - target_os = "solaris", - target_os = "illumos", - target_os = "fuchsia", - target_os = "emscripten", - target_os = "wasi", - target_os = "nto" -))] -type _RawOpcode = c::c_int; - -// ESP-IDF uses a c_uint -#[cfg(target_os = "espidf")] -type _RawOpcode = c::c_uint; - -// Windows has ioctlsocket, which uses i32 -#[cfg(windows)] -type _RawOpcode = i32; diff --git a/third_party/rust/rustix/src/ioctl/patterns.rs b/third_party/rust/rustix/src/ioctl/patterns.rs deleted file mode 100644 index 39eb51706be1..000000000000 --- a/third_party/rust/rustix/src/ioctl/patterns.rs +++ /dev/null @@ -1,202 +0,0 @@ -//! Implements typical patterns for `ioctl` usage. - -use super::{Ioctl, IoctlOutput, Opcode, RawOpcode}; - -use crate::backend::c; -use crate::io::Result; - -use core::marker::PhantomData; -use core::{fmt, mem}; - -/// Implements an `ioctl` with no real arguments. -pub struct NoArg { - /// The opcode. - _opcode: PhantomData, -} - -impl fmt::Debug for NoArg { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_tuple("NoArg").field(&Opcode::OPCODE).finish() - } -} - -impl NoArg { - /// Create a new no-argument `ioctl` object. - /// - /// # Safety - /// - /// - `Opcode` must provide a valid opcode. - #[inline] - pub unsafe fn new() -> Self { - Self { - _opcode: PhantomData, - } - } -} - -unsafe impl Ioctl for NoArg { - type Output = (); - - const IS_MUTATING: bool = false; - const OPCODE: self::Opcode = Opcode::OPCODE; - - fn as_ptr(&mut self) -> *mut c::c_void { - core::ptr::null_mut() - } - - unsafe fn output_from_ptr(_: IoctlOutput, _: *mut c::c_void) -> Result { - Ok(()) - } -} - -/// Implements the traditional "getter" pattern for `ioctl`s. -/// -/// Some `ioctl`s just read data into the userspace. As this is a popular -/// pattern this structure implements it. -pub struct Getter { - /// The output data. - output: mem::MaybeUninit, - - /// The opcode. - _opcode: PhantomData, -} - -impl fmt::Debug for Getter { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_tuple("Getter").field(&Opcode::OPCODE).finish() - } -} - -impl Getter { - /// Create a new getter-style `ioctl` object. - /// - /// # Safety - /// - /// - `Opcode` must provide a valid opcode. - /// - For this opcode, `Output` must be the type that the kernel expects to - /// write into. - #[inline] - pub unsafe fn new() -> Self { - Self { - output: mem::MaybeUninit::uninit(), - _opcode: PhantomData, - } - } -} - -unsafe impl Ioctl for Getter { - type Output = Output; - - const IS_MUTATING: bool = true; - const OPCODE: self::Opcode = Opcode::OPCODE; - - fn as_ptr(&mut self) -> *mut c::c_void { - self.output.as_mut_ptr().cast() - } - - unsafe fn output_from_ptr(_: IoctlOutput, ptr: *mut c::c_void) -> Result { - Ok(ptr.cast::().read()) - } -} - -/// Implements the pattern for `ioctl`s where a pointer argument is given to -/// the `ioctl`. -/// -/// The opcode must be read-only. -pub struct Setter { - /// The input data. - input: Input, - - /// The opcode. - _opcode: PhantomData, -} - -impl fmt::Debug for Setter { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_tuple("Setter") - .field(&Opcode::OPCODE) - .field(&self.input) - .finish() - } -} - -impl Setter { - /// Create a new pointer setter-style `ioctl` object. - /// - /// # Safety - /// - /// - `Opcode` must provide a valid opcode. - /// - For this opcode, `Input` must be the type that the kernel expects to - /// get. - #[inline] - pub unsafe fn new(input: Input) -> Self { - Self { - input, - _opcode: PhantomData, - } - } -} - -unsafe impl Ioctl for Setter { - type Output = (); - - const IS_MUTATING: bool = false; - const OPCODE: self::Opcode = Opcode::OPCODE; - - fn as_ptr(&mut self) -> *mut c::c_void { - &mut self.input as *mut Input as *mut c::c_void - } - - unsafe fn output_from_ptr(_: IoctlOutput, _: *mut c::c_void) -> Result { - Ok(()) - } -} - -/// Trait for something that provides an `ioctl` opcode at compile time. -pub trait CompileTimeOpcode { - /// The opcode. - const OPCODE: Opcode; -} - -/// Provides a bad opcode at compile time. -pub struct BadOpcode; - -impl CompileTimeOpcode for BadOpcode { - const OPCODE: Opcode = Opcode::old(OPCODE); -} - -/// Provides a read code at compile time. -#[cfg(any(linux_kernel, apple, bsd))] -pub struct ReadOpcode(Data); - -#[cfg(any(linux_kernel, apple, bsd))] -impl CompileTimeOpcode for ReadOpcode { - const OPCODE: Opcode = Opcode::read::(GROUP, NUM); -} - -/// Provides a write code at compile time. -#[cfg(any(linux_kernel, apple, bsd))] -pub struct WriteOpcode(Data); - -#[cfg(any(linux_kernel, apple, bsd))] -impl CompileTimeOpcode for WriteOpcode { - const OPCODE: Opcode = Opcode::write::(GROUP, NUM); -} - -/// Provides a read/write code at compile time. -#[cfg(any(linux_kernel, apple, bsd))] -pub struct ReadWriteOpcode(Data); - -#[cfg(any(linux_kernel, apple, bsd))] -impl CompileTimeOpcode for ReadWriteOpcode { - const OPCODE: Opcode = Opcode::read_write::(GROUP, NUM); -} - -/// Provides a `None` code at compile time. -#[cfg(any(linux_kernel, apple, bsd))] -pub struct NoneOpcode(Data); - -#[cfg(any(linux_kernel, apple, bsd))] -impl CompileTimeOpcode for NoneOpcode { - const OPCODE: Opcode = Opcode::none::(GROUP, NUM); -} diff --git a/third_party/rust/rustix/src/lib.rs b/third_party/rust/rustix/src/lib.rs deleted file mode 100644 index 1f3a06ab4aa8..000000000000 --- a/third_party/rust/rustix/src/lib.rs +++ /dev/null @@ -1,374 +0,0 @@ -//! `rustix` provides efficient memory-safe and [I/O-safe] wrappers to -//! POSIX-like, Unix-like, Linux, and Winsock2 syscall-like APIs, with -//! configurable backends. -//! -//! With rustix, you can write code like this: -//! -//! ``` -//! # #[cfg(feature = "net")] -//! # fn read(sock: std::net::TcpStream, buf: &mut [u8]) -> std::io::Result<()> { -//! # use rustix::net::RecvFlags; -//! let nread: usize = rustix::net::recv(&sock, buf, RecvFlags::PEEK)?; -//! # let _ = nread; -//! # Ok(()) -//! # } -//! ``` -//! -//! instead of like this: -//! -//! ``` -//! # #[cfg(feature = "net")] -//! # fn read(sock: std::net::TcpStream, buf: &mut [u8]) -> std::io::Result<()> { -//! # #[cfg(unix)] -//! # use std::os::unix::io::AsRawFd; -//! # #[cfg(target_os = "wasi")] -//! # use std::os::wasi::io::AsRawFd; -//! # #[cfg(windows)] -//! # use windows_sys::Win32::Networking::WinSock as libc; -//! # #[cfg(windows)] -//! # use std::os::windows::io::AsRawSocket; -//! # const MSG_PEEK: i32 = libc::MSG_PEEK; -//! let nread: usize = unsafe { -//! #[cfg(any(unix, target_os = "wasi"))] -//! let raw = sock.as_raw_fd(); -//! #[cfg(windows)] -//! let raw = sock.as_raw_socket(); -//! match libc::recv( -//! raw as _, -//! buf.as_mut_ptr().cast(), -//! buf.len().try_into().unwrap_or(i32::MAX as _), -//! MSG_PEEK, -//! ) { -//! -1 => return Err(std::io::Error::last_os_error()), -//! nread => nread as usize, -//! } -//! }; -//! # let _ = nread; -//! # Ok(()) -//! # } -//! ``` -//! -//! rustix's APIs perform the following tasks: -//! - Error values are translated to [`Result`]s. -//! - Buffers are passed as Rust slices. -//! - Out-parameters are presented as return values. -//! - Path arguments use [`Arg`], so they accept any string type. -//! - File descriptors are passed and returned via [`AsFd`] and [`OwnedFd`] -//! instead of bare integers, ensuring I/O safety. -//! - Constants use `enum`s and [`bitflags`] types, and enable [support for -//! externally defined flags]. -//! - Multiplexed functions (eg. `fcntl`, `ioctl`, etc.) are de-multiplexed. -//! - Variadic functions (eg. `openat`, etc.) are presented as non-variadic. -//! - Functions that return strings automatically allocate sufficient memory -//! and retry the syscall as needed to determine the needed length. -//! - Functions and types which need `l` prefixes or `64` suffixes to enable -//! large-file support (LFS) are used automatically. File sizes and offsets -//! are always presented as `u64` and `i64`. -//! - Behaviors that depend on the sizes of C types like `long` are hidden. -//! - In some places, more human-friendly and less historical-accident names -//! are used (and documentation aliases are used so that the original names -//! can still be searched for). -//! - Provide y2038 compatibility, on platforms which support this. -//! - Correct selected platform bugs, such as behavioral differences when -//! running under seccomp. -//! -//! Things they don't do include: -//! - Detecting whether functions are supported at runtime, except in specific -//! cases where new interfaces need to be detected to support y2038 and LFS. -//! - Hiding significant differences between platforms. -//! - Restricting ambient authorities. -//! - Imposing sandboxing features such as filesystem path or network address -//! sandboxing. -//! -//! See [`cap-std`], [`system-interface`], and [`io-streams`] for libraries -//! which do hide significant differences between platforms, and [`cap-std`] -//! which does perform sandboxing and restricts ambient authorities. -//! -//! [`cap-std`]: https://crates.io/crates/cap-std -//! [`system-interface`]: https://crates.io/crates/system-interface -//! [`io-streams`]: https://crates.io/crates/io-streams -//! [`getrandom`]: https://crates.io/crates/getrandom -//! [`bitflags`]: https://crates.io/crates/bitflags -//! [`AsFd`]: https://doc.rust-lang.org/stable/std/os/fd/trait.AsFd.html -//! [`OwnedFd`]: https://doc.rust-lang.org/stable/std/os/fd/struct.OwnedFd.html -//! [I/O-safe]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md -//! [`Result`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html -//! [`Arg`]: https://docs.rs/rustix/*/rustix/path/trait.Arg.html -//! [support for externally defined flags]: https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags - -#![deny(missing_docs)] -#![allow(stable_features)] -#![cfg_attr(linux_raw, deny(unsafe_code))] -#![cfg_attr(rustc_attrs, feature(rustc_attrs))] -#![cfg_attr(doc_cfg, feature(doc_cfg))] -#![cfg_attr(all(wasi_ext, target_os = "wasi", feature = "std"), feature(wasi_ext))] -#![cfg_attr(core_ffi_c, feature(core_ffi_c))] -#![cfg_attr(core_c_str, feature(core_c_str))] -#![cfg_attr(all(feature = "alloc", alloc_c_string), feature(alloc_c_string))] -#![cfg_attr(all(feature = "alloc", alloc_ffi), feature(alloc_ffi))] -#![cfg_attr(not(feature = "std"), no_std)] -#![cfg_attr(feature = "rustc-dep-of-std", feature(ip))] -#![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))] -#![cfg_attr( - any(feature = "rustc-dep-of-std", core_intrinsics), - feature(core_intrinsics) -)] -#![cfg_attr(asm_experimental_arch, feature(asm_experimental_arch))] -#![cfg_attr(not(feature = "all-apis"), allow(dead_code))] -// It is common in linux and libc APIs for types to vary between platforms. -#![allow(clippy::unnecessary_cast)] -// It is common in linux and libc APIs for types to vary between platforms. -#![allow(clippy::useless_conversion)] -// Redox and WASI have enough differences that it isn't worth precisely -// conditionalizing all the `use`s for them. -#![cfg_attr(any(target_os = "redox", target_os = "wasi"), allow(unused_imports))] - -#[cfg(all(feature = "alloc", not(feature = "rustc-dep-of-std")))] -extern crate alloc; - -// Use `static_assertions` macros if we have them, or a polyfill otherwise. -#[cfg(all(test, static_assertions))] -#[macro_use] -#[allow(unused_imports)] -extern crate static_assertions; -#[cfg(all(test, not(static_assertions)))] -#[macro_use] -#[allow(unused_imports)] -mod static_assertions; - -// Internal utilities. -#[cfg(not(windows))] -#[macro_use] -pub(crate) mod cstr; -#[macro_use] -pub(crate) mod utils; -// Polyfill for `std` in `no_std` builds. -#[cfg_attr(feature = "std", path = "maybe_polyfill/std/mod.rs")] -#[cfg_attr(not(feature = "std"), path = "maybe_polyfill/no_std/mod.rs")] -pub(crate) mod maybe_polyfill; -#[cfg(test)] -#[macro_use] -pub(crate) mod check_types; -#[macro_use] -pub(crate) mod bitcast; - -// linux_raw: Weak symbols are used by the use-libc-auxv feature for -// glibc 2.15 support. -// -// libc: Weak symbols are used to call various functions available in some -// versions of libc and not others. -#[cfg(any( - all(linux_raw, feature = "use-libc-auxv"), - all(libc, not(any(windows, target_os = "espidf", target_os = "wasi"))) -))] -#[macro_use] -mod weak; - -// Pick the backend implementation to use. -#[cfg_attr(libc, path = "backend/libc/mod.rs")] -#[cfg_attr(linux_raw, path = "backend/linux_raw/mod.rs")] -#[cfg_attr(wasi, path = "backend/wasi/mod.rs")] -mod backend; - -/// Export the `*Fd` types and traits that are used in rustix's public API. -/// -/// Users can use this to avoid needing to import anything else to use the same -/// versions of these types and traits. -pub mod fd { - use super::backend; - - // Re-export `AsSocket` etc. too, as users can't implement `AsFd` etc. on - // Windows due to them having blanket impls on Windows, so users must - // implement `AsSocket` etc. - #[cfg(windows)] - pub use backend::fd::{AsRawSocket, AsSocket, FromRawSocket, IntoRawSocket}; - - pub use backend::fd::{AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd}; -} - -// The public API modules. -#[cfg(feature = "event")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "event")))] -pub mod event; -#[cfg(not(windows))] -pub mod ffi; -#[cfg(not(windows))] -#[cfg(feature = "fs")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -pub mod fs; -pub mod io; -#[cfg(linux_kernel)] -#[cfg(feature = "io_uring")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "io_uring")))] -pub mod io_uring; -pub mod ioctl; -#[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] -#[cfg(feature = "mm")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "mm")))] -pub mod mm; -#[cfg(linux_kernel)] -#[cfg(feature = "mount")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "mount")))] -pub mod mount; -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[cfg(feature = "net")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "net")))] -pub mod net; -#[cfg(not(any(windows, target_os = "espidf")))] -#[cfg(feature = "param")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "param")))] -pub mod param; -#[cfg(not(windows))] -#[cfg(any(feature = "fs", feature = "mount", feature = "net"))] -#[cfg_attr( - doc_cfg, - doc(cfg(any(feature = "fs", feature = "mount", feature = "net"))) -)] -pub mod path; -#[cfg(feature = "pipe")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "pipe")))] -#[cfg(not(any(windows, target_os = "wasi")))] -pub mod pipe; -#[cfg(not(windows))] -#[cfg(feature = "process")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "process")))] -pub mod process; -#[cfg(feature = "procfs")] -#[cfg(linux_kernel)] -#[cfg_attr(doc_cfg, doc(cfg(feature = "procfs")))] -pub mod procfs; -#[cfg(not(windows))] -#[cfg(not(target_os = "wasi"))] -#[cfg(feature = "pty")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "pty")))] -pub mod pty; -#[cfg(not(windows))] -#[cfg(feature = "rand")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "rand")))] -pub mod rand; -#[cfg(not(windows))] -#[cfg(feature = "stdio")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "stdio")))] -pub mod stdio; -#[cfg(feature = "system")] -#[cfg(not(any(windows, target_os = "wasi")))] -#[cfg_attr(doc_cfg, doc(cfg(feature = "system")))] -pub mod system; -#[cfg(not(windows))] -#[cfg(feature = "termios")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "termios")))] -pub mod termios; -#[cfg(not(windows))] -#[cfg(feature = "thread")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "thread")))] -pub mod thread; -#[cfg(not(any(windows, target_os = "espidf")))] -#[cfg(feature = "time")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "time")))] -pub mod time; - -// "runtime" is also a public API module, but it's only for libc-like users. -#[cfg(not(windows))] -#[cfg(feature = "runtime")] -#[cfg(linux_raw)] -#[doc(hidden)] -#[cfg_attr(doc_cfg, doc(cfg(feature = "runtime")))] -pub mod runtime; - -// Temporarily provide some mount functions for use in the fs module for -// backwards compatibility. -#[cfg(linux_kernel)] -#[cfg(all(feature = "fs", not(feature = "mount")))] -pub(crate) mod mount; - -// Declare "fs" as a non-public module if "fs" isn't enabled but we need it for -// reading procfs. -#[cfg(not(windows))] -#[cfg(not(feature = "fs"))] -#[cfg(all( - linux_raw, - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) -))] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -pub(crate) mod fs; - -// Similarly, declare `path` as a non-public module if needed. -#[cfg(not(windows))] -#[cfg(not(any(feature = "fs", feature = "mount", feature = "net")))] -#[cfg(all( - linux_raw, - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) -))] -pub(crate) mod path; - -// Private modules used by multiple public modules. -#[cfg(not(any(windows, target_os = "espidf")))] -#[cfg(any(feature = "thread", feature = "time", target_arch = "x86"))] -mod clockid; -#[cfg(not(any(windows, target_os = "wasi")))] -#[cfg(any( - feature = "procfs", - feature = "process", - feature = "runtime", - feature = "termios", - feature = "thread", - all(bsd, feature = "event") -))] -mod pid; -#[cfg(any(feature = "process", feature = "thread"))] -#[cfg(linux_kernel)] -mod prctl; -#[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] -#[cfg(any(feature = "process", feature = "runtime", all(bsd, feature = "event")))] -mod signal; -#[cfg(not(windows))] -#[cfg(any( - feature = "fs", - feature = "runtime", - feature = "thread", - feature = "time", - all( - linux_raw, - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) - ) -))] -mod timespec; -#[cfg(not(any(windows, target_os = "wasi")))] -#[cfg(any( - feature = "fs", - feature = "process", - feature = "thread", - all( - linux_raw, - not(feature = "use-libc-auxv"), - not(feature = "use-explicitly-provided-auxv"), - any( - feature = "param", - feature = "runtime", - feature = "time", - target_arch = "x86", - ) - ) -))] -mod ugid; diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/io/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/io/mod.rs deleted file mode 100644 index f0ad7504f2f1..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/io/mod.rs +++ /dev/null @@ -1,107 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/sys/unix/io.rs -//! dca3f1b786efd27be3b325ed1e01e247aa589c3b. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. - -#![allow(unsafe_code)] -use crate::backend::c; -#[cfg(not(linux_raw))] -use c::size_t as __kernel_size_t; -use core::marker::PhantomData; -use core::slice; -#[cfg(linux_raw)] -use linux_raw_sys::general::__kernel_size_t; - -/// -#[derive(Copy, Clone)] -#[repr(transparent)] -pub struct IoSlice<'a> { - vec: c::iovec, - _p: PhantomData<&'a [u8]>, -} - -impl<'a> IoSlice<'a> { - /// - #[inline] - pub fn new(buf: &'a [u8]) -> IoSlice<'a> { - IoSlice { - vec: c::iovec { - iov_base: buf.as_ptr() as *mut u8 as *mut c::c_void, - iov_len: buf.len() as _, - }, - _p: PhantomData, - } - } - - /// - #[inline] - pub fn advance(&mut self, n: usize) { - if self.vec.iov_len < n as _ { - panic!("advancing IoSlice beyond its length"); - } - - unsafe { - // `__kernel_size_t` will always have the same size as `usize`, but it is a `u32` on - // 32-bit platforms and `u64` on 64-bit platforms when using `linux_raw` backend - self.vec.iov_len -= n as __kernel_size_t; - self.vec.iov_base = self.vec.iov_base.add(n); - } - } - - /// - #[inline] - pub fn as_slice(&self) -> &[u8] { - unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) } - } -} - -/// -#[repr(transparent)] -pub struct IoSliceMut<'a> { - vec: c::iovec, - _p: PhantomData<&'a mut [u8]>, -} - -impl<'a> IoSliceMut<'a> { - /// - #[inline] - pub fn new(buf: &'a mut [u8]) -> IoSliceMut<'a> { - IoSliceMut { - vec: c::iovec { - iov_base: buf.as_mut_ptr() as *mut c::c_void, - iov_len: buf.len() as _, - }, - _p: PhantomData, - } - } - - /// - #[inline] - pub fn advance(&mut self, n: usize) { - if self.vec.iov_len < n as _ { - panic!("advancing IoSliceMut beyond its length"); - } - - unsafe { - // `__kernel_size_t` will always have the same size as `usize`, but it is a `u32` on - // 32-bit platforms and `u64` on 64-bit platforms when using `linux_raw` backend - self.vec.iov_len -= n as __kernel_size_t; - self.vec.iov_base = self.vec.iov_base.add(n); - } - } - - /// - #[inline] - pub fn as_slice(&self) -> &[u8] { - unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) } - } - - /// - #[inline] - pub fn as_mut_slice(&mut self) -> &mut [u8] { - unsafe { - slice::from_raw_parts_mut(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) - } - } -} diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/mod.rs deleted file mode 100644 index 84bf5b764dac..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/mod.rs +++ /dev/null @@ -1,16 +0,0 @@ -//! Polyfill of parts of the standard library for `no_std` builds. -//! -//! All code in this subtree is derived from the standard library and licensed -//! MIT or Apache 2.0 at your option. -//! -//! This implementation is used when `std` is not available and polyfills the -//! necessary items from `std`. When the `std` feature is specified (so the -//! standard library is available), the file `src/polyfill/std` is used -//! instead, which just imports the respective items from `std`. - -#[cfg(not(windows))] -pub mod io; -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[cfg(feature = "net")] -pub mod net; -pub mod os; diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/net/ip_addr.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/net/ip_addr.rs deleted file mode 100644 index 81415e960f9a..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/net/ip_addr.rs +++ /dev/null @@ -1,2068 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/net/ip_addr.rs at revision -//! bd20fc1fd657b32f7aa1d70d8723f04c87f21606. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. -//! -//! This defines `IpAddr`, `Ipv4Addr`, and `Ipv6Addr`. Ideally, these should be -//! defined in `core`. See [RFC 2832]. -//! -//! [RFC 2832]: https://github.com/rust-lang/rfcs/pull/2832 - -#![allow(unsafe_code)] - -use core::cmp::Ordering; -use core::mem::transmute; - -/// An IP address, either IPv4 or IPv6. -/// -/// This enum can contain either an [`Ipv4Addr`] or an [`Ipv6Addr`], see their -/// respective documentation for more details. -/// -/// # Examples -/// -/// ``` -/// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; -/// -/// let localhost_v4 = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)); -/// let localhost_v6 = IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)); -/// -/// assert_eq!("127.0.0.1".parse(), Ok(localhost_v4)); -/// assert_eq!("::1".parse(), Ok(localhost_v6)); -/// -/// assert_eq!(localhost_v4.is_ipv6(), false); -/// assert_eq!(localhost_v4.is_ipv4(), true); -/// ``` -#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] -#[derive(Copy, Clone, Eq, PartialEq, Hash, PartialOrd, Ord)] -pub enum IpAddr { - /// An IPv4 address. - #[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] - V4(#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] Ipv4Addr), - /// An IPv6 address. - #[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] - V6(#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] Ipv6Addr), -} - -/// An IPv4 address. -/// -/// IPv4 addresses are defined as 32-bit integers in [IETF RFC 791]. -/// They are usually represented as four octets. -/// -/// See [`IpAddr`] for a type encompassing both IPv4 and IPv6 addresses. -/// -/// [IETF RFC 791]: https://tools.ietf.org/html/rfc791 -/// -/// # Textual representation -/// -/// `Ipv4Addr` provides a [`FromStr`] implementation. The four octets are in decimal -/// notation, divided by `.` (this is called "dot-decimal notation"). -/// Notably, octal numbers (which are indicated with a leading `0`) and hexadecimal numbers (which -/// are indicated with a leading `0x`) are not allowed per [IETF RFC 6943]. -/// -/// [IETF RFC 6943]: https://tools.ietf.org/html/rfc6943#section-3.1.1 -/// [`FromStr`]: core::str::FromStr -/// -/// # Examples -/// -/// ``` -/// use std::net::Ipv4Addr; -/// -/// let localhost = Ipv4Addr::new(127, 0, 0, 1); -/// assert_eq!("127.0.0.1".parse(), Ok(localhost)); -/// assert_eq!(localhost.is_loopback(), true); -/// assert!("012.004.002.000".parse::().is_err()); // all octets are in octal -/// assert!("0000000.0.0.0".parse::().is_err()); // first octet is a zero in octal -/// assert!("0xcb.0x0.0x71.0x00".parse::().is_err()); // all octets are in hex -/// ``` -#[derive(Copy, Clone, PartialEq, Eq, Hash)] -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub struct Ipv4Addr { - octets: [u8; 4], -} - -/// An IPv6 address. -/// -/// IPv6 addresses are defined as 128-bit integers in [IETF RFC 4291]. -/// They are usually represented as eight 16-bit segments. -/// -/// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 -/// -/// # Embedding IPv4 Addresses -/// -/// See [`IpAddr`] for a type encompassing both IPv4 and IPv6 addresses. -/// -/// To assist in the transition from IPv4 to IPv6 two types of IPv6 addresses that embed an IPv4 address were defined: -/// IPv4-compatible and IPv4-mapped addresses. Of these IPv4-compatible addresses have been officially deprecated. -/// -/// Both types of addresses are not assigned any special meaning by this implementation, -/// other than what the relevant standards prescribe. This means that an address like `::ffff:127.0.0.1`, -/// while representing an IPv4 loopback address, is not itself an IPv6 loopback address; only `::1` is. -/// To handle these so called "IPv4-in-IPv6" addresses, they have to first be converted to their canonical IPv4 address. -/// -/// ### IPv4-Compatible IPv6 Addresses -/// -/// IPv4-compatible IPv6 addresses are defined in [IETF RFC 4291 Section 2.5.5.1], and have been officially deprecated. -/// The RFC describes the format of an "IPv4-Compatible IPv6 address" as follows: -/// -/// ```text -/// | 80 bits | 16 | 32 bits | -/// +--------------------------------------+--------------------------+ -/// |0000..............................0000|0000| IPv4 address | -/// +--------------------------------------+----+---------------------+ -/// ``` -/// So `::a.b.c.d` would be an IPv4-compatible IPv6 address representing the IPv4 address `a.b.c.d`. -/// -/// To convert from an IPv4 address to an IPv4-compatible IPv6 address, use [`Ipv4Addr::to_ipv6_compatible`]. -/// Use [`Ipv6Addr::to_ipv4`] to convert an IPv4-compatible IPv6 address to the canonical IPv4 address. -/// -/// [IETF RFC 4291 Section 2.5.5.1]: https://datatracker.ietf.org/doc/html/rfc4291#section-2.5.5.1 -/// -/// ### IPv4-Mapped IPv6 Addresses -/// -/// IPv4-mapped IPv6 addresses are defined in [IETF RFC 4291 Section 2.5.5.2]. -/// The RFC describes the format of an "IPv4-Mapped IPv6 address" as follows: -/// -/// ```text -/// | 80 bits | 16 | 32 bits | -/// +--------------------------------------+--------------------------+ -/// |0000..............................0000|FFFF| IPv4 address | -/// +--------------------------------------+----+---------------------+ -/// ``` -/// So `::ffff:a.b.c.d` would be an IPv4-mapped IPv6 address representing the IPv4 address `a.b.c.d`. -/// -/// To convert from an IPv4 address to an IPv4-mapped IPv6 address, use [`Ipv4Addr::to_ipv6_mapped`]. -/// Use [`Ipv6Addr::to_ipv4`] to convert an IPv4-mapped IPv6 address to the canonical IPv4 address. -/// Note that this will also convert the IPv6 loopback address `::1` to `0.0.0.1`. Use -/// [`Ipv6Addr::to_ipv4_mapped`] to avoid this. -/// -/// [IETF RFC 4291 Section 2.5.5.2]: https://datatracker.ietf.org/doc/html/rfc4291#section-2.5.5.2 -/// -/// # Textual representation -/// -/// `Ipv6Addr` provides a [`FromStr`] implementation. There are many ways to represent -/// an IPv6 address in text, but in general, each segments is written in hexadecimal -/// notation, and segments are separated by `:`. For more information, see -/// [IETF RFC 5952]. -/// -/// [`FromStr`]: core::str::FromStr -/// [IETF RFC 5952]: https://tools.ietf.org/html/rfc5952 -/// -/// # Examples -/// -/// ``` -/// use std::net::Ipv6Addr; -/// -/// let localhost = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); -/// assert_eq!("::1".parse(), Ok(localhost)); -/// assert_eq!(localhost.is_loopback(), true); -/// ``` -#[derive(Copy, Clone, PartialEq, Eq, Hash)] -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub struct Ipv6Addr { - octets: [u8; 16], -} - -/// Scope of an [IPv6 multicast address] as defined in [IETF RFC 7346 section 2]. -/// -/// # Stability Guarantees -/// -/// Not all possible values for a multicast scope have been assigned. -/// Future RFCs may introduce new scopes, which will be added as variants to this enum; -/// because of this the enum is marked as `#[non_exhaustive]`. -/// -/// # Examples -/// ``` -/// #![feature(ip)] -/// -/// use std::net::Ipv6Addr; -/// use std::net::Ipv6MulticastScope::*; -/// -/// // An IPv6 multicast address with global scope (`ff0e::`). -/// let address = Ipv6Addr::new(0xff0e, 0, 0, 0, 0, 0, 0, 0); -/// -/// // Will print "Global scope". -/// match address.multicast_scope() { -/// Some(InterfaceLocal) => println!("Interface-Local scope"), -/// Some(LinkLocal) => println!("Link-Local scope"), -/// Some(RealmLocal) => println!("Realm-Local scope"), -/// Some(AdminLocal) => println!("Admin-Local scope"), -/// Some(SiteLocal) => println!("Site-Local scope"), -/// Some(OrganizationLocal) => println!("Organization-Local scope"), -/// Some(Global) => println!("Global scope"), -/// Some(_) => println!("Unknown scope"), -/// None => println!("Not a multicast address!") -/// } -/// -/// ``` -/// -/// [IPv6 multicast address]: Ipv6Addr -/// [IETF RFC 7346 section 2]: https://tools.ietf.org/html/rfc7346#section-2 -#[derive(Copy, PartialEq, Eq, Clone, Hash, Debug)] -#[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] -#[non_exhaustive] -pub enum Ipv6MulticastScope { - /// Interface-Local scope. - InterfaceLocal, - /// Link-Local scope. - LinkLocal, - /// Realm-Local scope. - RealmLocal, - /// Admin-Local scope. - AdminLocal, - /// Site-Local scope. - SiteLocal, - /// Organization-Local scope. - OrganizationLocal, - /// Global scope. - Global, -} - -impl IpAddr { - /// Returns [`true`] for the special 'unspecified' address. - /// - /// See the documentation for [`Ipv4Addr::is_unspecified()`] and - /// [`Ipv6Addr::is_unspecified()`] for more details. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)).is_unspecified(), true); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)).is_unspecified(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "ip_shared", since = "1.12.0"))] - #[must_use] - #[inline] - pub const fn is_unspecified(&self) -> bool { - match self { - IpAddr::V4(ip) => ip.is_unspecified(), - IpAddr::V6(ip) => ip.is_unspecified(), - } - } - - /// Returns [`true`] if this is a loopback address. - /// - /// See the documentation for [`Ipv4Addr::is_loopback()`] and - /// [`Ipv6Addr::is_loopback()`] for more details. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)).is_loopback(), true); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0x1)).is_loopback(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "ip_shared", since = "1.12.0"))] - #[must_use] - #[inline] - pub const fn is_loopback(&self) -> bool { - match self { - IpAddr::V4(ip) => ip.is_loopback(), - IpAddr::V6(ip) => ip.is_loopback(), - } - } - - /// Returns [`true`] if the address appears to be globally routable. - /// - /// See the documentation for [`Ipv4Addr::is_global()`] and - /// [`Ipv6Addr::is_global()`] for more details. - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(80, 9, 12, 3)).is_global(), true); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1)).is_global(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ip", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_global(&self) -> bool { - match self { - IpAddr::V4(ip) => ip.is_global(), - IpAddr::V6(ip) => ip.is_global(), - } - } - - /// Returns [`true`] if this is a multicast address. - /// - /// See the documentation for [`Ipv4Addr::is_multicast()`] and - /// [`Ipv6Addr::is_multicast()`] for more details. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(224, 254, 0, 0)).is_multicast(), true); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0)).is_multicast(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "ip_shared", since = "1.12.0"))] - #[must_use] - #[inline] - pub const fn is_multicast(&self) -> bool { - match self { - IpAddr::V4(ip) => ip.is_multicast(), - IpAddr::V6(ip) => ip.is_multicast(), - } - } - - /// Returns [`true`] if this address is in a range designated for documentation. - /// - /// See the documentation for [`Ipv4Addr::is_documentation()`] and - /// [`Ipv6Addr::is_documentation()`] for more details. - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(203, 0, 113, 6)).is_documentation(), true); - /// assert_eq!( - /// IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_documentation(), - /// true - /// ); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ip", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_documentation(&self) -> bool { - match self { - IpAddr::V4(ip) => ip.is_documentation(), - IpAddr::V6(ip) => ip.is_documentation(), - } - } - - /// Returns [`true`] if this address is in a range designated for benchmarking. - /// - /// See the documentation for [`Ipv4Addr::is_benchmarking()`] and - /// [`Ipv6Addr::is_benchmarking()`] for more details. - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(198, 19, 255, 255)).is_benchmarking(), true); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0x2, 0, 0, 0, 0, 0, 0)).is_benchmarking(), true); - /// ``` - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_benchmarking(&self) -> bool { - match self { - IpAddr::V4(ip) => ip.is_benchmarking(), - IpAddr::V6(ip) => ip.is_benchmarking(), - } - } - - /// Returns [`true`] if this address is an [`IPv4` address], and [`false`] - /// otherwise. - /// - /// [`IPv4` address]: IpAddr::V4 - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(203, 0, 113, 6)).is_ipv4(), true); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_ipv4(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "ipaddr_checker", since = "1.16.0"))] - #[must_use] - #[inline] - pub const fn is_ipv4(&self) -> bool { - matches!(self, IpAddr::V4(_)) - } - - /// Returns [`true`] if this address is an [`IPv6` address], and [`false`] - /// otherwise. - /// - /// [`IPv6` address]: IpAddr::V6 - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(203, 0, 113, 6)).is_ipv6(), false); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0)).is_ipv6(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "ipaddr_checker", since = "1.16.0"))] - #[must_use] - #[inline] - pub const fn is_ipv6(&self) -> bool { - matches!(self, IpAddr::V6(_)) - } - - /// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped IPv6 addresses, otherwise it - /// return `self` as-is. - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)).to_canonical().is_loopback(), true); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0x7f00, 0x1)).is_loopback(), false); - /// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0x7f00, 0x1)).to_canonical().is_loopback(), true); - /// ``` - #[inline] - #[must_use = "this returns the result of the operation, \ - without modifying the original"] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ip", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - pub const fn to_canonical(&self) -> IpAddr { - match self { - &v4 @ IpAddr::V4(_) => v4, - IpAddr::V6(v6) => v6.to_canonical(), - } - } -} - -impl Ipv4Addr { - /// Creates a new IPv4 address from four eight-bit octets. - /// - /// The result will represent the IP address `a`.`b`.`c`.`d`. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::new(127, 0, 0, 1); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_32", since = "1.32.0") - )] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use] - #[inline] - pub const fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr { - Ipv4Addr { - octets: [a, b, c, d], - } - } - - /// An IPv4 address with the address pointing to localhost: `127.0.0.1` - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::LOCALHOST; - /// assert_eq!(addr, Ipv4Addr::new(127, 0, 0, 1)); - /// ``` - #[cfg_attr(staged_api, stable(feature = "ip_constructors", since = "1.30.0"))] - pub const LOCALHOST: Self = Ipv4Addr::new(127, 0, 0, 1); - - /// An IPv4 address representing an unspecified address: `0.0.0.0` - /// - /// This corresponds to the constant `INADDR_ANY` in other languages. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::UNSPECIFIED; - /// assert_eq!(addr, Ipv4Addr::new(0, 0, 0, 0)); - /// ``` - #[doc(alias = "INADDR_ANY")] - #[cfg_attr(staged_api, stable(feature = "ip_constructors", since = "1.30.0"))] - pub const UNSPECIFIED: Self = Ipv4Addr::new(0, 0, 0, 0); - - /// An IPv4 address representing the broadcast address: `255.255.255.255` - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::BROADCAST; - /// assert_eq!(addr, Ipv4Addr::new(255, 255, 255, 255)); - /// ``` - #[cfg_attr(staged_api, stable(feature = "ip_constructors", since = "1.30.0"))] - pub const BROADCAST: Self = Ipv4Addr::new(255, 255, 255, 255); - - /// Returns the four eight-bit integers that make up this address. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::new(127, 0, 0, 1); - /// assert_eq!(addr.octets(), [127, 0, 0, 1]); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use] - #[inline] - pub const fn octets(&self) -> [u8; 4] { - self.octets - } - - /// Returns [`true`] for the special 'unspecified' address (`0.0.0.0`). - /// - /// This property is defined in _UNIX Network Programming, Second Edition_, - /// W. Richard Stevens, p. 891; see also [ip7]. - /// - /// [ip7]: https://man7.org/linux/man-pages/man7/ip.7.html - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(0, 0, 0, 0).is_unspecified(), true); - /// assert_eq!(Ipv4Addr::new(45, 22, 13, 197).is_unspecified(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_32", since = "1.32.0") - )] - #[cfg_attr(staged_api, stable(feature = "ip_shared", since = "1.12.0"))] - #[must_use] - #[inline] - pub const fn is_unspecified(&self) -> bool { - u32::from_be_bytes(self.octets) == 0 - } - - /// Returns [`true`] if this is a loopback address (`127.0.0.0/8`). - /// - /// This property is defined by [IETF RFC 1122]. - /// - /// [IETF RFC 1122]: https://tools.ietf.org/html/rfc1122 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(127, 0, 0, 1).is_loopback(), true); - /// assert_eq!(Ipv4Addr::new(45, 22, 13, 197).is_loopback(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_loopback(&self) -> bool { - self.octets()[0] == 127 - } - - /// Returns [`true`] if this is a private address. - /// - /// The private address ranges are defined in [IETF RFC 1918] and include: - /// - /// - `10.0.0.0/8` - /// - `172.16.0.0/12` - /// - `192.168.0.0/16` - /// - /// [IETF RFC 1918]: https://tools.ietf.org/html/rfc1918 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(10, 0, 0, 1).is_private(), true); - /// assert_eq!(Ipv4Addr::new(10, 10, 10, 10).is_private(), true); - /// assert_eq!(Ipv4Addr::new(172, 16, 10, 10).is_private(), true); - /// assert_eq!(Ipv4Addr::new(172, 29, 45, 14).is_private(), true); - /// assert_eq!(Ipv4Addr::new(172, 32, 0, 2).is_private(), false); - /// assert_eq!(Ipv4Addr::new(192, 168, 0, 2).is_private(), true); - /// assert_eq!(Ipv4Addr::new(192, 169, 0, 2).is_private(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_private(&self) -> bool { - match self.octets() { - [10, ..] => true, - [172, b, ..] if b >= 16 && b <= 31 => true, - [192, 168, ..] => true, - _ => false, - } - } - - /// Returns [`true`] if the address is link-local (`169.254.0.0/16`). - /// - /// This property is defined by [IETF RFC 3927]. - /// - /// [IETF RFC 3927]: https://tools.ietf.org/html/rfc3927 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(169, 254, 0, 0).is_link_local(), true); - /// assert_eq!(Ipv4Addr::new(169, 254, 10, 65).is_link_local(), true); - /// assert_eq!(Ipv4Addr::new(16, 89, 10, 65).is_link_local(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_link_local(&self) -> bool { - matches!(self.octets(), [169, 254, ..]) - } - - /// Returns [`true`] if the address appears to be globally reachable - /// as specified by the [IANA IPv4 Special-Purpose Address Registry]. - /// Whether or not an address is practically reachable will depend on your network configuration. - /// - /// Most IPv4 addresses are globally reachable; - /// unless they are specifically defined as *not* globally reachable. - /// - /// Non-exhaustive list of notable addresses that are not globally reachable: - /// - /// - The [unspecified address] ([`is_unspecified`](Ipv4Addr::is_unspecified)) - /// - Addresses reserved for private use ([`is_private`](Ipv4Addr::is_private)) - /// - Addresses in the shared address space ([`is_shared`](Ipv4Addr::is_shared)) - /// - Loopback addresses ([`is_loopback`](Ipv4Addr::is_loopback)) - /// - Link-local addresses ([`is_link_local`](Ipv4Addr::is_link_local)) - /// - Addresses reserved for documentation ([`is_documentation`](Ipv4Addr::is_documentation)) - /// - Addresses reserved for benchmarking ([`is_benchmarking`](Ipv4Addr::is_benchmarking)) - /// - Reserved addresses ([`is_reserved`](Ipv4Addr::is_reserved)) - /// - The [broadcast address] ([`is_broadcast`](Ipv4Addr::is_broadcast)) - /// - /// For the complete overview of which addresses are globally reachable, see the table at the [IANA IPv4 Special-Purpose Address Registry]. - /// - /// [IANA IPv4 Special-Purpose Address Registry]: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml - /// [unspecified address]: Ipv4Addr::UNSPECIFIED - /// [broadcast address]: Ipv4Addr::BROADCAST - - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv4Addr; - /// - /// // Most IPv4 addresses are globally reachable: - /// assert_eq!(Ipv4Addr::new(80, 9, 12, 3).is_global(), true); - /// - /// // However some addresses have been assigned a special meaning - /// // that makes them not globally reachable. Some examples are: - /// - /// // The unspecified address (`0.0.0.0`) - /// assert_eq!(Ipv4Addr::UNSPECIFIED.is_global(), false); - /// - /// // Addresses reserved for private use (`10.0.0.0/8`, `172.16.0.0/12`, 192.168.0.0/16) - /// assert_eq!(Ipv4Addr::new(10, 254, 0, 0).is_global(), false); - /// assert_eq!(Ipv4Addr::new(192, 168, 10, 65).is_global(), false); - /// assert_eq!(Ipv4Addr::new(172, 16, 10, 65).is_global(), false); - /// - /// // Addresses in the shared address space (`100.64.0.0/10`) - /// assert_eq!(Ipv4Addr::new(100, 100, 0, 0).is_global(), false); - /// - /// // The loopback addresses (`127.0.0.0/8`) - /// assert_eq!(Ipv4Addr::LOCALHOST.is_global(), false); - /// - /// // Link-local addresses (`169.254.0.0/16`) - /// assert_eq!(Ipv4Addr::new(169, 254, 45, 1).is_global(), false); - /// - /// // Addresses reserved for documentation (`192.0.2.0/24`, `198.51.100.0/24`, `203.0.113.0/24`) - /// assert_eq!(Ipv4Addr::new(192, 0, 2, 255).is_global(), false); - /// assert_eq!(Ipv4Addr::new(198, 51, 100, 65).is_global(), false); - /// assert_eq!(Ipv4Addr::new(203, 0, 113, 6).is_global(), false); - /// - /// // Addresses reserved for benchmarking (`198.18.0.0/15`) - /// assert_eq!(Ipv4Addr::new(198, 18, 0, 0).is_global(), false); - /// - /// // Reserved addresses (`240.0.0.0/4`) - /// assert_eq!(Ipv4Addr::new(250, 10, 20, 30).is_global(), false); - /// - /// // The broadcast address (`255.255.255.255`) - /// assert_eq!(Ipv4Addr::BROADCAST.is_global(), false); - /// - /// // For a complete overview see the IANA IPv4 Special-Purpose Address Registry. - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv4", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_global(&self) -> bool { - !(self.octets()[0] == 0 // "This network" - || self.is_private() - || self.is_shared() - || self.is_loopback() - || self.is_link_local() - // addresses reserved for future protocols (`192.0.0.0/24`) - ||(self.octets()[0] == 192 && self.octets()[1] == 0 && self.octets()[2] == 0) - || self.is_documentation() - || self.is_benchmarking() - || self.is_reserved() - || self.is_broadcast()) - } - - /// Returns [`true`] if this address is part of the Shared Address Space defined in - /// [IETF RFC 6598] (`100.64.0.0/10`). - /// - /// [IETF RFC 6598]: https://tools.ietf.org/html/rfc6598 - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(100, 64, 0, 0).is_shared(), true); - /// assert_eq!(Ipv4Addr::new(100, 127, 255, 255).is_shared(), true); - /// assert_eq!(Ipv4Addr::new(100, 128, 0, 0).is_shared(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv4", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_shared(&self) -> bool { - self.octets()[0] == 100 && (self.octets()[1] & 0b1100_0000 == 0b0100_0000) - } - - /// Returns [`true`] if this address part of the `198.18.0.0/15` range, which is reserved for - /// network devices benchmarking. This range is defined in [IETF RFC 2544] as `192.18.0.0` - /// through `198.19.255.255` but [errata 423] corrects it to `198.18.0.0/15`. - /// - /// [IETF RFC 2544]: https://tools.ietf.org/html/rfc2544 - /// [errata 423]: https://www.rfc-editor.org/errata/eid423 - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(198, 17, 255, 255).is_benchmarking(), false); - /// assert_eq!(Ipv4Addr::new(198, 18, 0, 0).is_benchmarking(), true); - /// assert_eq!(Ipv4Addr::new(198, 19, 255, 255).is_benchmarking(), true); - /// assert_eq!(Ipv4Addr::new(198, 20, 0, 0).is_benchmarking(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv4", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_benchmarking(&self) -> bool { - self.octets()[0] == 198 && (self.octets()[1] & 0xfe) == 18 - } - - /// Returns [`true`] if this address is reserved by IANA for future use. [IETF RFC 1112] - /// defines the block of reserved addresses as `240.0.0.0/4`. This range normally includes the - /// broadcast address `255.255.255.255`, but this implementation explicitly excludes it, since - /// it is obviously not reserved for future use. - /// - /// [IETF RFC 1112]: https://tools.ietf.org/html/rfc1112 - /// - /// # Warning - /// - /// As IANA assigns new addresses, this method will be - /// updated. This may result in non-reserved addresses being - /// treated as reserved in code that relies on an outdated version - /// of this method. - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(240, 0, 0, 0).is_reserved(), true); - /// assert_eq!(Ipv4Addr::new(255, 255, 255, 254).is_reserved(), true); - /// - /// assert_eq!(Ipv4Addr::new(239, 255, 255, 255).is_reserved(), false); - /// // The broadcast address is not considered as reserved for future use by this implementation - /// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_reserved(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv4", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_reserved(&self) -> bool { - self.octets()[0] & 240 == 240 && !self.is_broadcast() - } - - /// Returns [`true`] if this is a multicast address (`224.0.0.0/4`). - /// - /// Multicast addresses have a most significant octet between `224` and `239`, - /// and is defined by [IETF RFC 5771]. - /// - /// [IETF RFC 5771]: https://tools.ietf.org/html/rfc5771 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(224, 254, 0, 0).is_multicast(), true); - /// assert_eq!(Ipv4Addr::new(236, 168, 10, 65).is_multicast(), true); - /// assert_eq!(Ipv4Addr::new(172, 16, 10, 65).is_multicast(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_multicast(&self) -> bool { - self.octets()[0] >= 224 && self.octets()[0] <= 239 - } - - /// Returns [`true`] if this is a broadcast address (`255.255.255.255`). - /// - /// A broadcast address has all octets set to `255` as defined in [IETF RFC 919]. - /// - /// [IETF RFC 919]: https://tools.ietf.org/html/rfc919 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_broadcast(), true); - /// assert_eq!(Ipv4Addr::new(236, 168, 10, 65).is_broadcast(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_broadcast(&self) -> bool { - u32::from_be_bytes(self.octets()) == u32::from_be_bytes(Self::BROADCAST.octets()) - } - - /// Returns [`true`] if this address is in a range designated for documentation. - /// - /// This is defined in [IETF RFC 5737]: - /// - /// - `192.0.2.0/24` (TEST-NET-1) - /// - `198.51.100.0/24` (TEST-NET-2) - /// - `203.0.113.0/24` (TEST-NET-3) - /// - /// [IETF RFC 5737]: https://tools.ietf.org/html/rfc5737 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// assert_eq!(Ipv4Addr::new(192, 0, 2, 255).is_documentation(), true); - /// assert_eq!(Ipv4Addr::new(198, 51, 100, 65).is_documentation(), true); - /// assert_eq!(Ipv4Addr::new(203, 0, 113, 6).is_documentation(), true); - /// assert_eq!(Ipv4Addr::new(193, 34, 17, 19).is_documentation(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_documentation(&self) -> bool { - matches!( - self.octets(), - [192, 0, 2, _] | [198, 51, 100, _] | [203, 0, 113, _] - ) - } - - /// Converts this address to an [IPv4-compatible] [`IPv6` address]. - /// - /// `a.b.c.d` becomes `::a.b.c.d` - /// - /// Note that IPv4-compatible addresses have been officially deprecated. - /// If you don't explicitly need an IPv4-compatible address for legacy reasons, consider using `to_ipv6_mapped` instead. - /// - /// [IPv4-compatible]: Ipv6Addr#ipv4-compatible-ipv6-addresses - /// [`IPv6` address]: Ipv6Addr - /// - /// # Examples - /// - /// ``` - /// use std::net::{Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!( - /// Ipv4Addr::new(192, 0, 2, 255).to_ipv6_compatible(), - /// Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0xc000, 0x2ff) - /// ); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use = "this returns the result of the operation, \ - without modifying the original"] - #[inline] - pub const fn to_ipv6_compatible(&self) -> Ipv6Addr { - let [a, b, c, d] = self.octets(); - Ipv6Addr { - octets: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, a, b, c, d], - } - } - - /// Converts this address to an [IPv4-mapped] [`IPv6` address]. - /// - /// `a.b.c.d` becomes `::ffff:a.b.c.d` - /// - /// [IPv4-mapped]: Ipv6Addr#ipv4-mapped-ipv6-addresses - /// [`IPv6` address]: Ipv6Addr - /// - /// # Examples - /// - /// ``` - /// use std::net::{Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(Ipv4Addr::new(192, 0, 2, 255).to_ipv6_mapped(), - /// Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc000, 0x2ff)); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use = "this returns the result of the operation, \ - without modifying the original"] - #[inline] - pub const fn to_ipv6_mapped(&self) -> Ipv6Addr { - let [a, b, c, d] = self.octets(); - Ipv6Addr { - octets: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, a, b, c, d], - } - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_from_ip", since = "1.16.0"))] -impl From for IpAddr { - /// Copies this address to a new `IpAddr::V4`. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr}; - /// - /// let addr = Ipv4Addr::new(127, 0, 0, 1); - /// - /// assert_eq!( - /// IpAddr::V4(addr), - /// IpAddr::from(addr) - /// ) - /// ``` - #[inline] - fn from(ipv4: Ipv4Addr) -> IpAddr { - IpAddr::V4(ipv4) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_from_ip", since = "1.16.0"))] -impl From for IpAddr { - /// Copies this address to a new `IpAddr::V6`. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv6Addr}; - /// - /// let addr = Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff); - /// - /// assert_eq!( - /// IpAddr::V6(addr), - /// IpAddr::from(addr) - /// ); - /// ``` - #[inline] - fn from(ipv6: Ipv6Addr) -> IpAddr { - IpAddr::V6(ipv6) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialEq for IpAddr { - #[inline] - fn eq(&self, other: &Ipv4Addr) -> bool { - match self { - IpAddr::V4(v4) => v4 == other, - IpAddr::V6(_) => false, - } - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialEq for Ipv4Addr { - #[inline] - fn eq(&self, other: &IpAddr) -> bool { - match other { - IpAddr::V4(v4) => self == v4, - IpAddr::V6(_) => false, - } - } -} - -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -impl PartialOrd for Ipv4Addr { - #[inline] - fn partial_cmp(&self, other: &Ipv4Addr) -> Option { - Some(self.cmp(other)) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialOrd for IpAddr { - #[inline] - fn partial_cmp(&self, other: &Ipv4Addr) -> Option { - match self { - IpAddr::V4(v4) => v4.partial_cmp(other), - IpAddr::V6(_) => Some(Ordering::Greater), - } - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialOrd for Ipv4Addr { - #[inline] - fn partial_cmp(&self, other: &IpAddr) -> Option { - match other { - IpAddr::V4(v4) => self.partial_cmp(v4), - IpAddr::V6(_) => Some(Ordering::Less), - } - } -} - -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -impl Ord for Ipv4Addr { - #[inline] - fn cmp(&self, other: &Ipv4Addr) -> Ordering { - self.octets.cmp(&other.octets) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_u32", since = "1.1.0"))] -impl From for u32 { - /// Converts an `Ipv4Addr` into a host byte order `u32`. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::new(0x12, 0x34, 0x56, 0x78); - /// assert_eq!(0x12345678, u32::from(addr)); - /// ``` - #[inline] - fn from(ip: Ipv4Addr) -> u32 { - u32::from_be_bytes(ip.octets) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_u32", since = "1.1.0"))] -impl From for Ipv4Addr { - /// Converts a host byte order `u32` into an `Ipv4Addr`. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::from(0x12345678); - /// assert_eq!(Ipv4Addr::new(0x12, 0x34, 0x56, 0x78), addr); - /// ``` - #[inline] - fn from(ip: u32) -> Ipv4Addr { - Ipv4Addr { - octets: ip.to_be_bytes(), - } - } -} - -#[cfg_attr(staged_api, stable(feature = "from_slice_v4", since = "1.9.0"))] -impl From<[u8; 4]> for Ipv4Addr { - /// Creates an `Ipv4Addr` from a four element byte array. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv4Addr; - /// - /// let addr = Ipv4Addr::from([13u8, 12u8, 11u8, 10u8]); - /// assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr); - /// ``` - #[inline] - fn from(octets: [u8; 4]) -> Ipv4Addr { - Ipv4Addr { octets } - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_from_slice", since = "1.17.0"))] -impl From<[u8; 4]> for IpAddr { - /// Creates an `IpAddr::V4` from a four element byte array. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr}; - /// - /// let addr = IpAddr::from([13u8, 12u8, 11u8, 10u8]); - /// assert_eq!(IpAddr::V4(Ipv4Addr::new(13, 12, 11, 10)), addr); - /// ``` - #[inline] - fn from(octets: [u8; 4]) -> IpAddr { - IpAddr::V4(Ipv4Addr::from(octets)) - } -} - -impl Ipv6Addr { - /// Creates a new IPv6 address from eight 16-bit segments. - /// - /// The result will represent the IP address `a:b:c:d:e:f:g:h`. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// let addr = Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_32", since = "1.32.0") - )] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[allow(clippy::too_many_arguments)] - #[must_use] - #[inline] - pub const fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16, h: u16) -> Ipv6Addr { - let addr16 = [ - a.to_be(), - b.to_be(), - c.to_be(), - d.to_be(), - e.to_be(), - f.to_be(), - g.to_be(), - h.to_be(), - ]; - Ipv6Addr { - // All elements in `addr16` are big endian. - // SAFETY: `[u16; 8]` is always safe to transmute to `[u8; 16]`. - octets: unsafe { transmute::<_, [u8; 16]>(addr16) }, - } - } - - /// An IPv6 address representing localhost: `::1`. - /// - /// This corresponds to constant `IN6ADDR_LOOPBACK_INIT` or `in6addr_loopback` in other - /// languages. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// let addr = Ipv6Addr::LOCALHOST; - /// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)); - /// ``` - #[doc(alias = "IN6ADDR_LOOPBACK_INIT")] - #[doc(alias = "in6addr_loopback")] - #[cfg_attr(staged_api, stable(feature = "ip_constructors", since = "1.30.0"))] - pub const LOCALHOST: Self = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1); - - /// An IPv6 address representing the unspecified address: `::` - /// - /// This corresponds to constant `IN6ADDR_ANY_INIT` or `in6addr_any` in other languages. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// let addr = Ipv6Addr::UNSPECIFIED; - /// assert_eq!(addr, Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)); - /// ``` - #[doc(alias = "IN6ADDR_ANY_INIT")] - #[doc(alias = "in6addr_any")] - #[cfg_attr(staged_api, stable(feature = "ip_constructors", since = "1.30.0"))] - pub const UNSPECIFIED: Self = Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0); - - /// Returns the eight 16-bit segments that make up this address. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).segments(), - /// [0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff]); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use] - #[inline] - pub const fn segments(&self) -> [u16; 8] { - // All elements in `self.octets` must be big endian. - // SAFETY: `[u8; 16]` is always safe to transmute to `[u16; 8]`. - let [a, b, c, d, e, f, g, h] = unsafe { transmute::<_, [u16; 8]>(self.octets) }; - // We want native endian u16 - [ - u16::from_be(a), - u16::from_be(b), - u16::from_be(c), - u16::from_be(d), - u16::from_be(e), - u16::from_be(f), - u16::from_be(g), - u16::from_be(h), - ] - } - - /// Returns [`true`] for the special 'unspecified' address (`::`). - /// - /// This property is defined in [IETF RFC 4291]. - /// - /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unspecified(), false); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0).is_unspecified(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_unspecified(&self) -> bool { - u128::from_be_bytes(self.octets()) == u128::from_be_bytes(Ipv6Addr::UNSPECIFIED.octets()) - } - - /// Returns [`true`] if this is the [loopback address] (`::1`), - /// as defined in [IETF RFC 4291 section 2.5.3]. - /// - /// Contrary to IPv4, in IPv6 there is only one loopback address. - /// - /// [loopback address]: Ipv6Addr::LOCALHOST - /// [IETF RFC 4291 section 2.5.3]: https://tools.ietf.org/html/rfc4291#section-2.5.3 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_loopback(), false); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0x1).is_loopback(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_loopback(&self) -> bool { - u128::from_be_bytes(self.octets()) == u128::from_be_bytes(Ipv6Addr::LOCALHOST.octets()) - } - - /// Returns [`true`] if the address appears to be globally reachable - /// as specified by the [IANA IPv6 Special-Purpose Address Registry]. - /// Whether or not an address is practically reachable will depend on your network configuration. - /// - /// Most IPv6 addresses are globally reachable; - /// unless they are specifically defined as *not* globally reachable. - /// - /// Non-exhaustive list of notable addresses that are not globally reachable: - /// - The [unspecified address] ([`is_unspecified`](Ipv6Addr::is_unspecified)) - /// - The [loopback address] ([`is_loopback`](Ipv6Addr::is_loopback)) - /// - IPv4-mapped addresses - /// - Addresses reserved for benchmarking - /// - Addresses reserved for documentation ([`is_documentation`](Ipv6Addr::is_documentation)) - /// - Unique local addresses ([`is_unique_local`](Ipv6Addr::is_unique_local)) - /// - Unicast addresses with link-local scope ([`is_unicast_link_local`](Ipv6Addr::is_unicast_link_local)) - /// - /// For the complete overview of which addresses are globally reachable, see the table at the [IANA IPv6 Special-Purpose Address Registry]. - /// - /// Note that an address having global scope is not the same as being globally reachable, - /// and there is no direct relation between the two concepts: There exist addresses with global scope - /// that are not globally reachable (for example unique local addresses), - /// and addresses that are globally reachable without having global scope - /// (multicast addresses with non-global scope). - /// - /// [IANA IPv6 Special-Purpose Address Registry]: https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml - /// [unspecified address]: Ipv6Addr::UNSPECIFIED - /// [loopback address]: Ipv6Addr::LOCALHOST - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv6Addr; - /// - /// // Most IPv6 addresses are globally reachable: - /// assert_eq!(Ipv6Addr::new(0x26, 0, 0x1c9, 0, 0, 0xafc8, 0x10, 0x1).is_global(), true); - /// - /// // However some addresses have been assigned a special meaning - /// // that makes them not globally reachable. Some examples are: - /// - /// // The unspecified address (`::`) - /// assert_eq!(Ipv6Addr::UNSPECIFIED.is_global(), false); - /// - /// // The loopback address (`::1`) - /// assert_eq!(Ipv6Addr::LOCALHOST.is_global(), false); - /// - /// // IPv4-mapped addresses (`::ffff:0:0/96`) - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_global(), false); - /// - /// // Addresses reserved for benchmarking (`2001:2::/48`) - /// assert_eq!(Ipv6Addr::new(0x2001, 2, 0, 0, 0, 0, 0, 1,).is_global(), false); - /// - /// // Addresses reserved for documentation (`2001:db8::/32`) - /// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 1).is_global(), false); - /// - /// // Unique local addresses (`fc00::/7`) - /// assert_eq!(Ipv6Addr::new(0xfc02, 0, 0, 0, 0, 0, 0, 1).is_global(), false); - /// - /// // Unicast addresses with link-local scope (`fe80::/10`) - /// assert_eq!(Ipv6Addr::new(0xfe81, 0, 0, 0, 0, 0, 0, 1).is_global(), false); - /// - /// // For a complete overview see the IANA IPv6 Special-Purpose Address Registry. - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_global(&self) -> bool { - !(self.is_unspecified() - || self.is_loopback() - // IPv4-mapped Address (`::ffff:0:0/96`) - || matches!(self.segments(), [0, 0, 0, 0, 0, 0xffff, _, _]) - // IPv4-IPv6 Translat. (`64:ff9b:1::/48`) - || matches!(self.segments(), [0x64, 0xff9b, 1, _, _, _, _, _]) - // Discard-Only Address Block (`100::/64`) - || matches!(self.segments(), [0x100, 0, 0, 0, _, _, _, _]) - // IETF Protocol Assignments (`2001::/23`) - || (matches!(self.segments(), [0x2001, b, _, _, _, _, _, _] if b < 0x200) - && !( - // Port Control Protocol Anycast (`2001:1::1`) - u128::from_be_bytes(self.octets()) == 0x2001_0001_0000_0000_0000_0000_0000_0001 - // Traversal Using Relays around NAT Anycast (`2001:1::2`) - || u128::from_be_bytes(self.octets()) == 0x2001_0001_0000_0000_0000_0000_0000_0002 - // AMT (`2001:3::/32`) - || matches!(self.segments(), [0x2001, 3, _, _, _, _, _, _]) - // AS112-v6 (`2001:4:112::/48`) - || matches!(self.segments(), [0x2001, 4, 0x112, _, _, _, _, _]) - // ORCHIDv2 (`2001:20::/28`) - || matches!(self.segments(), [0x2001, b, _, _, _, _, _, _] if b >= 0x20 && b <= 0x2F) - )) - || self.is_documentation() - || self.is_unique_local() - || self.is_unicast_link_local()) - } - - /// Returns [`true`] if this is a unique local address (`fc00::/7`). - /// - /// This property is defined in [IETF RFC 4193]. - /// - /// [IETF RFC 4193]: https://tools.ietf.org/html/rfc4193 - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unique_local(), false); - /// assert_eq!(Ipv6Addr::new(0xfc02, 0, 0, 0, 0, 0, 0, 0).is_unique_local(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_unique_local(&self) -> bool { - (self.segments()[0] & 0xfe00) == 0xfc00 - } - - /// Returns [`true`] if this is a unicast address, as defined by [IETF RFC 4291]. - /// Any address that is not a [multicast address] (`ff00::/8`) is unicast. - /// - /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 - /// [multicast address]: Ipv6Addr::is_multicast - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv6Addr; - /// - /// // The unspecified and loopback addresses are unicast. - /// assert_eq!(Ipv6Addr::UNSPECIFIED.is_unicast(), true); - /// assert_eq!(Ipv6Addr::LOCALHOST.is_unicast(), true); - /// - /// // Any address that is not a multicast address (`ff00::/8`) is unicast. - /// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast(), true); - /// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).is_unicast(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_unicast(&self) -> bool { - !self.is_multicast() - } - - /// Returns `true` if the address is a unicast address with link-local scope, - /// as defined in [RFC 4291]. - /// - /// A unicast address has link-local scope if it has the prefix `fe80::/10`, as per [RFC 4291 section 2.4]. - /// Note that this encompasses more addresses than those defined in [RFC 4291 section 2.5.6], - /// which describes "Link-Local IPv6 Unicast Addresses" as having the following stricter format: - /// - /// ```text - /// | 10 bits | 54 bits | 64 bits | - /// +----------+-------------------------+----------------------------+ - /// |1111111010| 0 | interface ID | - /// +----------+-------------------------+----------------------------+ - /// ``` - /// So while currently the only addresses with link-local scope an application will encounter are all in `fe80::/64`, - /// this might change in the future with the publication of new standards. More addresses in `fe80::/10` could be allocated, - /// and those addresses will have link-local scope. - /// - /// Also note that while [RFC 4291 section 2.5.3] mentions about the [loopback address] (`::1`) that "it is treated as having Link-Local scope", - /// this does not mean that the loopback address actually has link-local scope and this method will return `false` on it. - /// - /// [RFC 4291]: https://tools.ietf.org/html/rfc4291 - /// [RFC 4291 section 2.4]: https://tools.ietf.org/html/rfc4291#section-2.4 - /// [RFC 4291 section 2.5.3]: https://tools.ietf.org/html/rfc4291#section-2.5.3 - /// [RFC 4291 section 2.5.6]: https://tools.ietf.org/html/rfc4291#section-2.5.6 - /// [loopback address]: Ipv6Addr::LOCALHOST - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv6Addr; - /// - /// // The loopback address (`::1`) does not actually have link-local scope. - /// assert_eq!(Ipv6Addr::LOCALHOST.is_unicast_link_local(), false); - /// - /// // Only addresses in `fe80::/10` have link-local scope. - /// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast_link_local(), false); - /// assert_eq!(Ipv6Addr::new(0xfe80, 0, 0, 0, 0, 0, 0, 0).is_unicast_link_local(), true); - /// - /// // Addresses outside the stricter `fe80::/64` also have link-local scope. - /// assert_eq!(Ipv6Addr::new(0xfe80, 0, 0, 1, 0, 0, 0, 0).is_unicast_link_local(), true); - /// assert_eq!(Ipv6Addr::new(0xfe81, 0, 0, 0, 0, 0, 0, 0).is_unicast_link_local(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_unicast_link_local(&self) -> bool { - (self.segments()[0] & 0xffc0) == 0xfe80 - } - - /// Returns [`true`] if this is an address reserved for documentation - /// (`2001:db8::/32`). - /// - /// This property is defined in [IETF RFC 3849]. - /// - /// [IETF RFC 3849]: https://tools.ietf.org/html/rfc3849 - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_documentation(), false); - /// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_documentation(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_documentation(&self) -> bool { - (self.segments()[0] == 0x2001) && (self.segments()[1] == 0xdb8) - } - - /// Returns [`true`] if this is an address reserved for benchmarking (`2001:2::/48`). - /// - /// This property is defined in [IETF RFC 5180], where it is mistakenly specified as covering the range `2001:0200::/48`. - /// This is corrected in [IETF RFC Errata 1752] to `2001:0002::/48`. - /// - /// [IETF RFC 5180]: https://tools.ietf.org/html/rfc5180 - /// [IETF RFC Errata 1752]: https://www.rfc-editor.org/errata_search.php?eid=1752 - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc613, 0x0).is_benchmarking(), false); - /// assert_eq!(Ipv6Addr::new(0x2001, 0x2, 0, 0, 0, 0, 0, 0).is_benchmarking(), true); - /// ``` - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_benchmarking(&self) -> bool { - (self.segments()[0] == 0x2001) && (self.segments()[1] == 0x2) && (self.segments()[2] == 0) - } - - /// Returns [`true`] if the address is a globally routable unicast address. - /// - /// The following return false: - /// - /// - the loopback address - /// - the link-local addresses - /// - unique local addresses - /// - the unspecified address - /// - the address range reserved for documentation - /// - /// This method returns [`true`] for site-local addresses as per [RFC 4291 section 2.5.7] - /// - /// ```no_rust - /// The special behavior of [the site-local unicast] prefix defined in [RFC3513] must no longer - /// be supported in new implementations (i.e., new implementations must treat this prefix as - /// Global Unicast). - /// ``` - /// - /// [RFC 4291 section 2.5.7]: https://tools.ietf.org/html/rfc4291#section-2.5.7 - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast_global(), false); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unicast_global(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn is_unicast_global(&self) -> bool { - self.is_unicast() - && !self.is_loopback() - && !self.is_unicast_link_local() - && !self.is_unique_local() - && !self.is_unspecified() - && !self.is_documentation() - && !self.is_benchmarking() - } - - /// Returns the address' multicast scope if the address is multicast. - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// - /// use std::net::{Ipv6Addr, Ipv6MulticastScope}; - /// - /// assert_eq!( - /// Ipv6Addr::new(0xff0e, 0, 0, 0, 0, 0, 0, 0).multicast_scope(), - /// Some(Ipv6MulticastScope::Global) - /// ); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).multicast_scope(), None); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use] - #[inline] - pub const fn multicast_scope(&self) -> Option { - if self.is_multicast() { - match self.segments()[0] & 0x000f { - 1 => Some(Ipv6MulticastScope::InterfaceLocal), - 2 => Some(Ipv6MulticastScope::LinkLocal), - 3 => Some(Ipv6MulticastScope::RealmLocal), - 4 => Some(Ipv6MulticastScope::AdminLocal), - 5 => Some(Ipv6MulticastScope::SiteLocal), - 8 => Some(Ipv6MulticastScope::OrganizationLocal), - 14 => Some(Ipv6MulticastScope::Global), - _ => None, - } - } else { - None - } - } - - /// Returns [`true`] if this is a multicast address (`ff00::/8`). - /// - /// This property is defined by [IETF RFC 4291]. - /// - /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).is_multicast(), true); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_multicast(), false); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(since = "1.7.0", feature = "ip_17"))] - #[must_use] - #[inline] - pub const fn is_multicast(&self) -> bool { - (self.segments()[0] & 0xff00) == 0xff00 - } - - /// Converts this address to an [`IPv4` address] if it's an [IPv4-mapped] address, - /// as defined in [IETF RFC 4291 section 2.5.5.2], otherwise returns [`None`]. - /// - /// `::ffff:a.b.c.d` becomes `a.b.c.d`. - /// All addresses *not* starting with `::ffff` will return `None`. - /// - /// [`IPv4` address]: Ipv4Addr - /// [IPv4-mapped]: Ipv6Addr - /// [IETF RFC 4291 section 2.5.5.2]: https://tools.ietf.org/html/rfc4291#section-2.5.5.2 - /// - /// # Examples - /// - /// ``` - /// use std::net::{Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).to_ipv4_mapped(), None); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).to_ipv4_mapped(), - /// Some(Ipv4Addr::new(192, 10, 2, 255))); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1).to_ipv4_mapped(), None); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, stable(feature = "ipv6_to_ipv4_mapped", since = "1.63.0"))] - #[must_use = "this returns the result of the operation, \ - without modifying the original"] - #[inline] - pub const fn to_ipv4_mapped(&self) -> Option { - match self.octets() { - [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, a, b, c, d] => { - Some(Ipv4Addr::new(a, b, c, d)) - } - _ => None, - } - } - - /// Converts this address to an [`IPv4` address] if it is either - /// an [IPv4-compatible] address as defined in [IETF RFC 4291 section 2.5.5.1], - /// or an [IPv4-mapped] address as defined in [IETF RFC 4291 section 2.5.5.2], - /// otherwise returns [`None`]. - /// - /// Note that this will return an [`IPv4` address] for the IPv6 loopback address `::1`. Use - /// [`Ipv6Addr::to_ipv4_mapped`] to avoid this. - /// - /// `::a.b.c.d` and `::ffff:a.b.c.d` become `a.b.c.d`. `::1` becomes `0.0.0.1`. - /// All addresses *not* starting with either all zeroes or `::ffff` will return `None`. - /// - /// [`IPv4` address]: Ipv4Addr - /// [IPv4-compatible]: Ipv6Addr#ipv4-compatible-ipv6-addresses - /// [IPv4-mapped]: Ipv6Addr#ipv4-mapped-ipv6-addresses - /// [IETF RFC 4291 section 2.5.5.1]: https://tools.ietf.org/html/rfc4291#section-2.5.5.1 - /// [IETF RFC 4291 section 2.5.5.2]: https://tools.ietf.org/html/rfc4291#section-2.5.5.2 - /// - /// # Examples - /// - /// ``` - /// use std::net::{Ipv4Addr, Ipv6Addr}; - /// - /// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).to_ipv4(), None); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).to_ipv4(), - /// Some(Ipv4Addr::new(192, 10, 2, 255))); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1).to_ipv4(), - /// Some(Ipv4Addr::new(0, 0, 0, 1))); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_50", since = "1.50.0") - )] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use = "this returns the result of the operation, \ - without modifying the original"] - #[inline] - pub const fn to_ipv4(&self) -> Option { - if let [0, 0, 0, 0, 0, 0 | 0xffff, ab, cd] = self.segments() { - let [a, b] = ab.to_be_bytes(); - let [c, d] = cd.to_be_bytes(); - Some(Ipv4Addr::new(a, b, c, d)) - } else { - None - } - } - - /// Converts this address to an `IpAddr::V4` if it is an IPv4-mapped addresses, otherwise it - /// returns self wrapped in an `IpAddr::V6`. - /// - /// # Examples - /// - /// ``` - /// #![feature(ip)] - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0x7f00, 0x1).is_loopback(), false); - /// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0x7f00, 0x1).to_canonical().is_loopback(), true); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_ipv6", issue = "76205") - )] - #[cfg_attr(staged_api, unstable(feature = "ip", issue = "27709"))] - #[must_use = "this returns the result of the operation, \ - without modifying the original"] - #[inline] - pub const fn to_canonical(&self) -> IpAddr { - if let Some(mapped) = self.to_ipv4_mapped() { - return IpAddr::V4(mapped); - } - IpAddr::V6(*self) - } - - /// Returns the sixteen eight-bit integers the IPv6 address consists of. - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).octets(), - /// [255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); - /// ``` - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "const_ip_32", since = "1.32.0") - )] - #[cfg_attr(staged_api, stable(feature = "ipv6_to_octets", since = "1.12.0"))] - #[must_use] - #[inline] - pub const fn octets(&self) -> [u8; 16] { - self.octets - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialEq for Ipv6Addr { - #[inline] - fn eq(&self, other: &IpAddr) -> bool { - match other { - IpAddr::V4(_) => false, - IpAddr::V6(v6) => self == v6, - } - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialEq for IpAddr { - #[inline] - fn eq(&self, other: &Ipv6Addr) -> bool { - match self { - IpAddr::V4(_) => false, - IpAddr::V6(v6) => v6 == other, - } - } -} - -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -impl PartialOrd for Ipv6Addr { - #[inline] - fn partial_cmp(&self, other: &Ipv6Addr) -> Option { - Some(self.cmp(other)) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialOrd for IpAddr { - #[inline] - fn partial_cmp(&self, other: &Ipv6Addr) -> Option { - match self { - IpAddr::V4(_) => Some(Ordering::Less), - IpAddr::V6(v6) => v6.partial_cmp(other), - } - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_cmp", since = "1.16.0"))] -impl PartialOrd for Ipv6Addr { - #[inline] - fn partial_cmp(&self, other: &IpAddr) -> Option { - match other { - IpAddr::V4(_) => Some(Ordering::Greater), - IpAddr::V6(v6) => self.partial_cmp(v6), - } - } -} - -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -impl Ord for Ipv6Addr { - #[inline] - fn cmp(&self, other: &Ipv6Addr) -> Ordering { - self.segments().cmp(&other.segments()) - } -} - -#[cfg_attr(staged_api, stable(feature = "i128", since = "1.26.0"))] -impl From for u128 { - /// Convert an `Ipv6Addr` into a host byte order `u128`. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// let addr = Ipv6Addr::new( - /// 0x1020, 0x3040, 0x5060, 0x7080, - /// 0x90A0, 0xB0C0, 0xD0E0, 0xF00D, - /// ); - /// assert_eq!(0x102030405060708090A0B0C0D0E0F00D_u128, u128::from(addr)); - /// ``` - #[inline] - fn from(ip: Ipv6Addr) -> u128 { - u128::from_be_bytes(ip.octets) - } -} -#[cfg_attr(staged_api, stable(feature = "i128", since = "1.26.0"))] -impl From for Ipv6Addr { - /// Convert a host byte order `u128` into an `Ipv6Addr`. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// let addr = Ipv6Addr::from(0x102030405060708090A0B0C0D0E0F00D_u128); - /// assert_eq!( - /// Ipv6Addr::new( - /// 0x1020, 0x3040, 0x5060, 0x7080, - /// 0x90A0, 0xB0C0, 0xD0E0, 0xF00D, - /// ), - /// addr); - /// ``` - #[inline] - fn from(ip: u128) -> Ipv6Addr { - Ipv6Addr::from(ip.to_be_bytes()) - } -} - -#[cfg_attr(staged_api, stable(feature = "ipv6_from_octets", since = "1.9.0"))] -impl From<[u8; 16]> for Ipv6Addr { - /// Creates an `Ipv6Addr` from a sixteen element byte array. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// let addr = Ipv6Addr::from([ - /// 25u8, 24u8, 23u8, 22u8, 21u8, 20u8, 19u8, 18u8, - /// 17u8, 16u8, 15u8, 14u8, 13u8, 12u8, 11u8, 10u8, - /// ]); - /// assert_eq!( - /// Ipv6Addr::new( - /// 0x1918, 0x1716, - /// 0x1514, 0x1312, - /// 0x1110, 0x0f0e, - /// 0x0d0c, 0x0b0a - /// ), - /// addr - /// ); - /// ``` - #[inline] - fn from(octets: [u8; 16]) -> Ipv6Addr { - Ipv6Addr { octets } - } -} - -#[cfg_attr(staged_api, stable(feature = "ipv6_from_segments", since = "1.16.0"))] -impl From<[u16; 8]> for Ipv6Addr { - /// Creates an `Ipv6Addr` from an eight element 16-bit array. - /// - /// # Examples - /// - /// ``` - /// use std::net::Ipv6Addr; - /// - /// let addr = Ipv6Addr::from([ - /// 525u16, 524u16, 523u16, 522u16, - /// 521u16, 520u16, 519u16, 518u16, - /// ]); - /// assert_eq!( - /// Ipv6Addr::new( - /// 0x20d, 0x20c, - /// 0x20b, 0x20a, - /// 0x209, 0x208, - /// 0x207, 0x206 - /// ), - /// addr - /// ); - /// ``` - #[inline] - fn from(segments: [u16; 8]) -> Ipv6Addr { - let [a, b, c, d, e, f, g, h] = segments; - Ipv6Addr::new(a, b, c, d, e, f, g, h) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_from_slice", since = "1.17.0"))] -impl From<[u8; 16]> for IpAddr { - /// Creates an `IpAddr::V6` from a sixteen element byte array. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv6Addr}; - /// - /// let addr = IpAddr::from([ - /// 25u8, 24u8, 23u8, 22u8, 21u8, 20u8, 19u8, 18u8, - /// 17u8, 16u8, 15u8, 14u8, 13u8, 12u8, 11u8, 10u8, - /// ]); - /// assert_eq!( - /// IpAddr::V6(Ipv6Addr::new( - /// 0x1918, 0x1716, - /// 0x1514, 0x1312, - /// 0x1110, 0x0f0e, - /// 0x0d0c, 0x0b0a - /// )), - /// addr - /// ); - /// ``` - #[inline] - fn from(octets: [u8; 16]) -> IpAddr { - IpAddr::V6(Ipv6Addr::from(octets)) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_from_slice", since = "1.17.0"))] -impl From<[u16; 8]> for IpAddr { - /// Creates an `IpAddr::V6` from an eight element 16-bit array. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv6Addr}; - /// - /// let addr = IpAddr::from([ - /// 525u16, 524u16, 523u16, 522u16, - /// 521u16, 520u16, 519u16, 518u16, - /// ]); - /// assert_eq!( - /// IpAddr::V6(Ipv6Addr::new( - /// 0x20d, 0x20c, - /// 0x20b, 0x20a, - /// 0x209, 0x208, - /// 0x207, 0x206 - /// )), - /// addr - /// ); - /// ``` - #[inline] - fn from(segments: [u16; 8]) -> IpAddr { - IpAddr::V6(Ipv6Addr::from(segments)) - } -} diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/net/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/net/mod.rs deleted file mode 100644 index ff33564821d4..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/net/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -mod ip_addr; -mod socket_addr; - -pub use self::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope}; -pub use self::socket_addr::{SocketAddr, SocketAddrV4, SocketAddrV6}; diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/net/socket_addr.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/net/socket_addr.rs deleted file mode 100644 index 053d8f670b53..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/net/socket_addr.rs +++ /dev/null @@ -1,641 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/net/socket_addr.rs at revision -//! bd20fc1fd657b32f7aa1d70d8723f04c87f21606. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. -//! -//! This defines `SocketAddr`, `SocketAddrV4`, and `SocketAddrV6` in a -//! platform-independent way. It is not the native representation. - -use super::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr}; -use core::cmp::Ordering; -use core::hash; - -/// An internet socket address, either IPv4 or IPv6. -/// -/// Internet socket addresses consist of an [IP address], a 16-bit port number, as well -/// as possibly some version-dependent additional information. See [`SocketAddrV4`]'s and -/// [`SocketAddrV6`]'s respective documentation for more details. -/// -/// The size of a `SocketAddr` instance may vary depending on the target operating -/// system. -/// -/// [IP address]: IpAddr -/// -/// # Examples -/// -/// ``` -/// use std::net::{IpAddr, Ipv4Addr, SocketAddr}; -/// -/// let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080); -/// -/// assert_eq!("127.0.0.1:8080".parse(), Ok(socket)); -/// assert_eq!(socket.port(), 8080); -/// assert_eq!(socket.is_ipv4(), true); -/// ``` -#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub enum SocketAddr { - /// An IPv4 socket address. - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - V4(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] SocketAddrV4), - /// An IPv6 socket address. - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - V6(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] SocketAddrV6), -} - -/// An IPv4 socket address. -/// -/// IPv4 socket addresses consist of an [`IPv4` address] and a 16-bit port number, as -/// stated in [IETF RFC 793]. -/// -/// See [`SocketAddr`] for a type encompassing both IPv4 and IPv6 socket addresses. -/// -/// The size of a `SocketAddrV4` struct may vary depending on the target operating -/// system. Do not assume that this type has the same memory layout as the underlying -/// system representation. -/// -/// [IETF RFC 793]: https://tools.ietf.org/html/rfc793 -/// [`IPv4` address]: Ipv4Addr -/// -/// # Examples -/// -/// ``` -/// use std::net::{Ipv4Addr, SocketAddrV4}; -/// -/// let socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080); -/// -/// assert_eq!("127.0.0.1:8080".parse(), Ok(socket)); -/// assert_eq!(socket.ip(), &Ipv4Addr::new(127, 0, 0, 1)); -/// assert_eq!(socket.port(), 8080); -/// ``` -#[derive(Copy, Clone, Eq, PartialEq)] -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub struct SocketAddrV4 { - ip: Ipv4Addr, - port: u16, -} - -/// An IPv6 socket address. -/// -/// IPv6 socket addresses consist of an [`IPv6` address], a 16-bit port number, as well -/// as fields containing the traffic class, the flow label, and a scope identifier -/// (see [IETF RFC 2553, Section 3.3] for more details). -/// -/// See [`SocketAddr`] for a type encompassing both IPv4 and IPv6 socket addresses. -/// -/// The size of a `SocketAddrV6` struct may vary depending on the target operating -/// system. Do not assume that this type has the same memory layout as the underlying -/// system representation. -/// -/// [IETF RFC 2553, Section 3.3]: https://tools.ietf.org/html/rfc2553#section-3.3 -/// [`IPv6` address]: Ipv6Addr -/// -/// # Examples -/// -/// ``` -/// use std::net::{Ipv6Addr, SocketAddrV6}; -/// -/// let socket = SocketAddrV6::new(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 1), 8080, 0, 0); -/// -/// assert_eq!("[2001:db8::1]:8080".parse(), Ok(socket)); -/// assert_eq!(socket.ip(), &Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 1)); -/// assert_eq!(socket.port(), 8080); -/// ``` -#[derive(Copy, Clone, Eq, PartialEq)] -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub struct SocketAddrV6 { - ip: Ipv6Addr, - port: u16, - flowinfo: u32, - scope_id: u32, -} - -impl SocketAddr { - /// Creates a new socket address from an [IP address] and a port number. - /// - /// [IP address]: IpAddr - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, SocketAddr}; - /// - /// let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080); - /// assert_eq!(socket.ip(), IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1))); - /// assert_eq!(socket.port(), 8080); - /// ``` - #[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] - #[must_use] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn new(ip: IpAddr, port: u16) -> SocketAddr { - match ip { - IpAddr::V4(a) => SocketAddr::V4(SocketAddrV4::new(a, port)), - IpAddr::V6(a) => SocketAddr::V6(SocketAddrV6::new(a, port, 0, 0)), - } - } - - /// Returns the IP address associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, SocketAddr}; - /// - /// let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080); - /// assert_eq!(socket.ip(), IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1))); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn ip(&self) -> IpAddr { - match *self { - SocketAddr::V4(ref a) => IpAddr::V4(*a.ip()), - SocketAddr::V6(ref a) => IpAddr::V6(*a.ip()), - } - } - - /// Changes the IP address associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, SocketAddr}; - /// - /// let mut socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080); - /// socket.set_ip(IpAddr::V4(Ipv4Addr::new(10, 10, 0, 1))); - /// assert_eq!(socket.ip(), IpAddr::V4(Ipv4Addr::new(10, 10, 0, 1))); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_ip(&mut self, new_ip: IpAddr) { - // `match (*self, new_ip)` would have us mutate a copy of self only to throw it away. - match (self, new_ip) { - (&mut SocketAddr::V4(ref mut a), IpAddr::V4(new_ip)) => a.set_ip(new_ip), - (&mut SocketAddr::V6(ref mut a), IpAddr::V6(new_ip)) => a.set_ip(new_ip), - (self_, new_ip) => *self_ = Self::new(new_ip, self_.port()), - } - } - - /// Returns the port number associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, SocketAddr}; - /// - /// let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080); - /// assert_eq!(socket.port(), 8080); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn port(&self) -> u16 { - match *self { - SocketAddr::V4(ref a) => a.port(), - SocketAddr::V6(ref a) => a.port(), - } - } - - /// Changes the port number associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, SocketAddr}; - /// - /// let mut socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080); - /// socket.set_port(1025); - /// assert_eq!(socket.port(), 1025); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_port(&mut self, new_port: u16) { - match *self { - SocketAddr::V4(ref mut a) => a.set_port(new_port), - SocketAddr::V6(ref mut a) => a.set_port(new_port), - } - } - - /// Returns [`true`] if the [IP address] in this `SocketAddr` is an - /// [`IPv4` address], and [`false`] otherwise. - /// - /// [IP address]: IpAddr - /// [`IPv4` address]: IpAddr::V4 - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv4Addr, SocketAddr}; - /// - /// let socket = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8080); - /// assert_eq!(socket.is_ipv4(), true); - /// assert_eq!(socket.is_ipv6(), false); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "sockaddr_checker", since = "1.16.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn is_ipv4(&self) -> bool { - matches!(*self, SocketAddr::V4(_)) - } - - /// Returns [`true`] if the [IP address] in this `SocketAddr` is an - /// [`IPv6` address], and [`false`] otherwise. - /// - /// [IP address]: IpAddr - /// [`IPv6` address]: IpAddr::V6 - /// - /// # Examples - /// - /// ``` - /// use std::net::{IpAddr, Ipv6Addr, SocketAddr}; - /// - /// let socket = SocketAddr::new(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 65535, 0, 1)), 8080); - /// assert_eq!(socket.is_ipv4(), false); - /// assert_eq!(socket.is_ipv6(), true); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "sockaddr_checker", since = "1.16.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn is_ipv6(&self) -> bool { - matches!(*self, SocketAddr::V6(_)) - } -} - -impl SocketAddrV4 { - /// Creates a new socket address from an [`IPv4` address] and a port number. - /// - /// [`IPv4` address]: Ipv4Addr - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV4, Ipv4Addr}; - /// - /// let socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080); - /// ``` - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn new(ip: Ipv4Addr, port: u16) -> SocketAddrV4 { - SocketAddrV4 { ip, port } - } - - /// Returns the IP address associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV4, Ipv4Addr}; - /// - /// let socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080); - /// assert_eq!(socket.ip(), &Ipv4Addr::new(127, 0, 0, 1)); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn ip(&self) -> &Ipv4Addr { - &self.ip - } - - /// Changes the IP address associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV4, Ipv4Addr}; - /// - /// let mut socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080); - /// socket.set_ip(Ipv4Addr::new(192, 168, 0, 1)); - /// assert_eq!(socket.ip(), &Ipv4Addr::new(192, 168, 0, 1)); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_ip(&mut self, new_ip: Ipv4Addr) { - self.ip = new_ip; - } - - /// Returns the port number associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV4, Ipv4Addr}; - /// - /// let socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080); - /// assert_eq!(socket.port(), 8080); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn port(&self) -> u16 { - self.port - } - - /// Changes the port number associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV4, Ipv4Addr}; - /// - /// let mut socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080); - /// socket.set_port(4242); - /// assert_eq!(socket.port(), 4242); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_port(&mut self, new_port: u16) { - self.port = new_port; - } -} - -impl SocketAddrV6 { - /// Creates a new socket address from an [`IPv6` address], a 16-bit port number, - /// and the `flowinfo` and `scope_id` fields. - /// - /// For more information on the meaning and layout of the `flowinfo` and `scope_id` - /// parameters, see [IETF RFC 2553, Section 3.3]. - /// - /// [IETF RFC 2553, Section 3.3]: https://tools.ietf.org/html/rfc2553#section-3.3 - /// [`IPv6` address]: Ipv6Addr - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 0, 0); - /// ``` - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[must_use] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn new(ip: Ipv6Addr, port: u16, flowinfo: u32, scope_id: u32) -> SocketAddrV6 { - SocketAddrV6 { - ip, - port, - flowinfo, - scope_id, - } - } - - /// Returns the IP address associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 0, 0); - /// assert_eq!(socket.ip(), &Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn ip(&self) -> &Ipv6Addr { - &self.ip - } - - /// Changes the IP address associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let mut socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 0, 0); - /// socket.set_ip(Ipv6Addr::new(76, 45, 0, 0, 0, 0, 0, 0)); - /// assert_eq!(socket.ip(), &Ipv6Addr::new(76, 45, 0, 0, 0, 0, 0, 0)); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_ip(&mut self, new_ip: Ipv6Addr) { - self.ip = new_ip; - } - - /// Returns the port number associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 0, 0); - /// assert_eq!(socket.port(), 8080); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn port(&self) -> u16 { - self.port - } - - /// Changes the port number associated with this socket address. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let mut socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 0, 0); - /// socket.set_port(4242); - /// assert_eq!(socket.port(), 4242); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_port(&mut self, new_port: u16) { - self.port = new_port; - } - - /// Returns the flow information associated with this address. - /// - /// This information corresponds to the `sin6_flowinfo` field in C's `netinet/in.h`, - /// as specified in [IETF RFC 2553, Section 3.3]. - /// It combines information about the flow label and the traffic class as specified - /// in [IETF RFC 2460], respectively [Section 6] and [Section 7]. - /// - /// [IETF RFC 2553, Section 3.3]: https://tools.ietf.org/html/rfc2553#section-3.3 - /// [IETF RFC 2460]: https://tools.ietf.org/html/rfc2460 - /// [Section 6]: https://tools.ietf.org/html/rfc2460#section-6 - /// [Section 7]: https://tools.ietf.org/html/rfc2460#section-7 - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 10, 0); - /// assert_eq!(socket.flowinfo(), 10); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn flowinfo(&self) -> u32 { - self.flowinfo - } - - /// Changes the flow information associated with this socket address. - /// - /// See [`SocketAddrV6::flowinfo`]'s documentation for more details. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let mut socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 10, 0); - /// socket.set_flowinfo(56); - /// assert_eq!(socket.flowinfo(), 56); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_flowinfo(&mut self, new_flowinfo: u32) { - self.flowinfo = new_flowinfo; - } - - /// Returns the scope ID associated with this address. - /// - /// This information corresponds to the `sin6_scope_id` field in C's `netinet/in.h`, - /// as specified in [IETF RFC 2553, Section 3.3]. - /// - /// [IETF RFC 2553, Section 3.3]: https://tools.ietf.org/html/rfc2553#section-3.3 - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 0, 78); - /// assert_eq!(socket.scope_id(), 78); - /// ``` - #[must_use] - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - #[cfg_attr( - staged_api, - rustc_const_unstable(feature = "const_socketaddr", issue = "82485") - )] - pub const fn scope_id(&self) -> u32 { - self.scope_id - } - - /// Changes the scope ID associated with this socket address. - /// - /// See [`SocketAddrV6::scope_id`]'s documentation for more details. - /// - /// # Examples - /// - /// ``` - /// use std::net::{SocketAddrV6, Ipv6Addr}; - /// - /// let mut socket = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 8080, 0, 78); - /// socket.set_scope_id(42); - /// assert_eq!(socket.scope_id(), 42); - /// ``` - #[cfg_attr(staged_api, stable(feature = "sockaddr_setters", since = "1.9.0"))] - pub fn set_scope_id(&mut self, new_scope_id: u32) { - self.scope_id = new_scope_id; - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_from_ip", since = "1.16.0"))] -impl From for SocketAddr { - /// Converts a [`SocketAddrV4`] into a [`SocketAddr::V4`]. - fn from(sock4: SocketAddrV4) -> SocketAddr { - SocketAddr::V4(sock4) - } -} - -#[cfg_attr(staged_api, stable(feature = "ip_from_ip", since = "1.16.0"))] -impl From for SocketAddr { - /// Converts a [`SocketAddrV6`] into a [`SocketAddr::V6`]. - fn from(sock6: SocketAddrV6) -> SocketAddr { - SocketAddr::V6(sock6) - } -} - -#[cfg_attr(staged_api, stable(feature = "addr_from_into_ip", since = "1.17.0"))] -impl> From<(I, u16)> for SocketAddr { - /// Converts a tuple struct (Into<[`IpAddr`]>, `u16`) into a [`SocketAddr`]. - /// - /// This conversion creates a [`SocketAddr::V4`] for an [`IpAddr::V4`] - /// and creates a [`SocketAddr::V6`] for an [`IpAddr::V6`]. - /// - /// `u16` is treated as port of the newly created [`SocketAddr`]. - fn from(pieces: (I, u16)) -> SocketAddr { - SocketAddr::new(pieces.0.into(), pieces.1) - } -} - -#[cfg_attr(staged_api, stable(feature = "socketaddr_ordering", since = "1.45.0"))] -impl PartialOrd for SocketAddrV4 { - fn partial_cmp(&self, other: &SocketAddrV4) -> Option { - Some(self.cmp(other)) - } -} - -#[cfg_attr(staged_api, stable(feature = "socketaddr_ordering", since = "1.45.0"))] -impl PartialOrd for SocketAddrV6 { - fn partial_cmp(&self, other: &SocketAddrV6) -> Option { - Some(self.cmp(other)) - } -} - -#[cfg_attr(staged_api, stable(feature = "socketaddr_ordering", since = "1.45.0"))] -impl Ord for SocketAddrV4 { - fn cmp(&self, other: &SocketAddrV4) -> Ordering { - self.ip() - .cmp(other.ip()) - .then(self.port().cmp(&other.port())) - } -} - -#[cfg_attr(staged_api, stable(feature = "socketaddr_ordering", since = "1.45.0"))] -impl Ord for SocketAddrV6 { - fn cmp(&self, other: &SocketAddrV6) -> Ordering { - self.ip() - .cmp(other.ip()) - .then(self.port().cmp(&other.port())) - } -} - -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -impl hash::Hash for SocketAddrV4 { - fn hash(&self, s: &mut H) { - (self.port, self.ip).hash(s) - } -} -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -impl hash::Hash for SocketAddrV6 { - fn hash(&self, s: &mut H) { - (self.port, &self.ip, self.flowinfo, self.scope_id).hash(s) - } -} diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/mod.rs deleted file mode 100644 index 2d88fb076f0f..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/mod.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/os/fd/mod.rs at revision -//! fa68e73e9947be8ffc5b3b46d899e4953a44e7e9. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. -//! -//! Owned and borrowed Unix-like file descriptors. - -#![cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -#![deny(unsafe_op_in_unsafe_fn)] - -// `RawFd`, `AsRawFd`, etc. -mod raw; - -// `OwnedFd`, `AsFd`, etc. -mod owned; - -pub use owned::*; -pub use raw::*; diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/owned.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/owned.rs deleted file mode 100644 index fffe34bffa58..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/owned.rs +++ /dev/null @@ -1,290 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/os/fd/owned.rs at revision -//! fa68e73e9947be8ffc5b3b46d899e4953a44e7e9. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. -//! -//! Owned and borrowed Unix-like file descriptors. - -#![cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -#![deny(unsafe_op_in_unsafe_fn)] -#![allow(unsafe_code)] - -use super::raw::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; -use crate::io::close; -use core::fmt; -use core::marker::PhantomData; -use core::mem::forget; - -/// A borrowed file descriptor. -/// -/// This has a lifetime parameter to tie it to the lifetime of something that -/// owns the file descriptor. -/// -/// This uses `repr(transparent)` and has the representation of a host file -/// descriptor, so it can be used in FFI in places where a file descriptor is -/// passed as an argument, it is not captured or consumed, and it never has the -/// value `-1`. -/// -/// This type's `.to_owned()` implementation returns another `BorrowedFd` -/// rather than an `OwnedFd`. It just makes a trivial copy of the raw file -/// descriptor, which is then borrowed under the same lifetime. -#[derive(Copy, Clone)] -#[repr(transparent)] -#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_start(0))] -// libstd/os/raw/mod.rs assures me that every libstd-supported platform has a -// 32-bit c_int. Below is -2, in two's complement, but that only works out -// because c_int is 32 bits. -#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_end(0xFF_FF_FF_FE))] -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -#[cfg_attr(rustc_attrs, rustc_nonnull_optimization_guaranteed)] -pub struct BorrowedFd<'fd> { - fd: RawFd, - _phantom: PhantomData<&'fd OwnedFd>, -} - -/// An owned file descriptor. -/// -/// This closes the file descriptor on drop. -/// -/// This uses `repr(transparent)` and has the representation of a host file -/// descriptor, so it can be used in FFI in places where a file descriptor is -/// passed as a consumed argument or returned as an owned value, and it never -/// has the value `-1`. -#[repr(transparent)] -#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_start(0))] -// libstd/os/raw/mod.rs assures me that every libstd-supported platform has a -// 32-bit c_int. Below is -2, in two's complement, but that only works out -// because c_int is 32 bits. -#[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_end(0xFF_FF_FF_FE))] -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -#[cfg_attr(rustc_attrs, rustc_nonnull_optimization_guaranteed)] -pub struct OwnedFd { - fd: RawFd, -} - -impl BorrowedFd<'_> { - /// Return a `BorrowedFd` holding the given raw file descriptor. - /// - /// # Safety - /// - /// The resource pointed to by `fd` must remain open for the duration of - /// the returned `BorrowedFd`, and it must not have the value `-1`. - #[inline] - #[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] - pub const unsafe fn borrow_raw(fd: RawFd) -> Self { - assert!(fd != u32::MAX as RawFd); - // SAFETY: we just asserted that the value is in the valid range and isn't `-1` (the only value bigger than `0xFF_FF_FF_FE` unsigned) - #[allow(unused_unsafe)] - unsafe { - Self { - fd, - _phantom: PhantomData, - } - } - } -} - -impl OwnedFd { - /// Creates a new `OwnedFd` instance that shares the same underlying file handle - /// as the existing `OwnedFd` instance. - #[cfg(not(target_arch = "wasm32"))] - pub fn try_clone(&self) -> crate::io::Result { - // We want to atomically duplicate this file descriptor and set the - // CLOEXEC flag, and currently that's done via F_DUPFD_CLOEXEC. This - // is a POSIX flag that was added to Linux in 2.6.24. - #[cfg(not(target_os = "espidf"))] - let fd = crate::io::fcntl_dupfd_cloexec(self, 0)?; - - // For ESP-IDF, F_DUPFD is used instead, because the CLOEXEC semantics - // will never be supported, as this is a bare metal framework with - // no capabilities for multi-process execution. While F_DUPFD is also - // not supported yet, it might be (currently it returns ENOSYS). - #[cfg(target_os = "espidf")] - let fd = crate::io::fcntl_dupfd(self)?; - - Ok(fd.into()) - } - - #[cfg(target_arch = "wasm32")] - pub fn try_clone(&self) -> crate::io::Result { - Err(crate::io::const_io_error!( - crate::io::ErrorKind::Unsupported, - "operation not supported on WASI yet", - )) - } -} - -impl BorrowedFd<'_> { - /// Creates a new `OwnedFd` instance that shares the same underlying file - /// description as the existing `BorrowedFd` instance. - #[cfg(not(any(target_arch = "wasm32", target_os = "hermit")))] - #[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] - pub fn try_clone_to_owned(&self) -> crate::io::Result { - // Avoid using file descriptors below 3 as they are used for stdio - - // We want to atomically duplicate this file descriptor and set the - // CLOEXEC flag, and currently that's done via F_DUPFD_CLOEXEC. This - // is a POSIX flag that was added to Linux in 2.6.24. - #[cfg(not(target_os = "espidf"))] - let fd = crate::io::fcntl_dupfd_cloexec(self, 3)?; - - // For ESP-IDF, F_DUPFD is used instead, because the CLOEXEC semantics - // will never be supported, as this is a bare metal framework with - // no capabilities for multi-process execution. While F_DUPFD is also - // not supported yet, it might be (currently it returns ENOSYS). - #[cfg(target_os = "espidf")] - let fd = crate::io::fcntl_dupfd(self, 3)?; - - Ok(fd) - } - - /// Creates a new `OwnedFd` instance that shares the same underlying file - /// description as the existing `BorrowedFd` instance. - #[cfg(any(target_arch = "wasm32", target_os = "hermit"))] - #[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] - pub fn try_clone_to_owned(&self) -> crate::io::Result { - Err(crate::io::const_io_error!( - crate::io::ErrorKind::Unsupported, - "operation not supported on WASI yet", - )) - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl AsRawFd for BorrowedFd<'_> { - #[inline] - fn as_raw_fd(&self) -> RawFd { - self.fd - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl AsRawFd for OwnedFd { - #[inline] - fn as_raw_fd(&self) -> RawFd { - self.fd - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl IntoRawFd for OwnedFd { - #[inline] - fn into_raw_fd(self) -> RawFd { - let fd = self.fd; - forget(self); - fd - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl FromRawFd for OwnedFd { - /// Constructs a new instance of `Self` from the given raw file descriptor. - /// - /// # Safety - /// - /// The resource pointed to by `fd` must be open and suitable for assuming - /// ownership. The resource must not require any cleanup other than `close`. - #[inline] - unsafe fn from_raw_fd(fd: RawFd) -> Self { - assert_ne!(fd, u32::MAX as RawFd); - // SAFETY: we just asserted that the value is in the valid range and isn't `-1` (the only value bigger than `0xFF_FF_FF_FE` unsigned) - #[allow(unused_unsafe)] - unsafe { - Self { fd } - } - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl Drop for OwnedFd { - #[inline] - fn drop(&mut self) { - unsafe { - // Errors are ignored when closing a file descriptor. The reason - // for this is that if an error occurs we don't actually know if - // the file descriptor was closed or not, and if we retried (for - // something like EINTR), we might close another valid file - // descriptor opened after we closed ours. - close(self.fd as _); - } - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl fmt::Debug for BorrowedFd<'_> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("BorrowedFd").field("fd", &self.fd).finish() - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl fmt::Debug for OwnedFd { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("OwnedFd").field("fd", &self.fd).finish() - } -} - -/// A trait to borrow the file descriptor from an underlying object. -/// -/// This is only available on unix platforms and must be imported in order to -/// call the method. Windows platforms have a corresponding `AsHandle` and -/// `AsSocket` set of traits. -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -pub trait AsFd { - /// Borrows the file descriptor. - /// - /// # Example - /// - /// ```no_run - /// # #![feature(io_safety)] - /// use std::fs::File; - /// # use std::io; - /// # #[cfg(target_os = "wasi")] - /// # use std::os::wasi::io::{AsFd, BorrowedFd}; - /// # #[cfg(unix)] - /// # use std::os::unix::io::{AsFd, BorrowedFd}; - /// - /// let mut f = File::open("foo.txt")?; - /// # #[cfg(any(unix, target_os = "wasi"))] - /// let borrowed_fd: BorrowedFd<'_> = f.as_fd(); - /// # Ok::<(), io::Error>(()) - /// ``` - #[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] - fn as_fd(&self) -> BorrowedFd<'_>; -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl AsFd for &T { - #[inline] - fn as_fd(&self) -> BorrowedFd<'_> { - T::as_fd(self) - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl AsFd for &mut T { - #[inline] - fn as_fd(&self) -> BorrowedFd<'_> { - T::as_fd(self) - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl AsFd for BorrowedFd<'_> { - #[inline] - fn as_fd(&self) -> BorrowedFd<'_> { - *self - } -} - -#[cfg_attr(staged_api, unstable(feature = "io_safety", issue = "87074"))] -impl AsFd for OwnedFd { - #[inline] - fn as_fd(&self) -> BorrowedFd<'_> { - // SAFETY: `OwnedFd` and `BorrowedFd` have the same validity - // invariants, and the `BorrowedFd` is bounded by the lifetime - // of `&self`. - unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } - } -} diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/raw.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/raw.rs deleted file mode 100644 index 41968ab04363..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/fd/raw.rs +++ /dev/null @@ -1,161 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/os/fd/raw.rs at revision -//! fa68e73e9947be8ffc5b3b46d899e4953a44e7e9. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. -//! -//! Raw Unix-like file descriptors. - -#![cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -#![allow(unsafe_code)] - -use crate::backend::c; - -/// Raw file descriptors. -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub type RawFd = c::c_int; - -/// A trait to extract the raw file descriptor from an underlying object. -/// -/// This is only available on unix and WASI platforms and must be imported in -/// order to call the method. Windows platforms have a corresponding -/// `AsRawHandle` and `AsRawSocket` set of traits. -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub trait AsRawFd { - /// Extracts the raw file descriptor. - /// - /// This function is typically used to **borrow** an owned file descriptor. - /// When used in this way, this method does **not** pass ownership of the - /// raw file descriptor to the caller, and the file descriptor is only - /// guaranteed to be valid while the original object has not yet been - /// destroyed. - /// - /// However, borrowing is not strictly required. See [`AsFd::as_fd`] - /// for an API which strictly borrows a file descriptor. - /// - /// # Example - /// - /// ```no_run - /// use std::fs::File; - /// # use std::io; - /// #[cfg(unix)] - /// use std::os::unix::io::{AsRawFd, RawFd}; - /// #[cfg(target_os = "wasi")] - /// use std::os::wasi::io::{AsRawFd, RawFd}; - /// - /// let mut f = File::open("foo.txt")?; - /// // `raw_fd` is only valid as long as `f` exists. - /// #[cfg(any(unix, target_os = "wasi"))] - /// let raw_fd: RawFd = f.as_raw_fd(); - /// # Ok::<(), io::Error>(()) - /// ``` - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - fn as_raw_fd(&self) -> RawFd; -} - -/// A trait to express the ability to construct an object from a raw file -/// descriptor. -#[cfg_attr(staged_api, stable(feature = "from_raw_os", since = "1.1.0"))] -pub trait FromRawFd { - /// Constructs a new instance of `Self` from the given raw file - /// descriptor. - /// - /// This function is typically used to **consume ownership** of the - /// specified file descriptor. When used in this way, the returned object - /// will take responsibility for closing it when the object goes out of - /// scope. - /// - /// However, consuming ownership is not strictly required. Use a - /// [`From::from`] implementation for an API which strictly - /// consumes ownership. - /// - /// # Safety - /// - /// The `fd` passed in must be a valid an open file descriptor. - /// - /// # Example - /// - /// ```no_run - /// use std::fs::File; - /// # use std::io; - /// #[cfg(unix)] - /// use std::os::unix::io::{FromRawFd, IntoRawFd, RawFd}; - /// #[cfg(target_os = "wasi")] - /// use std::os::wasi::io::{FromRawFd, IntoRawFd, RawFd}; - /// - /// let f = File::open("foo.txt")?; - /// # #[cfg(any(unix, target_os = "wasi"))] - /// let raw_fd: RawFd = f.into_raw_fd(); - /// // SAFETY: no other functions should call `from_raw_fd`, so there - /// // is only one owner for the file descriptor. - /// # #[cfg(any(unix, target_os = "wasi"))] - /// let f = unsafe { File::from_raw_fd(raw_fd) }; - /// # Ok::<(), io::Error>(()) - /// ``` - #[cfg_attr(staged_api, stable(feature = "from_raw_os", since = "1.1.0"))] - unsafe fn from_raw_fd(fd: RawFd) -> Self; -} - -/// A trait to express the ability to consume an object and acquire ownership of -/// its raw file descriptor. -#[cfg_attr(staged_api, stable(feature = "into_raw_os", since = "1.4.0"))] -pub trait IntoRawFd { - /// Consumes this object, returning the raw underlying file descriptor. - /// - /// This function is typically used to **transfer ownership** of the underlying - /// file descriptor to the caller. When used in this way, callers are then the unique - /// owners of the file descriptor and must close it once it's no longer needed. - /// - /// However, transferring ownership is not strictly required. Use a - /// [`Into::into`] implementation for an API which strictly - /// transfers ownership. - /// - /// # Example - /// - /// ```no_run - /// use std::fs::File; - /// # use std::io; - /// #[cfg(unix)] - /// use std::os::unix::io::{IntoRawFd, RawFd}; - /// #[cfg(target_os = "wasi")] - /// use std::os::wasi::io::{IntoRawFd, RawFd}; - /// - /// let f = File::open("foo.txt")?; - /// #[cfg(any(unix, target_os = "wasi"))] - /// let raw_fd: RawFd = f.into_raw_fd(); - /// # Ok::<(), io::Error>(()) - /// ``` - #[cfg_attr(staged_api, stable(feature = "into_raw_os", since = "1.4.0"))] - fn into_raw_fd(self) -> RawFd; -} - -#[cfg_attr( - staged_api, - stable(feature = "raw_fd_reflexive_traits", since = "1.48.0") -)] -impl AsRawFd for RawFd { - #[inline] - fn as_raw_fd(&self) -> RawFd { - *self - } -} -#[cfg_attr( - staged_api, - stable(feature = "raw_fd_reflexive_traits", since = "1.48.0") -)] -impl IntoRawFd for RawFd { - #[inline] - fn into_raw_fd(self) -> RawFd { - self - } -} -#[cfg_attr( - staged_api, - stable(feature = "raw_fd_reflexive_traits", since = "1.48.0") -)] -impl FromRawFd for RawFd { - #[inline] - unsafe fn from_raw_fd(fd: RawFd) -> RawFd { - fd - } -} diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/mod.rs deleted file mode 100644 index 67f41f5b3fd0..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -#[cfg(any(unix, target_os = "wasi"))] -pub mod fd; -#[cfg(windows)] -pub mod windows; diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/mod.rs deleted file mode 100644 index 77abd03c5678..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -mod raw; -mod socket; - -pub use raw::{AsRawSocket, FromRawSocket, IntoRawSocket, RawSocket}; -pub use socket::{AsSocket, BorrowedSocket, OwnedSocket}; diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/raw.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/raw.rs deleted file mode 100644 index 1e73e0019b14..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/raw.rs +++ /dev/null @@ -1,71 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/os/windows/io/raw.rs -//! at revision -//! 4f9b394c8a24803e57ba892fa00e539742ebafc0. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. - -use super::super::raw; - -/// Raw SOCKETs. -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub type RawSocket = raw::SOCKET; - -/// Extracts raw sockets. -#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] -pub trait AsRawSocket { - /// Extracts the raw socket. - /// - /// This function is typically used to **borrow** an owned socket. - /// When used in this way, this method does **not** pass ownership of the - /// raw socket to the caller, and the socket is only guaranteed - /// to be valid while the original object has not yet been destroyed. - /// - /// However, borrowing is not strictly required. See [`AsSocket::as_socket`] - /// for an API which strictly borrows a socket. - #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] - fn as_raw_socket(&self) -> RawSocket; -} - -/// Creates I/O objects from raw sockets. -#[cfg_attr(staged_api, stable(feature = "from_raw_os", since = "1.1.0"))] -pub trait FromRawSocket { - /// Constructs a new I/O object from the specified raw socket. - /// - /// This function is typically used to **consume ownership** of the socket - /// given, passing responsibility for closing the socket to the returned - /// object. When used in this way, the returned object - /// will take responsibility for closing it when the object goes out of - /// scope. - /// - /// However, consuming ownership is not strictly required. Use a - /// `From::from` implementation for an API which strictly - /// consumes ownership. - /// - /// # Safety - /// - /// The `socket` passed in must: - /// - be a valid an open socket, - /// - be a socket that may be freed via [`closesocket`]. - /// - /// [`closesocket`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-closesocket - #[cfg_attr(staged_api, stable(feature = "from_raw_os", since = "1.1.0"))] - unsafe fn from_raw_socket(sock: RawSocket) -> Self; -} - -/// A trait to express the ability to consume an object and acquire ownership of -/// its raw `SOCKET`. -#[cfg_attr(staged_api, stable(feature = "into_raw_os", since = "1.4.0"))] -pub trait IntoRawSocket { - /// Consumes this object, returning the raw underlying socket. - /// - /// This function is typically used to **transfer ownership** of the underlying - /// socket to the caller. When used in this way, callers are then the unique - /// owners of the socket and must close it once it's no longer needed. - /// - /// However, transferring ownership is not strictly required. Use a - /// `Into::into` implementation for an API which strictly - /// transfers ownership. - #[cfg_attr(staged_api, stable(feature = "into_raw_os", since = "1.4.0"))] - fn into_raw_socket(self) -> RawSocket; -} diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/socket.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/socket.rs deleted file mode 100644 index bc637aa53b41..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/io/socket.rs +++ /dev/null @@ -1,199 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/os/windows/io/socket.rs -//! at revision -//! 4f9b394c8a24803e57ba892fa00e539742ebafc0. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. - -use super::raw::*; -use crate::backend::c; -use crate::backend::fd::LibcFd as LibcSocket; -use core::fmt; -use core::marker::PhantomData; -use core::mem::forget; - -/// A borrowed socket. -/// -/// This has a lifetime parameter to tie it to the lifetime of something that -/// owns the socket. -/// -/// This uses `repr(transparent)` and has the representation of a host socket, -/// so it can be used in FFI in places where a socket is passed as an argument, -/// it is not captured or consumed, and it never has the value -/// `INVALID_SOCKET`. -/// -/// This type's `.to_owned()` implementation returns another `BorrowedSocket` -/// rather than an `OwnedSocket`. It just makes a trivial copy of the raw -/// socket, which is then borrowed under the same lifetime. -#[derive(Copy, Clone)] -#[repr(transparent)] -#[cfg_attr(staged_api, rustc_layout_scalar_valid_range_start(0))] -// This is -2, in two's complement. -1 is `INVALID_SOCKET`. -#[cfg_attr( - all(staged_api, target_pointer_width = "32"), - rustc_layout_scalar_valid_range_end(0xFF_FF_FF_FE) -)] -#[cfg_attr( - all(staged_api, target_pointer_width = "64"), - rustc_layout_scalar_valid_range_end(0xFF_FF_FF_FF_FF_FF_FF_FE) -)] -#[cfg_attr(staged_api, rustc_nonnull_optimization_guaranteed)] -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -pub struct BorrowedSocket<'socket> { - socket: RawSocket, - _phantom: PhantomData<&'socket OwnedSocket>, -} - -/// An owned socket. -/// -/// This closes the socket on drop. -/// -/// This uses `repr(transparent)` and has the representation of a host socket, -/// so it can be used in FFI in places where a socket is passed as a consumed -/// argument or returned as an owned value, and it never has the value -/// `INVALID_SOCKET`. -#[repr(transparent)] -#[cfg_attr(staged_api, rustc_layout_scalar_valid_range_start(0))] -// This is -2, in two's complement. -1 is `INVALID_SOCKET`. -#[cfg_attr( - all(staged_api, target_pointer_width = "32"), - rustc_layout_scalar_valid_range_end(0xFF_FF_FF_FE) -)] -#[cfg_attr( - all(staged_api, target_pointer_width = "64"), - rustc_layout_scalar_valid_range_end(0xFF_FF_FF_FF_FF_FF_FF_FE) -)] -#[cfg_attr(staged_api, rustc_nonnull_optimization_guaranteed)] -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -pub struct OwnedSocket { - socket: RawSocket, -} - -impl BorrowedSocket<'_> { - /// Return a `BorrowedSocket` holding the given raw socket. - /// - /// # Safety - /// - /// The resource pointed to by `raw` must remain open for the duration of - /// the returned `BorrowedSocket`, and it must not have the value - /// `INVALID_SOCKET`. - #[inline] - #[cfg_attr( - staged_api, - rustc_const_stable(feature = "io_safety", since = "1.63.0") - )] - #[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] - pub const unsafe fn borrow_raw(socket: RawSocket) -> Self { - assert!(socket != c::INVALID_SOCKET as RawSocket); - Self { - socket, - _phantom: PhantomData, - } - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl AsRawSocket for BorrowedSocket<'_> { - #[inline] - fn as_raw_socket(&self) -> RawSocket { - self.socket - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl AsRawSocket for OwnedSocket { - #[inline] - fn as_raw_socket(&self) -> RawSocket { - self.socket - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl IntoRawSocket for OwnedSocket { - #[inline] - fn into_raw_socket(self) -> RawSocket { - let socket = self.socket; - forget(self); - socket - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl FromRawSocket for OwnedSocket { - #[inline] - unsafe fn from_raw_socket(socket: RawSocket) -> Self { - debug_assert_ne!(socket, c::INVALID_SOCKET as RawSocket); - Self { socket } - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl Drop for OwnedSocket { - #[inline] - fn drop(&mut self) { - unsafe { - let _ = c::closesocket(self.socket as LibcSocket); - } - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl fmt::Debug for BorrowedSocket<'_> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("BorrowedSocket") - .field("socket", &self.socket) - .finish() - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl fmt::Debug for OwnedSocket { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("OwnedSocket") - .field("socket", &self.socket) - .finish() - } -} - -/// A trait to borrow the socket from an underlying object. -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -pub trait AsSocket { - /// Borrows the socket. - #[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] - fn as_socket(&self) -> BorrowedSocket<'_>; -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl AsSocket for &T { - #[inline] - fn as_socket(&self) -> BorrowedSocket<'_> { - T::as_socket(self) - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl AsSocket for &mut T { - #[inline] - fn as_socket(&self) -> BorrowedSocket<'_> { - T::as_socket(self) - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl AsSocket for BorrowedSocket<'_> { - #[inline] - fn as_socket(&self) -> BorrowedSocket<'_> { - *self - } -} - -#[cfg_attr(staged_api, stable(feature = "io_safety", since = "1.63.0"))] -impl AsSocket for OwnedSocket { - #[inline] - fn as_socket(&self) -> BorrowedSocket<'_> { - // Safety: `OwnedSocket` and `BorrowedSocket` have the same validity - // invariants, and the `BorrowdSocket` is bounded by the lifetime - // of `&self`. - unsafe { BorrowedSocket::borrow_raw(self.as_raw_socket()) } - } -} diff --git a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/mod.rs deleted file mode 100644 index 02f389497a1e..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/no_std/os/windows/mod.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! The following is derived from Rust's -//! library/std/src/os/windows/raw.rs, -//! library/std/src/os/windows/io/raw.rs and -//! library/std/src/os/windows/io/socket.rs -//! at revision -//! 4f9b394c8a24803e57ba892fa00e539742ebafc0. -//! -//! All code in this file is licensed MIT or Apache 2.0 at your option. - -mod raw { - #[cfg(target_pointer_width = "32")] - #[cfg_attr(staged_api, stable(feature = "raw_ext", since = "1.1.0"))] - pub type SOCKET = u32; - #[cfg(target_pointer_width = "64")] - #[cfg_attr(staged_api, stable(feature = "raw_ext", since = "1.1.0"))] - pub type SOCKET = u64; -} - -pub mod io; diff --git a/third_party/rust/rustix/src/maybe_polyfill/std/mod.rs b/third_party/rust/rustix/src/maybe_polyfill/std/mod.rs deleted file mode 100644 index bcaceb9fb374..000000000000 --- a/third_party/rust/rustix/src/maybe_polyfill/std/mod.rs +++ /dev/null @@ -1,43 +0,0 @@ -//! Imports from `std` that would be polyfilled for `no_std` builds (see -//! `src/polyfill/no_std`). -//! -//! This implementation is used when `std` is available and just imports the -//! necessary items from `std`. For `no_std` builds, the file -//! `src/polyfill/no_std` is used instead, which doesn't depend on the standard -//! library. - -#[cfg(not(windows))] -pub mod io { - pub use std::io::{IoSlice, IoSliceMut}; -} - -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[cfg(feature = "net")] -pub mod net { - pub use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; -} - -pub mod os { - pub mod fd { - // Change to use `std::os::fd` when MSRV becomes 1.66 or higher. - - #[cfg(unix)] - pub use std::os::unix::io::{ - AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd, - }; - #[cfg(target_os = "wasi")] - pub use std::os::wasi::io::{ - AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd, - }; - } - - #[cfg(windows)] - pub mod windows { - pub mod io { - pub use std::os::windows::io::{ - AsRawSocket, AsSocket, BorrowedSocket, FromRawSocket, IntoRawSocket, OwnedSocket, - RawSocket, - }; - } - } -} diff --git a/third_party/rust/rustix/src/mm/madvise.rs b/third_party/rust/rustix/src/mm/madvise.rs deleted file mode 100644 index 868a31a5ed90..000000000000 --- a/third_party/rust/rustix/src/mm/madvise.rs +++ /dev/null @@ -1,49 +0,0 @@ -//! The `madvise` function. -//! -//! # Safety -//! -//! `madvise` operates on a raw pointer. Some forms of `madvise` may -//! mutate the memory or have other side effects. -#![allow(unsafe_code)] - -use crate::{backend, io}; -use core::ffi::c_void; - -pub use backend::mm::types::Advice; - -/// `posix_madvise(addr, len, advice)`—Declares an expected access pattern -/// for a memory-mapped file. -/// -/// # Safety -/// -/// `addr` must be a valid pointer to memory that is appropriate to -/// call `posix_madvise` on. Some forms of `advice` may mutate the memory -/// or evoke a variety of side-effects on the mapping and/or the file. -/// -/// # References -/// - [POSIX] -/// - [Linux `madvise`] -/// - [Linux `posix_madvise`] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_madvise.html -/// [Linux `madvise`]: https://man7.org/linux/man-pages/man2/madvise.2.html -/// [Linux `posix_madvise`]: https://man7.org/linux/man-pages/man3/posix_madvise.3.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/madvise.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=madvise&sektion=2 -/// [NetBSD]: https://man.netbsd.org/madvise.2 -/// [OpenBSD]: https://man.openbsd.org/madvise.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=madvise§ion=2 -/// [illumos]: https://illumos.org/man/3C/madvise -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-madvise -#[inline] -#[doc(alias = "posix_madvise")] -pub unsafe fn madvise(addr: *mut c_void, len: usize, advice: Advice) -> io::Result<()> { - backend::mm::syscalls::madvise(addr, len, advice) -} diff --git a/third_party/rust/rustix/src/mm/mmap.rs b/third_party/rust/rustix/src/mm/mmap.rs deleted file mode 100644 index 02badb9fd139..000000000000 --- a/third_party/rust/rustix/src/mm/mmap.rs +++ /dev/null @@ -1,316 +0,0 @@ -//! The `mmap` API. -//! -//! # Safety -//! -//! `mmap` and related functions manipulate raw pointers and have special -//! semantics and are wildly unsafe. -#![allow(unsafe_code)] - -use crate::{backend, io}; -use backend::fd::AsFd; -use core::ffi::c_void; - -#[cfg(linux_kernel)] -pub use backend::mm::types::MlockFlags; -#[cfg(any(target_os = "emscripten", target_os = "linux"))] -pub use backend::mm::types::MremapFlags; -pub use backend::mm::types::{MapFlags, MprotectFlags, ProtFlags}; - -/// `mmap(ptr, len, prot, flags, fd, offset)`—Create a file-backed memory -/// mapping. -/// -/// For anonymous mappings (`MAP_ANON`/`MAP_ANONYMOUS`), see -/// [`mmap_anonymous`]. -/// -/// # Safety -/// -/// Raw pointers and lots of special semantics. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html -/// [Linux]: https://man7.org/linux/man-pages/man2/mmap.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mmap.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mmap&sektion=2 -/// [NetBSD]: https://man.netbsd.org/mmap.2 -/// [OpenBSD]: https://man.openbsd.org/mmap.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mmap§ion=2 -/// [illumos]: https://illumos.org/man/2/mmap -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-mmap -#[inline] -pub unsafe fn mmap( - ptr: *mut c_void, - len: usize, - prot: ProtFlags, - flags: MapFlags, - fd: Fd, - offset: u64, -) -> io::Result<*mut c_void> { - backend::mm::syscalls::mmap(ptr, len, prot, flags, fd.as_fd(), offset) -} - -/// `mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)`—Create an anonymous -/// memory mapping. -/// -/// For file-backed mappings, see [`mmap`]. -/// -/// # Safety -/// -/// Raw pointers and lots of special semantics. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html -/// [Linux]: https://man7.org/linux/man-pages/man2/mmap.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mmap.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mmap&sektion=2 -/// [NetBSD]: https://man.netbsd.org/mmap.2 -/// [OpenBSD]: https://man.openbsd.org/mmap.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mmap§ion=2 -/// [illumos]: https://illumos.org/man/2/mmap -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-mmap -#[inline] -#[doc(alias = "mmap")] -pub unsafe fn mmap_anonymous( - ptr: *mut c_void, - len: usize, - prot: ProtFlags, - flags: MapFlags, -) -> io::Result<*mut c_void> { - backend::mm::syscalls::mmap_anonymous(ptr, len, prot, flags) -} - -/// `munmap(ptr, len)`—Remove a memory mapping. -/// -/// # Safety -/// -/// Raw pointers and lots of special semantics. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/munmap.html -/// [Linux]: https://man7.org/linux/man-pages/man2/munmap.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/munmap.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=munmap&sektion=2 -/// [NetBSD]: https://man.netbsd.org/munmap.2 -/// [OpenBSD]: https://man.openbsd.org/munmap.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=munmap§ion=2 -/// [illumos]: https://illumos.org/man/2/munmap -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-munmap -#[inline] -pub unsafe fn munmap(ptr: *mut c_void, len: usize) -> io::Result<()> { - backend::mm::syscalls::munmap(ptr, len) -} - -/// `mremap(old_address, old_size, new_size, flags)`—Resize, modify, -/// and/or move a memory mapping. -/// -/// For moving a mapping to a fixed address (`MREMAP_FIXED`), see -/// [`mremap_fixed`]. -/// -/// # Safety -/// -/// Raw pointers and lots of special semantics. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mremap.2.html -#[cfg(any(target_os = "emscripten", target_os = "linux"))] -#[inline] -pub unsafe fn mremap( - old_address: *mut c_void, - old_size: usize, - new_size: usize, - flags: MremapFlags, -) -> io::Result<*mut c_void> { - backend::mm::syscalls::mremap(old_address, old_size, new_size, flags) -} - -/// `mremap(old_address, old_size, new_size, MREMAP_FIXED | flags)`—Resize, -/// modify, and/or move a memory mapping to a specific address. -/// -/// For `mremap` without moving to a specific address, see [`mremap`]. -/// [`mremap_fixed`]. -/// -/// # Safety -/// -/// Raw pointers and lots of special semantics. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mremap.2.html -#[cfg(any(target_os = "emscripten", target_os = "linux"))] -#[inline] -#[doc(alias = "mremap")] -pub unsafe fn mremap_fixed( - old_address: *mut c_void, - old_size: usize, - new_size: usize, - flags: MremapFlags, - new_address: *mut c_void, -) -> io::Result<*mut c_void> { - backend::mm::syscalls::mremap_fixed(old_address, old_size, new_size, flags, new_address) -} - -/// `mprotect(ptr, len, flags)`—Change the protection flags of a region of -/// memory. -/// -/// # Safety -/// -/// Raw pointers and lots of special semantics. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mprotect.html -/// [Linux]: https://man7.org/linux/man-pages/man2/mprotect.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mprotect.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mprotect&sektion=2 -/// [NetBSD]: https://man.netbsd.org/mprotect.2 -/// [OpenBSD]: https://man.openbsd.org/mprotect.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mprotect§ion=2 -/// [illumos]: https://illumos.org/man/2/mprotect -#[inline] -pub unsafe fn mprotect(ptr: *mut c_void, len: usize, flags: MprotectFlags) -> io::Result<()> { - backend::mm::syscalls::mprotect(ptr, len, flags) -} - -/// `mlock(ptr, len)`—Lock memory into RAM. -/// -/// # Safety -/// -/// This function operates on raw pointers, but it should only be used on -/// memory which the caller owns. Technically, locking memory shouldn't violate -/// any invariants, but since unlocking it can violate invariants, this -/// function is also unsafe for symmetry. -/// -/// Some implementations implicitly round the memory region out to the nearest -/// page boundaries, so this function may lock more memory than explicitly -/// requested if the memory isn't page-aligned. Other implementations fail if -/// the memory isn't page-aligned. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mlock.html -/// [Linux]: https://man7.org/linux/man-pages/man2/mlock.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mlock.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mlock&sektion=2 -/// [NetBSD]: https://man.netbsd.org/mlock.2 -/// [OpenBSD]: https://man.openbsd.org/mlock.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mlock§ion=2 -/// [illumos]: https://illumos.org/man/3C/mlock -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-mlock -#[inline] -pub unsafe fn mlock(ptr: *mut c_void, len: usize) -> io::Result<()> { - backend::mm::syscalls::mlock(ptr, len) -} - -/// `mlock2(ptr, len, flags)`—Lock memory into RAM, with flags. -/// -/// `mlock_with` is the same as [`mlock`] but adds an additional flags operand. -/// -/// # Safety -/// -/// This function operates on raw pointers, but it should only be used on -/// memory which the caller owns. Technically, locking memory shouldn't violate -/// any invariants, but since unlocking it can violate invariants, this -/// function is also unsafe for symmetry. -/// -/// Some implementations implicitly round the memory region out to the nearest -/// page boundaries, so this function may lock more memory than explicitly -/// requested if the memory isn't page-aligned. -/// -/// # References -/// - [Linux] -/// - [glibc] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mlock2.2.html -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-mlock2 -#[cfg(linux_kernel)] -#[inline] -#[doc(alias = "mlock2")] -pub unsafe fn mlock_with(ptr: *mut c_void, len: usize, flags: MlockFlags) -> io::Result<()> { - backend::mm::syscalls::mlock_with(ptr, len, flags) -} - -/// `munlock(ptr, len)`—Unlock memory. -/// -/// # Safety -/// -/// This function operates on raw pointers, but it should only be used on -/// memory which the caller owns, to avoid compromising the `mlock` invariants -/// of other unrelated code in the process. -/// -/// Some implementations implicitly round the memory region out to the nearest -/// page boundaries, so this function may unlock more memory than explicitly -/// requested if the memory isn't page-aligned. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/munlock.html -/// [Linux]: https://man7.org/linux/man-pages/man2/munlock.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/munlock.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=munlock&sektion=2 -/// [NetBSD]: https://man.netbsd.org/munlock.2 -/// [OpenBSD]: https://man.openbsd.org/munlock.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=munlock§ion=2 -/// [illumos]: https://illumos.org/man/3C/munlock -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-munlock -#[inline] -pub unsafe fn munlock(ptr: *mut c_void, len: usize) -> io::Result<()> { - backend::mm::syscalls::munlock(ptr, len) -} diff --git a/third_party/rust/rustix/src/mm/mod.rs b/third_party/rust/rustix/src/mm/mod.rs deleted file mode 100644 index 7505cac0a1d3..000000000000 --- a/third_party/rust/rustix/src/mm/mod.rs +++ /dev/null @@ -1,15 +0,0 @@ -//! Memory map operations. - -#[cfg(not(target_os = "redox"))] -mod madvise; -mod mmap; -mod msync; -#[cfg(linux_kernel)] -mod userfaultfd; - -#[cfg(not(target_os = "redox"))] -pub use madvise::{madvise, Advice}; -pub use mmap::*; -pub use msync::{msync, MsyncFlags}; -#[cfg(linux_kernel)] -pub use userfaultfd::{userfaultfd, UserfaultfdFlags}; diff --git a/third_party/rust/rustix/src/mm/msync.rs b/third_party/rust/rustix/src/mm/msync.rs deleted file mode 100644 index 0306e36b9378..000000000000 --- a/third_party/rust/rustix/src/mm/msync.rs +++ /dev/null @@ -1,46 +0,0 @@ -//! The `msync` function. -//! -//! # Safety -//! -//! `msync` operates on a raw pointer. Some forms of `msync` may mutate the -//! memory or have other side effects. -#![allow(unsafe_code)] - -use crate::{backend, io}; -use core::ffi::c_void; - -pub use backend::mm::types::MsyncFlags; - -/// `msync(addr, len, flags)`—Synchronizes a memory-mapping with its backing -/// storage. -/// -/// # Safety -/// -/// `addr` must be a valid pointer to memory that is appropriate to -/// call `msync` on. Some forms of `msync` may mutate the memory -/// or evoke a variety of side-effects on the mapping and/or the file. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/msync.html -/// [Linux]: https://man7.org/linux/man-pages/man2/msync.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/msync.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=msync&sektion=2 -/// [NetBSD]: https://man.netbsd.org/msync.2 -/// [OpenBSD]: https://man.openbsd.org/msync.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=msync§ion=2 -/// [illumos]: https://illumos.org/man/3C/msync -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-msync -#[inline] -pub unsafe fn msync(addr: *mut c_void, len: usize, flags: MsyncFlags) -> io::Result<()> { - backend::mm::syscalls::msync(addr, len, flags) -} diff --git a/third_party/rust/rustix/src/mm/userfaultfd.rs b/third_party/rust/rustix/src/mm/userfaultfd.rs deleted file mode 100644 index 201d54772d47..000000000000 --- a/third_party/rust/rustix/src/mm/userfaultfd.rs +++ /dev/null @@ -1,30 +0,0 @@ -//! The Linux `userfaultfd` API. -//! -//! # Safety -//! -//! Calling `userfaultfd` is safe, but the returned file descriptor lets users -//! observe and manipulate process memory in magical ways. -#![allow(unsafe_code)] - -use crate::fd::OwnedFd; -use crate::{backend, io}; - -pub use backend::mm::types::UserfaultfdFlags; - -/// `userfaultfd(flags)` -/// -/// # Safety -/// -/// The call itself is safe, but the returned file descriptor lets users -/// observe and manipulate process memory in magical ways. -/// -/// # References -/// - [Linux] -/// - [Linux userfaultfd] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/userfaultfd.2.html -/// [Linux userfaultfd]: https://www.kernel.org/doc/Documentation/vm/userfaultfd.txt -#[inline] -pub unsafe fn userfaultfd(flags: UserfaultfdFlags) -> io::Result { - backend::mm::syscalls::userfaultfd(flags) -} diff --git a/third_party/rust/rustix/src/mount/fsopen.rs b/third_party/rust/rustix/src/mount/fsopen.rs deleted file mode 100644 index 581f03782855..000000000000 --- a/third_party/rust/rustix/src/mount/fsopen.rs +++ /dev/null @@ -1,219 +0,0 @@ -//! `fsopen` and related functions in Linux's `mount` API. - -use crate::backend::mount::types::{ - FsMountFlags, FsOpenFlags, FsPickFlags, MountAttrFlags, MoveMountFlags, OpenTreeFlags, -}; -use crate::fd::{BorrowedFd, OwnedFd}; -use crate::{backend, io, path}; - -/// `fsopen(fs_name, flags)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsopen.md -#[inline] -pub fn fsopen(fs_name: Fs, flags: FsOpenFlags) -> io::Result { - fs_name.into_with_c_str(|fs_name| backend::mount::syscalls::fsopen(fs_name, flags)) -} - -/// `fsmount(fs_fd, flags, attr_flags)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsmount.md -#[inline] -pub fn fsmount( - fs_fd: BorrowedFd<'_>, - flags: FsMountFlags, - attr_flags: MountAttrFlags, -) -> io::Result<()> { - backend::mount::syscalls::fsmount(fs_fd, flags, attr_flags) -} - -/// `move_mount(from_dfd, from_pathname, to_dfd, to_pathname, flags)` -/// -/// This is not the same as `mount` with the `MS_MOVE` flag. If you want to -/// use that, use [`mount_move`] instead. -/// -/// # References -/// - [Unfinished draft] -/// -/// [`mount_move`]: crate::mount::mount_move -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/move_mount.md -#[inline] -pub fn move_mount( - from_dfd: BorrowedFd<'_>, - from_pathname: From, - to_dfd: BorrowedFd<'_>, - to_pathname: To, - flags: MoveMountFlags, -) -> io::Result<()> { - from_pathname.into_with_c_str(|from_pathname| { - to_pathname.into_with_c_str(|to_pathname| { - backend::mount::syscalls::move_mount( - from_dfd, - from_pathname, - to_dfd, - to_pathname, - flags, - ) - }) - }) -} - -/// `open_tree(dfd, filename, flags)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/open_tree.md -#[inline] -pub fn open_tree( - dfd: BorrowedFd<'_>, - filename: Path, - flags: OpenTreeFlags, -) -> io::Result { - filename.into_with_c_str(|filename| backend::mount::syscalls::open_tree(dfd, filename, flags)) -} - -/// `fspick(dfd, path, flags)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fspick.md -#[inline] -pub fn fspick( - dfd: BorrowedFd<'_>, - path: Path, - flags: FsPickFlags, -) -> io::Result { - path.into_with_c_str(|path| backend::mount::syscalls::fspick(dfd, path, flags)) -} - -/// `fsconfig(fs_fd, FSCONFIG_SET_FLAG, key, NULL, 0)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_set_flag(fs_fd: BorrowedFd<'_>, key: Key) -> io::Result<()> { - key.into_with_c_str(|key| backend::mount::syscalls::fsconfig_set_flag(fs_fd, key)) -} - -/// `fsconfig(fs_fd, FSCONFIG_SET_STRING, key, value, 0)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_set_string( - fs_fd: BorrowedFd<'_>, - key: Key, - value: Value, -) -> io::Result<()> { - key.into_with_c_str(|key| { - value.into_with_c_str(|value| { - backend::mount::syscalls::fsconfig_set_string(fs_fd, key, value) - }) - }) -} - -/// `fsconfig(fs_fd, FSCONFIG_SET_BINARY, key, value, value.len())` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_set_binary( - fs_fd: BorrowedFd<'_>, - key: Key, - value: &[u8], -) -> io::Result<()> { - key.into_with_c_str(|key| backend::mount::syscalls::fsconfig_set_binary(fs_fd, key, value)) -} - -/// `fsconfig(fs_fd, FSCONFIG_SET_PATH, key, path, fd)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_set_path( - fs_fd: BorrowedFd<'_>, - key: Key, - path: Path, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - key.into_with_c_str(|key| { - path.into_with_c_str(|path| { - backend::mount::syscalls::fsconfig_set_path(fs_fd, key, path, fd) - }) - }) -} - -/// `fsconfig(fs_fd, FSCONFIG_SET_PATH_EMPTY, key, "", fd)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_set_path_empty( - fs_fd: BorrowedFd<'_>, - key: Key, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - key.into_with_c_str(|key| backend::mount::syscalls::fsconfig_set_path_empty(fs_fd, key, fd)) -} - -/// `fsconfig(fs_fd, FSCONFIG_SET_FD, key, NULL, fd)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_set_fd( - fs_fd: BorrowedFd<'_>, - key: Key, - fd: BorrowedFd<'_>, -) -> io::Result<()> { - key.into_with_c_str(|key| backend::mount::syscalls::fsconfig_set_fd(fs_fd, key, fd)) -} - -/// `fsconfig(fs_fd, FSCONFIG_CMD_CREATE, key, NULL, 0)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_create(fs_fd: BorrowedFd<'_>) -> io::Result<()> { - backend::mount::syscalls::fsconfig_create(fs_fd) -} - -/// `fsconfig(fs_fd, FSCONFIG_CMD_RECONFIGURE, key, NULL, 0)` -/// -/// # References -/// - [Unfinished draft] -/// -/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/fsconfig.md -#[inline] -#[doc(alias = "fsconfig")] -pub fn fsconfig_reconfigure(fs_fd: BorrowedFd<'_>) -> io::Result<()> { - backend::mount::syscalls::fsconfig_reconfigure(fs_fd) -} diff --git a/third_party/rust/rustix/src/mount/mod.rs b/third_party/rust/rustix/src/mount/mod.rs deleted file mode 100644 index 9b4f6da514f7..000000000000 --- a/third_party/rust/rustix/src/mount/mod.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! Linux `mount` API. - -// The `mount` module includes the `mount` function and related -// functions which were originally defined in `rustix::fs` but are -// now replaced by deprecated aliases. After the next semver bump, -// we can remove the aliases and all the `#[cfg(feature = "mount")]` -// here and in src/backend/*/mount. -// -// The `fsopen` module includes `fsopen` and related functions. - -#[cfg(feature = "mount")] -mod fsopen; -mod mount_unmount; -mod types; - -#[cfg(feature = "mount")] -pub use fsopen::*; -pub use mount_unmount::*; -pub use types::*; diff --git a/third_party/rust/rustix/src/mount/mount_unmount.rs b/third_party/rust/rustix/src/mount/mount_unmount.rs deleted file mode 100644 index ebb517332824..000000000000 --- a/third_party/rust/rustix/src/mount/mount_unmount.rs +++ /dev/null @@ -1,175 +0,0 @@ -//! Linux `mount`. - -use crate::backend::mount::types::{ - InternalMountFlags, MountFlags, MountFlagsArg, MountPropagationFlags, UnmountFlags, -}; -use crate::{backend, io, path}; - -/// `mount(source, target, filesystemtype, mountflags, data)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html -#[inline] -pub fn mount( - source: Source, - target: Target, - file_system_type: Fs, - flags: MountFlags, - data: Data, -) -> io::Result<()> { - source.into_with_c_str(|source| { - target.into_with_c_str(|target| { - file_system_type.into_with_c_str(|file_system_type| { - data.into_with_c_str(|data| { - backend::mount::syscalls::mount( - Some(source), - target, - Some(file_system_type), - MountFlagsArg(flags.bits()), - Some(data), - ) - }) - }) - }) - }) -} - -/// `mount(NULL, target, NULL, MS_REMOUNT | mountflags, data)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html -#[inline] -#[doc(alias = "mount")] -#[doc(alias = "MS_REMOUNT")] -pub fn mount_remount( - target: Target, - flags: MountFlags, - data: Data, -) -> io::Result<()> { - target.into_with_c_str(|target| { - data.into_with_c_str(|data| { - backend::mount::syscalls::mount( - None, - target, - None, - MountFlagsArg(InternalMountFlags::REMOUNT.bits() | flags.bits()), - Some(data), - ) - }) - }) -} - -/// `mount(source, target, NULL, MS_BIND, NULL)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html -#[inline] -#[doc(alias = "mount")] -#[doc(alias = "MS_BIND")] -pub fn mount_bind( - source: Source, - target: Target, -) -> io::Result<()> { - source.into_with_c_str(|source| { - target.into_with_c_str(|target| { - backend::mount::syscalls::mount( - Some(source), - target, - None, - MountFlagsArg(MountFlags::BIND.bits()), - None, - ) - }) - }) -} - -/// `mount(source, target, NULL, MS_BIND | MS_REC, NULL)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html -#[inline] -#[doc(alias = "mount")] -#[doc(alias = "MS_REC")] -pub fn mount_recursive_bind( - source: Source, - target: Target, -) -> io::Result<()> { - source.into_with_c_str(|source| { - target.into_with_c_str(|target| { - backend::mount::syscalls::mount( - Some(source), - target, - None, - MountFlagsArg(MountFlags::BIND.bits() | MountPropagationFlags::REC.bits()), - None, - ) - }) - }) -} - -/// `mount(NULL, target, NULL, mountflags, NULL)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html -#[inline] -#[doc(alias = "mount")] -pub fn mount_change( - target: Target, - flags: MountPropagationFlags, -) -> io::Result<()> { - target.into_with_c_str(|target| { - backend::mount::syscalls::mount(None, target, None, MountFlagsArg(flags.bits()), None) - }) -} - -/// `mount(source, target, NULL, MS_MOVE, NULL)` -/// -/// This is not the same as the `move_mount` syscall. If you want to use that, -/// use [`move_mount`] instead. -/// -/// # References -/// - [Linux] -/// -/// [`move_mount`]: crate::mount::move_mount -/// [Linux]: https://man7.org/linux/man-pages/man2/mount.2.html -#[inline] -#[doc(alias = "mount")] -#[doc(alias = "MS_MOVE")] -pub fn mount_move( - source: Source, - target: Target, -) -> io::Result<()> { - source.into_with_c_str(|source| { - target.into_with_c_str(|target| { - backend::mount::syscalls::mount( - Some(source), - target, - None, - MountFlagsArg(InternalMountFlags::MOVE.bits()), - None, - ) - }) - }) -} - -/// `umount2(target, flags)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/umount.2.html -#[inline] -#[doc(alias = "umount", alias = "umount2")] -pub fn unmount(target: Target, flags: UnmountFlags) -> io::Result<()> { - target.into_with_c_str(|target| backend::mount::syscalls::unmount(target, flags)) -} diff --git a/third_party/rust/rustix/src/mount/types.rs b/third_party/rust/rustix/src/mount/types.rs deleted file mode 100644 index 6096e76d2b54..000000000000 --- a/third_party/rust/rustix/src/mount/types.rs +++ /dev/null @@ -1 +0,0 @@ -pub use crate::backend::mount::types::*; diff --git a/third_party/rust/rustix/src/net/mod.rs b/third_party/rust/rustix/src/net/mod.rs deleted file mode 100644 index 73ae2f0896ef..000000000000 --- a/third_party/rust/rustix/src/net/mod.rs +++ /dev/null @@ -1,31 +0,0 @@ -//! Network-related operations. -//! -//! On Windows, one must call [`wsa_startup`] in the process before calling any -//! of these APIs. [`wsa_cleanup`] may be used in the process if these APIs are -//! no longer needed. -//! -//! [`wsa_startup`]: https://docs.rs/rustix/*/x86_64-pc-windows-msvc/rustix/net/fn.wsa_startup.html -//! [`wsa_cleanup`]: https://docs.rs/rustix/*/x86_64-pc-windows-msvc/rustix/net/fn.wsa_cleanup.html - -mod send_recv; -mod socket; -mod socket_addr_any; -#[cfg(not(any(windows, target_os = "wasi")))] -mod socketpair; -mod types; -#[cfg(windows)] -mod wsa; - -pub mod sockopt; - -pub use crate::maybe_polyfill::net::{ - IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, -}; -pub use send_recv::*; -pub use socket::*; -pub use socket_addr_any::{SocketAddrAny, SocketAddrStorage}; -#[cfg(not(any(windows, target_os = "wasi")))] -pub use socketpair::socketpair; -pub use types::*; -#[cfg(windows)] -pub use wsa::{wsa_cleanup, wsa_startup}; diff --git a/third_party/rust/rustix/src/net/send_recv/mod.rs b/third_party/rust/rustix/src/net/send_recv/mod.rs deleted file mode 100644 index 1dedd99cb0f3..000000000000 --- a/third_party/rust/rustix/src/net/send_recv/mod.rs +++ /dev/null @@ -1,326 +0,0 @@ -//! `recv`, `send`, and variants. - -#[cfg(unix)] -use crate::net::SocketAddrUnix; -use crate::net::{SocketAddr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; -use crate::{backend, io}; -use backend::fd::{AsFd, BorrowedFd}; - -pub use backend::net::send_recv::{RecvFlags, SendFlags}; - -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -mod msg; - -#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))] -pub use msg::*; - -/// `recv(fd, buf, flags)`—Reads data from a socket. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendrecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recv.html -/// [Linux]: https://man7.org/linux/man-pages/man2/recv.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recv.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-recv -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=recv&sektion=2 -/// [NetBSD]: https://man.netbsd.org/recv.2 -/// [OpenBSD]: https://man.openbsd.org/recv.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=recv§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/recv -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Receiving-Data.html -#[inline] -pub fn recv(fd: Fd, buf: &mut [u8], flags: RecvFlags) -> io::Result { - backend::net::syscalls::recv(fd.as_fd(), buf, flags) -} - -/// `send(fd, buf, flags)`—Writes data to a socket. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendrecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/send.html -/// [Linux]: https://man7.org/linux/man-pages/man2/send.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/send.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=send&sektion=2 -/// [NetBSD]: https://man.netbsd.org/send.2 -/// [OpenBSD]: https://man.openbsd.org/send.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=send§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/send -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Sending-Data.html -#[inline] -pub fn send(fd: Fd, buf: &[u8], flags: SendFlags) -> io::Result { - backend::net::syscalls::send(fd.as_fd(), buf, flags) -} - -/// `recvfrom(fd, buf, flags, addr, len)`—Reads data from a socket and -/// returns the sender address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvfrom.html -/// [Linux]: https://man7.org/linux/man-pages/man2/recvfrom.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recvfrom.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-recvfrom -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=recvfrom&sektion=2 -/// [NetBSD]: https://man.netbsd.org/recvfrom.2 -/// [OpenBSD]: https://man.openbsd.org/recvfrom.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=recvfrom§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/recvfrom -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Receiving-Datagrams.html -#[inline] -pub fn recvfrom( - fd: Fd, - buf: &mut [u8], - flags: RecvFlags, -) -> io::Result<(usize, Option)> { - backend::net::syscalls::recvfrom(fd.as_fd(), buf, flags) -} - -/// `sendto(fd, buf, flags, addr)`—Writes data to a socket to a specific IP -/// address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendto&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendto.2 -/// [OpenBSD]: https://man.openbsd.org/sendto.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendto§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendto -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Sending-Datagrams.html -pub fn sendto( - fd: Fd, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddr, -) -> io::Result { - _sendto(fd.as_fd(), buf, flags, addr) -} - -fn _sendto( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddr, -) -> io::Result { - match addr { - SocketAddr::V4(v4) => backend::net::syscalls::sendto_v4(fd, buf, flags, v4), - SocketAddr::V6(v6) => backend::net::syscalls::sendto_v6(fd, buf, flags, v6), - } -} - -/// `sendto(fd, buf, flags, addr)`—Writes data to a socket to a specific -/// address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendto&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendto.2 -/// [OpenBSD]: https://man.openbsd.org/sendto.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendto§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendto -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Sending-Datagrams.html -pub fn sendto_any( - fd: Fd, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrAny, -) -> io::Result { - _sendto_any(fd.as_fd(), buf, flags, addr) -} - -fn _sendto_any( - fd: BorrowedFd<'_>, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrAny, -) -> io::Result { - match addr { - SocketAddrAny::V4(v4) => backend::net::syscalls::sendto_v4(fd, buf, flags, v4), - SocketAddrAny::V6(v6) => backend::net::syscalls::sendto_v6(fd, buf, flags, v6), - #[cfg(unix)] - SocketAddrAny::Unix(unix) => backend::net::syscalls::sendto_unix(fd, buf, flags, unix), - } -} - -/// `sendto(fd, buf, flags, addr, sizeof(struct sockaddr_in))`—Writes data to -/// a socket to a specific IPv4 address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendto&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendto.2 -/// [OpenBSD]: https://man.openbsd.org/sendto.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendto§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendto -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Sending-Datagrams.html -#[inline] -#[doc(alias = "sendto")] -pub fn sendto_v4( - fd: Fd, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrV4, -) -> io::Result { - backend::net::syscalls::sendto_v4(fd.as_fd(), buf, flags, addr) -} - -/// `sendto(fd, buf, flags, addr, sizeof(struct sockaddr_in6))`—Writes data -/// to a socket to a specific IPv6 address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendto&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendto.2 -/// [OpenBSD]: https://man.openbsd.org/sendto.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendto§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendto -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Sending-Datagrams.html -#[inline] -#[doc(alias = "sendto")] -pub fn sendto_v6( - fd: Fd, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrV6, -) -> io::Result { - backend::net::syscalls::sendto_v6(fd.as_fd(), buf, flags, addr) -} - -/// `sendto(fd, buf, flags, addr, sizeof(struct sockaddr_un))`—Writes data to -/// a socket to a specific Unix-domain socket address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendto&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendto.2 -/// [OpenBSD]: https://man.openbsd.org/sendto.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendto§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendto -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Sending-Datagrams.html -#[cfg(unix)] -#[inline] -#[doc(alias = "sendto")] -pub fn sendto_unix( - fd: Fd, - buf: &[u8], - flags: SendFlags, - addr: &SocketAddrUnix, -) -> io::Result { - backend::net::syscalls::sendto_unix(fd.as_fd(), buf, flags, addr) -} diff --git a/third_party/rust/rustix/src/net/send_recv/msg.rs b/third_party/rust/rustix/src/net/send_recv/msg.rs deleted file mode 100644 index 431aefa03628..000000000000 --- a/third_party/rust/rustix/src/net/send_recv/msg.rs +++ /dev/null @@ -1,763 +0,0 @@ -//! [`recvmsg`], [`sendmsg`], and related functions. - -#![allow(unsafe_code)] - -use crate::backend::{self, c}; -use crate::fd::{AsFd, BorrowedFd, OwnedFd}; -use crate::io::{self, IoSlice, IoSliceMut}; - -use core::iter::FusedIterator; -use core::marker::PhantomData; -use core::mem::{size_of, size_of_val, take}; -use core::{ptr, slice}; - -use super::{RecvFlags, SendFlags, SocketAddrAny, SocketAddrV4, SocketAddrV6}; - -/// Macro for defining the amount of space used by CMSGs. -#[macro_export] -macro_rules! cmsg_space { - // Base Rules - (ScmRights($len:expr)) => { - $crate::net::__cmsg_space( - $len * ::core::mem::size_of::<$crate::fd::BorrowedFd<'static>>(), - ) - }; - - // Combo Rules - (($($($x:tt)*),+)) => { - $( - cmsg_space!($($x)*) + - )+ - 0 - }; -} - -#[doc(hidden)] -pub fn __cmsg_space(len: usize) -> usize { - unsafe { c::CMSG_SPACE(len.try_into().expect("CMSG_SPACE size overflow")) as usize } -} - -/// Ancillary message for [`sendmsg`], [`sendmsg_v4`], [`sendmsg_v6`], -/// [`sendmsg_unix`], and [`sendmsg_any`]. -#[non_exhaustive] -pub enum SendAncillaryMessage<'slice, 'fd> { - /// Send file descriptors. - ScmRights(&'slice [BorrowedFd<'fd>]), -} - -impl SendAncillaryMessage<'_, '_> { - /// Get the maximum size of an ancillary message. - /// - /// This can be helpful in determining the size of the buffer you allocate. - pub fn size(&self) -> usize { - let total_bytes = match self { - Self::ScmRights(slice) => size_of_val(*slice), - }; - - unsafe { - c::CMSG_SPACE( - total_bytes - .try_into() - .expect("size too large for CMSG_SPACE"), - ) as usize - } - } -} - -/// Ancillary message for [`recvmsg`]. -#[non_exhaustive] -pub enum RecvAncillaryMessage<'a> { - /// Received file descriptors. - ScmRights(AncillaryIter<'a, OwnedFd>), -} - -/// Buffer for sending ancillary messages. -pub struct SendAncillaryBuffer<'buf, 'slice, 'fd> { - /// Raw byte buffer for messages. - buffer: &'buf mut [u8], - - /// The amount of the buffer that is used. - length: usize, - - /// Phantom data for lifetime of `&'slice [BorrowedFd<'fd>]`. - _phantom: PhantomData<&'slice [BorrowedFd<'fd>]>, -} - -impl<'buf> From<&'buf mut [u8]> for SendAncillaryBuffer<'buf, '_, '_> { - fn from(buffer: &'buf mut [u8]) -> Self { - Self::new(buffer) - } -} - -impl Default for SendAncillaryBuffer<'_, '_, '_> { - fn default() -> Self { - Self::new(&mut []) - } -} - -impl<'buf, 'slice, 'fd> SendAncillaryBuffer<'buf, 'slice, 'fd> { - /// Create a new, empty `SendAncillaryBuffer` from a raw byte buffer. - pub fn new(buffer: &'buf mut [u8]) -> Self { - Self { - buffer, - length: 0, - _phantom: PhantomData, - } - } - - /// Returns a pointer to the message data. - pub(crate) fn as_control_ptr(&mut self) -> *mut u8 { - // When the length is zero, we may be using a `&[]` address, which may - // be an invalid but non-null pointer, and on some platforms, that - // causes `sendmsg` to fail with `EFAULT` or `EINVAL` - #[cfg(not(linux_kernel))] - if self.length == 0 { - return core::ptr::null_mut(); - } - - self.buffer.as_mut_ptr() - } - - /// Returns the length of the message data. - pub(crate) fn control_len(&self) -> usize { - self.length - } - - /// Delete all messages from the buffer. - pub fn clear(&mut self) { - self.length = 0; - } - - /// Add an ancillary message to the buffer. - /// - /// Returns `true` if the message was added successfully. - pub fn push(&mut self, msg: SendAncillaryMessage<'slice, 'fd>) -> bool { - match msg { - SendAncillaryMessage::ScmRights(fds) => { - let fds_bytes = - unsafe { slice::from_raw_parts(fds.as_ptr().cast::(), size_of_val(fds)) }; - self.push_ancillary(fds_bytes, c::SOL_SOCKET as _, c::SCM_RIGHTS as _) - } - } - } - - /// Pushes an ancillary message to the buffer. - fn push_ancillary(&mut self, source: &[u8], cmsg_level: c::c_int, cmsg_type: c::c_int) -> bool { - macro_rules! leap { - ($e:expr) => {{ - match ($e) { - Some(x) => x, - None => return false, - } - }}; - } - - // Calculate the length of the message. - let source_len = leap!(u32::try_from(source.len()).ok()); - - // Calculate the new length of the buffer. - let additional_space = unsafe { c::CMSG_SPACE(source_len) }; - let new_length = leap!(self.length.checked_add(additional_space as usize)); - let buffer = leap!(self.buffer.get_mut(..new_length)); - - // Fill the new part of the buffer with zeroes. - buffer[self.length..new_length].fill(0); - self.length = new_length; - - // Get the last header in the buffer. - let last_header = leap!(messages::Messages::new(buffer).last()); - - // Set the header fields. - last_header.cmsg_len = unsafe { c::CMSG_LEN(source_len) } as _; - last_header.cmsg_level = cmsg_level; - last_header.cmsg_type = cmsg_type; - - // Get the pointer to the payload and copy the data. - unsafe { - let payload = c::CMSG_DATA(last_header); - ptr::copy_nonoverlapping(source.as_ptr(), payload, source_len as _); - } - - true - } -} - -impl<'slice, 'fd> Extend> - for SendAncillaryBuffer<'_, 'slice, 'fd> -{ - fn extend>>(&mut self, iter: T) { - // TODO: This could be optimized to add every message in one go. - iter.into_iter().all(|msg| self.push(msg)); - } -} - -/// Buffer for receiving ancillary messages. -pub struct RecvAncillaryBuffer<'buf> { - /// Raw byte buffer for messages. - buffer: &'buf mut [u8], - - /// The portion of the buffer we've read from already. - read: usize, - - /// The amount of the buffer that is used. - length: usize, -} - -impl<'buf> From<&'buf mut [u8]> for RecvAncillaryBuffer<'buf> { - fn from(buffer: &'buf mut [u8]) -> Self { - Self::new(buffer) - } -} - -impl Default for RecvAncillaryBuffer<'_> { - fn default() -> Self { - Self::new(&mut []) - } -} - -impl<'buf> RecvAncillaryBuffer<'buf> { - /// Create a new, empty `RecvAncillaryBuffer` from a raw byte buffer. - pub fn new(buffer: &'buf mut [u8]) -> Self { - Self { - buffer, - read: 0, - length: 0, - } - } - - /// Returns a pointer to the message data. - pub(crate) fn as_control_ptr(&mut self) -> *mut u8 { - // When the length is zero, we may be using a `&[]` address, which may - // be an invalid but non-null pointer, and on some platforms, that - // causes `sendmsg` to fail with `EFAULT` or `EINVAL` - #[cfg(not(linux_kernel))] - if self.buffer.is_empty() { - return core::ptr::null_mut(); - } - - self.buffer.as_mut_ptr() - } - - /// Returns the length of the message data. - pub(crate) fn control_len(&self) -> usize { - self.buffer.len() - } - - /// Set the length of the message data. - /// - /// # Safety - /// - /// The buffer must be filled with valid message data. - pub(crate) unsafe fn set_control_len(&mut self, len: usize) { - self.length = len; - self.read = 0; - } - - /// Delete all messages from the buffer. - pub(crate) fn clear(&mut self) { - self.drain().for_each(drop); - } - - /// Drain all messages from the buffer. - pub fn drain(&mut self) -> AncillaryDrain<'_> { - AncillaryDrain { - messages: messages::Messages::new(&mut self.buffer[self.read..][..self.length]), - read: &mut self.read, - length: &mut self.length, - } - } -} - -impl Drop for RecvAncillaryBuffer<'_> { - fn drop(&mut self) { - self.clear(); - } -} - -/// An iterator that drains messages from a `RecvAncillaryBuffer`. -pub struct AncillaryDrain<'buf> { - /// Inner iterator over messages. - messages: messages::Messages<'buf>, - - /// Increment the number of messages we've read. - read: &'buf mut usize, - - /// Decrement the total length. - length: &'buf mut usize, -} - -impl<'buf> AncillaryDrain<'buf> { - /// A closure that converts a message into a `RecvAncillaryMessage`. - fn cvt_msg( - read: &mut usize, - length: &mut usize, - msg: &c::cmsghdr, - ) -> Option> { - unsafe { - // Advance the "read" pointer. - let msg_len = msg.cmsg_len as usize; - *read += msg_len; - *length -= msg_len; - - // Get a pointer to the payload. - let payload = c::CMSG_DATA(msg); - let payload_len = msg.cmsg_len as usize - c::CMSG_LEN(0) as usize; - - // Get a mutable slice of the payload. - let payload: &'buf mut [u8] = slice::from_raw_parts_mut(payload, payload_len); - - // Determine what type it is. - let (level, msg_type) = (msg.cmsg_level, msg.cmsg_type); - match (level as _, msg_type as _) { - (c::SOL_SOCKET, c::SCM_RIGHTS) => { - // Create an iterator that reads out the file descriptors. - let fds = AncillaryIter::new(payload); - - Some(RecvAncillaryMessage::ScmRights(fds)) - } - _ => None, - } - } - } -} - -impl<'buf> Iterator for AncillaryDrain<'buf> { - type Item = RecvAncillaryMessage<'buf>; - - fn next(&mut self) -> Option { - let read = &mut self.read; - let length = &mut self.length; - self.messages.find_map(|ev| Self::cvt_msg(read, length, ev)) - } - - fn size_hint(&self) -> (usize, Option) { - let (_, max) = self.messages.size_hint(); - (0, max) - } - - fn fold(self, init: B, f: F) -> B - where - Self: Sized, - F: FnMut(B, Self::Item) -> B, - { - let read = self.read; - let length = self.length; - self.messages - .filter_map(|ev| Self::cvt_msg(read, length, ev)) - .fold(init, f) - } - - fn count(self) -> usize { - let read = self.read; - let length = self.length; - self.messages - .filter_map(|ev| Self::cvt_msg(read, length, ev)) - .count() - } - - fn last(self) -> Option - where - Self: Sized, - { - let read = self.read; - let length = self.length; - self.messages - .filter_map(|ev| Self::cvt_msg(read, length, ev)) - .last() - } - - fn collect>(self) -> B - where - Self: Sized, - { - let read = self.read; - let length = self.length; - self.messages - .filter_map(|ev| Self::cvt_msg(read, length, ev)) - .collect() - } -} - -impl FusedIterator for AncillaryDrain<'_> {} - -/// `sendmsg(msghdr)`—Sends a message on a socket. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendmsg.2 -/// [OpenBSD]: https://man.openbsd.org/sendmsg.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendmsg§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendmsg -#[inline] -pub fn sendmsg( - socket: impl AsFd, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - flags: SendFlags, -) -> io::Result { - backend::net::syscalls::sendmsg(socket.as_fd(), iov, control, flags) -} - -/// `sendmsg(msghdr)`—Sends a message on a socket to a specific IPv4 address. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendmsg.2 -/// [OpenBSD]: https://man.openbsd.org/sendmsg.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendmsg§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendmsg -#[inline] -pub fn sendmsg_v4( - socket: impl AsFd, - addr: &SocketAddrV4, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - flags: SendFlags, -) -> io::Result { - backend::net::syscalls::sendmsg_v4(socket.as_fd(), addr, iov, control, flags) -} - -/// `sendmsg(msghdr)`—Sends a message on a socket to a specific IPv6 address. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendmsg.2 -/// [OpenBSD]: https://man.openbsd.org/sendmsg.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendmsg§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendmsg -#[inline] -pub fn sendmsg_v6( - socket: impl AsFd, - addr: &SocketAddrV6, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - flags: SendFlags, -) -> io::Result { - backend::net::syscalls::sendmsg_v6(socket.as_fd(), addr, iov, control, flags) -} - -/// `sendmsg(msghdr)`—Sends a message on a socket to a specific Unix-domain -/// address. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendmsg.2 -/// [OpenBSD]: https://man.openbsd.org/sendmsg.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendmsg§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendmsg -#[inline] -#[cfg(unix)] -pub fn sendmsg_unix( - socket: impl AsFd, - addr: &super::SocketAddrUnix, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - flags: SendFlags, -) -> io::Result { - backend::net::syscalls::sendmsg_unix(socket.as_fd(), addr, iov, control, flags) -} - -/// `sendmsg(msghdr)`—Sends a message on a socket to a specific address. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 -/// [NetBSD]: https://man.netbsd.org/sendmsg.2 -/// [OpenBSD]: https://man.openbsd.org/sendmsg.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=sendmsg§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/sendmsg -#[inline] -pub fn sendmsg_any( - socket: impl AsFd, - addr: Option<&SocketAddrAny>, - iov: &[IoSlice<'_>], - control: &mut SendAncillaryBuffer<'_, '_, '_>, - flags: SendFlags, -) -> io::Result { - match addr { - None => backend::net::syscalls::sendmsg(socket.as_fd(), iov, control, flags), - Some(SocketAddrAny::V4(addr)) => { - backend::net::syscalls::sendmsg_v4(socket.as_fd(), addr, iov, control, flags) - } - Some(SocketAddrAny::V6(addr)) => { - backend::net::syscalls::sendmsg_v6(socket.as_fd(), addr, iov, control, flags) - } - #[cfg(unix)] - Some(SocketAddrAny::Unix(addr)) => { - backend::net::syscalls::sendmsg_unix(socket.as_fd(), addr, iov, control, flags) - } - } -} - -/// `recvmsg(msghdr)`—Receives a message from a socket. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvmsg.html -/// [Linux]: https://man7.org/linux/man-pages/man2/recvmsg.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recvmsg.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=recvmsg&sektion=2 -/// [NetBSD]: https://man.netbsd.org/recvmsg.2 -/// [OpenBSD]: https://man.openbsd.org/recvmsg.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=recvmsg§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/recvmsg -#[inline] -pub fn recvmsg( - socket: impl AsFd, - iov: &mut [IoSliceMut<'_>], - control: &mut RecvAncillaryBuffer<'_>, - flags: RecvFlags, -) -> io::Result { - backend::net::syscalls::recvmsg(socket.as_fd(), iov, control, flags) -} - -/// The result of a successful [`recvmsg`] call. -pub struct RecvMsgReturn { - /// The number of bytes received. - pub bytes: usize, - - /// The flags received. - pub flags: RecvFlags, - - /// The address of the socket we received from, if any. - pub address: Option, -} - -/// An iterator over data in an ancillary buffer. -pub struct AncillaryIter<'data, T> { - /// The data we're iterating over. - data: &'data mut [u8], - - /// The raw data we're removing. - _marker: PhantomData, -} - -impl<'data, T> AncillaryIter<'data, T> { - /// Create a new iterator over data in an ancillary buffer. - /// - /// # Safety - /// - /// The buffer must contain valid ancillary data. - unsafe fn new(data: &'data mut [u8]) -> Self { - assert_eq!(data.len() % size_of::(), 0); - - Self { - data, - _marker: PhantomData, - } - } -} - -impl<'data, T> Drop for AncillaryIter<'data, T> { - fn drop(&mut self) { - self.for_each(drop); - } -} - -impl Iterator for AncillaryIter<'_, T> { - type Item = T; - - fn next(&mut self) -> Option { - // See if there is a next item. - if self.data.len() < size_of::() { - return None; - } - - // Get the next item. - let item = unsafe { self.data.as_ptr().cast::().read_unaligned() }; - - // Move forward. - let data = take(&mut self.data); - self.data = &mut data[size_of::()..]; - - Some(item) - } - - fn size_hint(&self) -> (usize, Option) { - let len = self.len(); - (len, Some(len)) - } - - fn count(self) -> usize { - self.len() - } - - fn last(mut self) -> Option { - self.next_back() - } -} - -impl FusedIterator for AncillaryIter<'_, T> {} - -impl ExactSizeIterator for AncillaryIter<'_, T> { - fn len(&self) -> usize { - self.data.len() / size_of::() - } -} - -impl DoubleEndedIterator for AncillaryIter<'_, T> { - fn next_back(&mut self) -> Option { - // See if there is a next item. - if self.data.len() < size_of::() { - return None; - } - - // Get the next item. - let item = unsafe { - let ptr = self.data.as_ptr().add(self.data.len() - size_of::()); - ptr.cast::().read_unaligned() - }; - - // Move forward. - let len = self.data.len(); - let data = take(&mut self.data); - self.data = &mut data[..len - size_of::()]; - - Some(item) - } -} - -mod messages { - use crate::backend::c; - use crate::backend::net::msghdr; - use core::iter::FusedIterator; - use core::marker::PhantomData; - use core::ptr::NonNull; - - /// An iterator over the messages in an ancillary buffer. - pub(super) struct Messages<'buf> { - /// The message header we're using to iterator over the messages. - msghdr: c::msghdr, - - /// The current pointer to the next message header to return. - /// - /// This has a lifetime of `'buf`. - header: Option>, - - /// Capture the original lifetime of the buffer. - _buffer: PhantomData<&'buf mut [u8]>, - } - - impl<'buf> Messages<'buf> { - /// Create a new iterator over messages from a byte buffer. - pub(super) fn new(buf: &'buf mut [u8]) -> Self { - let msghdr = { - let mut h = msghdr::zero_msghdr(); - h.msg_control = buf.as_mut_ptr().cast(); - h.msg_controllen = buf.len().try_into().expect("buffer too large for msghdr"); - h - }; - - // Get the first header. - let header = NonNull::new(unsafe { c::CMSG_FIRSTHDR(&msghdr) }); - - Self { - msghdr, - header, - _buffer: PhantomData, - } - } - } - - impl<'a> Iterator for Messages<'a> { - type Item = &'a mut c::cmsghdr; - - #[inline] - fn next(&mut self) -> Option { - // Get the current header. - let header = self.header?; - - // Get the next header. - self.header = NonNull::new(unsafe { c::CMSG_NXTHDR(&self.msghdr, header.as_ptr()) }); - - // If the headers are equal, we're done. - if Some(header) == self.header { - self.header = None; - } - - // SAFETY: The lifetime of `header` is tied to this. - Some(unsafe { &mut *header.as_ptr() }) - } - - fn size_hint(&self) -> (usize, Option) { - if self.header.is_some() { - // The remaining buffer *could* be filled with zero-length - // messages. - let max_size = unsafe { c::CMSG_LEN(0) } as usize; - let remaining_count = self.msghdr.msg_controllen as usize / max_size; - (1, Some(remaining_count)) - } else { - (0, Some(0)) - } - } - } - - impl FusedIterator for Messages<'_> {} -} diff --git a/third_party/rust/rustix/src/net/socket.rs b/third_party/rust/rustix/src/net/socket.rs deleted file mode 100644 index 8727ca53bca0..000000000000 --- a/third_party/rust/rustix/src/net/socket.rs +++ /dev/null @@ -1,712 +0,0 @@ -use crate::fd::OwnedFd; -use crate::net::{SocketAddr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; -use crate::{backend, io}; -use backend::fd::{AsFd, BorrowedFd}; - -pub use crate::net::{AddressFamily, Protocol, Shutdown, SocketFlags, SocketType}; -#[cfg(unix)] -pub use backend::net::addr::SocketAddrUnix; - -/// `socket(domain, type_, protocol)`—Creates a socket. -/// -/// POSIX guarantees that `socket` will use the lowest unused file descriptor, -/// however it is not safe in general to rely on this, as file descriptors may -/// be unexpectedly allocated on other threads or in libraries. -/// -/// To pass extra flags such as [`SocketFlags::CLOEXEC`] or -/// [`SocketFlags::NONBLOCK`], use [`socket_with`]. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#socket -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html -/// [Linux]: https://man7.org/linux/man-pages/man2/socket.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/socket.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=socket&sektion=2 -/// [NetBSD]: https://man.netbsd.org/socket.2 -/// [OpenBSD]: https://man.openbsd.org/socket.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=socket§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/socket -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Creating-a-Socket.html -#[inline] -pub fn socket( - domain: AddressFamily, - type_: SocketType, - protocol: Option, -) -> io::Result { - backend::net::syscalls::socket(domain, type_, protocol) -} - -/// `socket_with(domain, type_ | flags, protocol)`—Creates a socket, with -/// flags. -/// -/// POSIX guarantees that `socket` will use the lowest unused file descriptor, -/// however it is not safe in general to rely on this, as file descriptors may -/// be unexpectedly allocated on other threads or in libraries. -/// -/// `socket_with` is the same as [`socket`] but adds an additional flags -/// operand. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#socket -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html -/// [Linux]: https://man7.org/linux/man-pages/man2/socket.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/socket.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=socket&sektion=2 -/// [NetBSD]: https://man.netbsd.org/socket.2 -/// [OpenBSD]: https://man.openbsd.org/socket.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=socket§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/socket -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Creating-a-Socket.html -#[doc(alias("socket"))] -#[inline] -pub fn socket_with( - domain: AddressFamily, - type_: SocketType, - flags: SocketFlags, - protocol: Option, -) -> io::Result { - backend::net::syscalls::socket_with(domain, type_, flags, protocol) -} - -/// `bind(sockfd, addr)`—Binds a socket to an IP address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html -/// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=bind&sektion=2 -/// [NetBSD]: https://man.netbsd.org/bind.2 -/// [OpenBSD]: https://man.openbsd.org/bind.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=bind§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/bind -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Setting-Address.html -pub fn bind(sockfd: Fd, addr: &SocketAddr) -> io::Result<()> { - _bind(sockfd.as_fd(), addr) -} - -fn _bind(sockfd: BorrowedFd<'_>, addr: &SocketAddr) -> io::Result<()> { - match addr { - SocketAddr::V4(v4) => backend::net::syscalls::bind_v4(sockfd, v4), - SocketAddr::V6(v6) => backend::net::syscalls::bind_v6(sockfd, v6), - } -} - -/// `bind(sockfd, addr)`—Binds a socket to an address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html -/// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=bind&sektion=2 -/// [NetBSD]: https://man.netbsd.org/bind.2 -/// [OpenBSD]: https://man.openbsd.org/bind.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=bind§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/bind -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Setting-Address.html -#[doc(alias = "bind")] -pub fn bind_any(sockfd: Fd, addr: &SocketAddrAny) -> io::Result<()> { - _bind_any(sockfd.as_fd(), addr) -} - -fn _bind_any(sockfd: BorrowedFd<'_>, addr: &SocketAddrAny) -> io::Result<()> { - match addr { - SocketAddrAny::V4(v4) => backend::net::syscalls::bind_v4(sockfd, v4), - SocketAddrAny::V6(v6) => backend::net::syscalls::bind_v6(sockfd, v6), - #[cfg(unix)] - SocketAddrAny::Unix(unix) => backend::net::syscalls::bind_unix(sockfd, unix), - } -} - -/// `bind(sockfd, addr, sizeof(struct sockaddr_in))`—Binds a socket to an -/// IPv4 address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html -/// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=bind&sektion=2 -/// [NetBSD]: https://man.netbsd.org/bind.2 -/// [OpenBSD]: https://man.openbsd.org/bind.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=bind§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/bind -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Setting-Address.html -#[inline] -#[doc(alias = "bind")] -pub fn bind_v4(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { - backend::net::syscalls::bind_v4(sockfd.as_fd(), addr) -} - -/// `bind(sockfd, addr, sizeof(struct sockaddr_in6))`—Binds a socket to an -/// IPv6 address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html -/// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=bind&sektion=2 -/// [NetBSD]: https://man.netbsd.org/bind.2 -/// [OpenBSD]: https://man.openbsd.org/bind.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=bind§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/bind -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Setting-Address.html -#[inline] -#[doc(alias = "bind")] -pub fn bind_v6(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { - backend::net::syscalls::bind_v6(sockfd.as_fd(), addr) -} - -/// `bind(sockfd, addr, sizeof(struct sockaddr_un))`—Binds a socket to a -/// Unix-domain address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html -/// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=bind&sektion=2 -/// [NetBSD]: https://man.netbsd.org/bind.2 -/// [OpenBSD]: https://man.openbsd.org/bind.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=bind§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/bind -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Setting-Address.html -#[cfg(unix)] -#[inline] -#[doc(alias = "bind")] -pub fn bind_unix(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<()> { - backend::net::syscalls::bind_unix(sockfd.as_fd(), addr) -} - -/// `connect(sockfd, addr)`—Initiates a connection to an IP address. -/// -/// On Windows, a non-blocking socket returns [`Errno::WOULDBLOCK`] if the -/// connection cannot be completed immediately, rather than -/// `Errno::INPROGRESS`. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html -/// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=connect&sektion=2 -/// [NetBSD]: https://man.netbsd.org/connect.2 -/// [OpenBSD]: https://man.openbsd.org/connect.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/connect -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html -/// [`Errno::WOULDBLOCK`]: io::Errno::WOULDBLOCK -pub fn connect(sockfd: Fd, addr: &SocketAddr) -> io::Result<()> { - _connect(sockfd.as_fd(), addr) -} - -fn _connect(sockfd: BorrowedFd<'_>, addr: &SocketAddr) -> io::Result<()> { - match addr { - SocketAddr::V4(v4) => backend::net::syscalls::connect_v4(sockfd, v4), - SocketAddr::V6(v6) => backend::net::syscalls::connect_v6(sockfd, v6), - } -} - -/// `connect(sockfd, addr)`—Initiates a connection. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html -/// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=connect&sektion=2 -/// [NetBSD]: https://man.netbsd.org/connect.2 -/// [OpenBSD]: https://man.openbsd.org/connect.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/connect -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html -#[doc(alias = "connect")] -pub fn connect_any(sockfd: Fd, addr: &SocketAddrAny) -> io::Result<()> { - _connect_any(sockfd.as_fd(), addr) -} - -fn _connect_any(sockfd: BorrowedFd<'_>, addr: &SocketAddrAny) -> io::Result<()> { - match addr { - SocketAddrAny::V4(v4) => backend::net::syscalls::connect_v4(sockfd, v4), - SocketAddrAny::V6(v6) => backend::net::syscalls::connect_v6(sockfd, v6), - #[cfg(unix)] - SocketAddrAny::Unix(unix) => backend::net::syscalls::connect_unix(sockfd, unix), - } -} - -/// `connect(sockfd, addr, sizeof(struct sockaddr_in))`—Initiates a -/// connection to an IPv4 address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html -/// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=connect&sektion=2 -/// [NetBSD]: https://man.netbsd.org/connect.2 -/// [OpenBSD]: https://man.openbsd.org/connect.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/connect -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html -#[inline] -#[doc(alias = "connect")] -pub fn connect_v4(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { - backend::net::syscalls::connect_v4(sockfd.as_fd(), addr) -} - -/// `connect(sockfd, addr, sizeof(struct sockaddr_in6))`—Initiates a -/// connection to an IPv6 address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html -/// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=connect&sektion=2 -/// [NetBSD]: https://man.netbsd.org/connect.2 -/// [OpenBSD]: https://man.openbsd.org/connect.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/connect -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html -#[inline] -#[doc(alias = "connect")] -pub fn connect_v6(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { - backend::net::syscalls::connect_v6(sockfd.as_fd(), addr) -} - -/// `connect(sockfd, addr, sizeof(struct sockaddr_un))`—Initiates a -/// connection to a Unix-domain address. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html -/// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=connect&sektion=2 -/// [NetBSD]: https://man.netbsd.org/connect.2 -/// [OpenBSD]: https://man.openbsd.org/connect.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/connect -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html -#[cfg(unix)] -#[inline] -#[doc(alias = "connect")] -pub fn connect_unix(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<()> { - backend::net::syscalls::connect_unix(sockfd.as_fd(), addr) -} - -/// `listen(fd, backlog)`—Enables listening for incoming connections. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#listen -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/listen.html -/// [Linux]: https://man7.org/linux/man-pages/man2/listen.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/listen.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-listen -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=listen&sektion=2 -/// [NetBSD]: https://man.netbsd.org/listen.2 -/// [OpenBSD]: https://man.openbsd.org/listen.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=listen§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/listen -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Listening.html -#[inline] -pub fn listen(sockfd: Fd, backlog: i32) -> io::Result<()> { - backend::net::syscalls::listen(sockfd.as_fd(), backlog) -} - -/// `accept(fd, NULL, NULL)`—Accepts an incoming connection. -/// -/// Use [`acceptfrom`] to retrieve the peer address. -/// -/// POSIX guarantees that `accept` will use the lowest unused file descriptor, -/// however it is not safe in general to rely on this, as file descriptors may -/// be unexpectedly allocated on other threads or in libraries. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#acceptthank-you-for-calling-port-3490. -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html -/// [Linux]: https://man7.org/linux/man-pages/man2/accept.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/accept.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-accept -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=accept&sektion=2 -/// [NetBSD]: https://man.netbsd.org/accept.2 -/// [OpenBSD]: https://man.openbsd.org/accept.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=accept§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/accept -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Accepting-Connections.html -#[inline] -pub fn accept(sockfd: Fd) -> io::Result { - backend::net::syscalls::accept(sockfd.as_fd()) -} - -/// `accept4(fd, NULL, NULL, flags)`—Accepts an incoming connection, with -/// flags. -/// -/// Use [`acceptfrom_with`] to retrieve the peer address. -/// -/// Even though POSIX guarantees that this will use the lowest unused file -/// descriptor, it is not safe in general to rely on this, as file descriptors -/// may be unexpectedly allocated on other threads or in libraries. -/// -/// `accept_with` is the same as [`accept`] but adds an additional flags -/// operand. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/accept4.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=accept4&sektion=2 -/// [NetBSD]: https://man.netbsd.org/accept4.2 -/// [OpenBSD]: https://man.openbsd.org/accept4.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=accept4§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/accept4 -#[inline] -#[doc(alias = "accept4")] -pub fn accept_with(sockfd: Fd, flags: SocketFlags) -> io::Result { - backend::net::syscalls::accept_with(sockfd.as_fd(), flags) -} - -/// `accept(fd, &addr, &len)`—Accepts an incoming connection and returns the -/// peer address. -/// -/// Use [`accept`] if the peer address isn't needed. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#acceptthank-you-for-calling-port-3490. -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html -/// [Linux]: https://man7.org/linux/man-pages/man2/accept.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/accept.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-accept -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=accept&sektion=2 -/// [NetBSD]: https://man.netbsd.org/accept.2 -/// [OpenBSD]: https://man.openbsd.org/accept.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=accept§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/accept -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Accepting-Connections.html -#[inline] -#[doc(alias = "accept")] -pub fn acceptfrom(sockfd: Fd) -> io::Result<(OwnedFd, Option)> { - backend::net::syscalls::acceptfrom(sockfd.as_fd()) -} - -/// `accept4(fd, &addr, &len, flags)`—Accepts an incoming connection and -/// returns the peer address, with flags. -/// -/// Use [`accept_with`] if the peer address isn't needed. -/// -/// `acceptfrom_with` is the same as [`acceptfrom`] but adds an additional -/// flags operand. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/accept4.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=accept4&sektion=2 -/// [NetBSD]: https://man.netbsd.org/accept4.2 -/// [OpenBSD]: https://man.openbsd.org/accept4.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=accept4§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/accept4 -#[inline] -#[doc(alias = "accept4")] -pub fn acceptfrom_with( - sockfd: Fd, - flags: SocketFlags, -) -> io::Result<(OwnedFd, Option)> { - backend::net::syscalls::acceptfrom_with(sockfd.as_fd(), flags) -} - -/// `shutdown(fd, how)`—Closes the read and/or write sides of a stream. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#close-and-shutdownget-outta-my-face -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/shutdown.html -/// [Linux]: https://man7.org/linux/man-pages/man2/shutdown.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/shutdown.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-shutdown -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=shutdown&sektion=2 -/// [NetBSD]: https://man.netbsd.org/shutdown.2 -/// [OpenBSD]: https://man.openbsd.org/shutdown.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=shutdown§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/shutdown -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Closing-a-Socket.html -#[inline] -pub fn shutdown(sockfd: Fd, how: Shutdown) -> io::Result<()> { - backend::net::syscalls::shutdown(sockfd.as_fd(), how) -} - -/// `getsockname(fd, addr, len)`—Returns the address a socket is bound to. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockname.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getsockname.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockname.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockname -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockname&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockname.2 -/// [OpenBSD]: https://man.openbsd.org/getsockname.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockname§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockname -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Reading-Address.html -#[inline] -pub fn getsockname(sockfd: Fd) -> io::Result { - backend::net::syscalls::getsockname(sockfd.as_fd()) -} - -/// `getpeername(fd, addr, len)`—Returns the address a socket is connected -/// to. -/// -/// # References -/// - [Beej's Guide to Network Programming] -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [Winsock2] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#getpeernamewho-are-you -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpeername.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getpeername.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getpeername.2.html -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getpeername -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getpeername&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getpeername.2 -/// [OpenBSD]: https://man.openbsd.org/getpeername.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getpeername§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getpeername -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Who-is-Connected.html -#[inline] -pub fn getpeername(sockfd: Fd) -> io::Result> { - backend::net::syscalls::getpeername(sockfd.as_fd()) -} diff --git a/third_party/rust/rustix/src/net/socket_addr_any.rs b/third_party/rust/rustix/src/net/socket_addr_any.rs deleted file mode 100644 index 7cb124e4caaf..000000000000 --- a/third_party/rust/rustix/src/net/socket_addr_any.rs +++ /dev/null @@ -1,103 +0,0 @@ -//! A socket address for any kind of socket. -//! -//! This is similar to [`std::net::SocketAddr`], but also supports Unix-domain -//! socket addresses on Unix. -//! -//! # Safety -//! -//! The `read` and `write` functions allow decoding and encoding from and to -//! OS-specific socket address representations in memory. -#![allow(unsafe_code)] - -#[cfg(unix)] -use crate::net::SocketAddrUnix; -use crate::net::{AddressFamily, SocketAddrV4, SocketAddrV6}; -use crate::{backend, io}; -#[cfg(feature = "std")] -use core::fmt; - -pub use backend::net::addr::SocketAddrStorage; - -/// `struct sockaddr_storage` as a Rust enum. -#[derive(Clone, PartialEq, PartialOrd, Eq, Ord, Hash)] -#[doc(alias = "sockaddr")] -#[non_exhaustive] -pub enum SocketAddrAny { - /// `struct sockaddr_in` - V4(SocketAddrV4), - /// `struct sockaddr_in6` - V6(SocketAddrV6), - /// `struct sockaddr_un` - #[cfg(unix)] - Unix(SocketAddrUnix), -} - -impl From for SocketAddrAny { - #[inline] - fn from(from: SocketAddrV4) -> Self { - Self::V4(from) - } -} - -impl From for SocketAddrAny { - #[inline] - fn from(from: SocketAddrV6) -> Self { - Self::V6(from) - } -} - -#[cfg(unix)] -impl From for SocketAddrAny { - #[inline] - fn from(from: SocketAddrUnix) -> Self { - Self::Unix(from) - } -} - -impl SocketAddrAny { - /// Return the address family of this socket address. - #[inline] - pub const fn address_family(&self) -> AddressFamily { - match self { - Self::V4(_) => AddressFamily::INET, - Self::V6(_) => AddressFamily::INET6, - #[cfg(unix)] - Self::Unix(_) => AddressFamily::UNIX, - } - } - - /// Writes a platform-specific encoding of this socket address to - /// the memory pointed to by `storage`, and returns the number of - /// bytes used. - /// - /// # Safety - /// - /// `storage` must point to valid memory for encoding the socket - /// address. - pub unsafe fn write(&self, storage: *mut SocketAddrStorage) -> usize { - backend::net::write_sockaddr::write_sockaddr(self, storage) - } - - /// Reads a platform-specific encoding of a socket address from - /// the memory pointed to by `storage`, which uses `len` bytes. - /// - /// # Safety - /// - /// `storage` must point to valid memory for decoding a socket - /// address. - pub unsafe fn read(storage: *const SocketAddrStorage, len: usize) -> io::Result { - backend::net::read_sockaddr::read_sockaddr(storage, len) - } -} - -#[cfg(feature = "std")] -impl fmt::Debug for SocketAddrAny { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - match self { - Self::V4(v4) => v4.fmt(fmt), - Self::V6(v6) => v6.fmt(fmt), - #[cfg(unix)] - Self::Unix(unix) => unix.fmt(fmt), - } - } -} diff --git a/third_party/rust/rustix/src/net/socketpair.rs b/third_party/rust/rustix/src/net/socketpair.rs deleted file mode 100644 index 7228e716bcfe..000000000000 --- a/third_party/rust/rustix/src/net/socketpair.rs +++ /dev/null @@ -1,36 +0,0 @@ -use crate::fd::OwnedFd; -use crate::net::{AddressFamily, Protocol, SocketFlags, SocketType}; -use crate::{backend, io}; - -/// `socketpair(domain, type_ | accept_flags, protocol)`—Create a pair of -/// sockets that are connected to each other. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socketpair.html -/// [Linux]: https://man7.org/linux/man-pages/man2/socketpair.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/socketpair.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=socketpair&sektion=2 -/// [NetBSD]: https://man.netbsd.org/socketpair.2 -/// [OpenBSD]: https://man.openbsd.org/socketpair.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=socketpair§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/socketpair -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Socket-Pairs.html -#[inline] -pub fn socketpair( - domain: AddressFamily, - type_: SocketType, - flags: SocketFlags, - protocol: Option, -) -> io::Result<(OwnedFd, OwnedFd)> { - backend::net::syscalls::socketpair(domain, type_, flags, protocol) -} diff --git a/third_party/rust/rustix/src/net/sockopt.rs b/third_party/rust/rustix/src/net/sockopt.rs deleted file mode 100644 index 977c2a16f3b0..000000000000 --- a/third_party/rust/rustix/src/net/sockopt.rs +++ /dev/null @@ -1,1704 +0,0 @@ -//! `getsockopt` and `setsockopt` functions. -//! -//! In the rustix API, there is a separate function for each option, so that -//! it can be given an option-specific type signature. - -#![doc(alias = "getsockopt")] -#![doc(alias = "setsockopt")] - -#[cfg(not(any( - apple, - solarish, - windows, - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "openbsd" -)))] -use crate::net::AddressFamily; -use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; -use crate::{backend, io}; -use backend::c; -use backend::fd::AsFd; -use core::time::Duration; - -/// Timeout identifier for use with [`set_socket_timeout`] and -/// [`get_socket_timeout`]. -/// -/// [`set_socket_timeout`]: crate::net::sockopt::set_socket_timeout. -/// [`get_socket_timeout`]: crate::net::sockopt::get_socket_timeout. -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u32)] -pub enum Timeout { - /// `SO_RCVTIMEO`—Timeout for receiving. - Recv = c::SO_RCVTIMEO as _, - - /// `SO_SNDTIMEO`—Timeout for sending. - Send = c::SO_SNDTIMEO as _, -} - -/// `getsockopt(fd, SOL_SOCKET, SO_TYPE)`—Returns the type of a socket. -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_TYPE")] -pub fn get_socket_type(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_type(fd.as_fd()) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, value)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_REUSEADDR")] -pub fn set_socket_reuseaddr(fd: Fd, value: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_reuseaddr(fd.as_fd(), value) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_BROADCAST, broadcast)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_BROADCAST")] -pub fn set_socket_broadcast(fd: Fd, broadcast: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_broadcast(fd.as_fd(), broadcast) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_BROADCAST)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_BROADCAST")] -pub fn get_socket_broadcast(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_broadcast(fd.as_fd()) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_LINGER, linger)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_LINGER")] -pub fn set_socket_linger(fd: Fd, linger: Option) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_linger(fd.as_fd(), linger) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_LINGER)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_LINGER")] -pub fn get_socket_linger(fd: Fd) -> io::Result> { - backend::net::syscalls::sockopt::get_socket_linger(fd.as_fd()) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_PASSCRED, passcred)` -/// -/// # References -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -#[cfg(linux_kernel)] -#[inline] -#[doc(alias = "SO_PASSCRED")] -pub fn set_socket_passcred(fd: Fd, passcred: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_passcred(fd.as_fd(), passcred) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_PASSCRED)` -/// -/// # References -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -#[cfg(linux_kernel)] -#[inline] -#[doc(alias = "SO_PASSCRED")] -pub fn get_socket_passcred(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_passcred(fd.as_fd()) -} - -/// `setsockopt(fd, SOL_SOCKET, id, timeout)`—Set the sending or receiving -/// timeout. -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_RCVTIMEO")] -#[doc(alias = "SO_SNDTIMEO")] -pub fn set_socket_timeout( - fd: Fd, - id: Timeout, - timeout: Option, -) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_timeout(fd.as_fd(), id, timeout) -} - -/// `getsockopt(fd, SOL_SOCKET, id)`—Get the sending or receiving timeout. -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_RCVTIMEO")] -#[doc(alias = "SO_SNDTIMEO")] -pub fn get_socket_timeout(fd: Fd, id: Timeout) -> io::Result> { - backend::net::syscalls::sockopt::get_socket_timeout(fd.as_fd(), id) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_ERROR)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_ERROR")] -pub fn get_socket_error(fd: Fd) -> io::Result> { - backend::net::syscalls::sockopt::get_socket_error(fd.as_fd()) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[cfg(any(apple, target_os = "freebsd"))] -#[doc(alias = "SO_NOSIGPIPE")] -#[inline] -pub fn get_socket_nosigpipe(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_nosigpipe(fd.as_fd()) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, val)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[cfg(any(apple, target_os = "freebsd"))] -#[doc(alias = "SO_NOSIGPIPE")] -#[inline] -pub fn set_socket_nosigpipe(fd: Fd, val: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_nosigpipe(fd.as_fd(), val) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, keepalive)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_KEEPALIVE")] -pub fn set_socket_keepalive(fd: Fd, keepalive: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_keepalive(fd.as_fd(), keepalive) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_KEEPALIVE)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_KEEPALIVE")] -pub fn get_socket_keepalive(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_keepalive(fd.as_fd()) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_RCVBUF, size)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_RCVBUF")] -pub fn set_socket_recv_buffer_size(fd: Fd, size: usize) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_recv_buffer_size(fd.as_fd(), size) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_RCVBUF)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_RCVBUF")] -pub fn get_socket_recv_buffer_size(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_recv_buffer_size(fd.as_fd()) -} - -/// `setsockopt(fd, SOL_SOCKET, SO_SNDBUF, size)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `setsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `setsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/setsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/setsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/setsockopt -/// [glibc `setsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_SNDBUF")] -pub fn set_socket_send_buffer_size(fd: Fd, size: usize) -> io::Result<()> { - backend::net::syscalls::sockopt::set_socket_send_buffer_size(fd.as_fd(), size) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_SNDBUF)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -#[inline] -#[doc(alias = "SO_SNDBUF")] -pub fn get_socket_send_buffer_size(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_send_buffer_size(fd.as_fd()) -} - -/// `getsockopt(fd, SOL_SOCKET, SO_DOMAIN)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `sys/socket.h`] -/// - [Linux `getsockopt`] -/// - [Linux `socket`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `SOL_SOCKET` options] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc `getsockopt`] -/// - [glibc `SOL_SOCKET` Options] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [NetBSD]: https://man.netbsd.org/getsockopt.2 -/// [OpenBSD]: https://man.openbsd.org/getsockopt.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [illumos]: https://illumos.org/man/3SOCKET/getsockopt -/// [glibc `getsockopt`]: https://www.gnu.org/software/libc/manual/html_node/Socket-Option-Functions.html -/// [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html -// TODO: OpenBSD and Solarish support submitted upstream: https://github.com/rust-lang/libc/pull/3316 -#[cfg(not(any( - apple, - solarish, - windows, - target_os = "aix", - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - target_os = "openbsd" -)))] -#[inline] -#[doc(alias = "SO_DOMAIN")] -pub fn get_socket_domain(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_socket_domain(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IP, IP_TTL, ttl)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `setsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip`]: https://man.freebsd.org/cgi/man.cgi?query=ip&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip`]: https://man.netbsd.org/ip.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip`]: https://man.openbsd.org/ip.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip`]: https://man.dragonflybsd.org/?command=ip§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip`]: https://illumos.org/man/4P/ip -#[inline] -#[doc(alias = "IP_TTL")] -pub fn set_ip_ttl(fd: Fd, ttl: u32) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ip_ttl(fd.as_fd(), ttl) -} - -/// `getsockopt(fd, IPPROTO_IP, IP_TTL)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `getsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `getsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `getsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip`]: https://man.freebsd.org/cgi/man.cgi?query=ip&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip`]: https://man.netbsd.org/ip.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip`]: https://man.openbsd.org/ip.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip`]: https://man.dragonflybsd.org/?command=ip§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip`]: https://illumos.org/man/4P/ip -#[inline] -#[doc(alias = "IP_TTL")] -pub fn get_ip_ttl(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_ip_ttl(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, only_v6)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `setsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_V6ONLY")] -pub fn set_ipv6_v6only(fd: Fd, only_v6: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ipv6_v6only(fd.as_fd(), only_v6) -} - -/// `getsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `getsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `getsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `getsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `getsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `getsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `getsockopt`]: https://man.netbsd.org/getsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `getsockopt`]: https://man.openbsd.org/getsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `getsockopt`]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `getsockopt`]: https://illumos.org/man/3SOCKET/getsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_V6ONLY")] -pub fn get_ipv6_v6only(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_ipv6_v6only(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, multicast_loop)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `setsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip`]: https://man.freebsd.org/cgi/man.cgi?query=ip&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip`]: https://man.netbsd.org/ip.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip`]: https://man.openbsd.org/ip.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip`]: https://man.dragonflybsd.org/?command=ip§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip`]: https://illumos.org/man/4P/ip -#[inline] -#[doc(alias = "IP_MULTICAST_LOOP")] -pub fn set_ip_multicast_loop(fd: Fd, multicast_loop: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ip_multicast_loop(fd.as_fd(), multicast_loop) -} - -/// `getsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `getsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `getsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `getsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -#[inline] -#[doc(alias = "IP_MULTICAST_LOOP")] -pub fn get_ip_multicast_loop(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_ip_multicast_loop(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, multicast_ttl)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `setsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip`]: https://man.freebsd.org/cgi/man.cgi?query=ip&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip`]: https://man.netbsd.org/ip.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip`]: https://man.openbsd.org/ip.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip`]: https://man.dragonflybsd.org/?command=ip§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip`]: https://illumos.org/man/4P/ip -#[inline] -#[doc(alias = "IP_MULTICAST_TTL")] -pub fn set_ip_multicast_ttl(fd: Fd, multicast_ttl: u32) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ip_multicast_ttl(fd.as_fd(), multicast_ttl) -} - -/// `getsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `getsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `getsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `getsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -#[inline] -#[doc(alias = "IP_MULTICAST_TTL")] -pub fn get_ip_multicast_ttl(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_ip_multicast_ttl(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, multicast_loop)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `setsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_MULTICAST_LOOP")] -pub fn set_ipv6_multicast_loop(fd: Fd, multicast_loop: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ipv6_multicast_loop(fd.as_fd(), multicast_loop) -} - -/// `getsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `getsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `getsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `getsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `getsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `getsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `getsockopt`]: https://man.netbsd.org/getsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `getsockopt`]: https://man.openbsd.org/getsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `getsockopt`]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `getsockopt`]: https://illumos.org/man/3SOCKET/getsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_MULTICAST_LOOP")] -pub fn get_ipv6_multicast_loop(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_ipv6_multicast_loop(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, multicast_hops)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `setsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IP_MULTICAST_TTL")] -pub fn set_ipv6_multicast_hops(fd: Fd, multicast_hops: u32) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ipv6_multicast_hops(fd.as_fd(), multicast_hops) -} - -/// `getsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `getsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `getsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `getsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `getsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `getsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `getsockopt`]: https://man.netbsd.org/getsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `getsockopt`]: https://man.openbsd.org/getsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `getsockopt`]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `getsockopt`]: https://illumos.org/man/3SOCKET/getsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_UNICAST_HOPS")] -pub fn get_ipv6_unicast_hops(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_ipv6_unicast_hops(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, unicast_hops)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `setsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_UNICAST_HOPS")] -pub fn set_ipv6_unicast_hops(fd: Fd, unicast_hops: Option) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ipv6_unicast_hops(fd.as_fd(), unicast_hops) -} - -/// `getsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `getsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `getsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `getsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `getsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `getsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `getsockopt`]: https://man.netbsd.org/getsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `getsockopt`]: https://man.openbsd.org/getsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `getsockopt`]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `getsockopt`]: https://illumos.org/man/3SOCKET/getsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IP_MULTICAST_TTL")] -pub fn get_ipv6_multicast_hops(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_ipv6_multicast_hops(fd.as_fd()) -} - -/// `setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, multiaddr, interface)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `setsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip`]: https://man.freebsd.org/cgi/man.cgi?query=ip&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip`]: https://man.netbsd.org/ip.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip`]: https://man.openbsd.org/ip.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip`]: https://man.dragonflybsd.org/?command=ip§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip`]: https://illumos.org/man/4P/ip -#[inline] -#[doc(alias = "IP_ADD_MEMBERSHIP")] -pub fn set_ip_add_membership( - fd: Fd, - multiaddr: &Ipv4Addr, - interface: &Ipv4Addr, -) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ip_add_membership(fd.as_fd(), multiaddr, interface) -} - -/// `setsockopt(fd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, multiaddr, interface)` -/// -/// `IPV6_ADD_MEMBERSHIP` is the same as `IPV6_JOIN_GROUP` in POSIX. -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `setsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_JOIN_GROUP")] -#[doc(alias = "IPV6_ADD_MEMBERSHIP")] -pub fn set_ipv6_add_membership( - fd: Fd, - multiaddr: &Ipv6Addr, - interface: u32, -) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ipv6_add_membership(fd.as_fd(), multiaddr, interface) -} - -/// `setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, multiaddr, interface)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ip`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IP` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip`] -/// - [illumos `setsockopt`] -/// - [illumos `ip`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip`]: https://man.freebsd.org/cgi/man.cgi?query=ip&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip`]: https://man.netbsd.org/ip.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip`]: https://man.openbsd.org/ip.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip`]: https://man.dragonflybsd.org/?command=ip§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip`]: https://illumos.org/man/4P/ip -#[inline] -#[doc(alias = "IP_DROP_MEMBERSHIP")] -pub fn set_ip_drop_membership( - fd: Fd, - multiaddr: &Ipv4Addr, - interface: &Ipv4Addr, -) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ip_drop_membership(fd.as_fd(), multiaddr, interface) -} - -/// `setsockopt(fd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, multiaddr, interface)` -/// -/// `IPV6_DROP_MEMBERSHIP` is the same as `IPV6_LEAVE_GROUP` in POSIX. -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/in.h`] -/// - [Linux `setsockopt`] -/// - [Linux `ipv6`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_IPV6` options] -/// - [Apple `setsockopt`] -/// - [Apple `ip6`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `ip6`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `ip6`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `ip6`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `ip6`] -/// - [illumos `setsockopt`] -/// - [illumos `ip6`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `ip6`]: https://man.freebsd.org/cgi/man.cgi?query=ip6&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `ip6`]: https://man.netbsd.org/ip6.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `ip6`]: https://man.openbsd.org/ip6.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `ip6`]: https://man.dragonflybsd.org/?command=ip6§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `ip6`]: https://illumos.org/man/4P/ip6 -#[inline] -#[doc(alias = "IPV6_LEAVE_GROUP")] -#[doc(alias = "IPV6_DROP_MEMBERSHIP")] -pub fn set_ipv6_drop_membership( - fd: Fd, - multiaddr: &Ipv6Addr, - interface: u32, -) -> io::Result<()> { - backend::net::syscalls::sockopt::set_ipv6_drop_membership(fd.as_fd(), multiaddr, interface) -} - -/// `setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, nodelay)` -/// -/// # References -/// - [POSIX `setsockopt`] -/// - [POSIX `netinet/tcp.h`] -/// - [Linux `setsockopt`] -/// - [Linux `tcp`] -/// - [Winsock2 `setsockopt`] -/// - [Winsock2 `IPPROTO_TCP` options] -/// - [Apple `setsockopt`] -/// - [Apple `tcp`] -/// - [FreeBSD `setsockopt`] -/// - [FreeBSD `tcp`] -/// - [NetBSD `setsockopt`] -/// - [NetBSD `tcp`] -/// - [OpenBSD `setsockopt`] -/// - [OpenBSD `tcp`] -/// - [DragonFly BSD `setsockopt`] -/// - [DragonFly BSD `tcp`] -/// - [illumos `setsockopt`] -/// - [illumos `tcp`] -/// -/// [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -/// [POSIX `netinet/tcp.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_tcp.h.html -/// [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html -/// [Linux `tcp`]: https://man7.org/linux/man-pages/man7/tcp.7.html -/// [Winsock2 `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt -/// [Winsock2 `IPPROTO_TCP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-tcp-socket-options -/// [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html -/// [Apple `tcp`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/tcp.4.auto.html -/// [FreeBSD `setsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=setsockopt&sektion=2 -/// [FreeBSD `tcp`]: https://man.freebsd.org/cgi/man.cgi?query=tcp&sektion=4 -/// [NetBSD `setsockopt`]: https://man.netbsd.org/setsockopt.2 -/// [NetBSD `tcp`]: https://man.netbsd.org/tcp.4 -/// [OpenBSD `setsockopt`]: https://man.openbsd.org/setsockopt.2 -/// [OpenBSD `tcp`]: https://man.openbsd.org/tcp.4 -/// [DragonFly BSD `setsockopt`]: https://man.dragonflybsd.org/?command=setsockopt§ion=2 -/// [DragonFly BSD `tcp`]: https://man.dragonflybsd.org/?command=tcp§ion=4 -/// [illumos `setsockopt`]: https://illumos.org/man/3SOCKET/setsockopt -/// [illumos `tcp`]: https://illumos.org/man/4P/tcp -#[inline] -#[doc(alias = "TCP_NODELAY")] -pub fn set_tcp_nodelay(fd: Fd, nodelay: bool) -> io::Result<()> { - backend::net::syscalls::sockopt::set_tcp_nodelay(fd.as_fd(), nodelay) -} - -/// `getsockopt(fd, IPPROTO_TCP, TCP_NODELAY)` -/// -/// # References -/// - [POSIX `getsockopt`] -/// - [POSIX `netinet/tcp.h`] -/// - [Linux `getsockopt`] -/// - [Linux `tcp`] -/// - [Winsock2 `getsockopt`] -/// - [Winsock2 `IPPROTO_TCP` options] -/// - [Apple `getsockopt`] -/// - [Apple `tcp`] -/// - [FreeBSD `getsockopt`] -/// - [FreeBSD `tcp`] -/// - [NetBSD `getsockopt`] -/// - [NetBSD `tcp`] -/// - [OpenBSD `getsockopt`] -/// - [OpenBSD `tcp`] -/// - [DragonFly BSD `getsockopt`] -/// - [DragonFly BSD `tcp`] -/// - [illumos `getsockopt`] -/// - [illumos `tcp`] -/// -/// [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -/// [POSIX `netinet/tcp.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_tcp.h.html -/// [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html -/// [Linux `tcp`]: https://man7.org/linux/man-pages/man7/tcp.7.html -/// [Winsock2 `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt -/// [Winsock2 `IPPROTO_TCP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-tcp-socket-options -/// [Apple `getsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html -/// [Apple `tcp`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/tcp.4.auto.html -/// [FreeBSD `getsockopt`]: https://man.freebsd.org/cgi/man.cgi?query=getsockopt&sektion=2 -/// [FreeBSD `tcp`]: https://man.freebsd.org/cgi/man.cgi?query=tcp&sektion=4 -/// [NetBSD `getsockopt`]: https://man.netbsd.org/getsockopt.2 -/// [NetBSD `tcp`]: https://man.netbsd.org/tcp.4 -/// [OpenBSD `getsockopt`]: https://man.openbsd.org/getsockopt.2 -/// [OpenBSD `tcp`]: https://man.openbsd.org/tcp.4 -/// [DragonFly BSD `getsockopt`]: https://man.dragonflybsd.org/?command=getsockopt§ion=2 -/// [DragonFly BSD `tcp`]: https://man.dragonflybsd.org/?command=tcp§ion=4 -/// [illumos `getsockopt`]: https://illumos.org/man/3SOCKET/getsockopt -/// [illumos `tcp`]: https://illumos.org/man/4P/tcp -#[inline] -#[doc(alias = "TCP_NODELAY")] -pub fn get_tcp_nodelay(fd: Fd) -> io::Result { - backend::net::syscalls::sockopt::get_tcp_nodelay(fd.as_fd()) -} - -#[test] -fn test_sizes() { - use c::c_int; - - // Backend code needs to cast these to `c_int` so make sure that cast - // isn't lossy. - assert_eq_size!(Timeout, c_int); -} diff --git a/third_party/rust/rustix/src/net/types.rs b/third_party/rust/rustix/src/net/types.rs deleted file mode 100644 index 22414e022f93..000000000000 --- a/third_party/rust/rustix/src/net/types.rs +++ /dev/null @@ -1,1367 +0,0 @@ -//! Types and constants for `rustix::net`. - -use crate::backend::c; -use bitflags::bitflags; - -/// A type for holding raw integer socket types. -#[doc(hidden)] -pub type RawSocketType = u32; - -/// `SOCK_*` constants for use with [`socket`]. -/// -/// [`socket`]: crate::net::socket() -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(transparent)] -pub struct SocketType(pub(crate) RawSocketType); - -#[rustfmt::skip] -impl SocketType { - /// `SOCK_STREAM` - pub const STREAM: Self = Self(c::SOCK_STREAM as _); - - /// `SOCK_DGRAM` - pub const DGRAM: Self = Self(c::SOCK_DGRAM as _); - - /// `SOCK_SEQPACKET` - #[cfg(not(target_os = "espidf"))] - pub const SEQPACKET: Self = Self(c::SOCK_SEQPACKET as _); - - /// `SOCK_RAW` - #[cfg(not(target_os = "espidf"))] - pub const RAW: Self = Self(c::SOCK_RAW as _); - - /// `SOCK_RDM` - #[cfg(not(any(target_os = "espidf", target_os = "haiku")))] - pub const RDM: Self = Self(c::SOCK_RDM as _); - - /// Constructs a `SocketType` from a raw integer. - #[inline] - pub const fn from_raw(raw: RawSocketType) -> Self { - Self(raw) - } - - /// Returns the raw integer for this `SocketType`. - #[inline] - pub const fn as_raw(self) -> RawSocketType { - self.0 - } -} - -/// A type for holding raw integer address families. -#[doc(hidden)] -pub type RawAddressFamily = c::sa_family_t; - -/// `AF_*` constants for use with [`socket`], [`socket_with`], and -/// [`socketpair`]. -/// -/// [`socket`]: crate::net::socket() -/// [`socket_with`]: crate::net::socket_with -/// [`socketpair`]: crate::net::socketpair() -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(transparent)] -pub struct AddressFamily(pub(crate) RawAddressFamily); - -#[rustfmt::skip] -#[allow(non_upper_case_globals)] -impl AddressFamily { - /// `AF_UNSPEC` - pub const UNSPEC: Self = Self(c::AF_UNSPEC as _); - /// `AF_INET` - /// - /// # References - /// - [Linux] - /// - /// [Linux]: https://man7.org/linux/man-pages/man7/ip.7.html> - pub const INET: Self = Self(c::AF_INET as _); - /// `AF_INET6` - /// - /// # References - /// - [Linux] - /// - /// [Linux]: https://man7.org/linux/man-pages/man7/ipv6.7.html - pub const INET6: Self = Self(c::AF_INET6 as _); - /// `AF_NETLINK` - /// - /// # References - /// - [Linux] - /// - /// [Linux]: https://man7.org/linux/man-pages/man7/netlink.7.html - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const NETLINK: Self = Self(c::AF_NETLINK as _); - /// `AF_UNIX`, aka `AF_LOCAL` - #[doc(alias = "LOCAL")] - pub const UNIX: Self = Self(c::AF_UNIX as _); - /// `AF_AX25` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const AX25: Self = Self(c::AF_AX25 as _); - /// `AF_IPX` - #[cfg(not(any( - target_os = "espidf", - target_os = "aix", - )))] - pub const IPX: Self = Self(c::AF_IPX as _); - /// `AF_APPLETALK` - #[cfg(not(target_os = "espidf"))] - pub const APPLETALK: Self = Self(c::AF_APPLETALK as _); - /// `AF_NETROM` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const NETROM: Self = Self(c::AF_NETROM as _); - /// `AF_BRIDGE` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const BRIDGE: Self = Self(c::AF_BRIDGE as _); - /// `AF_ATMPVC` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const ATMPVC: Self = Self(c::AF_ATMPVC as _); - /// `AF_X25` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const X25: Self = Self(c::AF_X25 as _); - /// `AF_ROSE` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const ROSE: Self = Self(c::AF_ROSE as _); - /// `AF_DECnet` - #[cfg(not(any(target_os = "espidf", target_os = "haiku")))] - pub const DECnet: Self = Self(c::AF_DECnet as _); - /// `AF_NETBEUI` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const NETBEUI: Self = Self(c::AF_NETBEUI as _); - /// `AF_SECURITY` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const SECURITY: Self = Self(c::AF_SECURITY as _); - /// `AF_KEY` - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const KEY: Self = Self(c::AF_KEY as _); - /// `AF_PACKET` - /// - /// # References - /// - [Linux] - /// - /// [Linux]: https://man7.org/linux/man-pages/man7/packet.7.html - #[cfg(not(any( - bsd, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const PACKET: Self = Self(c::AF_PACKET as _); - /// `AF_ASH` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const ASH: Self = Self(c::AF_ASH as _); - /// `AF_ECONET` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const ECONET: Self = Self(c::AF_ECONET as _); - /// `AF_ATMSVC` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const ATMSVC: Self = Self(c::AF_ATMSVC as _); - /// `AF_RDS` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const RDS: Self = Self(c::AF_RDS as _); - /// `AF_SNA` - #[cfg(not(any(target_os = "espidf", target_os = "haiku")))] - pub const SNA: Self = Self(c::AF_SNA as _); - /// `AF_IRDA` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const IRDA: Self = Self(c::AF_IRDA as _); - /// `AF_PPPOX` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const PPPOX: Self = Self(c::AF_PPPOX as _); - /// `AF_WANPIPE` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const WANPIPE: Self = Self(c::AF_WANPIPE as _); - /// `AF_LLC` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const LLC: Self = Self(c::AF_LLC as _); - /// `AF_CAN` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const CAN: Self = Self(c::AF_CAN as _); - /// `AF_TIPC` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const TIPC: Self = Self(c::AF_TIPC as _); - /// `AF_BLUETOOTH` - #[cfg(not(any( - apple, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - )))] - pub const BLUETOOTH: Self = Self(c::AF_BLUETOOTH as _); - /// `AF_IUCV` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const IUCV: Self = Self(c::AF_IUCV as _); - /// `AF_RXRPC` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const RXRPC: Self = Self(c::AF_RXRPC as _); - /// `AF_ISDN` - #[cfg(not(any( - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - )))] - pub const ISDN: Self = Self(c::AF_ISDN as _); - /// `AF_PHONET` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const PHONET: Self = Self(c::AF_PHONET as _); - /// `AF_IEEE802154` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const IEEE802154: Self = Self(c::AF_IEEE802154 as _); - /// `AF_802` - #[cfg(solarish)] - pub const EIGHT_ZERO_TWO: Self = Self(c::AF_802 as _); - #[cfg(target_os = "fuchsia")] - /// `AF_ALG` - pub const ALG: Self = Self(c::AF_ALG as _); - #[cfg(any(target_os = "freebsd", target_os = "netbsd", target_os = "nto"))] - /// `AF_ARP` - pub const ARP: Self = Self(c::AF_ARP as _); - /// `AF_ATM` - #[cfg(freebsdlike)] - pub const ATM: Self = Self(c::AF_ATM as _); - /// `AF_CAIF` - #[cfg(any(target_os = "android", target_os = "emscripten", target_os = "fuchsia"))] - pub const CAIF: Self = Self(c::AF_CAIF as _); - /// `AF_CCITT` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const CCITT: Self = Self(c::AF_CCITT as _); - /// `AF_CHAOS` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const CHAOS: Self = Self(c::AF_CHAOS as _); - /// `AF_CNT` - #[cfg(any(bsd, target_os = "nto"))] - pub const CNT: Self = Self(c::AF_CNT as _); - /// `AF_COIP` - #[cfg(any(bsd, target_os = "nto"))] - pub const COIP: Self = Self(c::AF_COIP as _); - /// `AF_DATAKIT` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const DATAKIT: Self = Self(c::AF_DATAKIT as _); - /// `AF_DLI` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "haiku", target_os = "nto"))] - pub const DLI: Self = Self(c::AF_DLI as _); - /// `AF_E164` - #[cfg(any(bsd, target_os = "nto"))] - pub const E164: Self = Self(c::AF_E164 as _); - /// `AF_ECMA` - #[cfg(any(apple, freebsdlike, solarish, target_os = "aix", target_os = "nto", target_os = "openbsd"))] - pub const ECMA: Self = Self(c::AF_ECMA as _); - /// `AF_ENCAP` - #[cfg(target_os = "openbsd")] - pub const ENCAP: Self = Self(c::AF_ENCAP as _); - /// `AF_FILE` - #[cfg(solarish)] - pub const FILE: Self = Self(c::AF_FILE as _); - /// `AF_GOSIP` - #[cfg(solarish)] - pub const GOSIP: Self = Self(c::AF_GOSIP as _); - /// `AF_HYLINK` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const HYLINK: Self = Self(c::AF_HYLINK as _); - /// `AF_IB` - #[cfg(any(target_os = "emscripten", target_os = "fuchsia"))] - pub const IB: Self = Self(c::AF_IB as _); - /// `AF_IMPLINK` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const IMPLINK: Self = Self(c::AF_IMPLINK as _); - /// `AF_IEEE80211` - #[cfg(any(apple, freebsdlike, target_os = "netbsd"))] - pub const IEEE80211: Self = Self(c::AF_IEEE80211 as _); - /// `AF_INET6_SDP` - #[cfg(target_os = "freebsd")] - pub const INET6_SDP: Self = Self(c::AF_INET6_SDP as _); - /// `AF_INET_OFFLOAD` - #[cfg(solarish)] - pub const INET_OFFLOAD: Self = Self(c::AF_INET_OFFLOAD as _); - /// `AF_INET_SDP` - #[cfg(target_os = "freebsd")] - pub const INET_SDP: Self = Self(c::AF_INET_SDP as _); - /// `AF_INTF` - #[cfg(target_os = "aix")] - pub const INTF: Self = Self(c::AF_INTF as _); - /// `AF_ISO` - #[cfg(any(bsd, target_os = "aix", target_os = "nto"))] - pub const ISO: Self = Self(c::AF_ISO as _); - /// `AF_LAT` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const LAT: Self = Self(c::AF_LAT as _); - /// `AF_LINK` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "haiku", target_os = "nto"))] - pub const LINK: Self = Self(c::AF_LINK as _); - /// `AF_MPLS` - #[cfg(any(netbsdlike, target_os = "dragonfly", target_os = "emscripten", target_os = "fuchsia"))] - pub const MPLS: Self = Self(c::AF_MPLS as _); - /// `AF_NATM` - #[cfg(any(bsd, target_os = "nto"))] - pub const NATM: Self = Self(c::AF_NATM as _); - /// `AF_NBS` - #[cfg(solarish)] - pub const NBS: Self = Self(c::AF_NBS as _); - /// `AF_NCA` - #[cfg(solarish)] - pub const NCA: Self = Self(c::AF_NCA as _); - /// `AF_NDD` - #[cfg(target_os = "aix")] - pub const NDD: Self = Self(c::AF_NDD as _); - /// `AF_NDRV` - #[cfg(apple)] - pub const NDRV: Self = Self(c::AF_NDRV as _); - /// `AF_NETBIOS` - #[cfg(any(apple, freebsdlike))] - pub const NETBIOS: Self = Self(c::AF_NETBIOS as _); - /// `AF_NETGRAPH` - #[cfg(freebsdlike)] - pub const NETGRAPH: Self = Self(c::AF_NETGRAPH as _); - /// `AF_NIT` - #[cfg(solarish)] - pub const NIT: Self = Self(c::AF_NIT as _); - /// `AF_NOTIFY` - #[cfg(target_os = "haiku")] - pub const NOTIFY: Self = Self(c::AF_NOTIFY as _); - /// `AF_NFC` - #[cfg(any(target_os = "emscripten", target_os = "fuchsia"))] - pub const NFC: Self = Self(c::AF_NFC as _); - /// `AF_NS` - #[cfg(any(apple, solarish, netbsdlike, target_os = "aix", target_os = "nto"))] - pub const NS: Self = Self(c::AF_NS as _); - /// `AF_OROUTE` - #[cfg(target_os = "netbsd")] - pub const OROUTE: Self = Self(c::AF_OROUTE as _); - /// `AF_OSI` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const OSI: Self = Self(c::AF_OSI as _); - /// `AF_OSINET` - #[cfg(solarish)] - pub const OSINET: Self = Self(c::AF_OSINET as _); - /// `AF_POLICY` - #[cfg(solarish)] - pub const POLICY: Self = Self(c::AF_POLICY as _); - /// `AF_PPP` - #[cfg(apple)] - pub const PPP: Self = Self(c::AF_PPP as _); - /// `AF_PUP` - #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] - pub const PUP: Self = Self(c::AF_PUP as _); - /// `AF_RIF` - #[cfg(target_os = "aix")] - pub const RIF: Self = Self(c::AF_RIF as _); - /// `AF_ROUTE` - #[cfg(any(bsd, solarish, target_os = "android", target_os = "emscripten", target_os = "fuchsia", target_os = "haiku", target_os = "nto"))] - pub const ROUTE: Self = Self(c::AF_ROUTE as _); - /// `AF_SCLUSTER` - #[cfg(target_os = "freebsd")] - pub const SCLUSTER: Self = Self(c::AF_SCLUSTER as _); - /// `AF_SIP` - #[cfg(any(apple, target_os = "freebsd", target_os = "openbsd"))] - pub const SIP: Self = Self(c::AF_SIP as _); - /// `AF_SLOW` - #[cfg(target_os = "freebsd")] - pub const SLOW: Self = Self(c::AF_SLOW as _); - /// `AF_SYS_CONTROL` - #[cfg(apple)] - pub const SYS_CONTROL: Self = Self(c::AF_SYS_CONTROL as _); - /// `AF_SYSTEM` - #[cfg(apple)] - pub const SYSTEM: Self = Self(c::AF_SYSTEM as _); - /// `AF_TRILL` - #[cfg(solarish)] - pub const TRILL: Self = Self(c::AF_TRILL as _); - /// `AF_UTUN` - #[cfg(apple)] - pub const UTUN: Self = Self(c::AF_UTUN as _); - /// `AF_VSOCK` - #[cfg(any(apple, target_os = "emscripten", target_os = "fuchsia"))] - pub const VSOCK: Self = Self(c::AF_VSOCK as _); - - /// Constructs a `AddressFamily` from a raw integer. - #[inline] - pub const fn from_raw(raw: RawAddressFamily) -> Self { - Self(raw) - } - - /// Returns the raw integer for this `AddressFamily`. - #[inline] - pub const fn as_raw(self) -> RawAddressFamily { - self.0 - } -} - -/// A type for holding raw integer protocols. -#[doc(hidden)] -pub type RawProtocol = core::num::NonZeroU32; - -const fn new_raw_protocol(u: u32) -> RawProtocol { - match RawProtocol::new(u) { - Some(p) => p, - None => panic!("new_raw_protocol: protocol must be non-zero"), - } -} - -/// `IPPROTO_*` and other constants for use with [`socket`], [`socket_with`], -/// and [`socketpair`] when a nondefault value is desired. See the [`ipproto`], -/// [`sysproto`], and [`netlink`] modules for possible values. -/// -/// For the default values, such as `IPPROTO_IP` or `NETLINK_ROUTE`, pass -/// `None` as the `protocol` argument in these functions. -/// -/// [`socket`]: crate::net::socket() -/// [`socket_with`]: crate::net::socket_with -/// [`socketpair`]: crate::net::socketpair() -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(transparent)] -#[doc(alias = "IPPROTO_IP")] -#[doc(alias = "NETLINK_ROUTE")] -pub struct Protocol(pub(crate) RawProtocol); - -/// `IPPROTO_*` constants. -/// -/// For `IPPROTO_IP`, pass `None` as the `protocol` argument. -pub mod ipproto { - use super::{new_raw_protocol, Protocol}; - use crate::backend::c; - - /// `IPPROTO_ICMP` - pub const ICMP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_ICMP as _)); - /// `IPPROTO_IGMP` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const IGMP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_IGMP as _)); - /// `IPPROTO_IPIP` - #[cfg(not(any(solarish, windows, target_os = "espidf", target_os = "haiku")))] - pub const IPIP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_IPIP as _)); - /// `IPPROTO_TCP` - pub const TCP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_TCP as _)); - /// `IPPROTO_EGP` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const EGP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_EGP as _)); - /// `IPPROTO_PUP` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const PUP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_PUP as _)); - /// `IPPROTO_UDP` - pub const UDP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_UDP as _)); - /// `IPPROTO_IDP` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const IDP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_IDP as _)); - /// `IPPROTO_TP` - #[cfg(not(any(solarish, windows, target_os = "espidf", target_os = "haiku")))] - pub const TP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_TP as _)); - /// `IPPROTO_DCCP` - #[cfg(not(any( - apple, - solarish, - windows, - target_os = "aix", - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - target_os = "openbsd", - )))] - pub const DCCP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_DCCP as _)); - /// `IPPROTO_IPV6` - pub const IPV6: Protocol = Protocol(new_raw_protocol(c::IPPROTO_IPV6 as _)); - /// `IPPROTO_RSVP` - #[cfg(not(any(solarish, windows, target_os = "espidf", target_os = "haiku")))] - pub const RSVP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_RSVP as _)); - /// `IPPROTO_GRE` - #[cfg(not(any(solarish, windows, target_os = "espidf", target_os = "haiku")))] - pub const GRE: Protocol = Protocol(new_raw_protocol(c::IPPROTO_GRE as _)); - /// `IPPROTO_ESP` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const ESP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_ESP as _)); - /// `IPPROTO_AH` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const AH: Protocol = Protocol(new_raw_protocol(c::IPPROTO_AH as _)); - /// `IPPROTO_MTP` - #[cfg(not(any( - solarish, - netbsdlike, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const MTP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_MTP as _)); - /// `IPPROTO_BEETPH` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - )))] - pub const BEETPH: Protocol = Protocol(new_raw_protocol(c::IPPROTO_BEETPH as _)); - /// `IPPROTO_ENCAP` - #[cfg(not(any( - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - )))] - pub const ENCAP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_ENCAP as _)); - /// `IPPROTO_PIM` - #[cfg(not(any(solarish, target_os = "aix", target_os = "espidf", target_os = "haiku")))] - pub const PIM: Protocol = Protocol(new_raw_protocol(c::IPPROTO_PIM as _)); - /// `IPPROTO_COMP` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" - )))] - pub const COMP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_COMP as _)); - /// `IPPROTO_SCTP` - #[cfg(not(any( - solarish, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "openbsd" - )))] - pub const SCTP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_SCTP as _)); - /// `IPPROTO_UDPLITE` - #[cfg(not(any( - apple, - netbsdlike, - solarish, - windows, - target_os = "aix", - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const UDPLITE: Protocol = Protocol(new_raw_protocol(c::IPPROTO_UDPLITE as _)); - /// `IPPROTO_MPLS` - #[cfg(not(any( - apple, - solarish, - windows, - target_os = "aix", - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "netbsd", - target_os = "nto", - )))] - pub const MPLS: Protocol = Protocol(new_raw_protocol(c::IPPROTO_MPLS as _)); - /// `IPPROTO_ETHERNET` - #[cfg(linux_kernel)] - pub const ETHERNET: Protocol = Protocol(new_raw_protocol(c::IPPROTO_ETHERNET as _)); - /// `IPPROTO_RAW` - #[cfg(not(target_os = "espidf"))] - pub const RAW: Protocol = Protocol(new_raw_protocol(c::IPPROTO_RAW as _)); - /// `IPPROTO_MPTCP` - #[cfg(not(any( - bsd, - solarish, - windows, - target_os = "aix", - target_os = "emscripten", - target_os = "espidf", - target_os = "fuchsia", - target_os = "haiku", - target_os = "nto", - )))] - pub const MPTCP: Protocol = Protocol(new_raw_protocol(c::IPPROTO_MPTCP as _)); - /// `IPPROTO_FRAGMENT` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const FRAGMENT: Protocol = Protocol(new_raw_protocol(c::IPPROTO_FRAGMENT as _)); - /// `IPPROTO_ICMPV6` - pub const ICMPV6: Protocol = Protocol(new_raw_protocol(c::IPPROTO_ICMPV6 as _)); - /// `IPPROTO_MH` - #[cfg(not(any( - apple, - netbsdlike, - solarish, - windows, - target_os = "dragonfly", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - pub const MH: Protocol = Protocol(new_raw_protocol(c::IPPROTO_MH as _)); - /// `IPPROTO_ROUTING` - #[cfg(not(any(solarish, target_os = "espidf", target_os = "haiku")))] - pub const ROUTING: Protocol = Protocol(new_raw_protocol(c::IPPROTO_ROUTING as _)); -} - -/// `SYSPROTO_*` constants. -pub mod sysproto { - #[cfg(apple)] - use { - super::{new_raw_protocol, Protocol}, - crate::backend::c, - }; - - /// `SYSPROTO_EVENT` - #[cfg(apple)] - pub const EVENT: Protocol = Protocol(new_raw_protocol(c::SYSPROTO_EVENT as _)); - - /// `SYSPROTO_CONTROL` - #[cfg(apple)] - pub const CONTROL: Protocol = Protocol(new_raw_protocol(c::SYSPROTO_CONTROL as _)); -} - -/// `NETLINK_*` constants. -/// -/// For `NETLINK_ROUTE`, pass `None` as the `protocol` argument. -pub mod netlink { - #[cfg(linux_kernel)] - use { - super::{new_raw_protocol, Protocol}, - crate::backend::c, - }; - - /// `NETLINK_UNUSED` - #[cfg(linux_kernel)] - pub const UNUSED: Protocol = Protocol(new_raw_protocol(c::NETLINK_UNUSED as _)); - /// `NETLINK_USERSOCK` - #[cfg(linux_kernel)] - pub const USERSOCK: Protocol = Protocol(new_raw_protocol(c::NETLINK_USERSOCK as _)); - /// `NETLINK_FIREWALL` - #[cfg(linux_kernel)] - pub const FIREWALL: Protocol = Protocol(new_raw_protocol(c::NETLINK_FIREWALL as _)); - /// `NETLINK_SOCK_DIAG` - #[cfg(linux_kernel)] - pub const SOCK_DIAG: Protocol = Protocol(new_raw_protocol(c::NETLINK_SOCK_DIAG as _)); - /// `NETLINK_NFLOG` - #[cfg(linux_kernel)] - pub const NFLOG: Protocol = Protocol(new_raw_protocol(c::NETLINK_NFLOG as _)); - /// `NETLINK_XFRM` - #[cfg(linux_kernel)] - pub const XFRM: Protocol = Protocol(new_raw_protocol(c::NETLINK_XFRM as _)); - /// `NETLINK_SELINUX` - #[cfg(linux_kernel)] - pub const SELINUX: Protocol = Protocol(new_raw_protocol(c::NETLINK_SELINUX as _)); - /// `NETLINK_ISCSI` - #[cfg(linux_kernel)] - pub const ISCSI: Protocol = Protocol(new_raw_protocol(c::NETLINK_ISCSI as _)); - /// `NETLINK_AUDIT` - #[cfg(linux_kernel)] - pub const AUDIT: Protocol = Protocol(new_raw_protocol(c::NETLINK_AUDIT as _)); - /// `NETLINK_FIB_LOOKUP` - #[cfg(linux_kernel)] - pub const FIB_LOOKUP: Protocol = Protocol(new_raw_protocol(c::NETLINK_FIB_LOOKUP as _)); - /// `NETLINK_CONNECTOR` - #[cfg(linux_kernel)] - pub const CONNECTOR: Protocol = Protocol(new_raw_protocol(c::NETLINK_CONNECTOR as _)); - /// `NETLINK_NETFILTER` - #[cfg(linux_kernel)] - pub const NETFILTER: Protocol = Protocol(new_raw_protocol(c::NETLINK_NETFILTER as _)); - /// `NETLINK_IP6_FW` - #[cfg(linux_kernel)] - pub const IP6_FW: Protocol = Protocol(new_raw_protocol(c::NETLINK_IP6_FW as _)); - /// `NETLINK_DNRTMSG` - #[cfg(linux_kernel)] - pub const DNRTMSG: Protocol = Protocol(new_raw_protocol(c::NETLINK_DNRTMSG as _)); - /// `NETLINK_KOBJECT_UEVENT` - #[cfg(linux_kernel)] - pub const KOBJECT_UEVENT: Protocol = Protocol(new_raw_protocol(c::NETLINK_KOBJECT_UEVENT as _)); - /// `NETLINK_GENERIC` - // This is defined on FreeBSD too, but it has the value 0, so it doesn't - // fit in or `NonZeroU32`. It's unclear whether FreeBSD intends - // `NETLINK_GENERIC` to be the default when Linux has `NETLINK_ROUTE` - // as the default. - #[cfg(linux_kernel)] - pub const GENERIC: Protocol = Protocol(new_raw_protocol(c::NETLINK_GENERIC as _)); - /// `NETLINK_SCSITRANSPORT` - #[cfg(linux_kernel)] - pub const SCSITRANSPORT: Protocol = Protocol(new_raw_protocol(c::NETLINK_SCSITRANSPORT as _)); - /// `NETLINK_ECRYPTFS` - #[cfg(linux_kernel)] - pub const ECRYPTFS: Protocol = Protocol(new_raw_protocol(c::NETLINK_ECRYPTFS as _)); - /// `NETLINK_RDMA` - #[cfg(linux_kernel)] - pub const RDMA: Protocol = Protocol(new_raw_protocol(c::NETLINK_RDMA as _)); - /// `NETLINK_CRYPTO` - #[cfg(linux_kernel)] - pub const CRYPTO: Protocol = Protocol(new_raw_protocol(c::NETLINK_CRYPTO as _)); - /// `NETLINK_INET_DIAG` - #[cfg(linux_kernel)] - pub const INET_DIAG: Protocol = Protocol(new_raw_protocol(c::NETLINK_INET_DIAG as _)); - /// `NETLINK_ADD_MEMBERSHIP` - #[cfg(linux_kernel)] - pub const ADD_MEMBERSHIP: Protocol = Protocol(new_raw_protocol(c::NETLINK_ADD_MEMBERSHIP as _)); - /// `NETLINK_DROP_MEMBERSHIP` - #[cfg(linux_kernel)] - pub const DROP_MEMBERSHIP: Protocol = - Protocol(new_raw_protocol(c::NETLINK_DROP_MEMBERSHIP as _)); - /// `NETLINK_PKTINFO` - #[cfg(linux_kernel)] - pub const PKTINFO: Protocol = Protocol(new_raw_protocol(c::NETLINK_PKTINFO as _)); - /// `NETLINK_BROADCAST_ERROR` - #[cfg(linux_kernel)] - pub const BROADCAST_ERROR: Protocol = - Protocol(new_raw_protocol(c::NETLINK_BROADCAST_ERROR as _)); - /// `NETLINK_NO_ENOBUFS` - #[cfg(linux_kernel)] - pub const NO_ENOBUFS: Protocol = Protocol(new_raw_protocol(c::NETLINK_NO_ENOBUFS as _)); - /// `NETLINK_RX_RING` - #[cfg(linux_kernel)] - pub const RX_RING: Protocol = Protocol(new_raw_protocol(c::NETLINK_RX_RING as _)); - /// `NETLINK_TX_RING` - #[cfg(linux_kernel)] - pub const TX_RING: Protocol = Protocol(new_raw_protocol(c::NETLINK_TX_RING as _)); - /// `NETLINK_LISTEN_ALL_NSID` - #[cfg(linux_kernel)] - pub const LISTEN_ALL_NSID: Protocol = - Protocol(new_raw_protocol(c::NETLINK_LISTEN_ALL_NSID as _)); - /// `NETLINK_LIST_MEMBERSHIPS` - #[cfg(linux_kernel)] - pub const LIST_MEMBERSHIPS: Protocol = - Protocol(new_raw_protocol(c::NETLINK_LIST_MEMBERSHIPS as _)); - /// `NETLINK_CAP_ACK` - #[cfg(linux_kernel)] - pub const CAP_ACK: Protocol = Protocol(new_raw_protocol(c::NETLINK_CAP_ACK as _)); - /// `NETLINK_EXT_ACK` - #[cfg(linux_kernel)] - pub const EXT_ACK: Protocol = Protocol(new_raw_protocol(c::NETLINK_EXT_ACK as _)); - /// `NETLINK_GET_STRICT_CHK` - #[cfg(linux_kernel)] - pub const GET_STRICT_CHK: Protocol = Protocol(new_raw_protocol(c::NETLINK_GET_STRICT_CHK as _)); -} - -/// `ETH_P_*` constants. -// These are translated into 16-bit big-endian form because that's what the -// [`AddressFamily::PACKET`] address family [expects]. -// -// [expects]: https://man7.org/linux/man-pages/man7/packet.7.html -pub mod eth { - #[cfg(linux_kernel)] - use { - super::{new_raw_protocol, Protocol}, - crate::backend::c, - }; - - /// `ETH_P_LOOP` - #[cfg(linux_kernel)] - pub const LOOP: Protocol = Protocol(new_raw_protocol((c::ETH_P_LOOP as u16).to_be() as u32)); - /// `ETH_P_PUP` - #[cfg(linux_kernel)] - pub const PUP: Protocol = Protocol(new_raw_protocol((c::ETH_P_PUP as u16).to_be() as u32)); - /// `ETH_P_PUPAT` - #[cfg(linux_kernel)] - pub const PUPAT: Protocol = Protocol(new_raw_protocol((c::ETH_P_PUPAT as u16).to_be() as u32)); - /// `ETH_P_TSN` - #[cfg(linux_kernel)] - pub const TSN: Protocol = Protocol(new_raw_protocol((c::ETH_P_TSN as u16).to_be() as u32)); - /// `ETH_P_ERSPAN2` - #[cfg(linux_kernel)] - pub const ERSPAN2: Protocol = - Protocol(new_raw_protocol((c::ETH_P_ERSPAN2 as u16).to_be() as u32)); - /// `ETH_P_IP` - #[cfg(linux_kernel)] - pub const IP: Protocol = Protocol(new_raw_protocol((c::ETH_P_IP as u16).to_be() as u32)); - /// `ETH_P_X25` - #[cfg(linux_kernel)] - pub const X25: Protocol = Protocol(new_raw_protocol((c::ETH_P_X25 as u16).to_be() as u32)); - /// `ETH_P_ARP` - #[cfg(linux_kernel)] - pub const ARP: Protocol = Protocol(new_raw_protocol((c::ETH_P_ARP as u16).to_be() as u32)); - /// `ETH_P_BPQ` - #[cfg(linux_kernel)] - pub const BPQ: Protocol = Protocol(new_raw_protocol((c::ETH_P_BPQ as u16).to_be() as u32)); - /// `ETH_P_IEEEPUP` - #[cfg(linux_kernel)] - pub const IEEEPUP: Protocol = - Protocol(new_raw_protocol((c::ETH_P_IEEEPUP as u16).to_be() as u32)); - /// `ETH_P_IEEEPUPAT` - #[cfg(linux_kernel)] - pub const IEEEPUPAT: Protocol = - Protocol(new_raw_protocol((c::ETH_P_IEEEPUPAT as u16).to_be() as u32)); - /// `ETH_P_BATMAN` - #[cfg(linux_kernel)] - pub const BATMAN: Protocol = - Protocol(new_raw_protocol((c::ETH_P_BATMAN as u16).to_be() as u32)); - /// `ETH_P_DEC` - #[cfg(linux_kernel)] - pub const DEC: Protocol = Protocol(new_raw_protocol((c::ETH_P_DEC as u16).to_be() as u32)); - /// `ETH_P_DNA_DL` - #[cfg(linux_kernel)] - pub const DNA_DL: Protocol = - Protocol(new_raw_protocol((c::ETH_P_DNA_DL as u16).to_be() as u32)); - /// `ETH_P_DNA_RC` - #[cfg(linux_kernel)] - pub const DNA_RC: Protocol = - Protocol(new_raw_protocol((c::ETH_P_DNA_RC as u16).to_be() as u32)); - /// `ETH_P_DNA_RT` - #[cfg(linux_kernel)] - pub const DNA_RT: Protocol = - Protocol(new_raw_protocol((c::ETH_P_DNA_RT as u16).to_be() as u32)); - /// `ETH_P_LAT` - #[cfg(linux_kernel)] - pub const LAT: Protocol = Protocol(new_raw_protocol((c::ETH_P_LAT as u16).to_be() as u32)); - /// `ETH_P_DIAG` - #[cfg(linux_kernel)] - pub const DIAG: Protocol = Protocol(new_raw_protocol((c::ETH_P_DIAG as u16).to_be() as u32)); - /// `ETH_P_CUST` - #[cfg(linux_kernel)] - pub const CUST: Protocol = Protocol(new_raw_protocol((c::ETH_P_CUST as u16).to_be() as u32)); - /// `ETH_P_SCA` - #[cfg(linux_kernel)] - pub const SCA: Protocol = Protocol(new_raw_protocol((c::ETH_P_SCA as u16).to_be() as u32)); - /// `ETH_P_TEB` - #[cfg(linux_kernel)] - pub const TEB: Protocol = Protocol(new_raw_protocol((c::ETH_P_TEB as u16).to_be() as u32)); - /// `ETH_P_RARP` - #[cfg(linux_kernel)] - pub const RARP: Protocol = Protocol(new_raw_protocol((c::ETH_P_RARP as u16).to_be() as u32)); - /// `ETH_P_ATALK` - #[cfg(linux_kernel)] - pub const ATALK: Protocol = Protocol(new_raw_protocol((c::ETH_P_ATALK as u16).to_be() as u32)); - /// `ETH_P_AARP` - #[cfg(linux_kernel)] - pub const AARP: Protocol = Protocol(new_raw_protocol((c::ETH_P_AARP as u16).to_be() as u32)); - /// `ETH_P_8021Q` - #[cfg(linux_kernel)] - pub const P_8021Q: Protocol = - Protocol(new_raw_protocol((c::ETH_P_8021Q as u16).to_be() as u32)); - /// `ETH_P_ERSPAN` - #[cfg(linux_kernel)] - pub const ERSPAN: Protocol = - Protocol(new_raw_protocol((c::ETH_P_ERSPAN as u16).to_be() as u32)); - /// `ETH_P_IPX` - #[cfg(linux_kernel)] - pub const IPX: Protocol = Protocol(new_raw_protocol((c::ETH_P_IPX as u16).to_be() as u32)); - /// `ETH_P_IPV6` - #[cfg(linux_kernel)] - pub const IPV6: Protocol = Protocol(new_raw_protocol((c::ETH_P_IPV6 as u16).to_be() as u32)); - /// `ETH_P_PAUSE` - #[cfg(linux_kernel)] - pub const PAUSE: Protocol = Protocol(new_raw_protocol((c::ETH_P_PAUSE as u16).to_be() as u32)); - /// `ETH_P_SLOW` - #[cfg(linux_kernel)] - pub const SLOW: Protocol = Protocol(new_raw_protocol((c::ETH_P_SLOW as u16).to_be() as u32)); - /// `ETH_P_WCCP` - #[cfg(linux_kernel)] - pub const WCCP: Protocol = Protocol(new_raw_protocol((c::ETH_P_WCCP as u16).to_be() as u32)); - /// `ETH_P_MPLS_UC` - #[cfg(linux_kernel)] - pub const MPLS_UC: Protocol = - Protocol(new_raw_protocol((c::ETH_P_MPLS_UC as u16).to_be() as u32)); - /// `ETH_P_MPLS_MC` - #[cfg(linux_kernel)] - pub const MPLS_MC: Protocol = - Protocol(new_raw_protocol((c::ETH_P_MPLS_MC as u16).to_be() as u32)); - /// `ETH_P_ATMMPOA` - #[cfg(linux_kernel)] - pub const ATMMPOA: Protocol = - Protocol(new_raw_protocol((c::ETH_P_ATMMPOA as u16).to_be() as u32)); - /// `ETH_P_PPP_DISC` - #[cfg(linux_kernel)] - pub const PPP_DISC: Protocol = - Protocol(new_raw_protocol((c::ETH_P_PPP_DISC as u16).to_be() as u32)); - /// `ETH_P_PPP_SES` - #[cfg(linux_kernel)] - pub const PPP_SES: Protocol = - Protocol(new_raw_protocol((c::ETH_P_PPP_SES as u16).to_be() as u32)); - /// `ETH_P_LINK_CTL` - #[cfg(linux_kernel)] - pub const LINK_CTL: Protocol = - Protocol(new_raw_protocol((c::ETH_P_LINK_CTL as u16).to_be() as u32)); - /// `ETH_P_ATMFATE` - #[cfg(linux_kernel)] - pub const ATMFATE: Protocol = - Protocol(new_raw_protocol((c::ETH_P_ATMFATE as u16).to_be() as u32)); - /// `ETH_P_PAE` - #[cfg(linux_kernel)] - pub const PAE: Protocol = Protocol(new_raw_protocol((c::ETH_P_PAE as u16).to_be() as u32)); - /// `ETH_P_PROFINET` - #[cfg(linux_kernel)] - pub const PROFINET: Protocol = - Protocol(new_raw_protocol((c::ETH_P_PROFINET as u16).to_be() as u32)); - /// `ETH_P_REALTEK` - #[cfg(linux_kernel)] - pub const REALTEK: Protocol = - Protocol(new_raw_protocol((c::ETH_P_REALTEK as u16).to_be() as u32)); - /// `ETH_P_AOE` - #[cfg(linux_kernel)] - pub const AOE: Protocol = Protocol(new_raw_protocol((c::ETH_P_AOE as u16).to_be() as u32)); - /// `ETH_P_ETHERCAT` - #[cfg(linux_kernel)] - pub const ETHERCAT: Protocol = - Protocol(new_raw_protocol((c::ETH_P_ETHERCAT as u16).to_be() as u32)); - /// `ETH_P_8021AD` - #[cfg(linux_kernel)] - pub const P_8021AD: Protocol = - Protocol(new_raw_protocol((c::ETH_P_8021AD as u16).to_be() as u32)); - /// `ETH_P_802_EX1` - #[cfg(linux_kernel)] - pub const P_802_EX1: Protocol = - Protocol(new_raw_protocol((c::ETH_P_802_EX1 as u16).to_be() as u32)); - /// `ETH_P_PREAUTH` - #[cfg(linux_kernel)] - pub const PREAUTH: Protocol = - Protocol(new_raw_protocol((c::ETH_P_PREAUTH as u16).to_be() as u32)); - /// `ETH_P_TIPC` - #[cfg(linux_kernel)] - pub const TIPC: Protocol = Protocol(new_raw_protocol((c::ETH_P_TIPC as u16).to_be() as u32)); - /// `ETH_P_LLDP` - #[cfg(linux_kernel)] - pub const LLDP: Protocol = Protocol(new_raw_protocol((c::ETH_P_LLDP as u16).to_be() as u32)); - /// `ETH_P_MRP` - #[cfg(linux_kernel)] - pub const MRP: Protocol = Protocol(new_raw_protocol((c::ETH_P_MRP as u16).to_be() as u32)); - /// `ETH_P_MACSEC` - #[cfg(linux_kernel)] - pub const MACSEC: Protocol = - Protocol(new_raw_protocol((c::ETH_P_MACSEC as u16).to_be() as u32)); - /// `ETH_P_8021AH` - #[cfg(linux_kernel)] - pub const P_8021AH: Protocol = - Protocol(new_raw_protocol((c::ETH_P_8021AH as u16).to_be() as u32)); - /// `ETH_P_MVRP` - #[cfg(linux_kernel)] - pub const MVRP: Protocol = Protocol(new_raw_protocol((c::ETH_P_MVRP as u16).to_be() as u32)); - /// `ETH_P_1588` - #[cfg(linux_kernel)] - pub const P_1588: Protocol = Protocol(new_raw_protocol((c::ETH_P_1588 as u16).to_be() as u32)); - /// `ETH_P_NCSI` - #[cfg(linux_kernel)] - pub const NCSI: Protocol = Protocol(new_raw_protocol((c::ETH_P_NCSI as u16).to_be() as u32)); - /// `ETH_P_PRP` - #[cfg(linux_kernel)] - pub const PRP: Protocol = Protocol(new_raw_protocol((c::ETH_P_PRP as u16).to_be() as u32)); - /// `ETH_P_CFM` - #[cfg(linux_kernel)] - pub const CFM: Protocol = Protocol(new_raw_protocol((c::ETH_P_CFM as u16).to_be() as u32)); - /// `ETH_P_FCOE` - #[cfg(linux_kernel)] - pub const FCOE: Protocol = Protocol(new_raw_protocol((c::ETH_P_FCOE as u16).to_be() as u32)); - /// `ETH_P_IBOE` - #[cfg(linux_kernel)] - pub const IBOE: Protocol = Protocol(new_raw_protocol((c::ETH_P_IBOE as u16).to_be() as u32)); - /// `ETH_P_TDLS` - #[cfg(linux_kernel)] - pub const TDLS: Protocol = Protocol(new_raw_protocol((c::ETH_P_TDLS as u16).to_be() as u32)); - /// `ETH_P_FIP` - #[cfg(linux_kernel)] - pub const FIP: Protocol = Protocol(new_raw_protocol((c::ETH_P_FIP as u16).to_be() as u32)); - /// `ETH_P_80221` - #[cfg(linux_kernel)] - pub const P_80221: Protocol = - Protocol(new_raw_protocol((c::ETH_P_80221 as u16).to_be() as u32)); - /// `ETH_P_HSR` - #[cfg(linux_kernel)] - pub const HSR: Protocol = Protocol(new_raw_protocol((c::ETH_P_HSR as u16).to_be() as u32)); - /// `ETH_P_NSH` - #[cfg(linux_kernel)] - pub const NSH: Protocol = Protocol(new_raw_protocol((c::ETH_P_NSH as u16).to_be() as u32)); - /// `ETH_P_LOOPBACK` - #[cfg(linux_kernel)] - pub const LOOPBACK: Protocol = - Protocol(new_raw_protocol((c::ETH_P_LOOPBACK as u16).to_be() as u32)); - /// `ETH_P_QINQ1` - #[cfg(linux_kernel)] - pub const QINQ1: Protocol = Protocol(new_raw_protocol((c::ETH_P_QINQ1 as u16).to_be() as u32)); - /// `ETH_P_QINQ2` - #[cfg(linux_kernel)] - pub const QINQ2: Protocol = Protocol(new_raw_protocol((c::ETH_P_QINQ2 as u16).to_be() as u32)); - /// `ETH_P_QINQ3` - #[cfg(linux_kernel)] - pub const QINQ3: Protocol = Protocol(new_raw_protocol((c::ETH_P_QINQ3 as u16).to_be() as u32)); - /// `ETH_P_EDSA` - #[cfg(linux_kernel)] - pub const EDSA: Protocol = Protocol(new_raw_protocol((c::ETH_P_EDSA as u16).to_be() as u32)); - /// `ETH_P_DSA_8021Q` - #[cfg(linux_kernel)] - pub const DSA_8021Q: Protocol = - Protocol(new_raw_protocol((c::ETH_P_DSA_8021Q as u16).to_be() as u32)); - /// `ETH_P_DSA_A5PSW` - #[cfg(linux_kernel)] - pub const DSA_A5PSW: Protocol = - Protocol(new_raw_protocol((c::ETH_P_DSA_A5PSW as u16).to_be() as u32)); - /// `ETH_P_IFE` - #[cfg(linux_kernel)] - pub const IFE: Protocol = Protocol(new_raw_protocol((c::ETH_P_IFE as u16).to_be() as u32)); - /// `ETH_P_AF_IUCV` - #[cfg(linux_kernel)] - pub const AF_IUCV: Protocol = - Protocol(new_raw_protocol((c::ETH_P_AF_IUCV as u16).to_be() as u32)); - /// `ETH_P_802_3_MIN` - #[cfg(linux_kernel)] - pub const P_802_3_MIN: Protocol = - Protocol(new_raw_protocol((c::ETH_P_802_3_MIN as u16).to_be() as u32)); - /// `ETH_P_802_3` - #[cfg(linux_kernel)] - pub const P_802_3: Protocol = - Protocol(new_raw_protocol((c::ETH_P_802_3 as u16).to_be() as u32)); - /// `ETH_P_AX25` - #[cfg(linux_kernel)] - pub const AX25: Protocol = Protocol(new_raw_protocol((c::ETH_P_AX25 as u16).to_be() as u32)); - /// `ETH_P_ALL` - #[cfg(linux_kernel)] - pub const ALL: Protocol = Protocol(new_raw_protocol((c::ETH_P_ALL as u16).to_be() as u32)); - /// `ETH_P_802_2` - #[cfg(linux_kernel)] - pub const P_802_2: Protocol = - Protocol(new_raw_protocol((c::ETH_P_802_2 as u16).to_be() as u32)); - /// `ETH_P_SNAP` - #[cfg(linux_kernel)] - pub const SNAP: Protocol = Protocol(new_raw_protocol((c::ETH_P_SNAP as u16).to_be() as u32)); - /// `ETH_P_DDCMP` - #[cfg(linux_kernel)] - pub const DDCMP: Protocol = Protocol(new_raw_protocol((c::ETH_P_DDCMP as u16).to_be() as u32)); - /// `ETH_P_WAN_PPP` - #[cfg(linux_kernel)] - pub const WAN_PPP: Protocol = - Protocol(new_raw_protocol((c::ETH_P_WAN_PPP as u16).to_be() as u32)); - /// `ETH_P_PPP_MP` - #[cfg(linux_kernel)] - pub const PPP_MP: Protocol = - Protocol(new_raw_protocol((c::ETH_P_PPP_MP as u16).to_be() as u32)); - /// `ETH_P_LOCALTALK` - #[cfg(linux_kernel)] - pub const LOCALTALK: Protocol = - Protocol(new_raw_protocol((c::ETH_P_LOCALTALK as u16).to_be() as u32)); - /// `ETH_P_CAN` - #[cfg(linux_kernel)] - pub const CAN: Protocol = Protocol(new_raw_protocol((c::ETH_P_CAN as u16).to_be() as u32)); - /// `ETH_P_CANFD` - #[cfg(linux_kernel)] - pub const CANFD: Protocol = Protocol(new_raw_protocol((c::ETH_P_CANFD as u16).to_be() as u32)); - /// `ETH_P_CANXL` - #[cfg(linux_kernel)] - pub const CANXL: Protocol = Protocol(new_raw_protocol((c::ETH_P_CANXL as u16).to_be() as u32)); - /// `ETH_P_PPPTALK` - #[cfg(linux_kernel)] - pub const PPPTALK: Protocol = - Protocol(new_raw_protocol((c::ETH_P_PPPTALK as u16).to_be() as u32)); - /// `ETH_P_TR_802_2` - #[cfg(linux_kernel)] - pub const TR_802_2: Protocol = - Protocol(new_raw_protocol((c::ETH_P_TR_802_2 as u16).to_be() as u32)); - /// `ETH_P_MOBITEX` - #[cfg(linux_kernel)] - pub const MOBITEX: Protocol = - Protocol(new_raw_protocol((c::ETH_P_MOBITEX as u16).to_be() as u32)); - /// `ETH_P_CONTROL` - #[cfg(linux_kernel)] - pub const CONTROL: Protocol = - Protocol(new_raw_protocol((c::ETH_P_CONTROL as u16).to_be() as u32)); - /// `ETH_P_IRDA` - #[cfg(linux_kernel)] - pub const IRDA: Protocol = Protocol(new_raw_protocol((c::ETH_P_IRDA as u16).to_be() as u32)); - /// `ETH_P_ECONET` - #[cfg(linux_kernel)] - pub const ECONET: Protocol = - Protocol(new_raw_protocol((c::ETH_P_ECONET as u16).to_be() as u32)); - /// `ETH_P_HDLC` - #[cfg(linux_kernel)] - pub const HDLC: Protocol = Protocol(new_raw_protocol((c::ETH_P_HDLC as u16).to_be() as u32)); - /// `ETH_P_ARCNET` - #[cfg(linux_kernel)] - pub const ARCNET: Protocol = - Protocol(new_raw_protocol((c::ETH_P_ARCNET as u16).to_be() as u32)); - /// `ETH_P_DSA` - #[cfg(linux_kernel)] - pub const DSA: Protocol = Protocol(new_raw_protocol((c::ETH_P_DSA as u16).to_be() as u32)); - /// `ETH_P_TRAILER` - #[cfg(linux_kernel)] - pub const TRAILER: Protocol = - Protocol(new_raw_protocol((c::ETH_P_TRAILER as u16).to_be() as u32)); - /// `ETH_P_PHONET` - #[cfg(linux_kernel)] - pub const PHONET: Protocol = - Protocol(new_raw_protocol((c::ETH_P_PHONET as u16).to_be() as u32)); - /// `ETH_P_IEEE802154` - #[cfg(linux_kernel)] - pub const IEEE802154: Protocol = - Protocol(new_raw_protocol((c::ETH_P_IEEE802154 as u16).to_be() as u32)); - /// `ETH_P_CAIF` - #[cfg(linux_kernel)] - pub const CAIF: Protocol = Protocol(new_raw_protocol((c::ETH_P_CAIF as u16).to_be() as u32)); - /// `ETH_P_XDSA` - #[cfg(linux_kernel)] - pub const XDSA: Protocol = Protocol(new_raw_protocol((c::ETH_P_XDSA as u16).to_be() as u32)); - /// `ETH_P_MAP` - #[cfg(linux_kernel)] - pub const MAP: Protocol = Protocol(new_raw_protocol((c::ETH_P_MAP as u16).to_be() as u32)); - /// `ETH_P_MCTP` - #[cfg(linux_kernel)] - pub const MCTP: Protocol = Protocol(new_raw_protocol((c::ETH_P_MCTP as u16).to_be() as u32)); -} - -#[rustfmt::skip] -impl Protocol { - /// Constructs a `Protocol` from a raw integer. - #[inline] - pub const fn from_raw(raw: RawProtocol) -> Self { - Self(raw) - } - - /// Returns the raw integer for this `Protocol`. - #[inline] - pub const fn as_raw(self) -> RawProtocol { - self.0 - } -} - -/// `SHUT_*` constants for use with [`shutdown`]. -/// -/// [`shutdown`]: crate::net::shutdown -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u32)] -pub enum Shutdown { - /// `SHUT_RD`—Disable further read operations. - Read = c::SHUT_RD as _, - /// `SHUT_WR`—Disable further write operations. - Write = c::SHUT_WR as _, - /// `SHUT_RDWR`—Disable further read and write operations. - ReadWrite = c::SHUT_RDWR as _, -} - -bitflags! { - /// `SOCK_*` constants for use with [`socket_with`], [`accept_with`] and - /// [`acceptfrom_with`]. - /// - /// [`socket_with`]: crate::net::socket_with - /// [`accept_with`]: crate::net::accept_with - /// [`acceptfrom_with`]: crate::net::acceptfrom_with - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SocketFlags: c::c_uint { - /// `SOCK_NONBLOCK` - #[cfg(not(any( - apple, - windows, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto", - )))] - const NONBLOCK = bitcast!(c::SOCK_NONBLOCK); - - /// `SOCK_CLOEXEC` - #[cfg(not(any(apple, windows, target_os = "aix", target_os = "haiku")))] - const CLOEXEC = bitcast!(c::SOCK_CLOEXEC); - - // This deliberately lacks a `const _ = !0`, so that users can use - // `from_bits_truncate` to extract the `SocketFlags` from a flags - // value that also includes a `SocketType`. - } -} - -#[test] -fn test_sizes() { - use c::c_int; - use core::mem::transmute; - - // Backend code needs to cast these to `c_int` so make sure that cast isn't - // lossy. - assert_eq_size!(RawProtocol, c_int); - assert_eq_size!(Protocol, c_int); - assert_eq_size!(Option, c_int); - assert_eq_size!(Option, c_int); - assert_eq_size!(RawSocketType, c_int); - assert_eq_size!(SocketType, c_int); - assert_eq_size!(SocketFlags, c_int); - - // Rustix doesn't depend on `Option` matching the ABI of a raw - // integer for correctness, but it should work nonetheless. - #[allow(unsafe_code)] - unsafe { - let t: Option = None; - assert_eq!(0_u32, transmute::, u32>(t)); - - let t: Option = Some(Protocol::from_raw(RawProtocol::new(4567).unwrap())); - assert_eq!(4567_u32, transmute::, u32>(t)); - } -} diff --git a/third_party/rust/rustix/src/net/wsa.rs b/third_party/rust/rustix/src/net/wsa.rs deleted file mode 100644 index 3367ca95c0a1..000000000000 --- a/third_party/rust/rustix/src/net/wsa.rs +++ /dev/null @@ -1,49 +0,0 @@ -use crate::io; -use core::mem::MaybeUninit; -use windows_sys::Win32::Networking::WinSock::{WSACleanup, WSAGetLastError, WSAStartup, WSADATA}; - -/// `WSAStartup()`—Initialize process-wide Windows support for sockets. -/// -/// On Windows, it's necessary to initialize the sockets subsystem before -/// using sockets APIs. The function performs the necessary initialization. -/// -/// # References -/// - [Winsock2] -/// -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsastartup -pub fn wsa_startup() -> io::Result { - // Request version 2.2, which has been the latest version since far older - // versions of Windows than we support here. For more information about - // the version, see [here]. - // - // [here]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsastartup#remarks - let version = 0x202; - let mut data = MaybeUninit::uninit(); - unsafe { - let ret = WSAStartup(version, data.as_mut_ptr()); - if ret == 0 { - Ok(data.assume_init()) - } else { - Err(io::Errno::from_raw_os_error(WSAGetLastError())) - } - } -} - -/// `WSACleanup()`—Clean up process-wide Windows support for sockets. -/// -/// In a program where `init` is called, if sockets are no longer necessary, -/// this function releases associated resources. -/// -/// # References -/// - [Winsock2] -/// -/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsacleanup -pub fn wsa_cleanup() -> io::Result<()> { - unsafe { - if WSACleanup() == 0 { - Ok(()) - } else { - Err(io::Errno::from_raw_os_error(WSAGetLastError())) - } - } -} diff --git a/third_party/rust/rustix/src/param/auxv.rs b/third_party/rust/rustix/src/param/auxv.rs deleted file mode 100644 index 03be2a29da07..000000000000 --- a/third_party/rust/rustix/src/param/auxv.rs +++ /dev/null @@ -1,96 +0,0 @@ -use crate::backend; -#[cfg(any( - linux_raw, - all( - libc, - any( - all(target_os = "android", target_pointer_width = "64"), - target_os = "linux", - ) - ) -))] -use crate::ffi::CStr; - -/// `sysconf(_SC_PAGESIZE)`—Returns the process' page size. -/// -/// Also known as `getpagesize`. -/// -/// # References -/// - [POSIX] -/// - [Linux `sysconf`] -/// - [Linux `getpagesize`] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sysconf.html -/// [Linux `sysconf`]: https://man7.org/linux/man-pages/man3/sysconf.3.html -/// [Linux `getpagesize`]: https://man7.org/linux/man-pages/man2/getpagesize.2.html -#[inline] -#[doc(alias = "_SC_PAGESIZE")] -#[doc(alias = "_SC_PAGE_SIZE")] -#[doc(alias = "getpagesize")] -pub fn page_size() -> usize { - backend::param::auxv::page_size() -} - -/// `sysconf(_SC_CLK_TCK)`—Returns the process' clock ticks per second. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sysconf.html -/// [Linux]: https://man7.org/linux/man-pages/man3/sysconf.3.html -#[cfg(not(target_os = "wasi"))] -#[inline] -#[doc(alias = "_SC_CLK_TCK")] -pub fn clock_ticks_per_second() -> u64 { - backend::param::auxv::clock_ticks_per_second() -} - -/// `(getauxval(AT_HWCAP), getauxval(AT_HWCAP2)`—Returns the Linux "hwcap" -/// data. -/// -/// Return the Linux `AT_HWCAP` and `AT_HWCAP2` values passed to the -/// current process. Returns 0 for each value if it is not available. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html -#[cfg(any( - linux_raw, - all( - libc, - any( - all(target_os = "android", target_pointer_width = "64"), - target_os = "linux", - ) - ) -))] -#[inline] -pub fn linux_hwcap() -> (usize, usize) { - backend::param::auxv::linux_hwcap() -} - -/// `getauxval(AT_EXECFN)`—Returns the Linux "execfn" string. -/// -/// Return the string that Linux has recorded as the filesystem path to the -/// executable. Returns an empty string if the string is not available. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html -#[cfg(any( - linux_raw, - all( - libc, - any( - all(target_os = "android", target_pointer_width = "64"), - target_os = "linux", - ) - ) -))] -#[inline] -pub fn linux_execfn() -> &'static CStr { - backend::param::auxv::linux_execfn() -} diff --git a/third_party/rust/rustix/src/param/init.rs b/third_party/rust/rustix/src/param/init.rs deleted file mode 100644 index 09d7c96bd6b0..000000000000 --- a/third_party/rust/rustix/src/param/init.rs +++ /dev/null @@ -1,23 +0,0 @@ -//! rustix's `init` function. -//! -//! # Safety -//! -//! When "use-explicitly-provided-auxv" is enabled, the `init` function must be -//! called before any other function in this module. It is unsafe because it -//! operates on raw pointers. -#![allow(unsafe_code)] - -use crate::backend; - -/// Initialize process-wide state. -/// -/// # Safety -/// -/// This must be passed a pointer to the original environment variable block -/// set up by the OS at process startup, and it must be called before any -/// other rustix functions are called. -#[inline] -#[doc(hidden)] -pub unsafe fn init(envp: *mut *mut u8) { - backend::param::auxv::init(envp) -} diff --git a/third_party/rust/rustix/src/param/mod.rs b/third_party/rust/rustix/src/param/mod.rs deleted file mode 100644 index 905eae7e3b8a..000000000000 --- a/third_party/rust/rustix/src/param/mod.rs +++ /dev/null @@ -1,14 +0,0 @@ -//! Process parameters. -//! -//! These values correspond to `sysconf` in POSIX, and the auxv array in Linux. -//! Despite the POSIX name “sysconf”, these aren't *system* configuration -//! parameters; they're *process* configuration parameters, as they may differ -//! between different processes on the same system. - -mod auxv; -#[cfg(feature = "use-explicitly-provided-auxv")] -mod init; - -pub use auxv::*; -#[cfg(feature = "use-explicitly-provided-auxv")] -pub use init::init; diff --git a/third_party/rust/rustix/src/path/arg.rs b/third_party/rust/rustix/src/path/arg.rs deleted file mode 100644 index 3b0ad91aeac7..000000000000 --- a/third_party/rust/rustix/src/path/arg.rs +++ /dev/null @@ -1,1097 +0,0 @@ -//! Convenient and efficient string argument passing. -//! -//! This module defines the `Arg` trait and implements it for several common -//! string types. This allows users to pass any of these string types directly -//! to rustix APIs with string arguments, and it allows rustix to implement -//! NUL-termination without the need for copying where possible. - -use crate::ffi::CStr; -use crate::io; -#[cfg(feature = "itoa")] -use crate::path::DecInt; -use crate::path::SMALL_PATH_BUFFER_SIZE; -#[cfg(all(feature = "alloc", feature = "itoa"))] -use alloc::borrow::ToOwned; -use core::mem::MaybeUninit; -use core::{ptr, slice, str}; -#[cfg(feature = "std")] -use std::ffi::{OsStr, OsString}; -#[cfg(all(feature = "std", target_os = "hermit"))] -use std::os::hermit::ext::ffi::{OsStrExt, OsStringExt}; -#[cfg(all(feature = "std", unix))] -use std::os::unix::ffi::{OsStrExt, OsStringExt}; -#[cfg(all(feature = "std", target_os = "vxworks"))] -use std::os::vxworks::ext::ffi::{OsStrExt, OsStringExt}; -#[cfg(all(feature = "std", target_os = "wasi"))] -use std::os::wasi::ffi::{OsStrExt, OsStringExt}; -#[cfg(feature = "std")] -use std::path::{Component, Components, Iter, Path, PathBuf}; -#[cfg(feature = "alloc")] -use {crate::ffi::CString, alloc::borrow::Cow}; -#[cfg(feature = "alloc")] -use {alloc::string::String, alloc::vec::Vec}; - -/// A trait for passing path arguments. -/// -/// This is similar to [`AsRef`]`<`[`Path`]`>`, but is implemented for more -/// kinds of strings and can convert into more kinds of strings. -/// -/// # Example -/// -/// ``` -/// # #[cfg(any(feature = "fs", feature = "net"))] -/// use rustix::ffi::CStr; -/// use rustix::io; -/// # #[cfg(any(feature = "fs", feature = "net"))] -/// use rustix::path::Arg; -/// -/// # #[cfg(any(feature = "fs", feature = "net"))] -/// pub fn touch(path: P) -> io::Result<()> { -/// let path = path.into_c_str()?; -/// _touch(&path) -/// } -/// -/// # #[cfg(any(feature = "fs", feature = "net"))] -/// fn _touch(path: &CStr) -> io::Result<()> { -/// // implementation goes here -/// Ok(()) -/// } -/// ``` -/// -/// Users can then call `touch("foo")`, `touch(cstr!("foo"))`, -/// `touch(Path::new("foo"))`, or many other things. -/// -/// [`AsRef`]: std::convert::AsRef -pub trait Arg { - /// Returns a view of this string as a string slice. - fn as_str(&self) -> io::Result<&str>; - - /// Returns a potentially-lossy rendering of this string as a - /// `Cow<'_, str>`. - #[cfg(feature = "alloc")] - fn to_string_lossy(&self) -> Cow<'_, str>; - - /// Returns a view of this string as a maybe-owned [`CStr`]. - #[cfg(feature = "alloc")] - fn as_cow_c_str(&self) -> io::Result>; - - /// Consumes `self` and returns a view of this string as a maybe-owned - /// [`CStr`]. - #[cfg(feature = "alloc")] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b; - - /// Runs a closure with `self` passed in as a `&CStr`. - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result; -} - -impl Arg for &str { - #[inline] - fn as_str(&self) -> io::Result<&str> { - Ok(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - Cow::Borrowed(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(*self).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_bytes(), f) - } -} - -#[cfg(feature = "alloc")] -impl Arg for &String { - #[inline] - fn as_str(&self) -> io::Result<&str> { - Ok(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - Cow::Borrowed(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(String::as_str(self)).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - self.as_str().into_c_str() - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_bytes(), f) - } -} - -#[cfg(feature = "alloc")] -impl Arg for String { - #[inline] - fn as_str(&self) -> io::Result<&str> { - Ok(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - Cow::Borrowed(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_str()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(&CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?) - } -} - -#[cfg(feature = "std")] -impl Arg for &OsStr { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - OsStr::to_string_lossy(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_bytes(), f) - } -} - -#[cfg(feature = "std")] -impl Arg for &OsString { - #[inline] - fn as_str(&self) -> io::Result<&str> { - OsString::as_os_str(self).to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - self.as_os_str().to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(OsString::as_os_str(self).as_bytes()) - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - self.as_os_str().into_c_str() - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_bytes(), f) - } -} - -#[cfg(feature = "std")] -impl Arg for OsString { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.as_os_str().to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - self.as_os_str().to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.into_vec()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(&CString::new(self.into_vec()).map_err(|_cstr_err| io::Errno::INVAL)?) - } -} - -#[cfg(feature = "std")] -impl Arg for &Path { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.as_os_str().to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - Path::to_string_lossy(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_os_str().as_bytes(), f) - } -} - -#[cfg(feature = "std")] -impl Arg for &PathBuf { - #[inline] - fn as_str(&self) -> io::Result<&str> { - PathBuf::as_path(self) - .as_os_str() - .to_str() - .ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - self.as_path().to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(PathBuf::as_path(self).as_os_str().as_bytes()) - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - self.as_path().into_c_str() - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_os_str().as_bytes(), f) - } -} - -#[cfg(feature = "std")] -impl Arg for PathBuf { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.as_os_str().to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - self.as_os_str().to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.into_os_string().into_vec()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f( - &CString::new(self.into_os_string().into_vec()) - .map_err(|_cstr_err| io::Errno::INVAL)?, - ) - } -} - -impl Arg for &CStr { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.to_str().map_err(|_utf8_err| io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - CStr::to_string_lossy(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Borrowed(self)) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Borrowed(self)) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(self) - } -} - -#[cfg(feature = "alloc")] -impl Arg for &CString { - #[inline] - fn as_str(&self) -> io::Result<&str> { - unimplemented!() - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - unimplemented!() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Borrowed(self)) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Borrowed(self)) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(self) - } -} - -#[cfg(feature = "alloc")] -impl Arg for CString { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.to_str().map_err(|_utf8_err| io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - CStr::to_string_lossy(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Borrowed(self)) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned(self)) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(&self) - } -} - -#[cfg(feature = "alloc")] -impl<'a> Arg for Cow<'a, str> { - #[inline] - fn as_str(&self) -> io::Result<&str> { - Ok(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - Cow::Borrowed(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_ref()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - match self { - Cow::Owned(s) => CString::new(s), - Cow::Borrowed(s) => CString::new(s), - } - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_bytes(), f) - } -} - -#[cfg(feature = "std")] -#[cfg(feature = "alloc")] -impl<'a> Arg for Cow<'a, OsStr> { - #[inline] - fn as_str(&self) -> io::Result<&str> { - (**self).to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - (**self).to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - match self { - Cow::Owned(os) => CString::new(os.into_vec()), - Cow::Borrowed(os) => CString::new(os.as_bytes()), - } - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_bytes(), f) - } -} - -#[cfg(feature = "alloc")] -impl<'a> Arg for Cow<'a, CStr> { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.to_str().map_err(|_utf8_err| io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - let borrow: &CStr = core::borrow::Borrow::borrow(self); - borrow.to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Borrowed(self)) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(self) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(&self) - } -} - -#[cfg(feature = "std")] -impl<'a> Arg for Component<'a> { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.as_os_str().to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - self.as_os_str().to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_os_str().as_bytes(), f) - } -} - -#[cfg(feature = "std")] -impl<'a> Arg for Components<'a> { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.as_path().to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - self.as_path().to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_path().as_os_str().as_bytes()) - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.as_path().as_os_str().as_bytes()) - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_path().as_os_str().as_bytes(), f) - } -} - -#[cfg(feature = "std")] -impl<'a> Arg for Iter<'a> { - #[inline] - fn as_str(&self) -> io::Result<&str> { - self.as_path().to_str().ok_or(io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - self.as_path().to_string_lossy() - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_path().as_os_str().as_bytes()) - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.as_path().as_os_str().as_bytes()) - .map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self.as_path().as_os_str().as_bytes(), f) - } -} - -impl Arg for &[u8] { - #[inline] - fn as_str(&self) -> io::Result<&str> { - str::from_utf8(self).map_err(|_utf8_err| io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - String::from_utf8_lossy(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(*self).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self, f) - } -} - -#[cfg(feature = "alloc")] -impl Arg for &Vec { - #[inline] - fn as_str(&self) -> io::Result<&str> { - str::from_utf8(self).map_err(|_utf8_err| io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - String::from_utf8_lossy(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_slice()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self.as_slice()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - with_c_str(self, f) - } -} - -#[cfg(feature = "alloc")] -impl Arg for Vec { - #[inline] - fn as_str(&self) -> io::Result<&str> { - str::from_utf8(self).map_err(|_utf8_err| io::Errno::INVAL) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - String::from_utf8_lossy(self) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Owned( - CString::new(self.as_slice()).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned( - CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, - )) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(&CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?) - } -} - -#[cfg(feature = "itoa")] -impl Arg for DecInt { - #[inline] - fn as_str(&self) -> io::Result<&str> { - Ok(self.as_str()) - } - - #[cfg(feature = "alloc")] - #[inline] - fn to_string_lossy(&self) -> Cow<'_, str> { - Cow::Borrowed(self.as_str()) - } - - #[cfg(feature = "alloc")] - #[inline] - fn as_cow_c_str(&self) -> io::Result> { - Ok(Cow::Borrowed(self.as_c_str())) - } - - #[cfg(feature = "alloc")] - #[inline] - fn into_c_str<'b>(self) -> io::Result> - where - Self: 'b, - { - Ok(Cow::Owned(self.as_c_str().to_owned())) - } - - #[inline] - fn into_with_c_str(self, f: F) -> io::Result - where - Self: Sized, - F: FnOnce(&CStr) -> io::Result, - { - f(self.as_c_str()) - } -} - -/// Runs a closure with `bytes` passed in as a `&CStr`. -#[allow(unsafe_code, clippy::int_plus_one)] -#[inline] -fn with_c_str(bytes: &[u8], f: F) -> io::Result -where - F: FnOnce(&CStr) -> io::Result, -{ - // Most paths are less than `SMALL_PATH_BUFFER_SIZE` long. The rest can go - // through the dynamic allocation path. If you're opening many files in a - // directory with a long path, consider opening the directory and using - // `openat` to open the files under it, which will avoid this, and is often - // faster in the OS as well. - - // Test with >= so that we have room for the trailing NUL. - if bytes.len() >= SMALL_PATH_BUFFER_SIZE { - return with_c_str_slow_path(bytes, f); - } - - // Taken from - // - let mut buf = MaybeUninit::<[u8; SMALL_PATH_BUFFER_SIZE]>::uninit(); - let buf_ptr = buf.as_mut_ptr().cast::(); - - // This helps test our safety condition below. - debug_assert!(bytes.len() + 1 <= SMALL_PATH_BUFFER_SIZE); - - // SAFETY: `bytes.len() < SMALL_PATH_BUFFER_SIZE` which means we have space - // for `bytes.len() + 1` u8s: - unsafe { - ptr::copy_nonoverlapping(bytes.as_ptr(), buf_ptr, bytes.len()); - buf_ptr.add(bytes.len()).write(0); - } - - // SAFETY: we just wrote the bytes above and they will remain valid for the - // duration of `f` b/c buf doesn't get dropped until the end of the - // function. - match CStr::from_bytes_with_nul(unsafe { slice::from_raw_parts(buf_ptr, bytes.len() + 1) }) { - Ok(s) => f(s), - Err(_) => Err(io::Errno::INVAL), - } -} - -/// The slow path which handles any length. In theory OS's only support up to -/// `PATH_MAX`, but we let the OS enforce that. -#[allow(unsafe_code, clippy::int_plus_one)] -#[cold] -fn with_c_str_slow_path(bytes: &[u8], f: F) -> io::Result -where - F: FnOnce(&CStr) -> io::Result, -{ - #[cfg(feature = "alloc")] - { - f(&CString::new(bytes).map_err(|_cstr_err| io::Errno::INVAL)?) - } - - #[cfg(not(feature = "alloc"))] - { - #[cfg(libc)] - const LARGE_PATH_BUFFER_SIZE: usize = libc::PATH_MAX as usize; - #[cfg(linux_raw)] - const LARGE_PATH_BUFFER_SIZE: usize = linux_raw_sys::general::PATH_MAX as usize; - - // Taken from - // - let mut buf = MaybeUninit::<[u8; LARGE_PATH_BUFFER_SIZE]>::uninit(); - let buf_ptr = buf.as_mut_ptr().cast::(); - - // This helps test our safety condition below. - if bytes.len() + 1 > LARGE_PATH_BUFFER_SIZE { - return Err(io::Errno::NAMETOOLONG); - } - - // SAFETY: `bytes.len() < LARGE_PATH_BUFFER_SIZE` which means we have space - // for `bytes.len() + 1` u8s: - unsafe { - ptr::copy_nonoverlapping(bytes.as_ptr(), buf_ptr, bytes.len()); - buf_ptr.add(bytes.len()).write(0); - } - - // SAFETY: we just wrote the bytes above and they will remain valid for the - // duration of `f` b/c buf doesn't get dropped until the end of the - // function. - match CStr::from_bytes_with_nul(unsafe { slice::from_raw_parts(buf_ptr, bytes.len() + 1) }) - { - Ok(s) => f(s), - Err(_) => Err(io::Errno::INVAL), - } - } -} diff --git a/third_party/rust/rustix/src/path/dec_int.rs b/third_party/rust/rustix/src/path/dec_int.rs deleted file mode 100644 index 04c97d4063e8..000000000000 --- a/third_party/rust/rustix/src/path/dec_int.rs +++ /dev/null @@ -1,120 +0,0 @@ -//! Efficient decimal integer formatting. -//! -//! # Safety -//! -//! This uses `CStr::from_bytes_with_nul_unchecked` and -//! `str::from_utf8_unchecked`on the buffer that it filled itself. -#![allow(unsafe_code)] - -use crate::backend::fd::{AsFd, AsRawFd}; -use crate::ffi::CStr; -use core::fmt::Write; -use itoa::{Buffer, Integer}; -#[cfg(all(feature = "std", unix))] -use std::os::unix::ffi::OsStrExt; -#[cfg(all(feature = "std", target_os = "wasi"))] -use std::os::wasi::ffi::OsStrExt; -#[cfg(feature = "std")] -use {core::fmt, std::ffi::OsStr, std::path::Path}; - -/// Format an integer into a decimal `Path` component, without constructing a -/// temporary `PathBuf` or `String`. -/// -/// This is used for opening paths such as `/proc/self/fd/` on Linux. -/// -/// # Example -/// -/// ``` -/// # #[cfg(any(feature = "fs", feature = "net"))] -/// use rustix::path::DecInt; -/// -/// # #[cfg(any(feature = "fs", feature = "net"))] -/// assert_eq!( -/// format!("hello {}", DecInt::new(9876).as_ref().display()), -/// "hello 9876" -/// ); -/// ``` -#[derive(Clone)] -pub struct DecInt { - // 20 `u8`s is enough to hold the decimal ASCII representation of any - // `u64`, and we add one for a NUL terminator for `as_c_str`. - buf: [u8; 20 + 1], - len: usize, -} - -impl DecInt { - /// Construct a new path component from an integer. - #[inline] - pub fn new(i: Int) -> Self { - let mut me = DecIntWriter(Self { - buf: [0; 20 + 1], - len: 0, - }); - let mut buf = Buffer::new(); - me.write_str(buf.format(i)).unwrap(); - me.0 - } - - /// Construct a new path component from a file descriptor. - #[inline] - pub fn from_fd(fd: Fd) -> Self { - Self::new(fd.as_fd().as_raw_fd()) - } - - /// Return the raw byte buffer as a `&str`. - #[inline] - pub fn as_str(&self) -> &str { - // SAFETY: `DecInt` always holds a formatted decimal number, so it's - // always valid UTF-8. - unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } - } - - /// Return the raw byte buffer as a `&CStr`. - #[inline] - pub fn as_c_str(&self) -> &CStr { - let bytes_with_nul = &self.buf[..=self.len]; - debug_assert!(CStr::from_bytes_with_nul(bytes_with_nul).is_ok()); - - // SAFETY: `self.buf` holds a single decimal ASCII representation and - // at least one extra NUL byte. - unsafe { CStr::from_bytes_with_nul_unchecked(bytes_with_nul) } - } - - /// Return the raw byte buffer. - #[inline] - pub fn as_bytes(&self) -> &[u8] { - &self.buf[..self.len] - } -} - -struct DecIntWriter(DecInt); - -impl core::fmt::Write for DecIntWriter { - #[inline] - fn write_str(&mut self, s: &str) -> core::fmt::Result { - match self.0.buf.get_mut(self.0.len..self.0.len + s.len()) { - Some(slice) => { - slice.copy_from_slice(s.as_bytes()); - self.0.len += s.len(); - Ok(()) - } - None => Err(core::fmt::Error), - } - } -} - -#[cfg(feature = "std")] -impl AsRef for DecInt { - #[inline] - fn as_ref(&self) -> &Path { - let as_os_str: &OsStr = OsStrExt::from_bytes(&self.buf[..self.len]); - Path::new(as_os_str) - } -} - -#[cfg(feature = "std")] -impl fmt::Debug for DecInt { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - self.as_str().fmt(fmt) - } -} diff --git a/third_party/rust/rustix/src/path/mod.rs b/third_party/rust/rustix/src/path/mod.rs deleted file mode 100644 index 19bf2c7f086a..000000000000 --- a/third_party/rust/rustix/src/path/mod.rs +++ /dev/null @@ -1,12 +0,0 @@ -//! Filesystem path operations. - -mod arg; -#[cfg(feature = "itoa")] -mod dec_int; - -pub use arg::Arg; -#[cfg(feature = "itoa")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "itoa")))] -pub use dec_int::DecInt; - -pub(crate) const SMALL_PATH_BUFFER_SIZE: usize = 256; diff --git a/third_party/rust/rustix/src/pid.rs b/third_party/rust/rustix/src/pid.rs deleted file mode 100644 index 3911e4c7a19b..000000000000 --- a/third_party/rust/rustix/src/pid.rs +++ /dev/null @@ -1,105 +0,0 @@ -//! The `Pid` type. - -#![allow(unsafe_code)] - -use crate::backend::c; -use core::num::NonZeroI32; - -/// A process identifier as a raw integer. -pub type RawPid = c::pid_t; - -/// `pid_t`—A non-zero Unix process ID. -/// -/// This is a pid, and not a pidfd. It is not a file descriptor, and the -/// process it refers to could disappear at any time and be replaced by -/// another, unrelated, process. -#[repr(transparent)] -#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)] -pub struct Pid(NonZeroI32); - -impl Pid { - /// A `Pid` corresponding to the init process (pid 1). - pub const INIT: Self = Self(match NonZeroI32::new(1) { - Some(n) => n, - None => panic!("unreachable"), - }); - - /// Converts a `RawPid` into a `Pid`. - /// - /// Returns `Some` for strictly positive `RawPid`s. Otherwise, returns - /// `None`. - /// - /// This is safe because a `Pid` is a number without any guarantees for the - /// kernel. Non-child `Pid`s are always racy for any syscalls, but can only - /// cause logic errors. If you want race-free access to or control of - /// non-child processes, please consider other mechanisms like [pidfd] on - /// Linux. - /// - /// [pidfd]: https://man7.org/linux/man-pages/man2/pidfd_open.2.html - #[inline] - pub const fn from_raw(raw: RawPid) -> Option { - if raw > 0 { - // SAFETY: raw > 0. - unsafe { Some(Self::from_raw_unchecked(raw)) } - } else { - None - } - } - - /// Converts a known strictly positive `RawPid` into a `Pid`. - /// - /// # Safety - /// - /// The caller must guarantee `raw` is strictly positive. - #[inline] - pub const unsafe fn from_raw_unchecked(raw: RawPid) -> Self { - debug_assert!(raw > 0); - Self(NonZeroI32::new_unchecked(raw)) - } - - /// Creates a `Pid` holding the ID of the given child process. - #[cfg(feature = "std")] - #[inline] - pub fn from_child(child: &std::process::Child) -> Self { - let id = child.id(); - // SAFETY: We know the returned ID is valid because it came directly - // from an OS API. - unsafe { Self::from_raw_unchecked(id as i32) } - } - - /// Converts a `Pid` into a `NonZeroI32`. - #[inline] - pub const fn as_raw_nonzero(self) -> NonZeroI32 { - self.0 - } - - /// Converts an `Option` into a `RawPid`. - #[inline] - pub fn as_raw(pid: Option) -> RawPid { - pid.map_or(0, |pid| pid.0.get()) - } - - /// Test whether this pid represents the init process (pid 1). - #[inline] - pub const fn is_init(self) -> bool { - self.0.get() == Self::INIT.0.get() - } -} - -#[test] -fn test_sizes() { - use core::mem::transmute; - - assert_eq_size!(RawPid, NonZeroI32); - assert_eq_size!(RawPid, Pid); - assert_eq_size!(RawPid, Option); - - // Rustix doesn't depend on `Option` matching the ABI of a raw integer - // for correctness, but it should work nonetheless. - const_assert_eq!(0 as RawPid, unsafe { - transmute::, RawPid>(None) - }); - const_assert_eq!(4567 as RawPid, unsafe { - transmute::, RawPid>(Some(Pid::from_raw_unchecked(4567))) - }); -} diff --git a/third_party/rust/rustix/src/pipe.rs b/third_party/rust/rustix/src/pipe.rs deleted file mode 100644 index 2a45b7a9dc86..000000000000 --- a/third_party/rust/rustix/src/pipe.rs +++ /dev/null @@ -1,217 +0,0 @@ -//! `pipe` and related APIs. -//! -//! # Safety -//! -//! `vmsplice` is an unsafe function. - -#![allow(unsafe_code)] - -use crate::fd::OwnedFd; -use crate::{backend, io}; -#[cfg(not(any( - solarish, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "redox", - target_os = "wasi", -)))] -use backend::c; -#[cfg(linux_kernel)] -use backend::fd::AsFd; - -#[cfg(not(apple))] -pub use backend::pipe::types::PipeFlags; - -#[cfg(linux_kernel)] -pub use backend::pipe::types::{IoSliceRaw, SpliceFlags}; - -/// `PIPE_BUF`—The maximum length at which writes to a pipe are atomic. -/// -/// # References -/// - [Linux] -/// - [POSIX] -/// -/// [Linux]: https://man7.org/linux/man-pages/man7/pipe.7.html -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html -#[cfg(not(any( - solarish, - windows, - target_os = "espidf", - target_os = "haiku", - target_os = "redox", - target_os = "wasi", -)))] -pub const PIPE_BUF: usize = c::PIPE_BUF; - -/// `pipe()`—Creates a pipe. -/// -/// This function creates a pipe and returns two file descriptors, for the -/// reading and writing ends of the pipe, respectively. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pipe.html -/// [Linux]: https://man7.org/linux/man-pages/man2/pipe.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pipe.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pipe&sektion=2 -/// [NetBSD]: https://man.netbsd.org/pipe.2 -/// [OpenBSD]: https://man.openbsd.org/pipe.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pipe§ion=2 -/// [illumos]: https://illumos.org/man/2/pipe -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Creating-a-Pipe.html -#[inline] -pub fn pipe() -> io::Result<(OwnedFd, OwnedFd)> { - backend::pipe::syscalls::pipe() -} - -/// `pipe2(flags)`—Creates a pipe, with flags. -/// -/// This function creates a pipe and returns two file descriptors, for the -/// reading and writing ends of the pipe, respectively. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/pipe2.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pipe2&sektion=2 -/// [NetBSD]: https://man.netbsd.org/pipe2.2 -/// [OpenBSD]: https://man.openbsd.org/pipe2.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pipe2§ion=2 -/// [illumos]: https://illumos.org/man/2/pipe2 -#[cfg(not(any( - apple, - target_os = "aix", - target_os = "espidf", - target_os = "haiku", - target_os = "nto" -)))] -#[inline] -#[doc(alias = "pipe2")] -pub fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { - backend::pipe::syscalls::pipe_with(flags) -} - -/// `splice(fd_in, off_in, fd_out, off_out, len, flags)`—Transfer data -/// between a file and a pipe. -/// -/// This function transfers up to `len` bytes of data from the file descriptor -/// `fd_in` to the file descriptor `fd_out`, where one of the file descriptors -/// must refer to a pipe. -/// -/// `off_*` must be `None` if the corresponding fd refers to a pipe. -/// Otherwise its value points to the starting offset to the file, from which -/// the data is read/written. On success, the number of bytes read/written is -/// added to the offset. -/// -/// Passing `None` causes the read/write to start from the file offset, and the -/// file offset is adjusted appropriately. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/splice.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn splice( - fd_in: FdIn, - off_in: Option<&mut u64>, - fd_out: FdOut, - off_out: Option<&mut u64>, - len: usize, - flags: SpliceFlags, -) -> io::Result { - backend::pipe::syscalls::splice(fd_in.as_fd(), off_in, fd_out.as_fd(), off_out, len, flags) -} - -/// `vmsplice(fd, bufs, flags)`—Transfer data between memory and a pipe. -/// -/// If `fd` is the write end of the pipe, -/// the function maps the memory pointer at by `bufs` to the pipe. -/// -/// If `fd` is the read end of the pipe, -/// the function writes data from the pipe to said memory. -/// -/// # Safety -/// -/// If the memory must not be mutated (such as when `bufs` were originally -/// immutable slices), it is up to the caller to ensure that the write end of -/// the pipe is placed in `fd`. -/// -/// Additionally if `SpliceFlags::GIFT` is set, the caller must also ensure -/// that the contents of `bufs` in never modified following the call, -/// and that all of the pointers in `bufs` are page aligned, -/// and the lengths are multiples of a page size in bytes. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/vmsplice.2.html -#[cfg(linux_kernel)] -#[inline] -pub unsafe fn vmsplice( - fd: PipeFd, - bufs: &[IoSliceRaw<'_>], - flags: SpliceFlags, -) -> io::Result { - backend::pipe::syscalls::vmsplice(fd.as_fd(), bufs, flags) -} - -/// `tee(fd_in, fd_out, len, flags)`—Copy data between pipes without -/// consuming it. -/// -/// This reads up to `len` bytes from `in_fd` without consuming them, and -/// writes them to `out_fd`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/tee.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn tee( - fd_in: FdIn, - fd_out: FdOut, - len: usize, - flags: SpliceFlags, -) -> io::Result { - backend::pipe::syscalls::tee(fd_in.as_fd(), fd_out.as_fd(), len, flags) -} - -/// `fnctl(fd, F_GETPIPE_SZ)`—Return the buffer capacity of a pipe. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn fcntl_getpipe_size(fd: Fd) -> io::Result { - backend::pipe::syscalls::fcntl_getpipe_sz(fd.as_fd()) -} - -/// `fnctl(fd, F_SETPIPE_SZ)`—Set the buffer capacity of a pipe. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn fcntl_setpipe_size(fd: Fd, size: usize) -> io::Result<()> { - backend::pipe::syscalls::fcntl_setpipe_sz(fd.as_fd(), size) -} diff --git a/third_party/rust/rustix/src/prctl.rs b/third_party/rust/rustix/src/prctl.rs deleted file mode 100644 index 6aedf3018bcd..000000000000 --- a/third_party/rust/rustix/src/prctl.rs +++ /dev/null @@ -1,71 +0,0 @@ -//! Helper functions for `prctl` syscalls. - -#![allow(unsafe_code)] - -use crate::backend::c::{c_int, c_void}; -use crate::backend::prctl::syscalls; -use crate::io; -use crate::utils::as_mut_ptr; -use bitflags::bitflags; -use core::mem::MaybeUninit; -use core::ptr::null_mut; - -bitflags! { - /// `PR_PAC_AP*`. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PointerAuthenticationKeys: u32 { - /// `PR_PAC_APIAKEY`—Instruction authentication key `A`. - const INSTRUCTION_AUTHENTICATION_KEY_A = linux_raw_sys::prctl::PR_PAC_APIAKEY; - /// `PR_PAC_APIBKEY`—Instruction authentication key `B`. - const INSTRUCTION_AUTHENTICATION_KEY_B = linux_raw_sys::prctl::PR_PAC_APIBKEY; - /// `PR_PAC_APDAKEY`—Data authentication key `A`. - const DATA_AUTHENTICATION_KEY_A = linux_raw_sys::prctl::PR_PAC_APDAKEY; - /// `PR_PAC_APDBKEY`—Data authentication key `B`. - const DATA_AUTHENTICATION_KEY_B = linux_raw_sys::prctl::PR_PAC_APDBKEY; - /// `PR_PAC_APGAKEY`—Generic authentication `A` key. - const GENERIC_AUTHENTICATION_KEY_A = linux_raw_sys::prctl::PR_PAC_APGAKEY; - - /// - const _ = !0; - } -} - -#[inline] -pub(crate) unsafe fn prctl_1arg(option: c_int) -> io::Result { - const NULL: *mut c_void = null_mut(); - syscalls::prctl(option, NULL, NULL, NULL, NULL) -} - -#[inline] -pub(crate) unsafe fn prctl_2args(option: c_int, arg2: *mut c_void) -> io::Result { - const NULL: *mut c_void = null_mut(); - syscalls::prctl(option, arg2, NULL, NULL, NULL) -} - -#[inline] -pub(crate) unsafe fn prctl_3args( - option: c_int, - arg2: *mut c_void, - arg3: *mut c_void, -) -> io::Result { - syscalls::prctl(option, arg2, arg3, null_mut(), null_mut()) -} - -#[inline] -pub(crate) unsafe fn prctl_get_at_arg2_optional

(option: i32) -> io::Result

{ - let mut value: MaybeUninit

= MaybeUninit::uninit(); - prctl_2args(option, value.as_mut_ptr().cast())?; - Ok(value.assume_init()) -} - -#[inline] -pub(crate) unsafe fn prctl_get_at_arg2(option: i32) -> io::Result -where - P: Default, - T: TryFrom, -{ - let mut value: P = Default::default(); - prctl_2args(option, as_mut_ptr(&mut value).cast())?; - TryFrom::try_from(value) -} diff --git a/third_party/rust/rustix/src/process/chdir.rs b/third_party/rust/rustix/src/process/chdir.rs deleted file mode 100644 index b110afef8899..000000000000 --- a/third_party/rust/rustix/src/process/chdir.rs +++ /dev/null @@ -1,94 +0,0 @@ -#[cfg(not(target_os = "fuchsia"))] -use crate::backend::fd::AsFd; -#[cfg(feature = "fs")] -use crate::path; -#[cfg(any(feature = "fs", not(target_os = "fuchsia")))] -use crate::{backend, io}; -#[cfg(all(feature = "alloc", feature = "fs"))] -use { - crate::ffi::{CStr, CString}, - crate::path::SMALL_PATH_BUFFER_SIZE, - alloc::vec::Vec, -}; - -/// `chdir(path)`—Change the current working directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chdir.html -/// [Linux]: https://man7.org/linux/man-pages/man2/chdir.2.html -#[inline] -#[cfg(feature = "fs")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -pub fn chdir(path: P) -> io::Result<()> { - path.into_with_c_str(backend::process::syscalls::chdir) -} - -/// `fchdir(fd)`—Change the current working directory. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchdir.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fchdir.2.html -#[cfg(not(target_os = "fuchsia"))] -#[inline] -pub fn fchdir(fd: Fd) -> io::Result<()> { - backend::process::syscalls::fchdir(fd.as_fd()) -} - -/// `getCWD`—Return the current working directory. -/// -/// If `reuse` already has available capacity, reuse it if possible. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html -/// [Linux]: https://man7.org/linux/man-pages/man3/getcwd.3.html -#[cfg(all(feature = "alloc", feature = "fs"))] -#[cfg(not(target_os = "wasi"))] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -#[inline] -pub fn getcwd>>(reuse: B) -> io::Result { - _getcwd(reuse.into()) -} - -#[cfg(all(feature = "alloc", feature = "fs"))] -#[allow(unsafe_code)] -fn _getcwd(mut buffer: Vec) -> io::Result { - buffer.clear(); - buffer.reserve(SMALL_PATH_BUFFER_SIZE); - - loop { - match backend::process::syscalls::getcwd(buffer.spare_capacity_mut()) { - Err(io::Errno::RANGE) => { - buffer.reserve(buffer.capacity() + 1); // use `Vec` reallocation strategy to grow capacity exponentially - } - Ok(_) => { - // SAFETY: - // - "These functions return a null-terminated string" - // - [POSIX definition 3.375: String]: "A contiguous sequence of bytes - // terminated by and including the first null byte." - // - // Thus, there will be a single NUL byte at the end of the string. - // - // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_375 - unsafe { - buffer.set_len( - CStr::from_ptr(buffer.as_ptr().cast()) - .to_bytes_with_nul() - .len(), - ); - - return Ok(CString::from_vec_with_nul_unchecked(buffer)); - } - } - Err(errno) => return Err(errno), - } - } -} diff --git a/third_party/rust/rustix/src/process/chroot.rs b/third_party/rust/rustix/src/process/chroot.rs deleted file mode 100644 index a4fd8d852cea..000000000000 --- a/third_party/rust/rustix/src/process/chroot.rs +++ /dev/null @@ -1,16 +0,0 @@ -#[cfg(feature = "fs")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -use crate::{backend, io, path}; - -/// `chroot(path)`—Change the process root directory. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/chroot.2.html -#[cfg(feature = "fs")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -#[inline] -pub fn chroot(path: P) -> io::Result<()> { - path.into_with_c_str(backend::process::syscalls::chroot) -} diff --git a/third_party/rust/rustix/src/process/exit.rs b/third_party/rust/rustix/src/process/exit.rs deleted file mode 100644 index 95b78c4a1e52..000000000000 --- a/third_party/rust/rustix/src/process/exit.rs +++ /dev/null @@ -1,36 +0,0 @@ -use crate::backend; - -/// `EXIT_SUCCESS` for use with [`exit`]. -/// -/// [`exit`]: std::process::exit -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html -/// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html -pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; - -/// `EXIT_FAILURE` for use with [`exit`]. -/// -/// [`exit`]: std::process::exit -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html -/// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html -pub const EXIT_FAILURE: i32 = backend::c::EXIT_FAILURE; - -/// The exit status used by a process terminated with a [`Signal::Abort`] -/// signal. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://tldp.org/LDP/abs/html/exitcodes.html -/// [`Signal::Abort`]: crate::process::Signal::Abort -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub const EXIT_SIGNALED_SIGABRT: i32 = backend::c::EXIT_SIGNALED_SIGABRT; diff --git a/third_party/rust/rustix/src/process/id.rs b/third_party/rust/rustix/src/process/id.rs deleted file mode 100644 index 62385cf5e487..000000000000 --- a/third_party/rust/rustix/src/process/id.rs +++ /dev/null @@ -1,233 +0,0 @@ -//! Unix user, group, and process identifiers. -//! -//! # Safety -//! -//! The `Uid`, `Gid`, and `Pid` types can be constructed from raw integers, -//! which is marked unsafe because actual OS's assign special meaning to some -//! integer values. -#![allow(unsafe_code)] - -use crate::{backend, io}; -#[cfg(feature = "alloc")] -use alloc::vec::Vec; -#[cfg(linux_kernel)] -use backend::process::types::RawCpuid; - -/// The raw integer value of a Unix user ID. -pub use crate::ugid::RawUid; - -/// The raw integer value of a Unix group ID. -pub use crate::ugid::RawGid; - -/// The raw integer value of a Unix process ID. -pub use crate::pid::RawPid; - -pub use crate::pid::Pid; -pub use crate::ugid::{Gid, Uid}; - -/// A Linux CPU ID. -#[cfg(linux_kernel)] -#[repr(transparent)] -#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)] -pub struct Cpuid(RawCpuid); - -#[cfg(linux_kernel)] -impl Cpuid { - /// Converts a `RawCpuid` into a `Cpuid`. - /// - /// # Safety - /// - /// `raw` must be the value of a valid Linux CPU ID. - #[inline] - pub const unsafe fn from_raw(raw: RawCpuid) -> Self { - Self(raw) - } - - /// Converts a `Cpuid` into a `RawCpuid`. - #[inline] - pub const fn as_raw(self) -> RawCpuid { - self.0 - } -} - -/// `getuid()`—Returns the process' real user ID. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getuid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getuid.2.html -#[inline] -#[must_use] -pub fn getuid() -> Uid { - backend::ugid::syscalls::getuid() -} - -/// `geteuid()`—Returns the process' effective user ID. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/geteuid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/geteuid.2.html -#[inline] -#[must_use] -pub fn geteuid() -> Uid { - backend::ugid::syscalls::geteuid() -} - -/// `getgid()`—Returns the process' real group ID. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getgid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getgid.2.html -#[inline] -#[must_use] -pub fn getgid() -> Gid { - backend::ugid::syscalls::getgid() -} - -/// `getegid()`—Returns the process' effective group ID. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getegid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getegid.2.html -#[inline] -#[must_use] -pub fn getegid() -> Gid { - backend::ugid::syscalls::getegid() -} - -/// `getpid()`—Returns the process' ID. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getpid.2.html -#[inline] -#[must_use] -pub fn getpid() -> Pid { - backend::pid::syscalls::getpid() -} - -/// `getppid()`—Returns the parent process' ID. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getppid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getppid.2.html -#[inline] -#[must_use] -pub fn getppid() -> Option { - backend::process::syscalls::getppid() -} - -/// `getpgid(pid)`—Returns the process group ID of the given process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpgid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getpgid.2.html -#[inline] -pub fn getpgid(pid: Option) -> io::Result { - backend::process::syscalls::getpgid(pid) -} - -/// `setpgid(pid, pgid)`—Sets the process group ID of the given process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpgid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setpgid.2.html -#[inline] -pub fn setpgid(pid: Option, pgid: Option) -> io::Result<()> { - backend::process::syscalls::setpgid(pid, pgid) -} - -/// `getpgrp()`—Returns the process' group ID. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpgrp.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getpgrp.2.html -#[inline] -#[must_use] -pub fn getpgrp() -> Pid { - backend::process::syscalls::getpgrp() -} - -/// `getsid(pid)`—Get the session ID of the given process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getsid.2.html -#[cfg(not(target_os = "redox"))] -#[inline] -pub fn getsid(pid: Option) -> io::Result { - backend::process::syscalls::getsid(pid) -} - -/// `setsid()`—Create a new session. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setsid.2.html -#[inline] -pub fn setsid() -> io::Result { - backend::process::syscalls::setsid() -} - -/// `getgroups()`—Return a list of the current user's groups. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getgroups.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getgroups.2.html -#[cfg(feature = "alloc")] -pub fn getgroups() -> io::Result> { - let mut buffer = Vec::new(); - - // This code would benefit from having a better way to read into - // uninitialized memory, but that requires `unsafe`. - buffer.reserve(8); - buffer.resize(buffer.capacity(), Gid::ROOT); - - loop { - let ngroups = backend::process::syscalls::getgroups(&mut buffer)?; - - let ngroups = ngroups as usize; - assert!(ngroups <= buffer.len()); - if ngroups < buffer.len() { - buffer.resize(ngroups, Gid::ROOT); - return Ok(buffer); - } - buffer.reserve(1); // use `Vec` reallocation strategy to grow capacity exponentially - buffer.resize(buffer.capacity(), Gid::ROOT); - } -} diff --git a/third_party/rust/rustix/src/process/ioctl.rs b/third_party/rust/rustix/src/process/ioctl.rs deleted file mode 100644 index 3c9d902557ae..000000000000 --- a/third_party/rust/rustix/src/process/ioctl.rs +++ /dev/null @@ -1,52 +0,0 @@ -//! Process-oriented `ioctl`s. -//! -//! # Safety -//! -//! This module invokes `ioctl`s. - -#![allow(unsafe_code)] - -use crate::{backend, io, ioctl}; -use backend::c; -use backend::fd::AsFd; - -/// `ioctl(fd, TIOCSCTTY, 0)`—Sets the controlling terminal for the processs. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// -/// [Linux]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=tty&sektion=4 -/// [NetBSD]: https://man.netbsd.org/tty.4 -/// [OpenBSD]: https://man.openbsd.org/tty.4 -#[cfg(not(any(windows, target_os = "aix", target_os = "redox", target_os = "wasi")))] -#[inline] -#[doc(alias = "TIOCSCTTY")] -pub fn ioctl_tiocsctty(fd: Fd) -> io::Result<()> { - unsafe { ioctl::ioctl(fd, Tiocsctty) } -} - -#[cfg(not(any(windows, target_os = "aix", target_os = "redox", target_os = "wasi")))] -struct Tiocsctty; - -#[cfg(not(any(windows, target_os = "aix", target_os = "redox", target_os = "wasi")))] -unsafe impl ioctl::Ioctl for Tiocsctty { - type Output = (); - - const IS_MUTATING: bool = false; - const OPCODE: ioctl::Opcode = ioctl::Opcode::old(c::TIOCSCTTY as ioctl::RawOpcode); - - fn as_ptr(&mut self) -> *mut c::c_void { - (&0u32) as *const u32 as *mut c::c_void - } - - unsafe fn output_from_ptr( - _: ioctl::IoctlOutput, - _: *mut c::c_void, - ) -> io::Result { - Ok(()) - } -} diff --git a/third_party/rust/rustix/src/process/kill.rs b/third_party/rust/rustix/src/process/kill.rs deleted file mode 100644 index 5f6f06c486d0..000000000000 --- a/third_party/rust/rustix/src/process/kill.rs +++ /dev/null @@ -1,97 +0,0 @@ -use crate::process::Pid; -use crate::{backend, io}; - -pub use crate::signal::Signal; - -/// `kill(pid, sig)`—Sends a signal to a process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html -/// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html -#[inline] -#[doc(alias = "kill")] -pub fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { - backend::process::syscalls::kill_process(pid, sig) -} - -/// `kill(-pid, sig)`—Sends a signal to all processes in a process group. -/// -/// If `pid` is 1, this sends a signal to all processes the current process -/// has permission to send signals to, except process `1`, possibly other -/// system-specific processes, and on some systems, the current process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html -/// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html -#[inline] -#[doc(alias = "kill")] -pub fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { - backend::process::syscalls::kill_process_group(pid, sig) -} - -/// `kill(0, sig)`—Sends a signal to all processes in the current process -/// group. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html -/// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html -#[inline] -#[doc(alias = "kill")] -pub fn kill_current_process_group(sig: Signal) -> io::Result<()> { - backend::process::syscalls::kill_current_process_group(sig) -} - -/// `kill(pid, 0)`—Check validity of pid and permissions to send signals to -/// the process, without actually sending any signals. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html -/// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html -#[inline] -#[doc(alias = "kill")] -pub fn test_kill_process(pid: Pid) -> io::Result<()> { - backend::process::syscalls::test_kill_process(pid) -} - -/// `kill(-pid, 0)`—Check validity of pid and permissions to send signals to -/// all processes in the process group, without actually sending any signals. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html -/// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html -#[inline] -#[doc(alias = "kill")] -pub fn test_kill_process_group(pid: Pid) -> io::Result<()> { - backend::process::syscalls::test_kill_process_group(pid) -} - -/// `kill(0, 0)`—Check validity of pid and permissions to send signals to the -/// all processes in the current process group, without actually sending any -/// signals. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html -/// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html -#[inline] -#[doc(alias = "kill")] -pub fn test_kill_current_process_group() -> io::Result<()> { - backend::process::syscalls::test_kill_current_process_group() -} diff --git a/third_party/rust/rustix/src/process/membarrier.rs b/third_party/rust/rustix/src/process/membarrier.rs deleted file mode 100644 index 9c42bbd8513d..000000000000 --- a/third_party/rust/rustix/src/process/membarrier.rs +++ /dev/null @@ -1,92 +0,0 @@ -//! The Linux `membarrier` syscall. - -use crate::process::Cpuid; -use crate::{backend, io}; - -pub use backend::process::types::MembarrierCommand; - -#[cfg(linux_kernel)] -bitflags::bitflags! { - /// A result from [`membarrier_query`]. - /// - /// These flags correspond to values of [`MembarrierCommand`] which are - /// supported in the OS. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct MembarrierQuery: u32 { - /// `MEMBARRIER_CMD_GLOBAL` (also known as `MEMBARRIER_CMD_SHARED`) - #[doc(alias = "SHARED")] - #[doc(alias = "MEMBARRIER_CMD_SHARED")] - const GLOBAL = MembarrierCommand::Global as _; - /// `MEMBARRIER_CMD_GLOBAL_EXPEDITED` - const GLOBAL_EXPEDITED = MembarrierCommand::GlobalExpedited as _; - /// `MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED` - const REGISTER_GLOBAL_EXPEDITED = MembarrierCommand::RegisterGlobalExpedited as _; - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED` - const PRIVATE_EXPEDITED = MembarrierCommand::PrivateExpedited as _; - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED` - const REGISTER_PRIVATE_EXPEDITED = MembarrierCommand::RegisterPrivateExpedited as _; - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE` - const PRIVATE_EXPEDITED_SYNC_CORE = MembarrierCommand::PrivateExpeditedSyncCore as _; - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE` - const REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = MembarrierCommand::RegisterPrivateExpeditedSyncCore as _; - /// `MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) - const PRIVATE_EXPEDITED_RSEQ = MembarrierCommand::PrivateExpeditedRseq as _; - /// `MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ` (since Linux 5.10) - const REGISTER_PRIVATE_EXPEDITED_RSEQ = MembarrierCommand::RegisterPrivateExpeditedRseq as _; - - /// - const _ = !0; - } -} - -#[cfg(linux_kernel)] -impl MembarrierQuery { - /// Test whether this query result contains the given command. - #[inline] - pub fn contains_command(self, cmd: MembarrierCommand) -> bool { - // `MembarrierCommand` is an enum that only contains values also valid - // in `MembarrierQuery`. - self.contains(Self::from_bits_retain(cmd as _)) - } -} - -/// `membarrier(MEMBARRIER_CMD_QUERY, 0, 0)`—Query the supported `membarrier` -/// commands. -/// -/// This function doesn't return a `Result` because it always succeeds; if the -/// underlying OS doesn't support the `membarrier` syscall, it returns an empty -/// `MembarrierQuery` value. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/membarrier.2.html -#[inline] -#[doc(alias = "MEMBARRIER_CMD_QUERY")] -pub fn membarrier_query() -> MembarrierQuery { - backend::process::syscalls::membarrier_query() -} - -/// `membarrier(cmd, 0, 0)`—Perform a memory barrier. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/membarrier.2.html -#[inline] -pub fn membarrier(cmd: MembarrierCommand) -> io::Result<()> { - backend::process::syscalls::membarrier(cmd) -} - -/// `membarrier(cmd, MEMBARRIER_CMD_FLAG_CPU, cpu)`—Perform a memory barrier -/// with a specific CPU. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/membarrier.2.html -#[inline] -pub fn membarrier_cpu(cmd: MembarrierCommand, cpu: Cpuid) -> io::Result<()> { - backend::process::syscalls::membarrier_cpu(cmd, cpu) -} diff --git a/third_party/rust/rustix/src/process/mod.rs b/third_party/rust/rustix/src/process/mod.rs deleted file mode 100644 index 9c62f127e2f7..000000000000 --- a/third_party/rust/rustix/src/process/mod.rs +++ /dev/null @@ -1,77 +0,0 @@ -//! Process-associated operations. - -#[cfg(not(target_os = "wasi"))] -mod chdir; -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -mod chroot; -mod exit; -#[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id. -mod id; -#[cfg(not(target_os = "espidf"))] -mod ioctl; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -mod kill; -#[cfg(linux_kernel)] -mod membarrier; -#[cfg(target_os = "linux")] -mod pidfd; -#[cfg(target_os = "linux")] -mod pidfd_getfd; -#[cfg(linux_kernel)] -mod prctl; -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] // WASI doesn't have [gs]etpriority. -mod priority; -#[cfg(freebsdlike)] -mod procctl; -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -mod rlimit; -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -mod sched; -mod sched_yield; -#[cfg(not(target_os = "wasi"))] // WASI doesn't have umask. -mod umask; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -mod wait; - -#[cfg(not(target_os = "wasi"))] -pub use chdir::*; -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -pub use chroot::*; -pub use exit::*; -#[cfg(not(target_os = "wasi"))] -pub use id::*; -#[cfg(not(target_os = "espidf"))] -pub use ioctl::*; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub use kill::*; -#[cfg(linux_kernel)] -pub use membarrier::*; -#[cfg(target_os = "linux")] -pub use pidfd::*; -#[cfg(target_os = "linux")] -pub use pidfd_getfd::*; -#[cfg(linux_kernel)] -pub use prctl::*; -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -pub use priority::*; -#[cfg(freebsdlike)] -pub use procctl::*; -#[cfg(not(any( - target_os = "espidf", - target_os = "fuchsia", - target_os = "redox", - target_os = "wasi" -)))] -pub use rlimit::*; -#[cfg(any(linux_kernel, target_os = "dragonfly", target_os = "fuchsia"))] -pub use sched::*; -pub use sched_yield::sched_yield; -#[cfg(not(target_os = "wasi"))] -pub use umask::*; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub use wait::*; diff --git a/third_party/rust/rustix/src/process/pidfd.rs b/third_party/rust/rustix/src/process/pidfd.rs deleted file mode 100644 index 0548055fca22..000000000000 --- a/third_party/rust/rustix/src/process/pidfd.rs +++ /dev/null @@ -1,30 +0,0 @@ -use crate::fd::OwnedFd; -use crate::process::Pid; -use crate::{backend, io}; - -bitflags::bitflags! { - /// `PIDFD_*` flags for use with [`pidfd_open`]. - /// - /// [`pidfd_open`]: crate::process::pidfd_open - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PidfdFlags: backend::c::c_uint { - /// `PIDFD_NONBLOCK`. - const NONBLOCK = backend::c::PIDFD_NONBLOCK; - - /// - const _ = !0; - } -} - -/// `syscall(SYS_pidfd_open, pid, flags)`—Creates a file descriptor for a -/// process. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/pidfd_open.2.html -#[inline] -pub fn pidfd_open(pid: Pid, flags: PidfdFlags) -> io::Result { - backend::process::syscalls::pidfd_open(pid, flags) -} diff --git a/third_party/rust/rustix/src/process/pidfd_getfd.rs b/third_party/rust/rustix/src/process/pidfd_getfd.rs deleted file mode 100644 index 27d4f1986935..000000000000 --- a/third_party/rust/rustix/src/process/pidfd_getfd.rs +++ /dev/null @@ -1,56 +0,0 @@ -//! The [`pidfd_getfd`] function and supporting types. - -#![allow(unsafe_code)] -use crate::fd::OwnedFd; -use crate::{backend, io}; -use backend::fd::{AsFd, RawFd}; - -/// Raw file descriptor in another process. -/// -/// A distinct type alias is used here to inform the user that normal file -/// descriptors from the calling process should not be used. The provided file -/// descriptor is used by the kernel as the index into the file descriptor -/// table of an entirely different process. -pub type ForeignRawFd = RawFd; - -bitflags::bitflags! { - /// All flags are reserved for future use. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PidfdGetfdFlags: backend::c::c_uint { - /// - const _ = !0; - } -} - -/// `syscall(SYS_pidfd_getfd, pidfd, flags)`—Obtain a duplicate of another -/// process' file descriptor. -/// -/// # References -/// - [Linux] -/// -/// # Warning -/// -/// This function is generally safe for the calling process, but it can impact -/// the target process in unexpected ways. If you want to ensure that Rust I/O -/// safety assumptions continue to hold in the target process, then the target -/// process must have communicated the file description number to the calling -/// process from a value of a type that implements `AsRawFd`, and the target -/// process must not drop that value until after the calling process has -/// returned from `pidfd_getfd`. -/// -/// When `pidfd_getfd` is used to debug the target, or the target is not a Rust -/// aplication, or `pidfd_getfd` is used in any other way, then extra care -/// should be taken to avoid unexpected behaviour or crashes. -/// -/// For further details, see the references above. -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/pidfd_getfd.2.html -#[inline] -pub fn pidfd_getfd( - pidfd: Fd, - targetfd: ForeignRawFd, - flags: PidfdGetfdFlags, -) -> io::Result { - backend::process::syscalls::pidfd_getfd(pidfd.as_fd(), targetfd, flags) -} diff --git a/third_party/rust/rustix/src/process/prctl.rs b/third_party/rust/rustix/src/process/prctl.rs deleted file mode 100644 index 59be7020f866..000000000000 --- a/third_party/rust/rustix/src/process/prctl.rs +++ /dev/null @@ -1,1146 +0,0 @@ -//! Bindings for the Linux `prctl` system call. -//! -//! There are similarities (but also differences) with FreeBSD's `procctl` -//! system call, whose interface is located in the `procctl.rs` file. - -#![allow(unsafe_code)] - -use core::mem::size_of; -use core::ptr::{null, null_mut, NonNull}; - -use bitflags::bitflags; - -use crate::backend::c::{c_int, c_uint, c_void}; -use crate::backend::prctl::syscalls; -use crate::fd::{AsRawFd, BorrowedFd}; -use crate::ffi::CStr; -use crate::io; -use crate::prctl::*; -use crate::process::{Pid, RawPid}; -use crate::signal::Signal; -use crate::utils::{as_mut_ptr, as_ptr}; - -// -// PR_GET_PDEATHSIG/PR_SET_PDEATHSIG -// - -const PR_GET_PDEATHSIG: c_int = 2; - -/// Get the current value of the parent process death signal. -/// -/// # References -/// - [Linux: `prctl(PR_GET_PDEATHSIG,...)`] -/// - [FreeBSD: `procctl(PROC_PDEATHSIG_STATUS,...)`] -/// -/// [Linux: `prctl(PR_GET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [FreeBSD: `procctl(PROC_PDEATHSIG_STATUS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -#[doc(alias = "PR_GET_PDEATHSIG")] -pub fn parent_process_death_signal() -> io::Result> { - unsafe { prctl_get_at_arg2_optional::(PR_GET_PDEATHSIG) }.map(Signal::from_raw) -} - -const PR_SET_PDEATHSIG: c_int = 1; - -/// Set the parent-death signal of the calling process. -/// -/// # References -/// - [Linux: `prctl(PR_SET_PDEATHSIG,...)`] -/// - [FreeBSD: `procctl(PROC_PDEATHSIG_CTL,...)`] -/// -/// [Linux: `prctl(PR_SET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [FreeBSD: `procctl(PROC_PDEATHSIG_CTL,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -#[doc(alias = "PR_SET_PDEATHSIG")] -pub fn set_parent_process_death_signal(signal: Option) -> io::Result<()> { - let signal = signal.map_or(0_usize, |signal| signal as usize); - unsafe { prctl_2args(PR_SET_PDEATHSIG, signal as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_DUMPABLE/PR_SET_DUMPABLE -// - -const PR_GET_DUMPABLE: c_int = 3; - -const SUID_DUMP_DISABLE: i32 = 0; -const SUID_DUMP_USER: i32 = 1; -const SUID_DUMP_ROOT: i32 = 2; - -/// `SUID_DUMP_*` values for use with [`dumpable_behavior`] and -/// [`set_dumpable_behavior`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(i32)] -pub enum DumpableBehavior { - /// Not dumpable. - #[doc(alias = "SUID_DUMP_DISABLE")] - NotDumpable = SUID_DUMP_DISABLE, - /// Dumpable. - #[doc(alias = "SUID_DUMP_USER")] - Dumpable = SUID_DUMP_USER, - /// Dumpable but only readable by root. - #[doc(alias = "SUID_DUMP_ROOT")] - DumpableReadableOnlyByRoot = SUID_DUMP_ROOT, -} - -impl TryFrom for DumpableBehavior { - type Error = io::Errno; - - fn try_from(value: i32) -> Result { - match value { - SUID_DUMP_DISABLE => Ok(Self::NotDumpable), - SUID_DUMP_USER => Ok(Self::Dumpable), - SUID_DUMP_ROOT => Ok(Self::DumpableReadableOnlyByRoot), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Get the current state of the calling process' `dumpable` attribute. -/// -/// # References -/// - [`prctl(PR_GET_DUMPABLE,...)`] -/// -/// [`prctl(PR_GET_DUMPABLE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_DUMPABLE")] -pub fn dumpable_behavior() -> io::Result { - unsafe { prctl_1arg(PR_GET_DUMPABLE) }.and_then(TryInto::try_into) -} - -const PR_SET_DUMPABLE: c_int = 4; - -/// Set the state of the `dumpable` attribute, which determines whether the -/// process can be traced and whether core dumps are produced for the calling -/// process upon delivery of a signal whose default behavior is to produce a -/// core dump. -/// -/// A similar function with the same name is available on FreeBSD (as part of -/// the `procctl` interface), but it has an extra argument which allows to -/// select a process other then the current process. -/// -/// # References -/// - [`prctl(PR_SET_DUMPABLE,...)`] -/// -/// [`prctl(PR_SET_DUMPABLE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_DUMPABLE")] -pub fn set_dumpable_behavior(config: DumpableBehavior) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_DUMPABLE, config as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_UNALIGN/PR_SET_UNALIGN -// - -const PR_GET_UNALIGN: c_int = 5; - -bitflags! { - /// `PR_UNALIGN_*` flags for use with [`unaligned_access_control`] and - /// [`set_unaligned_access_control`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct UnalignedAccessControl: u32 { - /// Silently fix up unaligned user accesses. - #[doc(alias = "NOPRINT")] - #[doc(alias = "PR_UNALIGN_NOPRINT")] - const NO_PRINT = 1; - /// Generate a [`Signal::Bus`] signal on unaligned user access. - #[doc(alias = "PR_UNALIGN_SIGBUS")] - const SIGBUS = 2; - - /// - const _ = !0; - } -} - -/// Get unaligned access control bits. -/// -/// # References -/// - [`prctl(PR_GET_UNALIGN,...)`] -/// -/// [`prctl(PR_GET_UNALIGN,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_UNALIGN")] -pub fn unaligned_access_control() -> io::Result { - let r = unsafe { prctl_get_at_arg2_optional::(PR_GET_UNALIGN)? }; - UnalignedAccessControl::from_bits(r).ok_or(io::Errno::RANGE) -} - -const PR_SET_UNALIGN: c_int = 6; - -/// Set unaligned access control bits. -/// -/// # References -/// - [`prctl(PR_SET_UNALIGN,...)`] -/// -/// [`prctl(PR_SET_UNALIGN,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_UNALIGN")] -pub fn set_unaligned_access_control(config: UnalignedAccessControl) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_UNALIGN, config.bits() as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_FPEMU/PR_SET_FPEMU -// - -const PR_GET_FPEMU: c_int = 9; - -bitflags! { - /// `PR_FPEMU_*` flags for use with [`floating_point_emulation_control`] - /// and [`set_floating_point_emulation_control`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FloatingPointEmulationControl: u32 { - /// Silently emulate floating point operations accesses. - #[doc(alias = "PR_UNALIGN_NOPRINT")] - const NO_PRINT = 1; - /// Don't emulate floating point operations, send a [`Signal::Fpe`] - /// signal instead. - #[doc(alias = "PR_UNALIGN_SIGFPE")] - const SIGFPE = 2; - } -} - -/// Get floating point emulation control bits. -/// -/// # References -/// - [`prctl(PR_GET_FPEMU,...)`] -/// -/// [`prctl(PR_GET_FPEMU,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_FPEMU")] -pub fn floating_point_emulation_control() -> io::Result { - let r = unsafe { prctl_get_at_arg2_optional::(PR_GET_FPEMU)? }; - FloatingPointEmulationControl::from_bits(r).ok_or(io::Errno::RANGE) -} - -const PR_SET_FPEMU: c_int = 10; - -/// Set floating point emulation control bits. -/// -/// # References -/// - [`prctl(PR_SET_FPEMU,...)`] -/// -/// [`prctl(PR_SET_FPEMU,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_FPEMU")] -pub fn set_floating_point_emulation_control( - config: FloatingPointEmulationControl, -) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_FPEMU, config.bits() as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_FPEXC/PR_SET_FPEXC -// - -const PR_GET_FPEXC: c_int = 11; - -bitflags! { - /// Zero means floating point exceptions are disabled. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct FloatingPointExceptionMode: u32 { - /// Async non-recoverable exception mode. - const NONRECOV = 1; - /// Async recoverable exception mode. - const ASYNC = 2; - /// Precise exception mode. - const PRECISE = 3; - - /// Use FPEXC for floating point exception enables. - const SW_ENABLE = 0x80; - /// Floating point divide by zero. - const DIV = 0x01_0000; - /// Floating point overflow. - const OVF = 0x02_0000; - /// Floating point underflow. - const UND = 0x04_0000; - /// Floating point inexact result. - const RES = 0x08_0000; - /// Floating point invalid operation. - const INV = 0x10_0000; - } -} - -/// Get floating point exception mode. -/// -/// # References -/// - [`prctl(PR_GET_FPEXC,...)`] -/// -/// [`prctl(PR_GET_FPEXC,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_FPEXEC")] -pub fn floating_point_exception_mode() -> io::Result> { - unsafe { prctl_get_at_arg2_optional::(PR_GET_FPEXC) } - .map(FloatingPointExceptionMode::from_bits) -} - -const PR_SET_FPEXC: c_int = 12; - -/// Set floating point exception mode. -/// -/// # References -/// - [`prctl(PR_SET_FPEXC,...)`] -/// -/// [`prctl(PR_SET_FPEXC,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_FPEXEC")] -pub fn set_floating_point_exception_mode( - config: Option, -) -> io::Result<()> { - let config = config.as_ref().map_or(0, FloatingPointExceptionMode::bits); - unsafe { prctl_2args(PR_SET_FPEXC, config as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_TIMING/PR_SET_TIMING -// - -const PR_GET_TIMING: c_int = 13; - -const PR_TIMING_STATISTICAL: i32 = 0; -const PR_TIMING_TIMESTAMP: i32 = 1; - -/// `PR_TIMING_*` values for use with [`timing_method`] and -/// [`set_timing_method`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(i32)] -pub enum TimingMethod { - /// Normal, traditional, statistical process timing. - Statistical = PR_TIMING_STATISTICAL, - /// Accurate timestamp based process timing. - TimeStamp = PR_TIMING_TIMESTAMP, -} - -impl TryFrom for TimingMethod { - type Error = io::Errno; - - fn try_from(value: i32) -> Result { - match value { - PR_TIMING_STATISTICAL => Ok(Self::Statistical), - PR_TIMING_TIMESTAMP => Ok(Self::TimeStamp), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Get which process timing method is currently in use. -/// -/// # References -/// - [`prctl(PR_GET_TIMING,...)`] -/// -/// [`prctl(PR_GET_TIMING,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_TIMING")] -pub fn timing_method() -> io::Result { - unsafe { prctl_1arg(PR_GET_TIMING) }.and_then(TryInto::try_into) -} - -const PR_SET_TIMING: c_int = 14; - -/// Set whether to use (normal, traditional) statistical process timing or -/// accurate timestamp-based process timing. -/// -/// # References -/// - [`prctl(PR_SET_TIMING,...)`] -/// -/// [`prctl(PR_SET_TIMING,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_TIMING")] -pub fn set_timing_method(method: TimingMethod) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_TIMING, method as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_ENDIAN/PR_SET_ENDIAN -// - -const PR_GET_ENDIAN: c_int = 19; - -const PR_ENDIAN_BIG: u32 = 0; -const PR_ENDIAN_LITTLE: u32 = 1; -const PR_ENDIAN_PPC_LITTLE: u32 = 2; - -/// `PR_ENDIAN_*` values for use with [`endian_mode`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum EndianMode { - /// Big endian mode. - Big = PR_ENDIAN_BIG, - /// True little endian mode. - Little = PR_ENDIAN_LITTLE, - /// `PowerPC` pseudo little endian. - PowerPCLittle = PR_ENDIAN_PPC_LITTLE, -} - -impl TryFrom for EndianMode { - type Error = io::Errno; - - fn try_from(value: u32) -> Result { - match value { - PR_ENDIAN_BIG => Ok(Self::Big), - PR_ENDIAN_LITTLE => Ok(Self::Little), - PR_ENDIAN_PPC_LITTLE => Ok(Self::PowerPCLittle), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Get the endianness of the calling process. -/// -/// # References -/// - [`prctl(PR_GET_ENDIAN,...)`] -/// -/// [`prctl(PR_GET_ENDIAN,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_ENDIAN")] -pub fn endian_mode() -> io::Result { - unsafe { prctl_get_at_arg2::(PR_GET_ENDIAN) } -} - -const PR_SET_ENDIAN: c_int = 20; - -/// Set the endianness of the calling process. -/// -/// # References -/// - [`prctl(PR_SET_ENDIAN,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SET_ENDIAN,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_ENDIAN")] -pub unsafe fn set_endian_mode(mode: EndianMode) -> io::Result<()> { - prctl_2args(PR_SET_ENDIAN, mode as usize as *mut _).map(|_r| ()) -} - -// -// PR_GET_TSC/PR_SET_TSC -// - -const PR_GET_TSC: c_int = 25; - -const PR_TSC_ENABLE: u32 = 1; -const PR_TSC_SIGSEGV: u32 = 2; - -/// `PR_TSC_*` values for use with [`time_stamp_counter_readability`] and -/// [`set_time_stamp_counter_readability`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum TimeStampCounterReadability { - /// Allow the use of the timestamp counter. - Readable = PR_TSC_ENABLE, - /// Throw a [`Signal::Segv`] signal instead of reading the TSC. - RaiseSIGSEGV = PR_TSC_SIGSEGV, -} - -impl TryFrom for TimeStampCounterReadability { - type Error = io::Errno; - - fn try_from(value: u32) -> Result { - match value { - PR_TSC_ENABLE => Ok(Self::Readable), - PR_TSC_SIGSEGV => Ok(Self::RaiseSIGSEGV), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Get the state of the flag determining if the timestamp counter can be read. -/// -/// # References -/// - [`prctl(PR_GET_TSC,...)`] -/// -/// [`prctl(PR_GET_TSC,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_TSC")] -pub fn time_stamp_counter_readability() -> io::Result { - unsafe { prctl_get_at_arg2::(PR_GET_TSC) } -} - -const PR_SET_TSC: c_int = 26; - -/// Set the state of the flag determining if the timestamp counter can be read -/// by the process. -/// -/// # References -/// - [`prctl(PR_SET_TSC,...)`] -/// -/// [`prctl(PR_SET_TSC,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_TSC")] -pub fn set_time_stamp_counter_readability( - readability: TimeStampCounterReadability, -) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_TSC, readability as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_TASK_PERF_EVENTS_DISABLE/PR_TASK_PERF_EVENTS_ENABLE -// - -const PR_TASK_PERF_EVENTS_DISABLE: c_int = 31; -const PR_TASK_PERF_EVENTS_ENABLE: c_int = 32; - -/// Enable or disable all performance counters attached to the calling process. -/// -/// # References -/// - [`prctl(PR_TASK_PERF_EVENTS_ENABLE,...)`] -/// - [`prctl(PR_TASK_PERF_EVENTS_DISABLE,...)`] -/// -/// [`prctl(PR_TASK_PERF_EVENTS_ENABLE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [`prctl(PR_TASK_PERF_EVENTS_DISABLE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_TASK_PERF_EVENTS_ENABLE")] -#[doc(alias = "PR_TASK_PERF_EVENTS_DISABLE")] -pub fn configure_performance_counters(enable: bool) -> io::Result<()> { - let option = if enable { - PR_TASK_PERF_EVENTS_ENABLE - } else { - PR_TASK_PERF_EVENTS_DISABLE - }; - - unsafe { prctl_1arg(option) }.map(|_r| ()) -} - -// -// PR_MCE_KILL_GET/PR_MCE_KILL -// - -const PR_MCE_KILL_GET: c_int = 34; - -const PR_MCE_KILL_LATE: u32 = 0; -const PR_MCE_KILL_EARLY: u32 = 1; -const PR_MCE_KILL_DEFAULT: u32 = 2; - -/// `PR_MCE_KILL_*` values for use with -/// [`machine_check_memory_corruption_kill_policy`] and -/// [`set_machine_check_memory_corruption_kill_policy`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum MachineCheckMemoryCorruptionKillPolicy { - /// Late kill policy. - #[doc(alias = "PR_MCE_KILL_LATE")] - Late = PR_MCE_KILL_LATE, - /// Early kill policy. - #[doc(alias = "PR_MCE_KILL_EARLY")] - Early = PR_MCE_KILL_EARLY, - /// System-wide default policy. - #[doc(alias = "PR_MCE_KILL_DEFAULT")] - Default = PR_MCE_KILL_DEFAULT, -} - -impl TryFrom for MachineCheckMemoryCorruptionKillPolicy { - type Error = io::Errno; - - fn try_from(value: u32) -> Result { - match value { - PR_MCE_KILL_LATE => Ok(Self::Late), - PR_MCE_KILL_EARLY => Ok(Self::Early), - PR_MCE_KILL_DEFAULT => Ok(Self::Default), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Get the current per-process machine check kill policy. -/// -/// # References -/// - [`prctl(PR_MCE_KILL_GET,...)`] -/// -/// [`prctl(PR_MCE_KILL_GET,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_MCE_KILL_GET")] -pub fn machine_check_memory_corruption_kill_policy( -) -> io::Result { - let r = unsafe { prctl_1arg(PR_MCE_KILL_GET)? } as c_uint; - MachineCheckMemoryCorruptionKillPolicy::try_from(r) -} - -const PR_MCE_KILL: c_int = 33; - -const PR_MCE_KILL_CLEAR: usize = 0; -const PR_MCE_KILL_SET: usize = 1; - -/// Set the machine check memory corruption kill policy for the calling thread. -/// -/// # References -/// - [`prctl(PR_MCE_KILL,...)`] -/// -/// [`prctl(PR_MCE_KILL,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_MCE_KILL")] -pub fn set_machine_check_memory_corruption_kill_policy( - policy: Option, -) -> io::Result<()> { - let (sub_operation, policy) = if let Some(policy) = policy { - (PR_MCE_KILL_SET, policy as usize as *mut _) - } else { - (PR_MCE_KILL_CLEAR, null_mut()) - }; - - unsafe { prctl_3args(PR_MCE_KILL, sub_operation as *mut _, policy) }.map(|_r| ()) -} - -// -// PR_SET_MM -// - -const PR_SET_MM: c_int = 35; - -const PR_SET_MM_START_CODE: u32 = 1; -const PR_SET_MM_END_CODE: u32 = 2; -const PR_SET_MM_START_DATA: u32 = 3; -const PR_SET_MM_END_DATA: u32 = 4; -const PR_SET_MM_START_STACK: u32 = 5; -const PR_SET_MM_START_BRK: u32 = 6; -const PR_SET_MM_BRK: u32 = 7; -const PR_SET_MM_ARG_START: u32 = 8; -const PR_SET_MM_ARG_END: u32 = 9; -const PR_SET_MM_ENV_START: u32 = 10; -const PR_SET_MM_ENV_END: u32 = 11; -const PR_SET_MM_AUXV: usize = 12; -const PR_SET_MM_EXE_FILE: usize = 13; -const PR_SET_MM_MAP: usize = 14; -const PR_SET_MM_MAP_SIZE: usize = 15; - -/// `PR_SET_MM_*` values for use with [`set_virtual_memory_map_address`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum VirtualMemoryMapAddress { - /// Set the address above which the program text can run. - CodeStart = PR_SET_MM_START_CODE, - /// Set the address below which the program text can run. - CodeEnd = PR_SET_MM_END_CODE, - /// Set the address above which initialized and uninitialized (bss) data - /// are placed. - DataStart = PR_SET_MM_START_DATA, - /// Set the address below which initialized and uninitialized (bss) data - /// are placed. - DataEnd = PR_SET_MM_END_DATA, - /// Set the start address of the stack. - StackStart = PR_SET_MM_START_STACK, - /// Set the address above which the program heap can be expanded with `brk` - /// call. - BrkStart = PR_SET_MM_START_BRK, - /// Set the current `brk` value. - BrkCurrent = PR_SET_MM_BRK, - /// Set the address above which the program command line is placed. - ArgStart = PR_SET_MM_ARG_START, - /// Set the address below which the program command line is placed. - ArgEnd = PR_SET_MM_ARG_END, - /// Set the address above which the program environment is placed. - EnvironmentStart = PR_SET_MM_ENV_START, - /// Set the address below which the program environment is placed. - EnvironmentEnd = PR_SET_MM_ENV_END, -} - -/// Modify certain kernel memory map descriptor addresses of the calling -/// process. -/// -/// # References -/// - [`prctl(PR_SET_MM,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SET_MM,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_MM")] -pub unsafe fn set_virtual_memory_map_address( - option: VirtualMemoryMapAddress, - address: Option>, -) -> io::Result<()> { - let address = address.map_or_else(null_mut, NonNull::as_ptr); - prctl_3args(PR_SET_MM, option as usize as *mut _, address).map(|_r| ()) -} - -/// Supersede the `/proc/pid/exe` symbolic link with a new one pointing to a -/// new executable file. -/// -/// # References -/// - [`prctl(PR_SET_MM,PR_SET_MM_EXE_FILE,...)`] -/// -/// [`prctl(PR_SET_MM,PR_SET_MM_EXE_FILE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_MM")] -#[doc(alias = "PR_SET_MM_EXE_FILE")] -pub fn set_executable_file(fd: BorrowedFd<'_>) -> io::Result<()> { - let fd = usize::try_from(fd.as_raw_fd()).map_err(|_r| io::Errno::RANGE)?; - unsafe { prctl_3args(PR_SET_MM, PR_SET_MM_EXE_FILE as *mut _, fd as *mut _) }.map(|_r| ()) -} - -/// Set a new auxiliary vector. -/// -/// # References -/// - [`prctl(PR_SET_MM,PR_SET_MM_AUXV,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SET_MM,PR_SET_MM_AUXV,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_MM")] -#[doc(alias = "PR_SET_MM_AUXV")] -pub unsafe fn set_auxiliary_vector(auxv: &[*const c_void]) -> io::Result<()> { - syscalls::prctl( - PR_SET_MM, - PR_SET_MM_AUXV as *mut _, - auxv.as_ptr() as *mut _, - auxv.len() as *mut _, - null_mut(), - ) - .map(|_r| ()) -} - -/// Get the size of the [`PrctlMmMap`] the kernel expects. -/// -/// # References -/// - [`prctl(PR_SET_MM,PR_SET_MM_MAP_SIZE,...)`] -/// -/// [`prctl(PR_SET_MM,PR_SET_MM_MAP_SIZE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_MM")] -#[doc(alias = "PR_SET_MM_MAP_SIZE")] -pub fn virtual_memory_map_config_struct_size() -> io::Result { - let mut value: c_uint = 0; - let value_ptr = as_mut_ptr(&mut value); - unsafe { prctl_3args(PR_SET_MM, PR_SET_MM_MAP_SIZE as *mut _, value_ptr.cast())? }; - Ok(value as usize) -} - -/// This structure provides new memory descriptor map which mostly modifies -/// `/proc/pid/stat[m]` output for a task. -/// This mostly done in a sake of checkpoint/restore functionality. -#[repr(C)] -#[derive(Debug, Clone)] -pub struct PrctlMmMap { - /// Code section start address. - pub start_code: u64, - /// Code section end address. - pub end_code: u64, - /// Data section start address. - pub start_data: u64, - /// Data section end address. - pub end_data: u64, - /// `brk` start address. - pub start_brk: u64, - /// `brk` current address. - pub brk: u64, - /// Stack start address. - pub start_stack: u64, - /// Program command line start address. - pub arg_start: u64, - /// Program command line end address. - pub arg_end: u64, - /// Program environment start address. - pub env_start: u64, - /// Program environment end address. - pub env_end: u64, - /// Auxiliary vector start address. - pub auxv: *mut u64, - /// Auxiliary vector size. - pub auxv_size: u32, - /// File descriptor of executable file that was used to create this - /// process. - pub exe_fd: u32, -} - -/// Provides one-shot access to all the addresses by passing in a -/// [`PrctlMmMap`]. -/// -/// # References -/// - [`prctl(PR_SET_MM,PR_SET_MM_MAP,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SET_MM,PR_SET_MM_MAP,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_MM")] -#[doc(alias = "PR_SET_MM_MAP")] -pub unsafe fn configure_virtual_memory_map(config: &PrctlMmMap) -> io::Result<()> { - syscalls::prctl( - PR_SET_MM, - PR_SET_MM_MAP as *mut _, - as_ptr(config) as *mut _, - size_of::() as *mut _, - null_mut(), - ) - .map(|_r| ()) -} - -// -// PR_SET_PTRACER -// - -const PR_SET_PTRACER: c_int = 0x59_61_6d_61; - -const PR_SET_PTRACER_ANY: usize = usize::MAX; - -/// Process ptracer. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -pub enum PTracer { - /// None. - None, - /// Disable `ptrace` restrictions for the calling process. - Any, - /// Specific process. - ProcessID(Pid), -} - -/// Declare that the ptracer process can `ptrace` the calling process as if it -/// were a direct process ancestor. -/// -/// # References -/// - [`prctl(PR_SET_PTRACER,...)`] -/// -/// [`prctl(PR_SET_PTRACER,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_PTRACER")] -pub fn set_ptracer(tracer: PTracer) -> io::Result<()> { - let pid = match tracer { - PTracer::None => null_mut(), - PTracer::Any => PR_SET_PTRACER_ANY as *mut _, - PTracer::ProcessID(pid) => pid.as_raw_nonzero().get() as usize as *mut _, - }; - - unsafe { prctl_2args(PR_SET_PTRACER, pid) }.map(|_r| ()) -} - -// -// PR_GET_CHILD_SUBREAPER/PR_SET_CHILD_SUBREAPER -// - -const PR_GET_CHILD_SUBREAPER: c_int = 37; - -/// Get the `child subreaper` setting of the calling process. -/// -/// # References -/// - [`prctl(PR_GET_CHILD_SUBREAPER,...)`] -/// -/// [`prctl(PR_GET_CHILD_SUBREAPER,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_CHILD_SUBREAPER")] -pub fn child_subreaper() -> io::Result> { - unsafe { - let r = prctl_get_at_arg2_optional::(PR_GET_CHILD_SUBREAPER)?; - Ok(Pid::from_raw(r as RawPid)) - } -} - -const PR_SET_CHILD_SUBREAPER: c_int = 36; - -/// Set the `child subreaper` attribute of the calling process. -/// -/// # References -/// - [`prctl(PR_SET_CHILD_SUBREAPER,...)`] -/// -/// [`prctl(PR_SET_CHILD_SUBREAPER,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_CHILD_SUBREAPER")] -pub fn set_child_subreaper(pid: Option) -> io::Result<()> { - let pid = pid.map_or(0_usize, |pid| pid.as_raw_nonzero().get() as usize); - unsafe { prctl_2args(PR_SET_CHILD_SUBREAPER, pid as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_FP_MODE/PR_SET_FP_MODE -// - -const PR_GET_FP_MODE: c_int = 46; - -const PR_FP_MODE_FR: u32 = 1_u32 << 0; -const PR_FP_MODE_FRE: u32 = 1_u32 << 1; - -/// `PR_FP_MODE_*` values for use with [`floating_point_mode`] and -/// [`set_floating_point_mode`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum FloatingPointMode { - /// 64-bit floating point registers. - FloatingPointRegisters = PR_FP_MODE_FR, - /// Enable emulation of 32-bit floating-point mode. - FloatingPointEmulation = PR_FP_MODE_FRE, -} - -impl TryFrom for FloatingPointMode { - type Error = io::Errno; - - fn try_from(value: u32) -> Result { - match value { - PR_FP_MODE_FR => Ok(Self::FloatingPointRegisters), - PR_FP_MODE_FRE => Ok(Self::FloatingPointEmulation), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Get the current floating point mode. -/// -/// # References -/// - [`prctl(PR_GET_FP_MODE,...)`] -/// -/// [`prctl(PR_GET_FP_MODE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_FP_MODE")] -pub fn floating_point_mode() -> io::Result { - let r = unsafe { prctl_1arg(PR_GET_FP_MODE)? } as c_uint; - FloatingPointMode::try_from(r) -} - -const PR_SET_FP_MODE: c_int = 45; - -/// Allow control of the floating point mode from user space. -/// -/// # References -/// - [`prctl(PR_SET_FP_MODE,...)`] -/// -/// [`prctl(PR_SET_FP_MODE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_FP_MODE")] -pub fn set_floating_point_mode(mode: FloatingPointMode) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_FP_MODE, mode as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_SPECULATION_CTRL/PR_SET_SPECULATION_CTRL -// - -const PR_GET_SPECULATION_CTRL: c_int = 52; - -const PR_SPEC_STORE_BYPASS: u32 = 0; -const PR_SPEC_INDIRECT_BRANCH: u32 = 1; -const PR_SPEC_L1D_FLUSH: u32 = 2; - -/// `PR_SPEC_*` values for use with [`speculative_feature_state`] and -/// [`control_speculative_feature`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum SpeculationFeature { - /// Set the state of the speculative store bypass misfeature. - SpeculativeStoreBypass = PR_SPEC_STORE_BYPASS, - /// Set the state of the indirect branch speculation misfeature. - IndirectBranchSpeculation = PR_SPEC_INDIRECT_BRANCH, - /// Flush L1D Cache on context switch out of the task. - FlushL1DCacheOnContextSwitchOutOfTask = PR_SPEC_L1D_FLUSH, -} - -impl TryFrom for SpeculationFeature { - type Error = io::Errno; - - fn try_from(value: u32) -> Result { - match value { - PR_SPEC_STORE_BYPASS => Ok(Self::SpeculativeStoreBypass), - PR_SPEC_INDIRECT_BRANCH => Ok(Self::IndirectBranchSpeculation), - PR_SPEC_L1D_FLUSH => Ok(Self::FlushL1DCacheOnContextSwitchOutOfTask), - _ => Err(io::Errno::RANGE), - } - } -} - -bitflags! { - /// `PR_SPEC_*` flags for use with [`control_speculative_feature`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SpeculationFeatureControl: u32 { - /// The speculation feature is enabled, mitigation is disabled. - const ENABLE = 1_u32 << 1; - /// The speculation feature is disabled, mitigation is enabled. - const DISABLE = 1_u32 << 2; - /// The speculation feature is disabled, mitigation is enabled, and it cannot be undone. - const FORCE_DISABLE = 1_u32 << 3; - /// The speculation feature is disabled, mitigation is enabled, and the state will be cleared on `execve`. - const DISABLE_NOEXEC = 1_u32 << 4; - } -} - -bitflags! { - /// Zero means the processors are not vulnerable. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct SpeculationFeatureState: u32 { - /// Mitigation can be controlled per thread by `PR_SET_SPECULATION_CTRL`. - const PRCTL = 1_u32 << 0; - /// The speculation feature is enabled, mitigation is disabled. - const ENABLE = 1_u32 << 1; - /// The speculation feature is disabled, mitigation is enabled. - const DISABLE = 1_u32 << 2; - /// The speculation feature is disabled, mitigation is enabled, and it cannot be undone. - const FORCE_DISABLE = 1_u32 << 3; - /// The speculation feature is disabled, mitigation is enabled, and the state will be cleared on `execve`. - const DISABLE_NOEXEC = 1_u32 << 4; - } -} - -/// Get the state of the speculation misfeature. -/// -/// # References -/// - [`prctl(PR_GET_SPECULATION_CTRL,...)`] -/// -/// [`prctl(PR_GET_SPECULATION_CTRL,...)`]: https://www.kernel.org/doc/html/v5.18/userspace-api/spec_ctrl.html -#[inline] -#[doc(alias = "PR_GET_SPECULATION_CTRL")] -pub fn speculative_feature_state( - feature: SpeculationFeature, -) -> io::Result> { - let r = unsafe { prctl_2args(PR_GET_SPECULATION_CTRL, feature as usize as *mut _)? } as c_uint; - Ok(SpeculationFeatureState::from_bits(r)) -} - -const PR_SET_SPECULATION_CTRL: c_int = 53; - -/// Sets the state of the speculation misfeature. -/// -/// # References -/// - [`prctl(PR_SET_SPECULATION_CTRL,...)`] -/// -/// [`prctl(PR_SET_SPECULATION_CTRL,...)`]: https://www.kernel.org/doc/html/v5.18/userspace-api/spec_ctrl.html -#[inline] -#[doc(alias = "PR_SET_SPECULATION_CTRL")] -pub fn control_speculative_feature( - feature: SpeculationFeature, - config: SpeculationFeatureControl, -) -> io::Result<()> { - let feature = feature as usize as *mut _; - let config = config.bits() as usize as *mut _; - unsafe { prctl_3args(PR_SET_SPECULATION_CTRL, feature, config) }.map(|_r| ()) -} - -// -// PR_GET_IO_FLUSHER/PR_SET_IO_FLUSHER -// - -const PR_GET_IO_FLUSHER: c_int = 58; - -/// Get the `IO_FLUSHER` state of the caller. -/// -/// # References -/// - [`prctl(PR_GET_IO_FLUSHER,...)`] -/// -/// [`prctl(PR_GET_IO_FLUSHER,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_GET_IO_FLUSHER")] -pub fn is_io_flusher() -> io::Result { - unsafe { prctl_1arg(PR_GET_IO_FLUSHER) }.map(|r| r != 0) -} - -const PR_SET_IO_FLUSHER: c_int = 57; - -/// Put the process in the `IO_FLUSHER` state, allowing it to make progress -/// when allocating memory. -/// -/// # References -/// - [`prctl(PR_SET_IO_FLUSHER,...)`] -/// -/// [`prctl(PR_SET_IO_FLUSHER,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[doc(alias = "PR_SET_IO_FLUSHER")] -pub fn configure_io_flusher_behavior(enable: bool) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_IO_FLUSHER, usize::from(enable) as *mut _) }.map(|_r| ()) -} - -// -// PR_PAC_GET_ENABLED_KEYS/PR_PAC_SET_ENABLED_KEYS -// - -const PR_PAC_GET_ENABLED_KEYS: c_int = 61; - -/// Get enabled pointer authentication keys. -/// -/// # References -/// - [`prctl(PR_PAC_GET_ENABLED_KEYS,...)`] -/// -/// [`prctl(PR_PAC_GET_ENABLED_KEYS,...)`]: https://www.kernel.org/doc/html/v5.18/arm64/pointer-authentication.html -#[inline] -#[doc(alias = "PR_PAC_GET_ENABLED_KEYS")] -pub fn enabled_pointer_authentication_keys() -> io::Result { - let r = unsafe { prctl_1arg(PR_PAC_GET_ENABLED_KEYS)? } as c_uint; - PointerAuthenticationKeys::from_bits(r).ok_or(io::Errno::RANGE) -} - -const PR_PAC_SET_ENABLED_KEYS: c_int = 60; - -/// Set enabled pointer authentication keys. -/// -/// # References -/// - [`prctl(PR_PAC_SET_ENABLED_KEYS,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_PAC_SET_ENABLED_KEYS,...)`]: https://www.kernel.org/doc/html/v5.18/arm64/pointer-authentication.html -#[inline] -#[doc(alias = "PR_PAC_SET_ENABLED_KEYS")] -pub unsafe fn configure_pointer_authentication_keys( - config: impl Iterator, -) -> io::Result<()> { - let mut affected_keys: u32 = 0; - let mut enabled_keys: u32 = 0; - - for (key, enable) in config { - let key = key.bits(); - affected_keys |= key; - - if enable { - enabled_keys |= key; - } else { - enabled_keys &= !key; - } - } - - if affected_keys == 0 { - return Ok(()); // Nothing to do. - } - - prctl_3args( - PR_PAC_SET_ENABLED_KEYS, - affected_keys as usize as *mut _, - enabled_keys as usize as *mut _, - ) - .map(|_r| ()) -} - -// -// PR_SET_VMA -// - -const PR_SET_VMA: c_int = 0x53_56_4d_41; - -const PR_SET_VMA_ANON_NAME: usize = 0; - -/// Set the name for a virtual memory region. -/// -/// # References -/// - [`prctl(PR_SET_VMA,PR_SET_VMA_ANON_NAME,...)`] -/// -/// [`prctl(PR_SET_VMA,PR_SET_VMA_ANON_NAME,...)`]: https://lwn.net/Articles/867818/ -#[inline] -#[doc(alias = "PR_SET_VMA")] -#[doc(alias = "PR_SET_VMA_ANON_NAME")] -pub fn set_virtual_memory_region_name(region: &[u8], name: Option<&CStr>) -> io::Result<()> { - unsafe { - syscalls::prctl( - PR_SET_VMA, - PR_SET_VMA_ANON_NAME as *mut _, - region.as_ptr() as *mut _, - region.len() as *mut _, - name.map_or_else(null, CStr::as_ptr) as *mut _, - ) - .map(|_r| ()) - } -} diff --git a/third_party/rust/rustix/src/process/priority.rs b/third_party/rust/rustix/src/process/priority.rs deleted file mode 100644 index 7c2928408542..000000000000 --- a/third_party/rust/rustix/src/process/priority.rs +++ /dev/null @@ -1,132 +0,0 @@ -#[cfg(not(target_os = "espidf"))] -use crate::process::{Pid, Uid}; -use crate::{backend, io}; - -/// `nice(inc)`—Adjust the scheduling priority of the current process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/nice.html -/// [Linux]: https://man7.org/linux/man-pages/man2/nice.2.html -#[inline] -pub fn nice(inc: i32) -> io::Result { - backend::process::syscalls::nice(inc) -} - -/// `getpriority(PRIO_USER, uid)`—Get the scheduling priority of the given -/// user. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpriority.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "getpriority")] -pub fn getpriority_user(uid: Uid) -> io::Result { - backend::process::syscalls::getpriority_user(uid) -} - -/// `getpriority(PRIO_PGRP, gid)`—Get the scheduling priority of the given -/// process group. -/// -/// A `pgid` of `None` means the process group of the calling process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpriority.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "getpriority")] -pub fn getpriority_pgrp(pgid: Option) -> io::Result { - backend::process::syscalls::getpriority_pgrp(pgid) -} - -/// `getpriority(PRIO_PROCESS, pid)`—Get the scheduling priority of the given -/// process. -/// -/// A `pid` of `None` means the calling process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpriority.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "getpriority")] -pub fn getpriority_process(pid: Option) -> io::Result { - backend::process::syscalls::getpriority_process(pid) -} - -/// `setpriority(PRIO_USER, uid)`—Get the scheduling priority of the given -/// user. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpriority.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "setpriority")] -pub fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { - backend::process::syscalls::setpriority_user(uid, priority) -} - -/// `setpriority(PRIO_PGRP, pgid)`—Get the scheduling priority of the given -/// process group. -/// -/// A `pgid` of `None` means the process group of the calling process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpriority.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "setpriority")] -pub fn setpriority_pgrp(pgid: Option, priority: i32) -> io::Result<()> { - backend::process::syscalls::setpriority_pgrp(pgid, priority) -} - -/// `setpriority(PRIO_PROCESS, pid)`—Get the scheduling priority of the given -/// process. -/// -/// A `pid` of `None` means the calling process. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpriority.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "setpriority")] -pub fn setpriority_process(pid: Option, priority: i32) -> io::Result<()> { - backend::process::syscalls::setpriority_process(pid, priority) -} diff --git a/third_party/rust/rustix/src/process/procctl.rs b/third_party/rust/rustix/src/process/procctl.rs deleted file mode 100644 index 5225f16f736f..000000000000 --- a/third_party/rust/rustix/src/process/procctl.rs +++ /dev/null @@ -1,528 +0,0 @@ -//! Bindings for the FreeBSD `procctl` system call. -//! -//! There are similarities (but also differences) with Linux's `prctl` system -//! call, whose interface is located in the `prctl.rs` file. - -#![allow(unsafe_code)] - -use alloc::vec; -use alloc::vec::Vec; -use core::mem::MaybeUninit; -use core::ptr; - -use bitflags::bitflags; - -use crate::backend::c::{c_int, c_uint, c_void}; -use crate::backend::process::syscalls; -use crate::backend::process::types::RawId; -use crate::io; -use crate::process::{Pid, RawPid}; -use crate::signal::Signal; -use crate::utils::{as_mut_ptr, as_ptr}; - -// -// Helper functions. -// - -/// Subset of `idtype_t` C enum, with only the values allowed by `procctl`. -#[repr(i32)] -pub enum IdType { - /// Process id. - Pid = 0, - /// Process group id. - Pgid = 2, -} - -/// A process selector for use with the `procctl` interface. -/// -/// `None` represents the current process. `Some((IdType::Pid, pid))` -/// represents the process with pid `pid`. `Some((IdType::Pgid, pgid))` -/// represents the control processes belonging to the process group with id -/// `pgid`. -pub type ProcSelector = Option<(IdType, Pid)>; -fn proc_selector_to_raw(selector: ProcSelector) -> (IdType, RawPid) { - match selector { - Some((idtype, id)) => (idtype, id.as_raw_nonzero().get()), - None => (IdType::Pid, 0), - } -} - -#[inline] -pub(crate) unsafe fn procctl( - option: c_int, - process: ProcSelector, - data: *mut c_void, -) -> io::Result<()> { - let (idtype, id) = proc_selector_to_raw(process); - syscalls::procctl(idtype as c_uint, id as RawId, option, data) -} - -#[inline] -pub(crate) unsafe fn procctl_set

( - option: c_int, - process: ProcSelector, - data: &P, -) -> io::Result<()> { - procctl(option, process, (as_ptr(data) as *mut P).cast()) -} - -#[inline] -pub(crate) unsafe fn procctl_get_optional

( - option: c_int, - process: ProcSelector, -) -> io::Result

{ - let mut value: MaybeUninit

= MaybeUninit::uninit(); - procctl(option, process, value.as_mut_ptr().cast())?; - Ok(value.assume_init()) -} - -// -// PROC_PDEATHSIG_STATUS/PROC_PDEATHSIG_CTL -// - -const PROC_PDEATHSIG_STATUS: c_int = 12; - -/// Get the current value of the parent process death signal. -/// -/// # References -/// - [Linux: `prctl(PR_GET_PDEATHSIG,...)`] -/// - [FreeBSD: `procctl(PROC_PDEATHSIG_STATUS,...)`] -/// -/// [Linux: `prctl(PR_GET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [FreeBSD: `procctl(PROC_PDEATHSIG_STATUS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn parent_process_death_signal() -> io::Result> { - unsafe { procctl_get_optional::(PROC_PDEATHSIG_STATUS, None) }.map(Signal::from_raw) -} - -const PROC_PDEATHSIG_CTL: c_int = 11; - -/// Set the parent-death signal of the calling process. -/// -/// # References -/// - [Linux: `prctl(PR_SET_PDEATHSIG,...)`] -/// - [FreeBSD: `procctl(PROC_PDEATHSIG_CTL,...)`] -/// -/// [Linux: `prctl(PR_SET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [FreeBSD: `procctl(PROC_PDEATHSIG_CTL,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn set_parent_process_death_signal(signal: Option) -> io::Result<()> { - let signal = signal.map_or(0, |signal| signal as c_int); - unsafe { procctl_set::(PROC_PDEATHSIG_CTL, None, &signal) } -} - -// -// PROC_TRACE_CTL -// - -const PROC_TRACE_CTL: c_int = 7; - -const PROC_TRACE_CTL_ENABLE: i32 = 1; -const PROC_TRACE_CTL_DISABLE: i32 = 2; -const PROC_TRACE_CTL_DISABLE_EXEC: i32 = 3; - -/// `PROC_TRACE_CTL_*`. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(i32)] -pub enum DumpableBehavior { - /// Not dumpable. - NotDumpable = PROC_TRACE_CTL_DISABLE, - /// Dumpable. - Dumpable = PROC_TRACE_CTL_ENABLE, - /// Not dumpable, and this behaviour is preserved across `execve` calls. - NotDumpableExecPreserved = PROC_TRACE_CTL_DISABLE_EXEC, -} - -/// Set the state of the `dumpable` attribute for the process indicated by -/// `idtype` and `id`. This determines whether the process can be traced and -/// whether core dumps are produced for the process upon delivery of a signal -/// whose default behavior is to produce a core dump. -/// -/// This is similar to `set_dumpable_behavior` on Linux, with the exception -/// that on FreeBSD there is an extra argument `process`. When `process` is set -/// to `None`, the operation is performed for the current process, like on -/// Linux. -/// -/// # References -/// - [FreeBSD `procctl(PROC_TRACE_CTL,...)`] -/// -/// [FreeBSD `procctl(PROC_TRACE_CTL,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn set_dumpable_behavior(process: ProcSelector, config: DumpableBehavior) -> io::Result<()> { - unsafe { procctl(PROC_TRACE_CTL, process, config as usize as *mut _) } -} - -// -// PROC_TRACE_STATUS -// - -const PROC_TRACE_STATUS: c_int = 8; - -/// Tracing status as returned by [`trace_status`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -pub enum TracingStatus { - /// Tracing is disabled for the process. - NotTraceble, - /// Tracing is not disabled for the process, but not debugger/tracer is - /// attached. - Tracable, - /// The process is being traced by the process whose pid is stored in the - /// first component of this variant. - BeingTraced(Pid), -} - -/// Get the tracing status of the process indicated by `idtype` and `id`. -/// -/// # References -/// - [FreeBSD `procctl(PROC_TRACE_STATUS,...)`] -/// -/// [FreeBSD `procctl(PROC_TRACE_STATUS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn trace_status(process: ProcSelector) -> io::Result { - let val = unsafe { procctl_get_optional::(PROC_TRACE_STATUS, process) }?; - match val { - -1 => Ok(TracingStatus::NotTraceble), - 0 => Ok(TracingStatus::Tracable), - pid => { - let pid = Pid::from_raw(pid as RawPid).ok_or(io::Errno::RANGE)?; - Ok(TracingStatus::BeingTraced(pid)) - } - } -} - -// -// PROC_REAP_* -// - -const PROC_REAP_ACQUIRE: c_int = 2; -const PROC_REAP_RELEASE: c_int = 3; - -/// Acquire or release the reaper status of the calling process. -/// -/// # References -/// - [FreeBSD: `procctl(PROC_REAP_ACQUIRE/RELEASE,...)`] -/// -/// [FreeBSD: `procctl(PROC_REAP_ACQUIRE/RELEASE,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn set_reaper_status(reaper: bool) -> io::Result<()> { - unsafe { - procctl( - if reaper { - PROC_REAP_ACQUIRE - } else { - PROC_REAP_RELEASE - }, - None, - ptr::null_mut(), - ) - } -} - -const PROC_REAP_STATUS: c_int = 4; - -bitflags! { - /// `REAPER_STATUS_*`. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ReaperStatusFlags: c_uint { - /// The process has acquired reaper status. - const OWNED = 1; - /// The process is the root of the reaper tree (pid 1). - const REALINIT = 2; - - /// - const _ = !0; - } -} - -#[repr(C)] -struct procctl_reaper_status { - rs_flags: c_uint, - rs_children: c_uint, - rs_descendants: c_uint, - rs_reaper: RawPid, - rs_pid: RawPid, - rs_pad0: [c_uint; 15], -} - -/// Reaper status as returned by [`get_reaper_status`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -pub struct ReaperStatus { - /// The flags. - pub flags: ReaperStatusFlags, - /// The number of children of the reaper among the descendants. - pub children: usize, - /// The total number of descendants of the reaper(s), not counting - /// descendants of the reaper in the subtree. - pub descendants: usize, - /// The pid of the reaper for the specified process id. - pub reaper: Pid, - /// The pid of one reaper child if there are any descendants. - pub pid: Option, -} - -/// Get information about the reaper of the specified process (or the process -/// itself if it is a reaper). -/// -/// # References -/// - [FreeBSD: `procctl(PROC_REAP_STATUS,...)`] -/// -/// [FreeBSD: `procctl(PROC_REAP_STATUS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn get_reaper_status(process: ProcSelector) -> io::Result { - let raw = unsafe { procctl_get_optional::(PROC_REAP_STATUS, process) }?; - Ok(ReaperStatus { - flags: ReaperStatusFlags::from_bits_retain(raw.rs_flags), - children: raw.rs_children as _, - descendants: raw.rs_descendants as _, - reaper: Pid::from_raw(raw.rs_reaper).ok_or(io::Errno::RANGE)?, - pid: if raw.rs_pid == -1 { - None - } else { - Some(Pid::from_raw(raw.rs_pid).ok_or(io::Errno::RANGE)?) - }, - }) -} - -const PROC_REAP_GETPIDS: c_int = 5; - -bitflags! { - /// `REAPER_PIDINFO_*`. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct PidInfoFlags: c_uint { - /// This structure was filled by the kernel. - const VALID = 1; - /// The pid field identifies a direct child of the reaper. - const CHILD = 2; - /// The reported process is itself a reaper. Descendants of a - /// subordinate reaper are not reported. - const REAPER = 4; - /// The reported process is in the zombie state. - const ZOMBIE = 8; - /// The reported process is stopped by SIGSTOP/SIGTSTP. - const STOPPED = 16; - /// The reported process is in the process of exiting. - const EXITING = 32; - } -} - -#[repr(C)] -#[derive(Default, Clone)] -struct procctl_reaper_pidinfo { - pi_pid: RawPid, - pi_subtree: RawPid, - pi_flags: c_uint, - pi_pad0: [c_uint; 15], -} - -#[repr(C)] -struct procctl_reaper_pids { - rp_count: c_uint, - rp_pad0: [c_uint; 15], - rp_pids: *mut procctl_reaper_pidinfo, -} - -/// A child process of a reaper. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -pub struct PidInfo { - /// The flags of the process. - pub flags: PidInfoFlags, - /// The pid of the process. - pub pid: Pid, - /// The pid of the child of the reaper which is the (grand-..)parent of the - /// process. - pub subtree: Pid, -} - -/// Get the list of descendants of the specified reaper process. -/// -/// # References -/// - [FreeBSD: `procctl(PROC_REAP_GETPIDS,...)`] -/// -/// [FreeBSD: `procctl(PROC_REAP_GETPIDS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -pub fn get_reaper_pids(process: ProcSelector) -> io::Result> { - // Sadly no better way to guarantee that we get all the results than to - // allocate ~8MB of memory.. - const PID_MAX: usize = 99999; - let mut pids: Vec = vec![Default::default(); PID_MAX]; - let mut pinfo = procctl_reaper_pids { - rp_count: PID_MAX as _, - rp_pad0: [0; 15], - rp_pids: pids.as_mut_slice().as_mut_ptr(), - }; - unsafe { procctl(PROC_REAP_GETPIDS, process, as_mut_ptr(&mut pinfo).cast())? }; - let mut result = Vec::new(); - for raw in pids.into_iter() { - let flags = PidInfoFlags::from_bits_retain(raw.pi_flags); - if !flags.contains(PidInfoFlags::VALID) { - break; - } - result.push(PidInfo { - flags, - subtree: Pid::from_raw(raw.pi_subtree).ok_or(io::Errno::RANGE)?, - pid: Pid::from_raw(raw.pi_pid).ok_or(io::Errno::RANGE)?, - }); - } - Ok(result) -} - -const PROC_REAP_KILL: c_int = 6; - -bitflags! { - /// `REAPER_KILL_*`. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - struct KillFlags: c_uint { - const CHILDREN = 1; - const SUBTREE = 2; - } -} - -#[repr(C)] -struct procctl_reaper_kill { - rk_sig: c_int, - rk_flags: c_uint, - rk_subtree: RawPid, - rk_killed: c_uint, - rk_fpid: RawPid, - rk_pad0: [c_uint; 15], -} - -/// Reaper status as returned by [`get_reaper_status`]. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -pub struct KillResult { - /// The number of processes that were signalled. - pub killed: usize, - /// The pid of the first process that wasn't successfully signalled. - pub first_failed: Option, -} - -/// Deliver a signal to some subset of -/// -/// # References -/// - [FreeBSD: `procctl(PROC_REAP_KILL,...)`] -/// -/// [FreeBSD: `procctl(PROC_REAP_KILL,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -pub fn reaper_kill( - process: ProcSelector, - signal: Signal, - direct_children: bool, - subtree: Option, -) -> io::Result { - let mut flags = KillFlags::empty(); - flags.set(KillFlags::CHILDREN, direct_children); - flags.set(KillFlags::SUBTREE, subtree.is_some()); - let mut req = procctl_reaper_kill { - rk_sig: signal as c_int, - rk_flags: flags.bits(), - rk_subtree: subtree.map(|p| p.as_raw_nonzero().into()).unwrap_or(0), - rk_killed: 0, - rk_fpid: 0, - rk_pad0: [0; 15], - }; - unsafe { procctl(PROC_REAP_KILL, process, as_mut_ptr(&mut req).cast())? }; - Ok(KillResult { - killed: req.rk_killed as _, - first_failed: Pid::from_raw(req.rk_fpid), - }) -} - -// -// PROC_TRAPCAP_STATUS/PROC_TRAPCAP_CTL -// - -const PROC_TRAPCAP_CTL: c_int = 9; - -const PROC_TRAPCAP_CTL_ENABLE: i32 = 1; -const PROC_TRAPCAP_CTL_DISABLE: i32 = 2; - -/// `PROC_TRAPCAP_CTL_*`. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(i32)] -pub enum TrapCapBehavior { - /// Disable the [`Signal::Trap`] signal delivery on capability mode access - /// violations. - Disable = PROC_TRAPCAP_CTL_DISABLE, - /// Enable the [`Signal::Trap`] signal delivery on capability mode access - /// violations. - Enable = PROC_TRAPCAP_CTL_ENABLE, -} - -/// Set the current value of the capability mode violation trapping behavior. -/// If this behavior is enabled, the kernel would deliver a [`Signal::Trap`] -/// signal on any return from a system call that would result in a -/// [`io::Errno::NOTCAPABLE`]` or [`io::Errno::CAPMODE`] error. -/// -/// This behavior is inherited by the children of the process and is kept -/// across `execve` calls. -/// -/// # References -/// - [FreeBSD: `procctl(PROC_TRAPCAP_CTL,...)`] -/// -/// [FreeBSD: `procctl(PROC_TRAPCAP_CTL,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn set_trap_cap_behavior(process: ProcSelector, config: TrapCapBehavior) -> io::Result<()> { - let config = config as c_int; - unsafe { procctl_set::(PROC_TRAPCAP_CTL, process, &config) } -} - -const PROC_TRAPCAP_STATUS: c_int = 10; - -/// Get the current value of the capability mode violation trapping behavior. -/// -/// # References -/// - [FreeBSD: `procctl(PROC_TRAPCAP_STATUS,...)`] -/// -/// [FreeBSD: `procctl(PROC_TRAPCAP_STATUS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn trap_cap_behavior(process: ProcSelector) -> io::Result { - let val = unsafe { procctl_get_optional::(PROC_TRAPCAP_STATUS, process) }?; - match val { - PROC_TRAPCAP_CTL_DISABLE => Ok(TrapCapBehavior::Disable), - PROC_TRAPCAP_CTL_ENABLE => Ok(TrapCapBehavior::Enable), - _ => Err(io::Errno::RANGE), - } -} - -// -// PROC_NO_NEW_PRIVS_STATUS/PROC_NO_NEW_PRIVS_CTL -// - -const PROC_NO_NEW_PRIVS_CTL: c_int = 19; - -const PROC_NO_NEW_PRIVS_ENABLE: c_int = 1; - -/// Enable the `no_new_privs` mode that ignores SUID and SGID bits -/// on `execve` in the specified process and its future descendants. -/// -/// This is similar to `set_no_new_privs` on Linux, with the exception -/// that on FreeBSD there is no argument `no_new_privs` argument as it's -/// only possible to enable this mode and there's no going back. -/// -/// # References -/// - [Linux: `prctl(PR_SET_NO_NEW_PRIVS,...)`] -/// - [FreeBSD: `procctl(PROC_NO_NEW_PRIVS_CTL,...)`] -/// -/// [Linux: `prctl(PR_SET_NO_NEW_PRIVS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [FreeBSD: `procctl(PROC_NO_NEW_PRIVS_CTL,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn set_no_new_privs(process: ProcSelector) -> io::Result<()> { - unsafe { procctl_set::(PROC_NO_NEW_PRIVS_CTL, process, &PROC_NO_NEW_PRIVS_ENABLE) } -} - -const PROC_NO_NEW_PRIVS_STATUS: c_int = 20; - -/// Check the `no_new_privs` mode of the specified process. -/// -/// # References -/// - [Linux: `prctl(PR_GET_NO_NEW_PRIVS,...)`] -/// - [FreeBSD: `procctl(PROC_NO_NEW_PRIVS_STATUS,...)`] -/// -/// [Linux: `prctl(PR_GET_NO_NEW_PRIVS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [FreeBSD: `procctl(PROC_NO_NEW_PRIVS_STATUS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 -#[inline] -pub fn no_new_privs(process: ProcSelector) -> io::Result { - unsafe { procctl_get_optional::(PROC_NO_NEW_PRIVS_STATUS, process) } - .map(|x| x == PROC_NO_NEW_PRIVS_ENABLE) -} diff --git a/third_party/rust/rustix/src/process/rlimit.rs b/third_party/rust/rustix/src/process/rlimit.rs deleted file mode 100644 index ea760c22fc09..000000000000 --- a/third_party/rust/rustix/src/process/rlimit.rs +++ /dev/null @@ -1,53 +0,0 @@ -#[cfg(linux_kernel)] -use crate::process::Pid; -use crate::{backend, io}; - -pub use backend::process::types::Resource; - -/// `struct rlimit`—Current and maximum values used in [`getrlimit`], -/// [`setrlimit`], and [`prlimit`]. -#[derive(Debug, Clone, PartialEq, Eq)] -pub struct Rlimit { - /// Current effective, “soft”, limit. - pub current: Option, - /// Maximum, “hard”, value that `current` may be dynamically increased to. - pub maximum: Option, -} - -/// `getrlimit(resource)`—Get a process resource limit value. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getrlimit.html -/// [Linux]: https://man7.org/linux/man-pages/man2/getrlimit.2.html -#[inline] -pub fn getrlimit(resource: Resource) -> Rlimit { - backend::process::syscalls::getrlimit(resource) -} - -/// `setrlimit(resource, new)`—Set a process resource limit value. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setrlimit.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setrlimit.2.html -#[inline] -pub fn setrlimit(resource: Resource, new: Rlimit) -> io::Result<()> { - backend::process::syscalls::setrlimit(resource, new) -} - -/// `prlimit(pid, resource, new)`—Get and set a process resource limit value. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/prlimit.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn prlimit(pid: Option, resource: Resource, new: Rlimit) -> io::Result { - backend::process::syscalls::prlimit(pid, resource, new) -} diff --git a/third_party/rust/rustix/src/process/sched.rs b/third_party/rust/rustix/src/process/sched.rs deleted file mode 100644 index 239b7df82dab..000000000000 --- a/third_party/rust/rustix/src/process/sched.rs +++ /dev/null @@ -1,110 +0,0 @@ -use crate::process::Pid; -use crate::{backend, io}; - -/// `CpuSet` represents a bit-mask of CPUs. -/// -/// `CpuSet`s are used by [`sched_setaffinity`] and [`sched_getaffinity`], for -/// example. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/CPU_SET.3.html -/// [`sched_setaffinity`]: crate::process::sched_setaffinity -/// [`sched_getaffinity`]: crate::process::sched_getaffinity -#[repr(C)] -#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] -pub struct CpuSet { - cpu_set: backend::process::types::RawCpuSet, -} - -impl CpuSet { - /// The maximum number of CPU in `CpuSet`. - pub const MAX_CPU: usize = backend::process::types::CPU_SETSIZE; - - /// Create a new and empty `CpuSet`. - #[inline] - pub fn new() -> Self { - Self { - cpu_set: backend::process::types::raw_cpu_set_new(), - } - } - - /// Test to see if a CPU is in the `CpuSet`. - /// - /// `field` is the CPU id to test. - #[inline] - pub fn is_set(&self, field: usize) -> bool { - backend::process::cpu_set::CPU_ISSET(field, &self.cpu_set) - } - - /// Add a CPU to `CpuSet`. - /// - /// `field` is the CPU id to add. - #[inline] - pub fn set(&mut self, field: usize) { - backend::process::cpu_set::CPU_SET(field, &mut self.cpu_set) - } - - /// Remove a CPU from `CpuSet`. - /// - /// `field` is the CPU id to remove. - #[inline] - pub fn unset(&mut self, field: usize) { - backend::process::cpu_set::CPU_CLR(field, &mut self.cpu_set) - } - - /// Count the number of CPUs set in the `CpuSet`. - #[cfg(linux_kernel)] - #[inline] - pub fn count(&self) -> u32 { - backend::process::cpu_set::CPU_COUNT(&self.cpu_set) - } - - /// Zeroes the `CpuSet`. - #[inline] - pub fn clear(&mut self) { - backend::process::cpu_set::CPU_ZERO(&mut self.cpu_set) - } -} - -impl Default for CpuSet { - #[inline] - fn default() -> Self { - Self::new() - } -} - -/// `sched_setaffinity(pid, cpuset)`—Set a thread's CPU affinity mask. -/// -/// `pid` is the thread ID to update. If pid is `None`, then the current thread -/// is updated. -/// -/// The `CpuSet` argument specifies the set of CPUs on which the thread will -/// be eligible to run. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/sched_setaffinity.2.html -#[inline] -pub fn sched_setaffinity(pid: Option, cpuset: &CpuSet) -> io::Result<()> { - backend::process::syscalls::sched_setaffinity(pid, &cpuset.cpu_set) -} - -/// `sched_getaffinity(pid)`—Get a thread's CPU affinity mask. -/// -/// `pid` is the thread ID to check. If pid is `None`, then the current thread -/// is checked. -/// -/// Returns the set of CPUs on which the thread is eligible to run. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/sched_getaffinity.2.html -#[inline] -pub fn sched_getaffinity(pid: Option) -> io::Result { - let mut cpuset = CpuSet::new(); - backend::process::syscalls::sched_getaffinity(pid, &mut cpuset.cpu_set).and(Ok(cpuset)) -} diff --git a/third_party/rust/rustix/src/process/sched_yield.rs b/third_party/rust/rustix/src/process/sched_yield.rs deleted file mode 100644 index 0324f67cbab8..000000000000 --- a/third_party/rust/rustix/src/process/sched_yield.rs +++ /dev/null @@ -1,16 +0,0 @@ -use crate::backend; - -/// `sched_yield()`—Hints to the OS that other processes should run. -/// -/// This function always succeeds. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_yield.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sched_yield.2.html -#[inline] -pub fn sched_yield() { - backend::process::syscalls::sched_yield() -} diff --git a/third_party/rust/rustix/src/process/umask.rs b/third_party/rust/rustix/src/process/umask.rs deleted file mode 100644 index 01779d7ed04d..000000000000 --- a/third_party/rust/rustix/src/process/umask.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! Umask support. - -#[cfg(feature = "fs")] -use crate::backend; -#[cfg(feature = "fs")] -use crate::fs::Mode; - -/// `umask(mask)`—Set the process file creation mask. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/umask.html -/// [Linux]: https://man7.org/linux/man-pages/man2/umask.2.html -#[cfg(feature = "fs")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -#[inline] -pub fn umask(mask: Mode) -> Mode { - backend::process::syscalls::umask(mask) -} diff --git a/third_party/rust/rustix/src/process/wait.rs b/third_party/rust/rustix/src/process/wait.rs deleted file mode 100644 index c4bacd7dd2ce..000000000000 --- a/third_party/rust/rustix/src/process/wait.rs +++ /dev/null @@ -1,333 +0,0 @@ -use crate::process::Pid; -use crate::{backend, io}; -use bitflags::bitflags; - -#[cfg(target_os = "linux")] -use crate::fd::BorrowedFd; - -#[cfg(linux_raw)] -use crate::backend::process::wait::SiginfoExt; - -bitflags! { - /// Options for modifying the behavior of wait/waitpid - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct WaitOptions: u32 { - /// Return immediately if no child has exited. - const NOHANG = bitcast!(backend::process::wait::WNOHANG); - /// Return if a child has stopped (but not traced via [`ptrace`]) - /// - /// [`ptrace`]: https://man7.org/linux/man-pages/man2/ptrace.2.html - const UNTRACED = bitcast!(backend::process::wait::WUNTRACED); - /// Return if a stopped child has been resumed by delivery of - /// [`Signal::Cont`]. - const CONTINUED = bitcast!(backend::process::wait::WCONTINUED); - - /// - const _ = !0; - } -} - -#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "wasi")))] -bitflags! { - /// Options for modifying the behavior of waitid - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct WaitidOptions: u32 { - /// Return immediately if no child has exited. - const NOHANG = bitcast!(backend::process::wait::WNOHANG); - /// Return if a stopped child has been resumed by delivery of - /// [`Signal::Cont`] - const CONTINUED = bitcast!(backend::process::wait::WCONTINUED); - /// Wait for processed that have exited. - const EXITED = bitcast!(backend::process::wait::WEXITED); - /// Keep processed in a waitable state. - const NOWAIT = bitcast!(backend::process::wait::WNOWAIT); - /// Wait for processes that have been stopped. - const STOPPED = bitcast!(backend::process::wait::WSTOPPED); - - /// - const _ = !0; - } -} - -/// The status of a child process after calling [`wait`]/[`waitpid`]. -#[derive(Debug, Clone, Copy)] -#[repr(transparent)] -pub struct WaitStatus(u32); - -impl WaitStatus { - /// Creates a `WaitStatus` out of an integer. - #[inline] - pub(crate) fn new(status: u32) -> Self { - Self(status) - } - - /// Converts a `WaitStatus` into its raw representation as an integer. - #[inline] - pub const fn as_raw(self) -> u32 { - self.0 - } - - /// Returns whether the process is currently stopped. - #[inline] - pub fn stopped(self) -> bool { - backend::process::wait::WIFSTOPPED(self.0 as _) - } - - /// Returns whether the process has exited normally. - #[inline] - pub fn exited(self) -> bool { - backend::process::wait::WIFEXITED(self.0 as _) - } - - /// Returns whether the process was terminated by a signal. - #[inline] - pub fn signaled(self) -> bool { - backend::process::wait::WIFSIGNALED(self.0 as _) - } - - /// Returns whether the process has continued from a job control stop. - #[inline] - pub fn continued(self) -> bool { - backend::process::wait::WIFCONTINUED(self.0 as _) - } - - /// Returns the number of the signal that stopped the process, - /// if the process was stopped by a signal. - #[inline] - pub fn stopping_signal(self) -> Option { - if self.stopped() { - Some(backend::process::wait::WSTOPSIG(self.0 as _) as _) - } else { - None - } - } - - /// Returns the exit status number returned by the process, - /// if it exited normally. - #[inline] - pub fn exit_status(self) -> Option { - if self.exited() { - Some(backend::process::wait::WEXITSTATUS(self.0 as _) as _) - } else { - None - } - } - - /// Returns the number of the signal that terminated the process, - /// if the process was terminated by a signal. - #[inline] - pub fn terminating_signal(self) -> Option { - if self.signaled() { - Some(backend::process::wait::WTERMSIG(self.0 as _) as _) - } else { - None - } - } -} - -/// The status of a process after calling [`waitid`]. -#[derive(Clone, Copy)] -#[repr(transparent)] -#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "wasi")))] -pub struct WaitidStatus(pub(crate) backend::c::siginfo_t); - -#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "wasi")))] -impl WaitidStatus { - /// Returns whether the process is currently stopped. - #[inline] - pub fn stopped(&self) -> bool { - self.si_code() == backend::c::CLD_STOPPED - } - - /// Returns whether the process is currently trapped. - #[inline] - pub fn trapped(&self) -> bool { - self.si_code() == backend::c::CLD_TRAPPED - } - - /// Returns whether the process has exited normally. - #[inline] - pub fn exited(&self) -> bool { - self.si_code() == backend::c::CLD_EXITED - } - - /// Returns whether the process was terminated by a signal - /// and did not create a core file. - #[inline] - pub fn killed(&self) -> bool { - self.si_code() == backend::c::CLD_KILLED - } - - /// Returns whether the process was terminated by a signal - /// and did create a core file. - #[inline] - pub fn dumped(&self) -> bool { - self.si_code() == backend::c::CLD_DUMPED - } - - /// Returns whether the process has continued from a job control stop. - #[inline] - pub fn continued(&self) -> bool { - self.si_code() == backend::c::CLD_CONTINUED - } - - /// Returns the number of the signal that stopped the process, - /// if the process was stopped by a signal. - #[inline] - #[cfg(not(any(target_os = "netbsd", target_os = "fuchsia", target_os = "emscripten")))] - pub fn stopping_signal(&self) -> Option { - if self.stopped() { - Some(self.si_status() as _) - } else { - None - } - } - - /// Returns the number of the signal that trapped the process, - /// if the process was trapped by a signal. - #[inline] - #[cfg(not(any(target_os = "netbsd", target_os = "fuchsia", target_os = "emscripten")))] - pub fn trapping_signal(&self) -> Option { - if self.trapped() { - Some(self.si_status() as _) - } else { - None - } - } - - /// Returns the exit status number returned by the process, - /// if it exited normally. - #[inline] - #[cfg(not(any(target_os = "netbsd", target_os = "fuchsia", target_os = "emscripten")))] - pub fn exit_status(&self) -> Option { - if self.exited() { - Some(self.si_status() as _) - } else { - None - } - } - - /// Returns the number of the signal that terminated the process, - /// if the process was terminated by a signal. - #[inline] - #[cfg(not(any(target_os = "netbsd", target_os = "fuchsia", target_os = "emscripten")))] - pub fn terminating_signal(&self) -> Option { - if self.killed() || self.dumped() { - Some(self.si_status() as _) - } else { - None - } - } - - /// Returns a reference to the raw platform-specific `siginfo_t` struct. - #[inline] - pub const fn as_raw(&self) -> &backend::c::siginfo_t { - &self.0 - } - - #[cfg(linux_raw)] - fn si_code(&self) -> u32 { - self.0.si_code() as u32 // CLD_ consts are unsigned - } - - #[cfg(not(linux_raw))] - fn si_code(&self) -> backend::c::c_int { - self.0.si_code - } - - #[cfg(not(any(target_os = "netbsd", target_os = "fuchsia", target_os = "emscripten")))] - #[allow(unsafe_code)] - fn si_status(&self) -> backend::c::c_int { - // SAFETY: POSIX [specifies] that the `siginfo_t` returned by a - // `waitid` call always has a valid `si_status` value. - // - // [specifies]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html - unsafe { self.0.si_status() } - } -} - -/// The identifier to wait on in a call to [`waitid`]. -#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "wasi")))] -#[derive(Debug, Clone)] -#[non_exhaustive] -pub enum WaitId<'a> { - /// Wait on all processes. - All, - - /// Wait for a specific process ID. - Pid(Pid), - - /// Wait for a specific process file descriptor. - #[cfg(target_os = "linux")] - PidFd(BorrowedFd<'a>), - - /// Eat the lifetime for non-Linux platforms. - #[doc(hidden)] - #[cfg(not(target_os = "linux"))] - __EatLifetime(core::marker::PhantomData<&'a ()>), - // TODO(notgull): Once this crate has the concept of PGIDs, add a WaitId::Pgid -} - -/// `waitpid(pid, waitopts)`—Wait for a specific process to change state. -/// -/// If the pid is `None`, the call will wait for any child process whose -/// process group id matches that of the calling process. -/// -/// If the pid is equal to `RawPid::MAX`, the call will wait for any child -/// process. -/// -/// Otherwise if the `wrapping_neg` of pid is less than pid, the call will wait -/// for any child process with a group ID equal to the `wrapping_neg` of `pid`. -/// -/// Otherwise, the call will wait for the child process with the given pid. -/// -/// On Success, returns the status of the selected process. -/// -/// If `NOHANG` was specified in the options, and the selected child process -/// didn't change state, returns `None`. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html -/// [Linux]: https://man7.org/linux/man-pages/man2/waitpid.2.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn waitpid(pid: Option, waitopts: WaitOptions) -> io::Result> { - Ok(backend::process::syscalls::waitpid(pid, waitopts)?.map(|(_, status)| status)) -} - -/// `wait(waitopts)`—Wait for any of the children of calling process to -/// change state. -/// -/// On success, returns the pid of the child process whose state changed, and -/// the status of said process. -/// -/// If `NOHANG` was specified in the options, and the selected child process -/// didn't change state, returns `None`. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html -/// [Linux]: https://man7.org/linux/man-pages/man2/waitpid.2.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn wait(waitopts: WaitOptions) -> io::Result> { - backend::process::syscalls::wait(waitopts) -} - -/// `waitid(_, _, _, opts)`—Wait for the specified child process to change -/// state. -#[cfg(not(any(target_os = "openbsd", target_os = "redox", target_os = "wasi")))] -#[inline] -pub fn waitid<'a>( - id: impl Into>, - options: WaitidOptions, -) -> io::Result> { - backend::process::syscalls::waitid(id.into(), options) -} diff --git a/third_party/rust/rustix/src/procfs.rs b/third_party/rust/rustix/src/procfs.rs deleted file mode 100644 index 14ad631a7ca3..000000000000 --- a/third_party/rust/rustix/src/procfs.rs +++ /dev/null @@ -1,481 +0,0 @@ -//! Utilities for working with `/proc`, where Linux's `procfs` is typically -//! mounted. -//! -//! `/proc` serves as an adjunct to Linux's main syscall surface area, -//! providing additional features with an awkward interface. -//! -//! This module does a considerable amount of work to determine whether `/proc` -//! is mounted, with actual `procfs`, and without any additional mount points -//! on top of the paths we open. -//! -//! Why all the effort to detect bind mount points? People are doing all kinds -//! of things with Linux containers these days, with many different privilege -//! schemes, and we want to avoid making any unnecessary assumptions. Rustix -//! and its users will sometimes use procfs *implicitly* (when Linux gives them -//! no better options), in ways that aren't obvious from their public APIs. -//! These filesystem accesses might not be visible to someone auditing the main -//! code of an application for places which may be influenced by the filesystem -//! namespace. So with the checking here, they may fail, but they won't be able -//! to succeed with bogus results. - -use crate::backend::pid::syscalls::getpid; -use crate::fd::{AsFd, BorrowedFd, OwnedFd}; -use crate::fs::{ - fstat, fstatfs, major, openat, renameat, FileType, FsWord, Mode, OFlags, Stat, CWD, - PROC_SUPER_MAGIC, -}; -use crate::io; -use crate::path::DecInt; -#[cfg(feature = "rustc-dep-of-std")] -use core::lazy::OnceCell; -#[cfg(not(feature = "rustc-dep-of-std"))] -use once_cell::sync::OnceCell; -#[cfg(feature = "alloc")] -use {crate::ffi::CStr, crate::fs::Dir}; - -/// Linux's procfs always uses inode 1 for its root directory. -const PROC_ROOT_INO: u64 = 1; - -// Identify an entry within "/proc", to determine which anomalies to check for. -#[derive(Copy, Clone, Debug)] -enum Kind { - Proc, - Pid, - Fd, - #[cfg(feature = "alloc")] - File, -} - -/// Check a subdirectory of "/proc" for anomalies. -fn check_proc_entry( - kind: Kind, - entry: BorrowedFd<'_>, - proc_stat: Option<&Stat>, -) -> io::Result { - let entry_stat = fstat(entry)?; - check_proc_entry_with_stat(kind, entry, entry_stat, proc_stat) -} - -/// Check a subdirectory of "/proc" for anomalies, using the provided `Stat`. -fn check_proc_entry_with_stat( - kind: Kind, - entry: BorrowedFd<'_>, - entry_stat: Stat, - proc_stat: Option<&Stat>, -) -> io::Result { - // Check the filesystem magic. - check_procfs(entry)?; - - match kind { - Kind::Proc => check_proc_root(entry, &entry_stat)?, - Kind::Pid | Kind::Fd => check_proc_subdir(entry, &entry_stat, proc_stat)?, - #[cfg(feature = "alloc")] - Kind::File => check_proc_file(&entry_stat, proc_stat)?, - } - - // "/proc" directories are typically mounted r-xr-xr-x. - // "/proc/self/fd" is r-x------. Allow them to have fewer permissions, but - // not more. - let expected_mode = if let Kind::Fd = kind { 0o500 } else { 0o555 }; - if entry_stat.st_mode & 0o777 & !expected_mode != 0 { - return Err(io::Errno::NOTSUP); - } - - match kind { - Kind::Fd => { - // Check that the "/proc/self/fd" directory doesn't have any - // extraneous links into it (which might include unexpected - // subdirectories). - if entry_stat.st_nlink != 2 { - return Err(io::Errno::NOTSUP); - } - } - Kind::Pid | Kind::Proc => { - // Check that the "/proc" and "/proc/self" directories aren't - // empty. - if entry_stat.st_nlink <= 2 { - return Err(io::Errno::NOTSUP); - } - } - #[cfg(feature = "alloc")] - Kind::File => { - // Check that files in procfs don't have extraneous hard links to - // them (which might indicate hard links to other things). - if entry_stat.st_nlink != 1 { - return Err(io::Errno::NOTSUP); - } - } - } - - Ok(entry_stat) -} - -fn check_proc_root(entry: BorrowedFd<'_>, stat: &Stat) -> io::Result<()> { - // We use `O_DIRECTORY` for proc directories, so open should fail if we - // don't get a directory when we expect one. - assert_eq!(FileType::from_raw_mode(stat.st_mode), FileType::Directory); - - // Check the root inode number. - if stat.st_ino != PROC_ROOT_INO { - return Err(io::Errno::NOTSUP); - } - - // Proc is a non-device filesystem, so check for major number 0. - // - if major(stat.st_dev) != 0 { - return Err(io::Errno::NOTSUP); - } - - // Check that "/proc" is a mountpoint. - if !is_mountpoint(entry) { - return Err(io::Errno::NOTSUP); - } - - Ok(()) -} - -fn check_proc_subdir( - entry: BorrowedFd<'_>, - stat: &Stat, - proc_stat: Option<&Stat>, -) -> io::Result<()> { - // We use `O_DIRECTORY` for proc directories, so open should fail if we - // don't get a directory when we expect one. - assert_eq!(FileType::from_raw_mode(stat.st_mode), FileType::Directory); - - check_proc_nonroot(stat, proc_stat)?; - - // Check that subdirectories of "/proc" are not mount points. - if is_mountpoint(entry) { - return Err(io::Errno::NOTSUP); - } - - Ok(()) -} - -#[cfg(feature = "alloc")] -fn check_proc_file(stat: &Stat, proc_stat: Option<&Stat>) -> io::Result<()> { - // Check that we have a regular file. - if FileType::from_raw_mode(stat.st_mode) != FileType::RegularFile { - return Err(io::Errno::NOTSUP); - } - - check_proc_nonroot(stat, proc_stat)?; - - Ok(()) -} - -fn check_proc_nonroot(stat: &Stat, proc_stat: Option<&Stat>) -> io::Result<()> { - // Check that we haven't been linked back to the root of "/proc". - if stat.st_ino == PROC_ROOT_INO { - return Err(io::Errno::NOTSUP); - } - - // Check that we're still in procfs. - if stat.st_dev != proc_stat.unwrap().st_dev { - return Err(io::Errno::NOTSUP); - } - - Ok(()) -} - -/// Check that `file` is opened on a `procfs` filesystem. -fn check_procfs(file: BorrowedFd<'_>) -> io::Result<()> { - let statfs = fstatfs(file)?; - let f_type = statfs.f_type; - if f_type != FsWord::from(PROC_SUPER_MAGIC) { - return Err(io::Errno::NOTSUP); - } - - Ok(()) -} - -/// Check whether the given directory handle is a mount point. -fn is_mountpoint(file: BorrowedFd<'_>) -> bool { - // We use a `renameat` call that would otherwise fail, but which fails with - // `XDEV` first if it would cross a mount point. - let err = renameat(file, cstr!("../."), file, cstr!(".")).unwrap_err(); - match err { - io::Errno::XDEV => true, // the rename failed due to crossing a mount point - io::Errno::BUSY => false, // the rename failed normally - _ => panic!("Unexpected error from `renameat`: {:?}", err), - } -} - -/// Open a directory in `/proc`, mapping all errors to `io::Errno::NOTSUP`. -fn proc_opendirat(dirfd: Fd, path: P) -> io::Result { - // We could add `PATH`|`NOATIME` here but Linux 2.6.32 doesn't support it. - // Also for `NOATIME` see the comment in `open_and_check_file`. - let oflags = OFlags::NOFOLLOW | OFlags::DIRECTORY | OFlags::CLOEXEC | OFlags::NOCTTY; - openat(dirfd, path, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP) -} - -/// Returns a handle to Linux's `/proc` directory. -/// -/// This ensures that `/proc` is procfs, that nothing is mounted on top of it, -/// and that it looks normal. It also returns the `Stat` of `/proc`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -fn proc() -> io::Result<(BorrowedFd<'static>, &'static Stat)> { - static PROC: StaticFd = StaticFd::new(); - - // `OnceBox` is "racey" in that the initialization function may run - // multiple times. We're ok with that, since the initialization function - // has no side effects. - PROC.get_or_try_init(|| { - // Open "/proc". - let proc = proc_opendirat(CWD, cstr!("/proc"))?; - let proc_stat = - check_proc_entry(Kind::Proc, proc.as_fd(), None).map_err(|_err| io::Errno::NOTSUP)?; - - Ok(new_static_fd(proc, proc_stat)) - }) - .map(|(fd, stat)| (fd.as_fd(), stat)) -} - -/// Returns a handle to Linux's `/proc/self` directory. -/// -/// This ensures that `/proc/self` is procfs, that nothing is mounted on top of -/// it, and that it looks normal. It also returns the `Stat` of `/proc/self`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -fn proc_self() -> io::Result<(BorrowedFd<'static>, &'static Stat)> { - static PROC_SELF: StaticFd = StaticFd::new(); - - // The init function here may run multiple times; see above. - PROC_SELF - .get_or_try_init(|| { - let (proc, proc_stat) = proc()?; - - let pid = getpid(); - - // Open "/proc/self". Use our pid to compute the name rather than - // literally using "self", as "self" is a symlink. - let proc_self = proc_opendirat(proc, DecInt::new(pid.as_raw_nonzero().get()))?; - let proc_self_stat = check_proc_entry(Kind::Pid, proc_self.as_fd(), Some(proc_stat)) - .map_err(|_err| io::Errno::NOTSUP)?; - - Ok(new_static_fd(proc_self, proc_self_stat)) - }) - .map(|(owned, stat)| (owned.as_fd(), stat)) -} - -/// Returns a handle to Linux's `/proc/self/fd` directory. -/// -/// This ensures that `/proc/self/fd` is `procfs`, that nothing is mounted on -/// top of it, and that it looks normal. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -#[cfg_attr(doc_cfg, doc(cfg(feature = "procfs")))] -pub fn proc_self_fd() -> io::Result> { - static PROC_SELF_FD: StaticFd = StaticFd::new(); - - // The init function here may run multiple times; see above. - PROC_SELF_FD - .get_or_try_init(|| { - let (_, proc_stat) = proc()?; - - let (proc_self, _proc_self_stat) = proc_self()?; - - // Open "/proc/self/fd". - let proc_self_fd = proc_opendirat(proc_self, cstr!("fd"))?; - let proc_self_fd_stat = - check_proc_entry(Kind::Fd, proc_self_fd.as_fd(), Some(proc_stat)) - .map_err(|_err| io::Errno::NOTSUP)?; - - Ok(new_static_fd(proc_self_fd, proc_self_fd_stat)) - }) - .map(|(owned, _stat)| owned.as_fd()) -} - -type StaticFd = OnceCell<(OwnedFd, Stat)>; - -#[inline] -fn new_static_fd(fd: OwnedFd, stat: Stat) -> (OwnedFd, Stat) { - (fd, stat) -} - -/// Returns a handle to Linux's `/proc/self/fdinfo` directory. -/// -/// This ensures that `/proc/self/fdinfo` is `procfs`, that nothing is mounted -/// on top of it, and that it looks normal. It also returns the `Stat` of -/// `/proc/self/fd`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -#[cfg(feature = "alloc")] -fn proc_self_fdinfo() -> io::Result<(BorrowedFd<'static>, &'static Stat)> { - static PROC_SELF_FDINFO: StaticFd = StaticFd::new(); - - PROC_SELF_FDINFO - .get_or_try_init(|| { - let (_, proc_stat) = proc()?; - - let (proc_self, _proc_self_stat) = proc_self()?; - - // Open "/proc/self/fdinfo". - let proc_self_fdinfo = proc_opendirat(proc_self, cstr!("fdinfo"))?; - let proc_self_fdinfo_stat = - check_proc_entry(Kind::Fd, proc_self_fdinfo.as_fd(), Some(proc_stat)) - .map_err(|_err| io::Errno::NOTSUP)?; - - Ok((proc_self_fdinfo, proc_self_fdinfo_stat)) - }) - .map(|(owned, stat)| (owned.as_fd(), stat)) -} - -/// Returns a handle to a Linux `/proc/self/fdinfo/` file. -/// -/// This ensures that `/proc/self/fdinfo/` is `procfs`, that nothing is -/// mounted on top of it, and that it looks normal. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -#[cfg(feature = "alloc")] -#[inline] -#[cfg_attr(doc_cfg, doc(cfg(feature = "procfs")))] -pub fn proc_self_fdinfo_fd(fd: Fd) -> io::Result { - _proc_self_fdinfo(fd.as_fd()) -} - -#[cfg(feature = "alloc")] -fn _proc_self_fdinfo(fd: BorrowedFd<'_>) -> io::Result { - let (proc_self_fdinfo, proc_self_fdinfo_stat) = proc_self_fdinfo()?; - let fd_str = DecInt::from_fd(fd); - open_and_check_file(proc_self_fdinfo, proc_self_fdinfo_stat, fd_str.as_c_str()) -} - -/// Returns a handle to a Linux `/proc/self/pagemap` file. -/// -/// This ensures that `/proc/self/pagemap` is `procfs`, that nothing is -/// mounted on top of it, and that it looks normal. -/// -/// # References -/// - [Linux] -/// - [Linux pagemap] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -/// [Linux pagemap]: https://www.kernel.org/doc/Documentation/vm/pagemap.txt -#[cfg(feature = "alloc")] -#[inline] -#[cfg_attr(doc_cfg, doc(cfg(feature = "procfs")))] -pub fn proc_self_pagemap() -> io::Result { - proc_self_file(cstr!("pagemap")) -} - -/// Returns a handle to a Linux `/proc/self/maps` file. -/// -/// This ensures that `/proc/self/maps` is `procfs`, that nothing is -/// mounted on top of it, and that it looks normal. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -#[cfg(feature = "alloc")] -#[inline] -#[cfg_attr(doc_cfg, doc(cfg(feature = "procfs")))] -pub fn proc_self_maps() -> io::Result { - proc_self_file(cstr!("maps")) -} - -/// Returns a handle to a Linux `/proc/self/status` file. -/// -/// This ensures that `/proc/self/status` is `procfs`, that nothing is -/// mounted on top of it, and that it looks normal. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man5/proc.5.html -#[cfg(feature = "alloc")] -#[inline] -#[cfg_attr(doc_cfg, doc(cfg(feature = "procfs")))] -pub fn proc_self_status() -> io::Result { - proc_self_file(cstr!("status")) -} - -/// Open a file under `/proc/self`. -#[cfg(feature = "alloc")] -fn proc_self_file(name: &CStr) -> io::Result { - let (proc_self, proc_self_stat) = proc_self()?; - open_and_check_file(proc_self, proc_self_stat, name) -} - -/// Open a procfs file within in `dir` and check it for bind mounts. -#[cfg(feature = "alloc")] -fn open_and_check_file(dir: BorrowedFd<'_>, dir_stat: &Stat, name: &CStr) -> io::Result { - let (_, proc_stat) = proc()?; - - // Don't use `NOATIME`, because it [requires us to own the file], and when - // a process sets itself non-dumpable Linux changes the user:group of its - // `/proc/` files [to root:root]. - // - // [requires us to own the file]: https://man7.org/linux/man-pages/man2/openat.2.html - // [to root:root]: https://man7.org/linux/man-pages/man5/proc.5.html - let oflags = OFlags::RDONLY | OFlags::CLOEXEC | OFlags::NOFOLLOW | OFlags::NOCTTY; - let file = openat(dir, name, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP)?; - let file_stat = fstat(&file)?; - - // `is_mountpoint` only works on directory mount points, not file mount - // points. To detect file mount points, scan the parent directory to see if - // we can find a regular file with an inode and name that matches the file - // we just opened. If we can't find it, there could be a file bind mount on - // top of the file we want. - // - // As we scan, we also check for ".", to make sure it's the same directory - // as our original directory, to detect mount points, since - // `Dir::read_from` reopens ".". - // - // TODO: With Linux 5.8 we might be able to use `statx` and - // `STATX_ATTR_MOUNT_ROOT` to detect mountpoints directly instead of doing - // this scanning. - let dir = Dir::read_from(dir).map_err(|_err| io::Errno::NOTSUP)?; - - // Confirm that we got the same inode. - let dot_stat = dir.stat().map_err(|_err| io::Errno::NOTSUP)?; - if (dot_stat.st_dev, dot_stat.st_ino) != (dir_stat.st_dev, dir_stat.st_ino) { - return Err(io::Errno::NOTSUP); - } - - let mut found_file = false; - let mut found_dot = false; - for entry in dir { - let entry = entry.map_err(|_err| io::Errno::NOTSUP)?; - if entry.ino() == file_stat.st_ino - && entry.file_type() == FileType::RegularFile - && entry.file_name() == name - { - // We found the file. Proceed to check the file handle. - let _ = - check_proc_entry_with_stat(Kind::File, file.as_fd(), file_stat, Some(proc_stat))?; - - found_file = true; - } else if entry.ino() == dir_stat.st_ino - && entry.file_type() == FileType::Directory - && entry.file_name() == cstr!(".") - { - // We found ".", and it's the right ".". - found_dot = true; - } - } - - if found_file && found_dot { - Ok(file) - } else { - Err(io::Errno::NOTSUP) - } -} diff --git a/third_party/rust/rustix/src/pty.rs b/third_party/rust/rustix/src/pty.rs deleted file mode 100644 index a63fbfeef707..000000000000 --- a/third_party/rust/rustix/src/pty.rs +++ /dev/null @@ -1,206 +0,0 @@ -//! Pseudoterminal operations. -//! -//! For the `openpty` and `login_tty` functions, see the -//! [rustix-openpty crate]. -//! -//! [rustix-openpty crate]: https://crates.io/crates/rustix-openpty - -#![allow(unsafe_code)] - -use crate::backend::c; -use crate::fd::{AsFd, OwnedFd}; -use crate::fs::OFlags; -use crate::{backend, io}; -#[cfg(all( - feature = "alloc", - any(apple, linux_like, target_os = "freebsd", target_os = "fuchsia") -))] -use {crate::ffi::CString, alloc::vec::Vec}; - -#[cfg(target_os = "linux")] -use crate::{fd::FromRawFd, ioctl}; - -bitflags::bitflags! { - /// `O_*` flags for use with [`openpt`] and [`ioctl_tiocgptpeer`]. - /// - /// [`ioctl_tiocgtpeer`]: https://docs.rs/rustix/*/x86_64-unknown-linux-gnu/rustix/pty/fn.ioctl_tiocgtpeer.html - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct OpenptFlags: u32 { - /// `O_RDWR` - const RDWR = c::O_RDWR as c::c_uint; - - /// `O_NOCTTY` - #[cfg(not(any(target_os = "espidf", target_os = "l4re", target_os = "redox")))] - const NOCTTY = c::O_NOCTTY as c::c_uint; - - /// `O_CLOEXEC` - /// - /// The standard `posix_openpt` function doesn't support `CLOEXEC`, but - /// rustix supports it on Linux, and FreeBSD and NetBSD support it. - #[cfg(any(linux_kernel, target_os = "freebsd", target_os = "netbsd"))] - const CLOEXEC = c::O_CLOEXEC as c::c_uint; - - /// - const _ = !0; - } -} - -impl From for OFlags { - #[inline] - fn from(flags: OpenptFlags) -> Self { - // `OpenptFlags` is a subset of `OFlags`. - Self::from_bits_retain(flags.bits() as _) - } -} - -/// `posix_openpt(flags)`—Open a pseudoterminal device. -/// -/// On Linux, an additional `CLOEXEC` flag value may be passed to request the -/// close-on-exec flag be set. -/// -/// On Linux, if the system has no free pseudoterminals available, the -/// underlying system call fails with [`io::Errno::NOSPC`], however this rustix -/// function translates that to [`io::Errno::AGAIN`], so that the linux_raw and -/// libc backends have the same behavior. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [FreeBSD] -/// - [DragonFly BSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_openpt.html -/// [Linux]: https://man7.org/linux/man-pages/man3/posix_openpt.3.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/posix_openpt.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=posix_openpt&sektion=2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=posix_openpt§ion=3 -/// [NetBSD]: https://man.netbsd.org/posix_openpt.3 -/// [OpenBSD]: https://man.openbsd.org/posix_openpt -/// [illumos]: https://illumos.org/man/3C/posix_openpt -#[inline] -#[doc(alias = "posix_openpt")] -pub fn openpt(flags: OpenptFlags) -> io::Result { - // On Linux, open the device ourselves so that we can support `CLOEXEC`. - #[cfg(linux_kernel)] - { - use crate::fs::{open, Mode}; - match open(cstr!("/dev/ptmx"), flags.into(), Mode::empty()) { - // Match libc `openat` behavior with `ENOSPC`. - Err(io::Errno::NOSPC) => Err(io::Errno::AGAIN), - otherwise => otherwise, - } - } - - // On all other platforms, use `openpt`. - #[cfg(not(linux_kernel))] - { - backend::pty::syscalls::openpt(flags) - } -} - -/// `ptsname(fd)`—Return the name of a pseudoterminal. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ptsname.html -/// [Linux]: https://man7.org/linux/man-pages/man3/ptsname.3.html -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Allocation.html#index-ptsname -#[cfg(all( - feature = "alloc", - any(apple, linux_like, target_os = "freebsd", target_os = "fuchsia") -))] -#[inline] -#[doc(alias = "ptsname_r")] -pub fn ptsname>>(fd: Fd, reuse: B) -> io::Result { - backend::pty::syscalls::ptsname(fd.as_fd(), reuse.into()) -} - -/// `unlockpt(fd)`—Unlock a pseudoterminal. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlockpt.html -/// [Linux]: https://man7.org/linux/man-pages/man3/unlockpt.3.html -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Allocation.html#index-unlockpt -#[inline] -pub fn unlockpt(fd: Fd) -> io::Result<()> { - backend::pty::syscalls::unlockpt(fd.as_fd()) -} - -/// `grantpt(fd)`—Grant access to the user side of a pseudoterminal. -/// -/// On Linux, calling this function has no effect, as the kernel is expected to -/// grant the appropriate access. On all other platorms, this function has -/// unspecified behavior if the calling process has a `SIGCHLD` signal handler -/// installed. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/grantpt.html -/// [Linux]: https://man7.org/linux/man-pages/man3/grantpt.3.html -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Allocation.html#index-grantpt -#[inline] -pub fn grantpt(fd: Fd) -> io::Result<()> { - #[cfg(not(linux_kernel))] - { - backend::pty::syscalls::grantpt(fd.as_fd()) - } - - // On Linux, we assume the kernel has already granted the needed - // permissions to the user side of the pseudoterminal. - #[cfg(linux_kernel)] - { - let _ = fd; - Ok(()) - } -} - -/// `ioctl(fd, TIOCGPTPEER)`—Open the user side of a pseduoterminal. -/// -/// This function is currently only implemented on Linux. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl_tty.2.html -#[cfg(target_os = "linux")] -#[inline] -pub fn ioctl_tiocgptpeer(fd: Fd, flags: OpenptFlags) -> io::Result { - unsafe { ioctl::ioctl(fd, Tiocgptpeer(flags)) } -} - -#[cfg(target_os = "linux")] -struct Tiocgptpeer(OpenptFlags); - -#[cfg(target_os = "linux")] -unsafe impl ioctl::Ioctl for Tiocgptpeer { - type Output = OwnedFd; - - const IS_MUTATING: bool = false; - const OPCODE: ioctl::Opcode = ioctl::Opcode::old(c::TIOCGPTPEER as ioctl::RawOpcode); - - fn as_ptr(&mut self) -> *mut c::c_void { - self.0.bits() as *mut c::c_void - } - - unsafe fn output_from_ptr( - ret: ioctl::IoctlOutput, - _arg: *mut c::c_void, - ) -> io::Result { - Ok(OwnedFd::from_raw_fd(ret)) - } -} diff --git a/third_party/rust/rustix/src/rand/getrandom.rs b/third_party/rust/rustix/src/rand/getrandom.rs deleted file mode 100644 index 3fed0dd0859d..000000000000 --- a/third_party/rust/rustix/src/rand/getrandom.rs +++ /dev/null @@ -1,20 +0,0 @@ -use crate::{backend, io}; - -pub use backend::rand::types::GetRandomFlags; - -/// `getrandom(buf, flags)`—Reads a sequence of random bytes. -/// -/// This is a very low-level API which may be difficult to use correctly. Most -/// users should prefer to use [`getrandom`] or [`rand`] APIs instead. -/// -/// [`getrandom`]: https://crates.io/crates/getrandom -/// [`rand`]: https://crates.io/crates/rand -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/getrandom.2.html -#[inline] -pub fn getrandom(buf: &mut [u8], flags: GetRandomFlags) -> io::Result { - backend::rand::syscalls::getrandom(buf, flags) -} diff --git a/third_party/rust/rustix/src/rand/mod.rs b/third_party/rust/rustix/src/rand/mod.rs deleted file mode 100644 index e767c590d29a..000000000000 --- a/third_party/rust/rustix/src/rand/mod.rs +++ /dev/null @@ -1,7 +0,0 @@ -//! Random-related operations. - -#[cfg(linux_kernel)] -mod getrandom; - -#[cfg(linux_kernel)] -pub use getrandom::{getrandom, GetRandomFlags}; diff --git a/third_party/rust/rustix/src/runtime.rs b/third_party/rust/rustix/src/runtime.rs deleted file mode 100644 index afaae5da1ad0..000000000000 --- a/third_party/rust/rustix/src/runtime.rs +++ /dev/null @@ -1,478 +0,0 @@ -//! Low-level implementation details for libc-like runtime libraries such as -//! [origin]. -//! -//! Do not use the functions in this module unless you've read all of their -//! code, *and* you know all the relevant internal implementation details of -//! any libc in the process they'll be used. -//! -//! These functions are for implementing thread-local storage (TLS), managing -//! threads, loaded libraries, and other process-wide resources. Most of -//! `rustix` doesn't care about what other libraries are linked into the -//! program or what they're doing, but the features in this module generally -//! can only be used by one entity within a process. -//! -//! The API for these functions is not stable, and this module is -//! `doc(hidden)`. -//! -//! [origin]: https://github.com/sunfishcode/origin -//! -//! # Safety -//! -//! This module is intended to be used for implementing a runtime library such -//! as libc. Use of these features for any other purpose is likely to create -//! serious problems. -#![allow(unsafe_code)] - -use crate::backend; -#[cfg(linux_raw)] -use crate::ffi::CStr; -#[cfg(linux_raw)] -#[cfg(feature = "fs")] -use crate::fs::AtFlags; -#[cfg(linux_raw)] -use crate::io; -#[cfg(linux_raw)] -use crate::pid::Pid; -#[cfg(linux_raw)] -#[cfg(feature = "fs")] -use backend::fd::AsFd; -#[cfg(linux_raw)] -use core::ffi::c_void; - -#[cfg(linux_raw)] -pub use crate::signal::Signal; - -/// `sigaction` -#[cfg(linux_raw)] -pub type Sigaction = linux_raw_sys::general::kernel_sigaction; - -/// `stack_t` -#[cfg(linux_raw)] -pub type Stack = linux_raw_sys::general::stack_t; - -/// `sigset_t` -#[cfg(linux_raw)] -pub type Sigset = linux_raw_sys::general::kernel_sigset_t; - -/// `siginfo_t` -#[cfg(linux_raw)] -pub type Siginfo = linux_raw_sys::general::siginfo_t; - -pub use crate::timespec::{Nsecs, Secs, Timespec}; - -/// `SIG_*` constants for use with [`sigprocmask`]. -#[cfg(linux_raw)] -#[repr(u32)] -pub enum How { - /// `SIG_BLOCK` - BLOCK = linux_raw_sys::general::SIG_BLOCK, - - /// `SIG_UNBLOCK` - UNBLOCK = linux_raw_sys::general::SIG_UNBLOCK, - - /// `SIG_SETMASK` - SETMASK = linux_raw_sys::general::SIG_SETMASK, -} - -#[cfg(target_arch = "x86")] -#[inline] -pub unsafe fn set_thread_area(u_info: &mut UserDesc) -> io::Result<()> { - backend::runtime::syscalls::tls::set_thread_area(u_info) -} - -#[cfg(target_arch = "arm")] -#[inline] -pub unsafe fn arm_set_tls(data: *mut c_void) -> io::Result<()> { - backend::runtime::syscalls::tls::arm_set_tls(data) -} - -/// `prctl(PR_SET_FS, data)`—Set the x86_64 `fs` register. -/// -/// # Safety -/// -/// This is a very low-level feature for implementing threading libraries. -/// See the references links above. -#[cfg(target_arch = "x86_64")] -#[inline] -pub unsafe fn set_fs(data: *mut c_void) { - backend::runtime::syscalls::tls::set_fs(data) -} - -/// Set the x86_64 thread ID address. -/// -/// # Safety -/// -/// This is a very low-level feature for implementing threading libraries. -/// See the references links above. -#[inline] -pub unsafe fn set_tid_address(data: *mut c_void) -> Pid { - backend::runtime::syscalls::tls::set_tid_address(data) -} - -/// `prctl(PR_SET_NAME, name)` -/// -/// # References -/// - [Linux] -/// -/// # Safety -/// -/// This is a very low-level feature for implementing threading libraries. -/// See the references links above. -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub unsafe fn set_thread_name(name: &CStr) -> io::Result<()> { - backend::runtime::syscalls::tls::set_thread_name(name) -} - -#[cfg(linux_raw)] -#[cfg(target_arch = "x86")] -pub use backend::runtime::tls::UserDesc; - -/// `syscall(SYS_exit, status)`—Exit the current thread. -/// -/// # Safety -/// -/// This is a very low-level feature for implementing threading libraries. -#[inline] -pub unsafe fn exit_thread(status: i32) -> ! { - backend::runtime::syscalls::tls::exit_thread(status) -} - -/// Exit all the threads in the current process' thread group. -/// -/// This is equivalent to `_exit` and `_Exit` in libc. -/// -/// This does not all any `__cxa_atexit`, `atexit`, or any other destructors. -/// Most programs should use [`std::process::exit`] instead of calling this -/// directly. -/// -/// # References -/// - [POSIX `_Exit`] -/// - [Linux `exit_group`] -/// - [Linux `_Exit`] -/// -/// [POSIX `_Exit`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/_Exit.html -/// [Linux `exit_group`]: https://man7.org/linux/man-pages/man2/exit_group.2.html -/// [Linux `_Exit`]: https://man7.org/linux/man-pages/man2/_Exit.2.html -#[doc(alias = "_exit")] -#[doc(alias = "_Exit")] -#[inline] -pub fn exit_group(status: i32) -> ! { - backend::runtime::syscalls::exit_group(status) -} - -/// `EXIT_SUCCESS` for use with [`exit_group`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html -/// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html -pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; - -/// `EXIT_FAILURE` for use with [`exit_group`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html -/// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html -pub const EXIT_FAILURE: i32 = backend::c::EXIT_FAILURE; - -/// Return fields from the main executable segment headers ("phdrs") relevant -/// to initializing TLS provided to the program at startup. -/// -/// `addr` will always be non-null, even when the TLS data is absent, ao that -/// the `addr` and `file_size` parameters are suitable for creating a slice -/// with `slice::from_raw_parts`. -#[inline] -pub fn startup_tls_info() -> StartupTlsInfo { - backend::runtime::tls::startup_tls_info() -} - -/// `(getauxval(AT_PHDR), getauxval(AT_PHENT), getauxval(AT_PHNUM))`—Returns -/// the address, ELF segment header size, and number of ELF segment headers for -/// the main executable. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html -#[inline] -pub fn exe_phdrs() -> (*const c_void, usize, usize) { - backend::param::auxv::exe_phdrs() -} - -/// `getauxval(AT_ENTRY)`—Returns the address of the program entrypoint. -/// -/// Most code interested in the program entrypoint address should instead use a -/// symbol reference to `_start`. That will be properly PC-relative or -/// relocated if needed, and will come with appropriate pointer type and -/// pointer provenance. -/// -/// This function is intended only for use in code that implements those -/// relocations, to compute the ASLR offset. It has type `usize`, so it doesn't -/// carry any provenance, and it shouldn't be used to dereference memory. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html -#[inline] -pub fn entry() -> usize { - backend::param::auxv::entry() -} - -#[cfg(linux_raw)] -pub use backend::runtime::tls::StartupTlsInfo; - -/// `fork()`—Creates a new process by duplicating the calling process. -/// -/// On success, the pid of the child process is returned in the parent, and -/// `None` is returned in the child. -/// -/// Unlike its POSIX and libc counterparts, this `fork` does not invoke any -/// handlers (such as those registered with `pthread_atfork`). -/// -/// The program environment in the child after a `fork` and before an `execve` -/// is very special. All code that executes in this environment must avoid: -/// -/// - Acquiring any other locks that are held in other threads on the parent -/// at the time of the `fork`, as the child only contains one thread, and -/// attempting to acquire such locks will deadlock (though this is [not -/// considered unsafe]). -/// -/// - Performing any dynamic allocation using the global allocator, since -/// global allocators may use locks to ensure thread safety, and their locks -/// may not be released in the child process, so attempts to allocate may -/// deadlock (as described in the previous point). -/// -/// - Accessing any external state which the parent assumes it has exclusive -/// access to, such as a file protected by a file lock, as this could -/// corrupt the external state. -/// -/// - Accessing any random-number-generator state inherited from the parent, -/// as the parent may have the same state and generate the same random -/// numbers, which may violate security invariants. -/// -/// - Accessing any thread runtime state, since this function does not update -/// the thread id in the thread runtime, so thread runtime functions could -/// cause undefined behavior. -/// -/// - Accessing any memory shared with the parent, such as a [`MAP_SHARED`] -/// mapping, even with anonymous or [`memfd_create`] mappings, as this could -/// cause undefined behavior. -/// -/// - Calling any C function which isn't known to be [async-signal-safe], as -/// that could cause undefined behavior. The extent to which this also -/// applies to Rust functions is unclear at this time. -/// -/// # Safety -/// -/// The child must avoid accessing any memory shared with the parent in a -/// way that invokes undefined behavior. It must avoid accessing any threading -/// runtime functions in a way that invokes undefined behavior. And it must -/// avoid invoking any undefined behavior through any function that is not -/// guaranteed to be async-signal-safe. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// # Literary interlude -/// -/// > Do not jump on ancient uncles. -/// > Do not yell at average mice. -/// > Do not wear a broom to breakfast. -/// > Do not ask a snake’s advice. -/// > Do not bathe in chocolate pudding. -/// > Do not talk to bearded bears. -/// > Do not smoke cigars on sofas. -/// > Do not dance on velvet chairs. -/// > Do not take a whale to visit -/// > Russell’s mother’s cousin’s yacht. -/// > And whatever else you do do -/// > It is better you -/// > Do not. -/// -/// - “Rules”, by Karla Kuskin -/// -/// [`MAP_SHARED`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html -/// [not considered unsafe]: https://doc.rust-lang.org/reference/behavior-not-considered-unsafe.html#deadlocks -/// [`memfd_create`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fork.html -/// [Linux]: https://man7.org/linux/man-pages/man2/fork.2.html -/// [async-signal-safe]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04_03 -pub unsafe fn fork() -> io::Result> { - backend::runtime::syscalls::fork() -} - -/// `execveat(dirfd, path.as_c_str(), argv, envp, flags)`—Execute a new -/// command using the current process. -/// -/// # Safety -/// -/// The `argv` and `envp` pointers must point to NUL-terminated arrays, and -/// their contents must be pointers to NUL-terminated byte arrays. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/execveat.2.html -#[inline] -#[cfg(feature = "fs")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))] -pub unsafe fn execveat( - dirfd: Fd, - path: &CStr, - argv: *const *const u8, - envp: *const *const u8, - flags: AtFlags, -) -> io::Errno { - backend::runtime::syscalls::execveat(dirfd.as_fd(), path, argv, envp, flags) -} - -/// `execve(path.as_c_str(), argv, envp)`—Execute a new command using the -/// current process. -/// -/// # Safety -/// -/// The `argv` and `envp` pointers must point to NUL-terminated arrays, and -/// their contents must be pointers to NUL-terminated byte arrays. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/execve.2.html -#[inline] -pub unsafe fn execve(path: &CStr, argv: *const *const u8, envp: *const *const u8) -> io::Errno { - backend::runtime::syscalls::execve(path, argv, envp) -} - -/// `sigaction(signal, &new, &old)`—Modify or query a signal handler. -/// -/// # Safety -/// -/// You're on your own. And on top of all the troubles with signal handlers, -/// this implementation is highly experimental. Even further, it differs from -/// the libc `sigaction` in several non-obvious and unsafe ways. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaction.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sigaction.2.html -#[inline] -pub unsafe fn sigaction(signal: Signal, new: Option) -> io::Result { - backend::runtime::syscalls::sigaction(signal, new) -} - -/// `sigaltstack(new, old)`—Modify or query a signal stack. -/// -/// # Safety -/// -/// You're on your own. And on top of all the troubles with signal handlers, -/// this implementation is highly experimental. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html -/// [Linux]: https://man7.org/linux/man-pages/man2/sigaltstack.2.html -#[inline] -pub unsafe fn sigaltstack(new: Option) -> io::Result { - backend::runtime::syscalls::sigaltstack(new) -} - -/// `tkill(tid, sig)`—Send a signal to a thread. -/// -/// # Safety -/// -/// You're on your own. And on top of all the troubles with signal handlers, -/// this implementation is highly experimental. The warning about the hazard -/// of recycled thread ID's applies. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/tkill.2.html -#[inline] -pub unsafe fn tkill(tid: Pid, sig: Signal) -> io::Result<()> { - backend::runtime::syscalls::tkill(tid, sig) -} - -/// `sigprocmask(how, set, oldset)`—Adjust the process signal mask. -/// -/// # Safety -/// -/// You're on your own. And on top of all the troubles with signal handlers, -/// this implementation is highly experimental. Even further, it differs from -/// the libc `sigprocmask` in several non-obvious and unsafe ways. -/// -/// # References -/// - [Linux `sigprocmask`] -/// - [Linux `pthread_sigmask`] -/// -/// [Linux `sigprocmask`]: https://man7.org/linux/man-pages/man2/sigprocmask.2.html -/// [Linux `pthread_sigmask`]: https://man7.org/linux/man-pages/man3/pthread_sigmask.3.html -#[inline] -#[doc(alias = "pthread_sigmask")] -pub unsafe fn sigprocmask(how: How, set: Option<&Sigset>) -> io::Result { - backend::runtime::syscalls::sigprocmask(how, set) -} - -/// `sigwait(set)`—Wait for signals. -/// -/// # Safety -/// -/// If code elsewhere in the process is depending on delivery of a signal to -/// prevent it from executing some code, this could cause it to miss that -/// signal and execute that code. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man3/sigwait.3.html -#[inline] -pub unsafe fn sigwait(set: &Sigset) -> io::Result { - backend::runtime::syscalls::sigwait(set) -} - -/// `sigwait(set)`—Wait for signals, returning a [`Siginfo`]. -/// -/// # Safety -/// -/// If code elsewhere in the process is depending on delivery of a signal to -/// prevent it from executing some code, this could cause it to miss that -/// signal and execute that code. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/sigwaitinfo.2.html -#[inline] -pub unsafe fn sigwaitinfo(set: &Sigset) -> io::Result { - backend::runtime::syscalls::sigwaitinfo(set) -} - -/// `sigtimedwait(set)`—Wait for signals, optionally with a timeout. -/// -/// # Safety -/// -/// If code elsewhere in the process is depending on delivery of a signal to -/// prevent it from executing some code, this could cause it to miss that -/// signal and execute that code. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/sigtimedwait.2.html -#[inline] -pub unsafe fn sigtimedwait(set: &Sigset, timeout: Option) -> io::Result { - backend::runtime::syscalls::sigtimedwait(set, timeout) -} diff --git a/third_party/rust/rustix/src/signal.rs b/third_party/rust/rustix/src/signal.rs deleted file mode 100644 index 43236f335d38..000000000000 --- a/third_party/rust/rustix/src/signal.rs +++ /dev/null @@ -1,220 +0,0 @@ -use crate::backend::c; - -/// A signal number for use with [`kill_process`], [`kill_process_group`], -/// and [`kill_current_process_group`]. -/// -/// [`kill_process`]: crate::process::kill_process -/// [`kill_process_group`]: crate::process::kill_process_group -/// [`kill_current_process_group`]: crate::process::kill_current_process_group -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(i32)] -pub enum Signal { - /// `SIGHUP` - Hup = c::SIGHUP, - /// `SIGINT` - Int = c::SIGINT, - /// `SIGQUIT` - Quit = c::SIGQUIT, - /// `SIGILL` - Ill = c::SIGILL, - /// `SIGTRAP` - Trap = c::SIGTRAP, - /// `SIGABRT`, aka `SIGIOT` - #[doc(alias = "Iot")] - #[doc(alias = "Abrt")] - Abort = c::SIGABRT, - /// `SIGBUS` - Bus = c::SIGBUS, - /// `SIGFPE` - Fpe = c::SIGFPE, - /// `SIGKILL` - Kill = c::SIGKILL, - /// `SIGUSR1` - Usr1 = c::SIGUSR1, - /// `SIGSEGV` - Segv = c::SIGSEGV, - /// `SIGUSR2` - Usr2 = c::SIGUSR2, - /// `SIGPIPE` - Pipe = c::SIGPIPE, - /// `SIGALRM` - #[doc(alias = "Alrm")] - Alarm = c::SIGALRM, - /// `SIGTERM` - Term = c::SIGTERM, - /// `SIGSTKFLT` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - all( - linux_kernel, - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" - ), - ) - )))] - Stkflt = c::SIGSTKFLT, - /// `SIGCHLD` - #[doc(alias = "Chld")] - Child = c::SIGCHLD, - /// `SIGCONT` - Cont = c::SIGCONT, - /// `SIGSTOP` - Stop = c::SIGSTOP, - /// `SIGTSTP` - Tstp = c::SIGTSTP, - /// `SIGTTIN` - Ttin = c::SIGTTIN, - /// `SIGTTOU` - Ttou = c::SIGTTOU, - /// `SIGURG` - Urg = c::SIGURG, - /// `SIGXCPU` - Xcpu = c::SIGXCPU, - /// `SIGXFSZ` - Xfsz = c::SIGXFSZ, - /// `SIGVTALRM` - #[doc(alias = "Vtalrm")] - Vtalarm = c::SIGVTALRM, - /// `SIGPROF` - Prof = c::SIGPROF, - /// `SIGWINCH` - Winch = c::SIGWINCH, - /// `SIGIO`, aka `SIGPOLL` - #[doc(alias = "Poll")] - #[cfg(not(target_os = "haiku"))] - Io = c::SIGIO, - /// `SIGPWR` - #[cfg(not(any(bsd, target_os = "haiku")))] - #[doc(alias = "Pwr")] - Power = c::SIGPWR, - /// `SIGSYS`, aka `SIGUNUSED` - #[doc(alias = "Unused")] - Sys = c::SIGSYS, - /// `SIGEMT` - #[cfg(any( - bsd, - solarish, - target_os = "aix", - target_os = "hermit", - all( - linux_kernel, - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" - ) - ) - ))] - Emt = c::SIGEMT, - /// `SIGINFO` - #[cfg(bsd)] - Info = c::SIGINFO, - /// `SIGTHR` - #[cfg(target_os = "freebsd")] - #[doc(alias = "Lwp")] - Thr = c::SIGTHR, - /// `SIGLIBRT` - #[cfg(target_os = "freebsd")] - Librt = c::SIGLIBRT, -} - -impl Signal { - /// Convert a raw signal number into a `Signal`, if possible. - pub fn from_raw(sig: c::c_int) -> Option { - match sig { - c::SIGHUP => Some(Self::Hup), - c::SIGINT => Some(Self::Int), - c::SIGQUIT => Some(Self::Quit), - c::SIGILL => Some(Self::Ill), - c::SIGTRAP => Some(Self::Trap), - c::SIGABRT => Some(Self::Abort), - c::SIGBUS => Some(Self::Bus), - c::SIGFPE => Some(Self::Fpe), - c::SIGKILL => Some(Self::Kill), - c::SIGUSR1 => Some(Self::Usr1), - c::SIGSEGV => Some(Self::Segv), - c::SIGUSR2 => Some(Self::Usr2), - c::SIGPIPE => Some(Self::Pipe), - c::SIGALRM => Some(Self::Alarm), - c::SIGTERM => Some(Self::Term), - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - all( - linux_kernel, - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" - ), - ) - )))] - c::SIGSTKFLT => Some(Self::Stkflt), - c::SIGCHLD => Some(Self::Child), - c::SIGCONT => Some(Self::Cont), - c::SIGSTOP => Some(Self::Stop), - c::SIGTSTP => Some(Self::Tstp), - c::SIGTTIN => Some(Self::Ttin), - c::SIGTTOU => Some(Self::Ttou), - c::SIGURG => Some(Self::Urg), - c::SIGXCPU => Some(Self::Xcpu), - c::SIGXFSZ => Some(Self::Xfsz), - c::SIGVTALRM => Some(Self::Vtalarm), - c::SIGPROF => Some(Self::Prof), - c::SIGWINCH => Some(Self::Winch), - #[cfg(not(target_os = "haiku"))] - c::SIGIO => Some(Self::Io), - #[cfg(not(any(bsd, target_os = "haiku")))] - c::SIGPWR => Some(Self::Power), - c::SIGSYS => Some(Self::Sys), - #[cfg(any( - bsd, - solarish, - target_os = "aix", - target_os = "hermit", - all( - linux_kernel, - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" - ) - ) - ))] - c::SIGEMT => Some(Self::Emt), - #[cfg(bsd)] - c::SIGINFO => Some(Self::Info), - #[cfg(target_os = "freebsd")] - c::SIGTHR => Some(Self::Thr), - #[cfg(target_os = "freebsd")] - c::SIGLIBRT => Some(Self::Librt), - _ => None, - } - } -} - -#[test] -fn test_sizes() { - assert_eq_size!(Signal, c::c_int); -} diff --git a/third_party/rust/rustix/src/static_assertions.rs b/third_party/rust/rustix/src/static_assertions.rs deleted file mode 100644 index 81824cb1cdb4..000000000000 --- a/third_party/rust/rustix/src/static_assertions.rs +++ /dev/null @@ -1,37 +0,0 @@ -//! Workarounds for Rust 1.63 where some things in the `static_assertions` -//! crate do things that don't work in const contexts. We want to call them -//! in const contexts in Rust versions where that's supported so that -//! problems are caught at compile time, and fall back to dynamic asserts -//! in Rust 1.63. - -#![allow(unused_macros)] - -macro_rules! assert_eq_size { - ($x:ty, $y:ty) => { - assert_eq!(core::mem::size_of::<$x>(), core::mem::size_of::<$y>()); - }; -} - -macro_rules! assert_eq_align { - ($x:ty, $y:ty) => { - assert_eq!(core::mem::align_of::<$x>(), core::mem::align_of::<$y>()); - }; -} - -macro_rules! const_assert_eq { - ($x:expr, $y:expr) => { - assert_eq!($x, $y); - }; -} - -macro_rules! const_assert_ne { - ($x:expr, $y:expr) => { - assert_ne!($x, $y); - }; -} - -macro_rules! const_assert { - ($x:expr) => { - assert!($x); - }; -} diff --git a/third_party/rust/rustix/src/stdio.rs b/third_party/rust/rustix/src/stdio.rs deleted file mode 100644 index 278aba06c10c..000000000000 --- a/third_party/rust/rustix/src/stdio.rs +++ /dev/null @@ -1,511 +0,0 @@ -//! Functions returning the stdio file descriptors. -//! -//! # Safety -//! -//! These access the file descriptors by absolute index value, and nothing -//! prevents them from being closed and reused. They should only be used in -//! `main` or other situations where one is in control of the process' -//! stdio streams. -#![allow(unsafe_code)] - -use crate::backend; -use crate::fd::OwnedFd; -use backend::c; -use backend::fd::{BorrowedFd, FromRawFd, RawFd}; - -#[cfg(not(any(windows, target_os = "wasi")))] -use {crate::io, backend::fd::AsFd, core::mem::forget}; - -/// `STDIN_FILENO`—Standard input, borrowed. -/// -/// In `std`-using configurations, this is a safe function, because the -/// standard library already assumes that the stdin file descriptor is always -/// valid. In `no_std` configurations, it is `unsafe`. -/// -/// # Warning -/// -/// This function allows reading directly from stdin without coordinating -/// with the buffering performed by [`std::io::Stdin`], so it could cause -/// corrupted input. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdin.4 -/// [OpenBSD]: https://man.openbsd.org/stdin.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdin -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdin -#[cfg(feature = "std")] -#[doc(alias = "STDIN_FILENO")] -#[inline] -pub const fn stdin() -> BorrowedFd<'static> { - // SAFETY: When "std" is enabled, the standard library assumes that the - // stdio file descriptors are all valid. - unsafe { BorrowedFd::borrow_raw(c::STDIN_FILENO as RawFd) } -} - -/// `STDIN_FILENO`—Standard input, borrowed. -/// -/// In `std`-using configurations, this is a safe function, because the -/// standard library already assumes that the stdin file descriptor is always -/// valid. In `no_std` configurations, it is `unsafe`. -/// -/// # Safety -/// -/// In `no_std` configurations, the stdin file descriptor can be closed, -/// potentially on other threads, in which case the file descriptor index -/// value could be dynamically reused for other purposes, potentially on -/// different threads. -/// -/// # Warning -/// -/// This function allows reading directly from stdin without coordinating -/// with the buffering performed by [`std::io::Stdin`], so it could cause -/// corrupted input. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdin.4 -/// [OpenBSD]: https://man.openbsd.org/stdin.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdin -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdin -#[cfg(not(feature = "std"))] -#[doc(alias = "STDIN_FILENO")] -#[inline] -pub const unsafe fn stdin() -> BorrowedFd<'static> { - BorrowedFd::borrow_raw(c::STDIN_FILENO as RawFd) -} - -/// `STDIN_FILENO`—Standard input, owned. -/// -/// This is similar to [`stdin`], however it returns an `OwnedFd` which closes -/// standard input when it is dropped. -/// -/// # Safety -/// -/// Safe `std`-using Rust code is permitted to assume that the stdin file -/// descriptor is always valid. This function returns an `OwnedFd` which will -/// close the stdin file descriptor when dropped. -/// -/// # Warning -/// -/// This has the same hazards as [`stdin`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdin.4 -/// [OpenBSD]: https://man.openbsd.org/stdin.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdin -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdin -#[doc(alias = "STDIN_FILENO")] -#[inline] -pub unsafe fn take_stdin() -> OwnedFd { - backend::fd::OwnedFd::from_raw_fd(c::STDIN_FILENO as RawFd) -} - -/// `STDOUT_FILENO`—Standard output, borrowed. -/// -/// In `std`-using configurations, this is a safe function, because the -/// standard library already assumes that the stdout file descriptor is always -/// valid. In `no_std` configurations, it is `unsafe`. -/// -/// # Warning -/// -/// This function allows reading directly from stdout without coordinating -/// with the buffering performed by [`std::io::Stdout`], so it could cause -/// corrupted input. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdout.4 -/// [OpenBSD]: https://man.openbsd.org/stdout.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdout -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdout -#[cfg(feature = "std")] -#[doc(alias = "STDOUT_FILENO")] -#[inline] -pub const fn stdout() -> BorrowedFd<'static> { - // SAFETY: When "std" is enabled, the standard library assumes that the - // stdio file descriptors are all valid. - unsafe { BorrowedFd::borrow_raw(c::STDOUT_FILENO as RawFd) } -} - -/// `STDOUT_FILENO`—Standard output, borrowed. -/// -/// In `std`-using configurations, this is a safe function, because the -/// standard library already assumes that the stdout file descriptor is always -/// valid. In `no_std` configurations, it is `unsafe`. -/// -/// # Safety -/// -/// In `no_std` configurations, the stdout file descriptor can be closed, -/// potentially on other threads, in which case the file descriptor index -/// value could be dynamically reused for other purposes, potentially on -/// different threads. -/// -/// # Warning -/// -/// This function allows reading directly from stdout without coordinating -/// with the buffering performed by [`std::io::Stdout`], so it could cause -/// corrupted input. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdout.4 -/// [OpenBSD]: https://man.openbsd.org/stdout.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdout -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdout -#[cfg(not(feature = "std"))] -#[doc(alias = "STDOUT_FILENO")] -#[inline] -pub const unsafe fn stdout() -> BorrowedFd<'static> { - BorrowedFd::borrow_raw(c::STDOUT_FILENO as RawFd) -} - -/// `STDOUT_FILENO`—Standard output, owned. -/// -/// This is similar to [`stdout`], however it returns an `OwnedFd` which closes -/// standard output when it is dropped. -/// -/// # Safety -/// -/// Safe `std`-using Rust code is permitted to assume that the stdout file -/// descriptor is always valid. This function returns an `OwnedFd` which will -/// close the stdout file descriptor when dropped. -/// -/// # Warning -/// -/// This has the same hazards as [`stdout`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdout.4 -/// [OpenBSD]: https://man.openbsd.org/stdout.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdout -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdout -#[doc(alias = "STDOUT_FILENO")] -#[inline] -pub unsafe fn take_stdout() -> OwnedFd { - backend::fd::OwnedFd::from_raw_fd(c::STDOUT_FILENO as RawFd) -} - -/// `STDERR_FILENO`—Standard error, borrowed. -/// -/// In `std`-using configurations, this is a safe function, because the -/// standard library already assumes that the stderr file descriptor is always -/// valid. In `no_std` configurations, it is `unsafe`. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stderr.4 -/// [OpenBSD]: https://man.openbsd.org/stderr.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stderr -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stderr -#[cfg(feature = "std")] -#[doc(alias = "STDERR_FILENO")] -#[inline] -pub const fn stderr() -> BorrowedFd<'static> { - // SAFETY: When "std" is enabled, the standard library assumes that the - // stdio file descriptors are all valid. - unsafe { BorrowedFd::borrow_raw(c::STDERR_FILENO as RawFd) } -} - -/// `STDERR_FILENO`—Standard error, borrowed. -/// -/// In `std`-using configurations, this is a safe function, because the -/// standard library already assumes that the stderr file descriptor is always -/// valid. In `no_std` configurations, it is `unsafe`. -/// -/// # Safety -/// -/// In `no_std` configurations, the stderr file descriptor can be closed, -/// potentially on other threads, in which case the file descriptor index -/// value could be dynamically reused for other purposes, potentially on -/// different threads. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stderr.4 -/// [OpenBSD]: https://man.openbsd.org/stderr.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stderr -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stderr -#[cfg(not(feature = "std"))] -#[doc(alias = "STDERR_FILENO")] -#[inline] -pub const unsafe fn stderr() -> BorrowedFd<'static> { - BorrowedFd::borrow_raw(c::STDERR_FILENO as RawFd) -} - -/// `STDERR_FILENO`—Standard error, owned. -/// -/// This is similar to [`stderr`], however it returns an `OwnedFd` which closes -/// standard output when it is dropped. -/// -/// # Safety -/// -/// Safe std-using Rust code is permitted to assume that the stderr file -/// descriptor is always valid. This function returns an `OwnedFd` which will -/// close the stderr file descriptor when dropped. -/// -/// # Other hazards -/// -/// This has the same hazards as [`stderr`]. -/// -/// And, when the `OwnedFd` is dropped, subsequent newly created file -/// descriptors may unknowingly reuse the stderr file descriptor number, which -/// may break common assumptions, so it should typically only be dropped at the -/// end of a program when no more file descriptors will be created. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stderr.4 -/// [OpenBSD]: https://man.openbsd.org/stderr.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stderr -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stderr -#[doc(alias = "STDERR_FILENO")] -#[inline] -pub unsafe fn take_stderr() -> OwnedFd { - backend::fd::OwnedFd::from_raw_fd(c::STDERR_FILENO as RawFd) -} - -/// `STDIN_FILENO`—Standard input, raw. -/// -/// This is similar to [`stdin`], however it returns a `RawFd`. -/// -/// # Other hazards -/// -/// This has the same hazards as [`stdin`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdin.4 -/// [OpenBSD]: https://man.openbsd.org/stdin.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdin -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdin -#[doc(alias = "STDIN_FILENO")] -#[inline] -pub const fn raw_stdin() -> RawFd { - c::STDIN_FILENO as RawFd -} - -/// `STDOUT_FILENO`—Standard output, raw. -/// -/// This is similar to [`stdout`], however it returns a `RawFd`. -/// -/// # Other hazards -/// -/// This has the same hazards as [`stdout`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stdout.4 -/// [OpenBSD]: https://man.openbsd.org/stdout.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stdout -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stdout -#[doc(alias = "STDOUT_FILENO")] -#[inline] -pub const fn raw_stdout() -> RawFd { - c::STDOUT_FILENO as RawFd -} - -/// `STDERR_FILENO`—Standard error, raw. -/// -/// This is similar to [`stderr`], however it returns a `RawFd`. -/// -/// # Other hazards -/// -/// This has the same hazards as [`stderr`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html -/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 -/// [NetBSD]: https://man.netbsd.org/stderr.4 -/// [OpenBSD]: https://man.openbsd.org/stderr.4 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 -/// [illumos]: https://illumos.org/man/4FS/stderr -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html#index-stderr -#[doc(alias = "STDERR_FILENO")] -#[inline] -pub const fn raw_stderr() -> RawFd { - c::STDERR_FILENO as RawFd -} - -/// Utility function to safely `dup2` over stdin (fd 0). -#[cfg(not(any(windows, target_os = "wasi")))] -#[allow(clippy::mem_forget)] -#[inline] -pub fn dup2_stdin(fd: Fd) -> io::Result<()> { - // SAFETY: We pass the returned `OwnedFd` to `forget` so that it isn't - // dropped. - let mut target = unsafe { take_stdin() }; - backend::io::syscalls::dup2(fd.as_fd(), &mut target)?; - forget(target); - Ok(()) -} - -/// Utility function to safely `dup2` over stdout (fd 1). -#[cfg(not(any(windows, target_os = "wasi")))] -#[allow(clippy::mem_forget)] -#[inline] -pub fn dup2_stdout(fd: Fd) -> io::Result<()> { - // SAFETY: We pass the returned `OwnedFd` to `forget` so that it isn't - // dropped. - let mut target = unsafe { take_stdout() }; - backend::io::syscalls::dup2(fd.as_fd(), &mut target)?; - forget(target); - Ok(()) -} - -/// Utility function to safely `dup2` over stderr (fd 2). -#[cfg(not(any(windows, target_os = "wasi")))] -#[allow(clippy::mem_forget)] -#[inline] -pub fn dup2_stderr(fd: Fd) -> io::Result<()> { - // SAFETY: We pass the returned `OwnedFd` to `forget` so that it isn't - // dropped. - let mut target = unsafe { take_stderr() }; - backend::io::syscalls::dup2(fd.as_fd(), &mut target)?; - forget(target); - Ok(()) -} diff --git a/third_party/rust/rustix/src/system.rs b/third_party/rust/rustix/src/system.rs deleted file mode 100644 index 1f7f39ce421a..000000000000 --- a/third_party/rust/rustix/src/system.rs +++ /dev/null @@ -1,156 +0,0 @@ -//! Uname and other system-level functions. -//! -//! # Safety -//! -//! This function converts from `struct utsname` fields provided from the -//! kernel into `&str` references, which assumes that they're NUL-terminated. -#![allow(unsafe_code)] - -use crate::backend; -use crate::ffi::CStr; -#[cfg(not(any(target_os = "espidf", target_os = "emscripten")))] -use crate::io; -use core::fmt; - -#[cfg(linux_kernel)] -pub use backend::system::types::Sysinfo; - -/// `uname()`—Returns high-level information about the runtime OS and -/// hardware. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [Apple] -/// - [NetBSD] -/// - [FreeBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// - [glibc] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/uname.html -/// [Linux]: https://man7.org/linux/man-pages/man2/uname.2.html -/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/uname.3.html -/// [NetBSD]: https://man.netbsd.org/uname.3 -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=uname&sektion=3 -/// [OpenBSD]: https://man.openbsd.org/uname.3 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=uname§ion=3 -/// [illumos]: https://illumos.org/man/2/uname -/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Platform-Type.html -#[inline] -pub fn uname() -> Uname { - Uname(backend::system::syscalls::uname()) -} - -/// `struct utsname`—Return type for [`uname`]. -#[doc(alias = "utsname")] -pub struct Uname(backend::system::types::RawUname); - -impl Uname { - /// `sysname`—Operating system release name - #[inline] - pub fn sysname(&self) -> &CStr { - Self::to_cstr(self.0.sysname.as_ptr().cast()) - } - - /// `nodename`—Name with vague meaning - /// - /// This is intended to be a network name, however it's unable to convey - /// information about hosts that have multiple names, or any information - /// about where the names are visible. - #[inline] - pub fn nodename(&self) -> &CStr { - Self::to_cstr(self.0.nodename.as_ptr().cast()) - } - - /// `release`—Operating system release version string - #[inline] - pub fn release(&self) -> &CStr { - Self::to_cstr(self.0.release.as_ptr().cast()) - } - - /// `version`—Operating system build identifiers - #[inline] - pub fn version(&self) -> &CStr { - Self::to_cstr(self.0.version.as_ptr().cast()) - } - - /// `machine`—Hardware architecture identifier - #[inline] - pub fn machine(&self) -> &CStr { - Self::to_cstr(self.0.machine.as_ptr().cast()) - } - - /// `domainname`—NIS or YP domain identifier - #[cfg(linux_kernel)] - #[inline] - pub fn domainname(&self) -> &CStr { - Self::to_cstr(self.0.domainname.as_ptr().cast()) - } - - #[inline] - fn to_cstr<'a>(ptr: *const u8) -> &'a CStr { - // SAFETY: Strings returned from the kernel are always NUL-terminated. - unsafe { CStr::from_ptr(ptr.cast()) } - } -} - -impl fmt::Debug for Uname { - fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - #[cfg(not(linux_kernel))] - { - write!( - fmt, - "{:?} {:?} {:?} {:?} {:?}", - self.sysname(), - self.nodename(), - self.release(), - self.version(), - self.machine(), - ) - } - #[cfg(linux_kernel)] - { - write!( - fmt, - "{:?} {:?} {:?} {:?} {:?} {:?}", - self.sysname(), - self.nodename(), - self.release(), - self.version(), - self.machine(), - self.domainname(), - ) - } - } -} - -/// `sysinfo()`—Returns status information about the runtime OS. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/uname.2.html -#[cfg(linux_kernel)] -#[inline] -pub fn sysinfo() -> Sysinfo { - backend::system::syscalls::sysinfo() -} - -/// `sethostname(name)`—Sets the system host name. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/sethostname.2.html -#[cfg(not(any( - target_os = "emscripten", - target_os = "espidf", - target_os = "redox", - target_os = "wasi" -)))] -#[inline] -pub fn sethostname(name: &[u8]) -> io::Result<()> { - backend::system::syscalls::sethostname(name) -} diff --git a/third_party/rust/rustix/src/termios/ioctl.rs b/third_party/rust/rustix/src/termios/ioctl.rs deleted file mode 100644 index 620ae4c71d62..000000000000 --- a/third_party/rust/rustix/src/termios/ioctl.rs +++ /dev/null @@ -1,53 +0,0 @@ -//! Terminal-related `ioctl` functions. - -#![allow(unsafe_code)] - -use crate::fd::AsFd; -use crate::{backend, io, ioctl}; -use backend::c; - -/// `ioctl(fd, TIOCEXCL)`—Enables exclusive mode on a terminal. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// -/// [Linux]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=tty&sektion=4 -/// [NetBSD]: https://man.netbsd.org/tty.4 -/// [OpenBSD]: https://man.openbsd.org/tty.4 -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -#[inline] -#[doc(alias = "TIOCEXCL")] -pub fn ioctl_tiocexcl(fd: Fd) -> io::Result<()> { - // SAFETY: TIOCEXCL is a no-argument setter opcode. - unsafe { - let ctl = ioctl::NoArg::>::new(); - ioctl::ioctl(fd, ctl) - } -} - -/// `ioctl(fd, TIOCNXCL)`—Disables exclusive mode on a terminal. -/// -/// # References -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// -/// [Linux]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=tty&sektion=4 -/// [NetBSD]: https://man.netbsd.org/tty.4 -/// [OpenBSD]: https://man.openbsd.org/tty.4 -#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] -#[inline] -#[doc(alias = "TIOCNXCL")] -pub fn ioctl_tiocnxcl(fd: Fd) -> io::Result<()> { - // SAFETY: TIOCNXCL is a no-argument setter opcode. - unsafe { - let ctl = ioctl::NoArg::>::new(); - ioctl::ioctl(fd, ctl) - } -} diff --git a/third_party/rust/rustix/src/termios/mod.rs b/third_party/rust/rustix/src/termios/mod.rs deleted file mode 100644 index c61d3f12a0ec..000000000000 --- a/third_party/rust/rustix/src/termios/mod.rs +++ /dev/null @@ -1,27 +0,0 @@ -//! Terminal I/O stream operations. -//! -//! This API automatically supports setting arbitrary I/O speeds, on any -//! platform that supports them, including Linux and the BSDs. -//! -//! The [`speed`] module contains various predefined speed constants which -//! are more likely to be portable, however any `u32` value can be passed to -//! [`Termios::set_input_speed`], and it will simply fail if the speed is not -//! supported by the platform. - -#[cfg(not(any(target_os = "espidf", target_os = "haiku", target_os = "wasi")))] -mod ioctl; -#[cfg(not(target_os = "wasi"))] -mod tc; -#[cfg(not(windows))] -mod tty; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -mod types; - -#[cfg(not(any(target_os = "espidf", target_os = "haiku", target_os = "wasi")))] -pub use ioctl::*; -#[cfg(not(target_os = "wasi"))] -pub use tc::*; -#[cfg(not(windows))] -pub use tty::*; -#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] -pub use types::*; diff --git a/third_party/rust/rustix/src/termios/tc.rs b/third_party/rust/rustix/src/termios/tc.rs deleted file mode 100644 index cd5902c1a3ec..000000000000 --- a/third_party/rust/rustix/src/termios/tc.rs +++ /dev/null @@ -1,203 +0,0 @@ -use crate::fd::AsFd; -use crate::pid::Pid; -#[cfg(not(target_os = "espidf"))] -use crate::termios::{Action, OptionalActions, QueueSelector, Termios, Winsize}; -use crate::{backend, io}; - -/// `tcgetattr(fd)`—Get terminal attributes. -/// -/// Also known as the `TCGETS` (or `TCGETS2` on Linux) operation with `ioctl`. -/// -/// # References -/// - [POSIX `tcgetattr`] -/// - [Linux `ioctl_tty`] -/// - [Linux `termios`] -/// -/// [POSIX `tcgetattr`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetattr.html -/// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html -#[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] -#[inline] -#[doc(alias = "TCGETS")] -#[doc(alias = "TCGETS2")] -#[doc(alias = "tcgetattr2")] -pub fn tcgetattr(fd: Fd) -> io::Result { - backend::termios::syscalls::tcgetattr(fd.as_fd()) -} - -/// `tcgetwinsize(fd)`—Get the current terminal window size. -/// -/// Also known as the `TIOCGWINSZ` operation with `ioctl`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -#[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] -#[inline] -#[doc(alias = "TIOCGWINSZ")] -pub fn tcgetwinsize(fd: Fd) -> io::Result { - backend::termios::syscalls::tcgetwinsize(fd.as_fd()) -} - -/// `tcgetpgrp(fd)`—Get the terminal foreground process group. -/// -/// Also known as the `TIOCGPGRP` operation with `ioctl`. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetpgrp.html -/// [Linux]: https://man7.org/linux/man-pages/man3/tcgetpgrp.3.html -#[cfg(not(any(windows, target_os = "wasi")))] -#[inline] -#[doc(alias = "TIOCGPGRP")] -pub fn tcgetpgrp(fd: Fd) -> io::Result { - backend::termios::syscalls::tcgetpgrp(fd.as_fd()) -} - -/// `tcsetpgrp(fd, pid)`—Set the terminal foreground process group. -/// -/// Also known as the `TIOCSPGRP` operation with `ioctl`. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetpgrp.html -/// [Linux]: https://man7.org/linux/man-pages/man3/tcsetpgrp.3.html -#[cfg(not(any(windows, target_os = "wasi")))] -#[inline] -#[doc(alias = "TIOCSPGRP")] -pub fn tcsetpgrp(fd: Fd, pid: Pid) -> io::Result<()> { - backend::termios::syscalls::tcsetpgrp(fd.as_fd(), pid) -} - -/// `tcsetattr(fd)`—Set terminal attributes. -/// -/// Also known as the `TCSETS` (or `TCSETS2 on Linux) operation with `ioctl`. -/// -/// # References -/// - [POSIX `tcsetattr`] -/// - [Linux `ioctl_tty`] -/// - [Linux `termios`] -/// -/// [POSIX `tcsetattr`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetattr.html -/// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "TCSETS")] -#[doc(alias = "TCSETS2")] -#[doc(alias = "tcsetattr2")] -pub fn tcsetattr( - fd: Fd, - optional_actions: OptionalActions, - termios: &Termios, -) -> io::Result<()> { - backend::termios::syscalls::tcsetattr(fd.as_fd(), optional_actions, termios) -} - -/// `tcsendbreak(fd, 0)`—Transmit zero-valued bits. -/// -/// Also known as the `TCSBRK` operation with `ioctl`, with a duration of 0. -/// -/// This function always uses an effective duration parameter of zero. For the -/// equivalent of a `tcsendbreak` with a non-zero duration parameter, use -/// `tcdrain`. -/// -/// # References -/// - [POSIX `tcsendbreak`] -/// - [Linux `ioctl_tty`] -/// - [Linux `termios`] -/// -/// [POSIX `tcsendbreak`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsendbreak.html -/// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html -#[inline] -#[doc(alias = "TCSBRK")] -pub fn tcsendbreak(fd: Fd) -> io::Result<()> { - backend::termios::syscalls::tcsendbreak(fd.as_fd()) -} - -/// `tcdrain(fd, duration)`—Wait until all pending output has been written. -/// -/// # References -/// - [POSIX `tcdrain`] -/// - [Linux `ioctl_tty`] -/// - [Linux `termios`] -/// -/// [POSIX `tcsetattr`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcdrain.html -/// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html -#[cfg(not(target_os = "espidf"))] -#[inline] -pub fn tcdrain(fd: Fd) -> io::Result<()> { - backend::termios::syscalls::tcdrain(fd.as_fd()) -} - -/// `tcflush(fd, queue_selector)`—Wait until all pending output has been -/// written. -/// -/// # References -/// - [POSIX `tcflush`] -/// - [Linux `ioctl_tty`] -/// - [Linux `termios`] -/// -/// [POSIX `tcflush`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcflush.html -/// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "TCFLSH")] -pub fn tcflush(fd: Fd, queue_selector: QueueSelector) -> io::Result<()> { - backend::termios::syscalls::tcflush(fd.as_fd(), queue_selector) -} - -/// `tcflow(fd, action)`—Suspend or resume transmission or reception. -/// -/// # References -/// - [POSIX `tcflow`] -/// - [Linux `ioctl_tty`] -/// - [Linux `termios`] -/// -/// [POSIX `tcflow`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcflow.html -/// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -/// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "TCXONC")] -pub fn tcflow(fd: Fd, action: Action) -> io::Result<()> { - backend::termios::syscalls::tcflow(fd.as_fd(), action) -} - -/// `tcgetsid(fd)`—Return the session ID of the current session with `fd` as -/// its controlling terminal. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetsid.html -/// [Linux]: https://man7.org/linux/man-pages/man3/tcgetsid.3.html -#[inline] -#[doc(alias = "TIOCGSID")] -pub fn tcgetsid(fd: Fd) -> io::Result { - backend::termios::syscalls::tcgetsid(fd.as_fd()) -} - -/// `tcsetwinsize(fd)`—Set the current terminal window size. -/// -/// Also known as the `TIOCSWINSZ` operation with `ioctl`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html -#[cfg(not(target_os = "espidf"))] -#[inline] -#[doc(alias = "TIOCSWINSZ")] -pub fn tcsetwinsize(fd: Fd, winsize: Winsize) -> io::Result<()> { - backend::termios::syscalls::tcsetwinsize(fd.as_fd(), winsize) -} diff --git a/third_party/rust/rustix/src/termios/tty.rs b/third_party/rust/rustix/src/termios/tty.rs deleted file mode 100644 index e28a959c15fe..000000000000 --- a/third_party/rust/rustix/src/termios/tty.rs +++ /dev/null @@ -1,80 +0,0 @@ -//! Functions which operate on file descriptors which might be terminals. - -use crate::backend; -use backend::fd::AsFd; -#[cfg(all(feature = "alloc", feature = "procfs"))] -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -use { - crate::ffi::CString, crate::io, crate::path::SMALL_PATH_BUFFER_SIZE, alloc::vec::Vec, - backend::fd::BorrowedFd, -}; - -/// `isatty(fd)`—Tests whether a file descriptor refers to a terminal. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/isatty.html -/// [Linux]: https://man7.org/linux/man-pages/man3/isatty.3.html -#[inline] -pub fn isatty(fd: Fd) -> bool { - backend::termios::syscalls::isatty(fd.as_fd()) -} - -/// `ttyname_r(fd)` -/// -/// If `reuse` already has available capacity, reuse it if possible. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ttyname.html -/// [Linux]: https://man7.org/linux/man-pages/man3/ttyname.3.html -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -#[cfg(all(feature = "alloc", feature = "procfs"))] -#[cfg_attr(doc_cfg, doc(cfg(feature = "procfs")))] -#[doc(alias = "ttyname_r")] -#[inline] -pub fn ttyname>>(dirfd: Fd, reuse: B) -> io::Result { - _ttyname(dirfd.as_fd(), reuse.into()) -} - -#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] -#[cfg(all(feature = "alloc", feature = "procfs"))] -#[allow(unsafe_code)] -fn _ttyname(dirfd: BorrowedFd<'_>, mut buffer: Vec) -> io::Result { - buffer.clear(); - buffer.reserve(SMALL_PATH_BUFFER_SIZE); - - loop { - match backend::termios::syscalls::ttyname(dirfd, buffer.spare_capacity_mut()) { - Err(io::Errno::RANGE) => { - buffer.reserve(buffer.capacity() + 1); // use `Vec` reallocation strategy to grow capacity exponentially - } - Ok(len) => { - // SAFETY: assume the backend returns the length of the string - unsafe { - buffer.set_len(len); - } - - // SAFETY: - // - "ttyname_r stores this pathname in the buffer buf" - // - [POSIX definition 3.271: Pathname]: "A string that is used to identify a - // file." - // - [POSIX definition 3.375: String]: "A contiguous sequence of bytes - // terminated by and including the first null byte." - // - // Thus, there will be a single NUL byte at the end of the string. - // - // [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271 - // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_375 - unsafe { - return Ok(CString::from_vec_with_nul_unchecked(buffer)); - } - } - Err(errno) => return Err(errno), - } - } -} diff --git a/third_party/rust/rustix/src/termios/types.rs b/third_party/rust/rustix/src/termios/types.rs deleted file mode 100644 index 0c44ed2e887a..000000000000 --- a/third_party/rust/rustix/src/termios/types.rs +++ /dev/null @@ -1,1436 +0,0 @@ -use crate::backend::c; -use crate::{backend, io}; -use bitflags::bitflags; - -/// `struct termios` for use with [`tcgetattr`] and [`tcsetattr`]. -/// -/// [`tcgetattr`]: crate::termios::tcgetattr -/// [`tcsetattr`]: crate::termios::tcsetattr -#[repr(C)] -#[derive(Clone)] -pub struct Termios { - /// How is input interpreted? - #[doc(alias = "c_iflag")] - pub input_modes: InputModes, - - /// How is output translated? - #[doc(alias = "c_oflag")] - pub output_modes: OutputModes, - - /// Low-level configuration flags. - #[doc(alias = "c_cflag")] - pub control_modes: ControlModes, - - /// High-level configuration flags. - #[doc(alias = "c_lflag")] - pub local_modes: LocalModes, - - /// Line discipline. - #[doc(alias = "c_line")] - #[cfg(not(all(linux_raw, any(target_arch = "powerpc", target_arch = "powerpc64"))))] - #[cfg(any( - linux_like, - target_env = "newlib", - target_os = "fuchsia", - target_os = "haiku", - target_os = "redox" - ))] - pub line_discipline: c::cc_t, - - /// How are various special control codes handled? - #[doc(alias = "c_cc")] - #[cfg(not(target_os = "haiku"))] - pub special_codes: SpecialCodes, - - #[cfg(target_os = "nto")] - pub(crate) __reserved: [c::c_uint; 3], - - /// Line discipline. - // On PowerPC, this field comes after `c_cc`. - #[doc(alias = "c_line")] - #[cfg(all(linux_raw, any(target_arch = "powerpc", target_arch = "powerpc64")))] - pub line_discipline: c::cc_t, - - /// See the `input_speed` and `set_input_seed` functions. - /// - /// On Linux and BSDs, this is the arbitrary integer speed value. On all - /// other platforms, this is the encoded speed value. - #[cfg(not(any(solarish, all(libc, target_env = "newlib"), target_os = "aix")))] - pub(crate) input_speed: c::speed_t, - - /// See the `output_speed` and `set_output_seed` functions. - /// - /// On Linux and BSDs, this is the integer speed value. On all other - /// platforms, this is the encoded speed value. - #[cfg(not(any(solarish, all(libc, target_env = "newlib"), target_os = "aix")))] - pub(crate) output_speed: c::speed_t, - - /// How are various special control codes handled? - #[doc(alias = "c_cc")] - #[cfg(target_os = "haiku")] - pub special_codes: SpecialCodes, -} - -impl Termios { - /// `cfmakeraw(self)`—Set a `Termios` value to the settings for “raw” mode. - /// - /// In raw mode, input is available a byte at a time, echoing is disabled, - /// and special terminal input and output codes are disabled. - #[cfg(not(target_os = "nto"))] - #[doc(alias = "cfmakeraw")] - #[inline] - pub fn make_raw(&mut self) { - backend::termios::syscalls::cfmakeraw(self) - } - - /// Return the input communication speed. - /// - /// Unlike the `c_ispeed` field in GLIBC and others, this returns the - /// integer value of the speed, rather than the `B*` encoded constant - /// value. - #[doc(alias = "c_ispeed")] - #[doc(alias = "cfgetispeed")] - #[doc(alias = "cfgetspeed")] - #[inline] - pub fn input_speed(&self) -> u32 { - // On Linux and BSDs, `input_speed` is the arbitrary integer speed. - #[cfg(any(linux_kernel, bsd))] - { - debug_assert!(u32::try_from(self.input_speed).is_ok()); - self.input_speed as u32 - } - - // On illumos, `input_speed` is not present. - #[cfg(any(solarish, all(libc, target_env = "newlib"), target_os = "aix"))] - unsafe { - speed::decode(c::cfgetispeed(crate::utils::as_ptr(self).cast())).unwrap() - } - - // On other platforms, it's the encoded speed. - #[cfg(not(any( - linux_kernel, - bsd, - solarish, - all(libc, target_env = "newlib"), - target_os = "aix" - )))] - { - speed::decode(self.input_speed).unwrap() - } - } - - /// Return the output communication speed. - /// - /// Unlike the `c_ospeed` field in GLIBC and others, this returns the - /// arbitrary integer value of the speed, rather than the `B*` encoded - /// constant value. - #[inline] - pub fn output_speed(&self) -> u32 { - // On Linux and BSDs, `input_speed` is the arbitrary integer speed. - #[cfg(any(linux_kernel, bsd))] - { - debug_assert!(u32::try_from(self.output_speed).is_ok()); - self.output_speed as u32 - } - - // On illumos, `output_speed` is not present. - #[cfg(any(solarish, all(libc, target_env = "newlib"), target_os = "aix"))] - unsafe { - speed::decode(c::cfgetospeed(crate::utils::as_ptr(self).cast())).unwrap() - } - - // On other platforms, it's the encoded speed. - #[cfg(not(any( - linux_kernel, - bsd, - solarish, - all(libc, target_env = "newlib"), - target_os = "aix" - )))] - { - speed::decode(self.output_speed).unwrap() - } - } - - /// Set the input and output communication speeds. - /// - /// Unlike the `c_ispeed` and `c_ospeed` fields in GLIBC and others, this - /// takes the arbitrary integer value of the speed, rather than the `B*` - /// encoded constant value. Not all implementations support all integer - /// values; use the constants in the [`speed`] module for likely-supported - /// speeds. - #[cfg(not(target_os = "nto"))] - #[doc(alias = "cfsetspeed")] - #[doc(alias = "CBAUD")] - #[doc(alias = "CBAUDEX")] - #[doc(alias = "CIBAUD")] - #[doc(alias = "CIBAUDEX")] - #[inline] - pub fn set_speed(&mut self, new_speed: u32) -> io::Result<()> { - backend::termios::syscalls::set_speed(self, new_speed) - } - - /// Set the input communication speed. - /// - /// Unlike the `c_ispeed` field in GLIBC and others, this takes the - /// arbitrary integer value of the speed, rather than the `B*` encoded - /// constant value. Not all implementations support all integer values; use - /// the constants in the [`speed`] module for known-supported speeds. - /// - /// On some platforms, changing the input speed changes the output speed - /// to the same speed. - #[doc(alias = "c_ispeed")] - #[doc(alias = "cfsetispeed")] - #[doc(alias = "CIBAUD")] - #[doc(alias = "CIBAUDEX")] - #[inline] - pub fn set_input_speed(&mut self, new_speed: u32) -> io::Result<()> { - backend::termios::syscalls::set_input_speed(self, new_speed) - } - - /// Set the output communication speed. - /// - /// Unlike the `c_ospeed` field in GLIBC and others, this takes the - /// arbitrary integer value of the speed, rather than the `B*` encoded - /// constant value. Not all implementations support all integer values; use - /// the constants in the [`speed`] module for known-supported speeds. - /// - /// On some platforms, changing the output speed changes the input speed - /// to the same speed. - #[doc(alias = "c_ospeed")] - #[doc(alias = "cfsetospeed")] - #[doc(alias = "CBAUD")] - #[doc(alias = "CBAUDEX")] - #[inline] - pub fn set_output_speed(&mut self, new_speed: u32) -> io::Result<()> { - backend::termios::syscalls::set_output_speed(self, new_speed) - } -} - -impl core::fmt::Debug for Termios { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - let mut d = f.debug_struct("Termios"); - d.field("input_modes", &self.input_modes); - d.field("output_modes", &self.output_modes); - d.field("control_modes", &self.control_modes); - d.field("local_modes", &self.local_modes); - #[cfg(any( - linux_like, - target_env = "newlib", - target_os = "fuchsia", - target_os = "haiku", - target_os = "redox" - ))] - { - d.field("line_discipline", &self.line_discipline); - } - d.field("special_codes", &self.special_codes); - d.field("input_speed", &self.input_speed()); - d.field("output_speed", &self.output_speed()); - d.finish() - } -} - -bitflags! { - /// Flags controlling terminal input. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct InputModes: c::tcflag_t { - /// `IGNBRK` - const IGNBRK = c::IGNBRK; - - /// `BRKINT` - const BRKINT = c::BRKINT; - - /// `IGNPAR` - const IGNPAR = c::IGNPAR; - - /// `PARMRK` - const PARMRK = c::PARMRK; - - /// `INPCK` - const INPCK = c::INPCK; - - /// `ISTRIP` - const ISTRIP = c::ISTRIP; - - /// `INLCR` - const INLCR = c::INLCR; - - /// `IGNCR` - const IGNCR = c::IGNCR; - - /// `ICRNL` - const ICRNL = c::ICRNL; - - /// `IUCLC` - #[cfg(any(linux_kernel, solarish, target_os = "aix", target_os = "haiku", target_os = "nto"))] - const IUCLC = c::IUCLC; - - /// `IXON` - const IXON = c::IXON; - - /// `IXANY` - #[cfg(not(target_os = "redox"))] - const IXANY = c::IXANY; - - /// `IXOFF` - const IXOFF = c::IXOFF; - - /// `IMAXBEL` - #[cfg(not(any(target_os = "haiku", target_os = "redox")))] - const IMAXBEL = c::IMAXBEL; - - /// `IUTF8` - #[cfg(not(any( - freebsdlike, - netbsdlike, - solarish, - target_os = "aix", - target_os = "emscripten", - target_os = "haiku", - target_os = "redox", - )))] - const IUTF8 = c::IUTF8; - - /// - const _ = !0; - } -} - -bitflags! { - /// Flags controlling terminal output. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct OutputModes: c::tcflag_t { - /// `OPOST` - const OPOST = c::OPOST; - - /// `OLCUC` - #[cfg(not(any( - apple, - freebsdlike, - target_os = "aix", - target_os = "netbsd", - target_os = "redox", - )))] - const OLCUC = c::OLCUC; - - /// `ONLCR` - const ONLCR = c::ONLCR; - - /// `OCRNL` - const OCRNL = c::OCRNL; - - /// `ONOCR` - const ONOCR = c::ONOCR; - - /// `ONLRET` - const ONLRET = c::ONLRET; - - /// `OFILL` - #[cfg(not(bsd))] - const OFILL = c::OFILL; - - /// `OFDEL` - #[cfg(not(bsd))] - const OFDEL = c::OFDEL; - - /// `NLDLY` - #[cfg(not(any(bsd, solarish, target_os = "redox")))] - const NLDLY = c::NLDLY; - - /// `NL0` - #[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))] - const NL0 = c::NL0; - - /// `NL1` - #[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))] - const NL1 = c::NL1; - - /// `CRDLY` - #[cfg(not(any(bsd, solarish, target_os = "redox")))] - const CRDLY = c::CRDLY; - - /// `CR0` - #[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))] - const CR0 = c::CR0; - - /// `CR1` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const CR1 = c::CR1; - - /// `CR2` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const CR2 = c::CR2; - - /// `CR3` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const CR3 = c::CR3; - - /// `TABDLY` - #[cfg(not(any( - netbsdlike, - solarish, - target_os = "dragonfly", - target_os = "redox", - )))] - const TABDLY = c::TABDLY; - - /// `TAB0` - #[cfg(not(any( - netbsdlike, - solarish, - target_os = "dragonfly", - target_os = "fuchsia", - target_os = "redox", - )))] - const TAB0 = c::TAB0; - - /// `TAB1` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const TAB1 = c::TAB1; - - /// `TAB2` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const TAB2 = c::TAB2; - - /// `TAB3` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const TAB3 = c::TAB3; - - /// `XTABS` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "redox", - )))] - const XTABS = c::XTABS; - - /// `BSDLY` - #[cfg(not(any(bsd, solarish, target_os = "redox")))] - const BSDLY = c::BSDLY; - - /// `BS0` - #[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))] - const BS0 = c::BS0; - - /// `BS1` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const BS1 = c::BS1; - - /// `FFDLY` - #[cfg(not(any(bsd, solarish, target_os = "redox")))] - const FFDLY = c::FFDLY; - - /// `FF0` - #[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))] - const FF0 = c::FF0; - - /// `FF1` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const FF1 = c::FF1; - - /// `VTDLY` - #[cfg(not(any(bsd, solarish, target_os = "redox")))] - const VTDLY = c::VTDLY; - - /// `VT0` - #[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))] - const VT0 = c::VT0; - - /// `VT1` - #[cfg(not(any( - target_env = "musl", - bsd, - solarish, - target_os = "emscripten", - target_os = "fuchsia", - target_os = "redox", - )))] - const VT1 = c::VT1; - - /// - const _ = !0; - } -} - -bitflags! { - /// Flags controlling special terminal modes. - /// - /// `CBAUD`, `CBAUDEX`, `CIBAUD`, and `CIBAUDEX` are not defined here, - /// because they're handled automatically by [`Termios::set_speed`] and - /// related functions. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ControlModes: c::tcflag_t { - /// `CSIZE` - const CSIZE = c::CSIZE; - - /// `CS5` - const CS5 = c::CS5; - - /// `CS6` - const CS6 = c::CS6; - - /// `CS7` - const CS7 = c::CS7; - - /// `CS8` - const CS8 = c::CS8; - - /// `CSTOPB` - const CSTOPB = c::CSTOPB; - - /// `CREAD` - const CREAD = c::CREAD; - - /// `PARENB` - const PARENB = c::PARENB; - - /// `PARODD` - const PARODD = c::PARODD; - - /// `HUPCL` - const HUPCL = c::HUPCL; - - /// `CLOCAL` - const CLOCAL = c::CLOCAL; - - /// `CRTSCTS` - #[cfg(not(any(target_os = "aix", target_os = "nto", target_os = "redox")))] - const CRTSCTS = c::CRTSCTS; - - /// `CMSPAR` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "emscripten", - target_os = "haiku", - target_os = "nto", - target_os = "redox", - )))] - const CMSPAR = c::CMSPAR; - - /// - const _ = !0; - } -} - -bitflags! { - /// Flags controlling “local” terminal modes. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct LocalModes: c::tcflag_t { - /// `XCASE` - #[cfg(any(linux_kernel, target_arch = "s390x", target_os = "haiku"))] - const XCASE = c::XCASE; - - /// `ECHOCTL` - #[cfg(not(target_os = "redox"))] - const ECHOCTL = c::ECHOCTL; - - /// `ECHOPRT` - #[cfg(not(any(target_os = "nto", target_os = "redox")))] - const ECHOPRT = c::ECHOPRT; - - /// `ECHOKE` - #[cfg(not(target_os = "redox"))] - const ECHOKE = c::ECHOKE; - - /// `FLUSHO` - #[cfg(not(any(target_os = "nto", target_os = "redox")))] - const FLUSHO = c::FLUSHO; - - /// `PENDIN` - #[cfg(not(any(target_os = "nto", target_os = "redox")))] - const PENDIN = c::PENDIN; - - /// `EXTPROC` - #[cfg(not(any(target_os = "aix", target_os = "haiku", target_os = "nto", target_os = "redox")))] - const EXTPROC = c::EXTPROC; - - /// `ISIG` - const ISIG = c::ISIG; - - /// `ICANON`—A flag for the `c_lflag` field of [`Termios`] indicating - /// canonical mode. - const ICANON = c::ICANON; - - /// `ECHO` - const ECHO = c::ECHO; - - /// `ECHOE` - const ECHOE = c::ECHOE; - - /// `ECHOK` - const ECHOK = c::ECHOK; - - /// `ECHONL` - const ECHONL = c::ECHONL; - - /// `NOFLSH` - const NOFLSH = c::NOFLSH; - - /// `TOSTOP` - const TOSTOP = c::TOSTOP; - - /// `IEXTEN` - const IEXTEN = c::IEXTEN; - - /// - const _ = !0; - } -} - -/// Speeds for use with [`Termios::set_input_speed`] and -/// [`Termios::set_output_speed`]. -/// -/// Unlike in some platforms' libc APIs, these always have the same numerical -/// value as their names; for example, `B50` has the value `50`, and so on. -/// Consequently, it's not necessary to use them. They are provided here -/// because they help identify speeds which are likely to be supported, on -/// platforms which don't support arbitrary speeds. -pub mod speed { - #[cfg(not(bsd))] - use crate::backend::c; - - /// `B0` - pub const B0: u32 = 0; - - /// `B50` - pub const B50: u32 = 50; - - /// `B75` - pub const B75: u32 = 75; - - /// `B110` - pub const B110: u32 = 110; - - /// `B134` - pub const B134: u32 = 134; - - /// `B150` - pub const B150: u32 = 150; - - /// `B200` - pub const B200: u32 = 200; - - /// `B300` - pub const B300: u32 = 300; - - /// `B600` - pub const B600: u32 = 600; - - /// `B1200` - pub const B1200: u32 = 1200; - - /// `B1800` - pub const B1800: u32 = 1800; - - /// `B2400` - pub const B2400: u32 = 2400; - - /// `B4800` - pub const B4800: u32 = 4800; - - /// `B9600` - pub const B9600: u32 = 9600; - - /// `B19200` - #[doc(alias = "EXTA")] - pub const B19200: u32 = 19200; - - /// `B38400` - #[doc(alias = "EXTB")] - pub const B38400: u32 = 38400; - - /// `B57600` - #[cfg(not(target_os = "aix"))] - pub const B57600: u32 = 57600; - - /// `B115200` - #[cfg(not(target_os = "aix"))] - pub const B115200: u32 = 115_200; - - /// `B230400` - #[cfg(not(target_os = "aix"))] - pub const B230400: u32 = 230_400; - - /// `B460800` - #[cfg(not(any( - apple, - target_os = "aix", - target_os = "dragonfly", - target_os = "haiku", - target_os = "openbsd" - )))] - pub const B460800: u32 = 460_800; - - /// `B500000` - #[cfg(not(any(bsd, solarish, target_os = "aix", target_os = "haiku")))] - pub const B500000: u32 = 500_000; - - /// `B576000` - #[cfg(not(any(bsd, solarish, target_os = "aix", target_os = "haiku")))] - pub const B576000: u32 = 576_000; - - /// `B921600` - #[cfg(not(any( - apple, - target_os = "aix", - target_os = "dragonfly", - target_os = "haiku", - target_os = "openbsd" - )))] - pub const B921600: u32 = 921_600; - - /// `B1000000` - #[cfg(not(any(bsd, target_os = "aix", target_os = "haiku", target_os = "solaris")))] - pub const B1000000: u32 = 1_000_000; - - /// `B1152000` - #[cfg(not(any(bsd, target_os = "aix", target_os = "haiku", target_os = "solaris")))] - pub const B1152000: u32 = 1_152_000; - - /// `B1500000` - #[cfg(not(any(bsd, target_os = "aix", target_os = "haiku", target_os = "solaris")))] - pub const B1500000: u32 = 1_500_000; - - /// `B2000000` - #[cfg(not(any(bsd, target_os = "aix", target_os = "haiku", target_os = "solaris")))] - pub const B2000000: u32 = 2_000_000; - - /// `B2500000` - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "solaris", - )))] - pub const B2500000: u32 = 2_500_000; - - /// `B3000000` - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "solaris", - )))] - pub const B3000000: u32 = 3_000_000; - - /// `B3500000` - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "solaris", - )))] - pub const B3500000: u32 = 3_500_000; - - /// `B4000000` - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "solaris", - )))] - pub const B4000000: u32 = 4_000_000; - - /// Translate from a `c::speed_t` code to an arbitrary integer speed value - /// `u32`. - #[cfg(not(any(linux_kernel, bsd)))] - pub(crate) const fn decode(encoded_speed: c::speed_t) -> Option { - match encoded_speed { - c::B0 => Some(0), - c::B50 => Some(50), - c::B75 => Some(75), - c::B110 => Some(110), - c::B134 => Some(134), - c::B150 => Some(150), - c::B200 => Some(200), - c::B300 => Some(300), - c::B600 => Some(600), - c::B1200 => Some(1200), - c::B1800 => Some(1800), - c::B2400 => Some(2400), - c::B4800 => Some(4800), - c::B9600 => Some(9600), - c::B19200 => Some(19200), - c::B38400 => Some(38400), - #[cfg(not(target_os = "aix"))] - c::B57600 => Some(57600), - #[cfg(not(target_os = "aix"))] - c::B115200 => Some(115_200), - #[cfg(not(any(target_os = "aix", target_os = "nto")))] - c::B230400 => Some(230_400), - #[cfg(not(any( - apple, - target_os = "aix", - target_os = "dragonfly", - target_os = "haiku", - target_os = "nto", - target_os = "openbsd" - )))] - c::B460800 => Some(460_800), - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - c::B500000 => Some(500_000), - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - c::B576000 => Some(576_000), - #[cfg(not(any( - apple, - target_os = "aix", - target_os = "dragonfly", - target_os = "haiku", - target_os = "nto", - target_os = "openbsd" - )))] - c::B921600 => Some(921_600), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - c::B1000000 => Some(1_000_000), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - c::B1152000 => Some(1_152_000), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - c::B1500000 => Some(1_500_000), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - c::B2000000 => Some(2_000_000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - c::B2500000 => Some(2_500_000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - c::B3000000 => Some(3_000_000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - c::B3500000 => Some(3_500_000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - c::B4000000 => Some(4_000_000), - _ => None, - } - } - - /// Translate from an arbitrary `u32` arbitrary integer speed value to a - /// `c::speed_t` code. - #[cfg(not(bsd))] - pub(crate) const fn encode(speed: u32) -> Option { - match speed { - 0 => Some(c::B0), - 50 => Some(c::B50), - 75 => Some(c::B75), - 110 => Some(c::B110), - 134 => Some(c::B134), - 150 => Some(c::B150), - 200 => Some(c::B200), - 300 => Some(c::B300), - 600 => Some(c::B600), - 1200 => Some(c::B1200), - 1800 => Some(c::B1800), - 2400 => Some(c::B2400), - 4800 => Some(c::B4800), - 9600 => Some(c::B9600), - 19200 => Some(c::B19200), - 38400 => Some(c::B38400), - #[cfg(not(target_os = "aix"))] - 57600 => Some(c::B57600), - #[cfg(not(target_os = "aix"))] - 115_200 => Some(c::B115200), - #[cfg(not(any(target_os = "aix", target_os = "nto")))] - 230_400 => Some(c::B230400), - #[cfg(not(any( - apple, - target_os = "aix", - target_os = "dragonfly", - target_os = "haiku", - target_os = "nto", - target_os = "openbsd", - )))] - 460_800 => Some(c::B460800), - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - 500_000 => Some(c::B500000), - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto" - )))] - 576_000 => Some(c::B576000), - #[cfg(not(any( - apple, - target_os = "aix", - target_os = "dragonfly", - target_os = "haiku", - target_os = "nto", - target_os = "openbsd" - )))] - 921_600 => Some(c::B921600), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - 1_000_000 => Some(c::B1000000), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - 1_152_000 => Some(c::B1152000), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - 1_500_000 => Some(c::B1500000), - #[cfg(not(any( - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris" - )))] - 2_000_000 => Some(c::B2000000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - 2_500_000 => Some(c::B2500000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - 3_000_000 => Some(c::B3000000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - 3_500_000 => Some(c::B3500000), - #[cfg(not(any( - target_arch = "sparc", - target_arch = "sparc64", - bsd, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - target_os = "solaris", - )))] - 4_000_000 => Some(c::B4000000), - _ => None, - } - } -} - -/// An array indexed by [`SpecialCodeIndex`] indicating the current values -/// of various special control codes. -#[repr(transparent)] -#[derive(Clone, Debug)] -pub struct SpecialCodes(pub(crate) [c::cc_t; c::NCCS as usize]); - -impl core::ops::Index for SpecialCodes { - type Output = c::cc_t; - - fn index(&self, index: SpecialCodeIndex) -> &Self::Output { - &self.0[index.0] - } -} - -impl core::ops::IndexMut for SpecialCodes { - fn index_mut(&mut self, index: SpecialCodeIndex) -> &mut Self::Output { - &mut self.0[index.0] - } -} - -/// Indices for use with [`Termios::special_codes`]. -pub struct SpecialCodeIndex(usize); - -#[rustfmt::skip] -impl SpecialCodeIndex { - /// `VINTR` - pub const VINTR: Self = Self(c::VINTR as usize); - - /// `VQUIT` - pub const VQUIT: Self = Self(c::VQUIT as usize); - - /// `VERASE` - pub const VERASE: Self = Self(c::VERASE as usize); - - /// `VKILL` - pub const VKILL: Self = Self(c::VKILL as usize); - - /// `VEOF` - pub const VEOF: Self = Self(c::VEOF as usize); - - /// `VTIME` - pub const VTIME: Self = Self(c::VTIME as usize); - - /// `VMIN` - pub const VMIN: Self = Self(c::VMIN as usize); - - /// `VSWTC` - #[cfg(not(any( - bsd, - solarish, - target_os = "aix", - target_os = "haiku", - target_os = "nto", - )))] - pub const VSWTC: Self = Self(c::VSWTC as usize); - - /// `VSTART` - pub const VSTART: Self = Self(c::VSTART as usize); - - /// `VSTOP` - pub const VSTOP: Self = Self(c::VSTOP as usize); - - /// `VSUSP` - pub const VSUSP: Self = Self(c::VSUSP as usize); - - /// `VEOL` - pub const VEOL: Self = Self(c::VEOL as usize); - - /// `VREPRINT` - #[cfg(not(target_os = "haiku"))] - pub const VREPRINT: Self = Self(c::VREPRINT as usize); - - /// `VDISCARD` - #[cfg(not(any(target_os = "aix", target_os = "haiku")))] - pub const VDISCARD: Self = Self(c::VDISCARD as usize); - - /// `VWERASE` - #[cfg(not(any(target_os = "aix", target_os = "haiku")))] - pub const VWERASE: Self = Self(c::VWERASE as usize); - - /// `VLNEXT` - #[cfg(not(target_os = "haiku"))] - pub const VLNEXT: Self = Self(c::VLNEXT as usize); - - /// `VEOL2` - pub const VEOL2: Self = Self(c::VEOL2 as usize); -} - -/// `TCSA*` values for use with [`tcsetattr`]. -/// -/// [`tcsetattr`]: crate::termios::tcsetattr -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u32)] -pub enum OptionalActions { - /// `TCSANOW`—Make the change immediately. - #[doc(alias = "TCSANOW")] - Now = c::TCSANOW as u32, - - /// `TCSADRAIN`—Make the change after all output has been transmitted. - #[doc(alias = "TCSADRAIN")] - Drain = c::TCSADRAIN as u32, - - /// `TCSAFLUSH`—Discard any pending input and then make the change - /// after all output has been transmitted. - #[doc(alias = "TCSAFLUSH")] - Flush = c::TCSAFLUSH as u32, -} - -/// `TC*` values for use with [`tcflush`]. -/// -/// [`tcflush`]: crate::termios::tcflush -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u32)] -pub enum QueueSelector { - /// `TCIFLUSH`—Flush data received but not read. - #[doc(alias = "TCIFLUSH")] - IFlush = c::TCIFLUSH as u32, - - /// `TCOFLUSH`—Flush data written but not transmitted. - #[doc(alias = "TCOFLUSH")] - OFlush = c::TCOFLUSH as u32, - - /// `TCIOFLUSH`—`IFlush` and `OFlush` combined. - #[doc(alias = "TCIOFLUSH")] - IOFlush = c::TCIOFLUSH as u32, -} - -/// `TC*` values for use with [`tcflow`]. -/// -/// [`tcflow`]: crate::termios::tcflow -#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] -#[repr(u32)] -pub enum Action { - /// `TCOOFF`—Suspend output. - #[doc(alias = "TCOOFF")] - OOff = c::TCOOFF as u32, - - /// `TCOON`—Restart suspended output. - #[doc(alias = "TCOON")] - OOn = c::TCOON as u32, - - /// `TCIOFF`—Transmits a STOP byte. - #[doc(alias = "TCIOFF")] - IOff = c::TCIOFF as u32, - - /// `TCION`—Transmits a START byte. - #[doc(alias = "TCION")] - IOn = c::TCION as u32, -} - -/// `struct winsize` for use with [`tcgetwinsize`]. -/// -/// [`tcgetwinsize`]: crate::termios::tcgetwinsize -#[doc(alias = "winsize")] -pub type Winsize = c::winsize; - -#[test] -fn termios_layouts() { - check_renamed_type!(InputModes, tcflag_t); - check_renamed_type!(OutputModes, tcflag_t); - check_renamed_type!(ControlModes, tcflag_t); - check_renamed_type!(LocalModes, tcflag_t); - - // On platforms with a termios/termios2 split, check `termios`. - #[cfg(linux_raw)] - { - check_renamed_type!(Termios, termios2); - check_renamed_struct_renamed_field!(Termios, termios2, input_modes, c_iflag); - check_renamed_struct_renamed_field!(Termios, termios2, output_modes, c_oflag); - check_renamed_struct_renamed_field!(Termios, termios2, control_modes, c_cflag); - check_renamed_struct_renamed_field!(Termios, termios2, local_modes, c_lflag); - check_renamed_struct_renamed_field!(Termios, termios2, line_discipline, c_line); - check_renamed_struct_renamed_field!(Termios, termios2, special_codes, c_cc); - check_renamed_struct_renamed_field!(Termios, termios2, input_speed, c_ispeed); - check_renamed_struct_renamed_field!(Termios, termios2, output_speed, c_ospeed); - - // We assume that `termios` has the same layout as `termios2` minus the - // `c_ispeed` and `c_ospeed` fields. - check_renamed_struct_renamed_field!(Termios, termios, input_modes, c_iflag); - check_renamed_struct_renamed_field!(Termios, termios, output_modes, c_oflag); - check_renamed_struct_renamed_field!(Termios, termios, control_modes, c_cflag); - check_renamed_struct_renamed_field!(Termios, termios, local_modes, c_lflag); - check_renamed_struct_renamed_field!(Termios, termios, special_codes, c_cc); - - // On everything except PowerPC, `termios` matches `termios2` except for - // the addition of `c_ispeed` and `c_ospeed`. - #[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] - const_assert_eq!( - memoffset::offset_of!(Termios, input_speed), - core::mem::size_of::() - ); - - // On PowerPC, `termios2` is `termios`. - #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] - assert_eq_size!(c::termios2, c::termios); - } - - #[cfg(not(linux_raw))] - { - // On Mips, Sparc, and Android, the libc lacks the ospeed and ispeed - // fields. - #[cfg(all( - not(all( - target_env = "gnu", - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" - ) - )), - not(all(libc, target_os = "android")) - ))] - check_renamed_type!(Termios, termios); - #[cfg(not(all( - not(all( - target_env = "gnu", - any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6", - target_arch = "sparc", - target_arch = "sparc64" - ) - )), - not(all(libc, target_os = "android")) - )))] - const_assert!(core::mem::size_of::() >= core::mem::size_of::()); - - check_renamed_struct_renamed_field!(Termios, termios, input_modes, c_iflag); - check_renamed_struct_renamed_field!(Termios, termios, output_modes, c_oflag); - check_renamed_struct_renamed_field!(Termios, termios, control_modes, c_cflag); - check_renamed_struct_renamed_field!(Termios, termios, local_modes, c_lflag); - #[cfg(any( - linux_like, - target_env = "newlib", - target_os = "fuchsia", - target_os = "haiku", - target_os = "redox" - ))] - check_renamed_struct_renamed_field!(Termios, termios, line_discipline, c_line); - check_renamed_struct_renamed_field!(Termios, termios, special_codes, c_cc); - #[cfg(not(any( - linux_kernel, - solarish, - target_os = "emscripten", - target_os = "fuchsia" - )))] - { - check_renamed_struct_renamed_field!(Termios, termios, input_speed, c_ispeed); - check_renamed_struct_renamed_field!(Termios, termios, output_speed, c_ospeed); - } - #[cfg(any(target_env = "musl", target_os = "fuchsia"))] - { - check_renamed_struct_renamed_field!(Termios, termios, input_speed, __c_ispeed); - check_renamed_struct_renamed_field!(Termios, termios, output_speed, __c_ospeed); - } - } - - check_renamed_type!(OptionalActions, c_int); - check_renamed_type!(QueueSelector, c_int); - check_renamed_type!(Action, c_int); -} - -#[test] -#[cfg(not(any( - solarish, - target_os = "emscripten", - target_os = "haiku", - target_os = "redox" -)))] -fn termios_legacy() { - // Check that our doc aliases above are correct. - const_assert_eq!(c::EXTA, c::B19200); - const_assert_eq!(c::EXTB, c::B38400); -} - -#[cfg(bsd)] -#[test] -fn termios_bsd() { - // On BSD platforms we can assume that the `B*` constants have their - // arbitrary integer speed value. Confirm this. - const_assert_eq!(c::B0, 0); - const_assert_eq!(c::B50, 50); - const_assert_eq!(c::B19200, 19200); - const_assert_eq!(c::B38400, 38400); -} - -#[test] -#[cfg(not(bsd))] -fn termios_speed_encoding() { - assert_eq!(speed::encode(0), Some(c::B0)); - assert_eq!(speed::encode(50), Some(c::B50)); - assert_eq!(speed::encode(19200), Some(c::B19200)); - assert_eq!(speed::encode(38400), Some(c::B38400)); - assert_eq!(speed::encode(1), None); - assert_eq!(speed::encode(!0), None); - - #[cfg(not(linux_kernel))] - { - assert_eq!(speed::decode(c::B0), Some(0)); - assert_eq!(speed::decode(c::B50), Some(50)); - assert_eq!(speed::decode(c::B19200), Some(19200)); - assert_eq!(speed::decode(c::B38400), Some(38400)); - } -} - -#[cfg(linux_kernel)] -#[test] -fn termios_ioctl_contiguity() { - // When using `termios2`, we assume that we can add the optional actions - // value to the ioctl request code. Test this assumption. - - const_assert_eq!(c::TCSETS2, c::TCSETS2 + 0); - const_assert_eq!(c::TCSETSW2, c::TCSETS2 + 1); - const_assert_eq!(c::TCSETSF2, c::TCSETS2 + 2); - - const_assert_eq!(c::TCSANOW - c::TCSANOW, 0); - const_assert_eq!(c::TCSADRAIN - c::TCSANOW, 1); - const_assert_eq!(c::TCSAFLUSH - c::TCSANOW, 2); - - // MIPS is different here. - #[cfg(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" - ))] - { - assert_eq!(i128::from(c::TCSANOW) - i128::from(c::TCSETS), 0); - assert_eq!(i128::from(c::TCSADRAIN) - i128::from(c::TCSETS), 1); - assert_eq!(i128::from(c::TCSAFLUSH) - i128::from(c::TCSETS), 2); - } - #[cfg(not(any( - target_arch = "mips", - target_arch = "mips32r6", - target_arch = "mips64", - target_arch = "mips64r6" - )))] - { - const_assert_eq!(c::TCSANOW, 0); - const_assert_eq!(c::TCSADRAIN, 1); - const_assert_eq!(c::TCSAFLUSH, 2); - } -} - -#[cfg(linux_kernel)] -#[test] -fn termios_cibaud() { - // Test an assumption. - const_assert_eq!(c::CIBAUD, c::CBAUD << c::IBSHIFT); -} diff --git a/third_party/rust/rustix/src/thread/clock.rs b/third_party/rust/rustix/src/thread/clock.rs deleted file mode 100644 index 8060c0238de6..000000000000 --- a/third_party/rust/rustix/src/thread/clock.rs +++ /dev/null @@ -1,97 +0,0 @@ -use crate::{backend, io}; - -pub use crate::timespec::Timespec; - -#[cfg(not(any( - apple, - target_os = "dragonfly", - target_os = "espidf", - target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11. - target_os = "openbsd", - target_os = "redox", - target_os = "wasi", -)))] -pub use crate::clockid::ClockId; - -/// `clock_nanosleep(id, 0, request, remain)`—Sleeps for a duration on a -/// given clock. -/// -/// This is `clock_nanosleep` specialized for the case of a relative sleep -/// interval. See [`clock_nanosleep_absolute`] for absolute intervals. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html -/// [Linux]: https://man7.org/linux/man-pages/man2/clock_nanosleep.2.html -#[cfg(not(any( - apple, - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11. - target_os = "haiku", - target_os = "openbsd", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRelativeResult { - backend::thread::syscalls::clock_nanosleep_relative(id, request) -} - -/// `clock_nanosleep(id, TIMER_ABSTIME, request, NULL)`—Sleeps until an -/// absolute time on a given clock. -/// -/// This is `clock_nanosleep` specialized for the case of an absolute sleep -/// interval. See [`clock_nanosleep_relative`] for relative intervals. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html -/// [Linux]: https://man7.org/linux/man-pages/man2/clock_nanosleep.2.html -#[cfg(not(any( - apple, - target_os = "dragonfly", - target_os = "emscripten", - target_os = "espidf", - target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11. - target_os = "haiku", - target_os = "openbsd", - target_os = "redox", - target_os = "wasi", -)))] -#[inline] -pub fn clock_nanosleep_absolute(id: ClockId, request: &Timespec) -> io::Result<()> { - backend::thread::syscalls::clock_nanosleep_absolute(id, request) -} - -/// `nanosleep(request, remain)`—Sleeps for a duration. -/// -/// This effectively uses the system monotonic clock. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html -/// [Linux]: https://man7.org/linux/man-pages/man2/nanosleep.2.html -#[inline] -pub fn nanosleep(request: &Timespec) -> NanosleepRelativeResult { - backend::thread::syscalls::nanosleep(request) -} - -/// A return type for `nanosleep` and `clock_nanosleep_relative`. -#[derive(Debug, Clone)] -#[must_use] -pub enum NanosleepRelativeResult { - /// The sleep completed normally. - Ok, - /// The sleep was interrupted, the remaining time is returned. - Interrupted(Timespec), - /// An invalid time value was provided. - Err(io::Errno), -} diff --git a/third_party/rust/rustix/src/thread/futex.rs b/third_party/rust/rustix/src/thread/futex.rs deleted file mode 100644 index 47947c8b55fb..000000000000 --- a/third_party/rust/rustix/src/thread/futex.rs +++ /dev/null @@ -1,38 +0,0 @@ -//! Linux `futex`. -//! -//! # Safety -//! -//! Futex is a very low-level mechanism for implementing concurrency -//! primitives. -#![allow(unsafe_code)] - -use crate::thread::Timespec; -use crate::{backend, io}; - -pub use backend::thread::futex::{FutexFlags, FutexOperation}; - -/// `futex(uaddr, op, val, utime, uaddr2, val3)` -/// -/// # References -/// - [Linux `futex` system call] -/// - [Linux `futex` feature] -/// -/// # Safety -/// -/// This is a very low-level feature for implementing synchronization -/// primitives. See the references links above. -/// -/// [Linux `futex` system call]: https://man7.org/linux/man-pages/man2/futex.2.html -/// [Linux `futex` feature]: https://man7.org/linux/man-pages/man7/futex.7.html -#[inline] -pub unsafe fn futex( - uaddr: *mut u32, - op: FutexOperation, - flags: FutexFlags, - val: u32, - utime: *const Timespec, - uaddr2: *mut u32, - val3: u32, -) -> io::Result { - backend::thread::syscalls::futex(uaddr, op, flags, val, utime, uaddr2, val3) -} diff --git a/third_party/rust/rustix/src/thread/id.rs b/third_party/rust/rustix/src/thread/id.rs deleted file mode 100644 index 11193c9d1aa8..000000000000 --- a/third_party/rust/rustix/src/thread/id.rs +++ /dev/null @@ -1,115 +0,0 @@ -use crate::{backend, io}; - -pub use crate::pid::{Pid, RawPid}; -pub use crate::ugid::{Gid, RawGid, RawUid, Uid}; - -/// `gettid()`—Returns the thread ID. -/// -/// This returns the OS thread ID, which is not necessarily the same as the -/// `rust::thread::Thread::id` or the pthread ID. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/gettid.2.html -#[inline] -#[must_use] -pub fn gettid() -> Pid { - backend::thread::syscalls::gettid() -} - -/// `setuid(uid)` -/// -/// # Warning -/// -/// This is not the setxid you are looking for… POSIX requires xids to be -/// process granular, but on Linux they are per-thread. Thus, this call only -/// changes the xid for the current *thread*, not the entire process even -/// though that is in violation of the POSIX standard. -/// -/// For details on this distinction, see the C library vs. kernel differences -/// in the [manual page][linux_notes]. This call implements the kernel -/// behavior. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setuid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setuid.2.html -/// [linux_notes]: https://man7.org/linux/man-pages/man2/setuid.2.html#NOTES -#[inline] -pub fn set_thread_uid(uid: Uid) -> io::Result<()> { - backend::thread::syscalls::setuid_thread(uid) -} - -/// `setresuid(ruid, euid, suid)` -/// -/// # Warning -/// -/// This is not the setresxid you are looking for… POSIX requires xids to be -/// process granular, but on Linux they are per-thread. Thus, this call only -/// changes the xid for the current *thread*, not the entire process even -/// though that is in violation of the POSIX standard. -/// -/// For details on this distinction, see the C library vs. kernel differences -/// in the [manual page][linux_notes] and the notes in [`set_thread_uid`]. This -/// call implements the kernel behavior. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/setresuid.2.html -/// [linux_notes]: https://man7.org/linux/man-pages/man2/setresuid.2.html#NOTES -#[inline] -pub fn set_thread_res_uid(ruid: Uid, euid: Uid, suid: Uid) -> io::Result<()> { - backend::thread::syscalls::setresuid_thread(ruid, euid, suid) -} - -/// `setgid(gid)` -/// -/// # Warning -/// -/// This is not the setxid you are looking for… POSIX requires xids to be -/// process granular, but on Linux they are per-thread. Thus, this call only -/// changes the xid for the current *thread*, not the entire process even -/// though that is in violation of the POSIX standard. -/// -/// For details on this distinction, see the C library vs. kernel differences -/// in the [manual page][linux_notes]. This call implements the kernel -/// behavior. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setgid.html -/// [Linux]: https://man7.org/linux/man-pages/man2/setgid.2.html -/// [linux_notes]: https://man7.org/linux/man-pages/man2/setgid.2.html#NOTES -#[inline] -pub fn set_thread_gid(gid: Gid) -> io::Result<()> { - backend::thread::syscalls::setgid_thread(gid) -} - -/// `setresgid(rgid, egid, sgid)` -/// -/// # Warning -/// -/// This is not the setresxid you are looking for… POSIX requires xids to be -/// process granular, but on Linux they are per-thread. Thus, this call only -/// changes the xid for the current *thread*, not the entire process even -/// though that is in violation of the POSIX standard. -/// -/// For details on this distinction, see the C library vs. kernel differences -/// in the [manual page][linux_notes] and the notes in [`set_thread_gid`]. This -/// call implements the kernel behavior. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/setresgid.2.html -/// [linux_notes]: https://man7.org/linux/man-pages/man2/setresgid.2.html#NOTES -#[inline] -pub fn set_thread_res_gid(rgid: Gid, egid: Gid, sgid: Gid) -> io::Result<()> { - backend::thread::syscalls::setresgid_thread(rgid, egid, sgid) -} diff --git a/third_party/rust/rustix/src/thread/libcap.rs b/third_party/rust/rustix/src/thread/libcap.rs deleted file mode 100644 index 19f81a904937..000000000000 --- a/third_party/rust/rustix/src/thread/libcap.rs +++ /dev/null @@ -1,185 +0,0 @@ -use bitflags::bitflags; -use core::mem::MaybeUninit; - -use crate::pid::Pid; -use crate::{backend, io}; - -/// `__user_cap_data_struct` -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub struct CapabilitySets { - /// `__user_cap_data_struct.effective` - pub effective: CapabilityFlags, - /// `__user_cap_data_struct.permitted` - pub permitted: CapabilityFlags, - /// `__user_cap_data_struct.inheritable` - pub inheritable: CapabilityFlags, -} - -bitflags! { - /// `CAP_*` constants. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CapabilityFlags: u64 { - /// `CAP_CHOWN` - const CHOWN = 1 << linux_raw_sys::general::CAP_CHOWN; - /// `CAP_DAC_OVERRIDE` - const DAC_OVERRIDE = 1 << linux_raw_sys::general::CAP_DAC_OVERRIDE; - /// `CAP_DAC_READ_SEARCH` - const DAC_READ_SEARCH = 1 << linux_raw_sys::general::CAP_DAC_READ_SEARCH; - /// `CAP_FOWNER` - const FOWNER = 1 << linux_raw_sys::general::CAP_FOWNER; - /// `CAP_FSETID` - const FSETID = 1 << linux_raw_sys::general::CAP_FSETID; - /// `CAP_KILL` - const KILL = 1 << linux_raw_sys::general::CAP_KILL; - /// `CAP_SETGID` - const SETGID = 1 << linux_raw_sys::general::CAP_SETGID; - /// `CAP_SETUID` - const SETUID = 1 << linux_raw_sys::general::CAP_SETUID; - /// `CAP_SETPCAP` - const SETPCAP = 1 << linux_raw_sys::general::CAP_SETPCAP; - /// `CAP_LINUX_IMMUTABLE` - const LINUX_IMMUTABLE = 1 << linux_raw_sys::general::CAP_LINUX_IMMUTABLE; - /// `CAP_NET_BIND_SERVICE` - const NET_BIND_SERVICE = 1 << linux_raw_sys::general::CAP_NET_BIND_SERVICE; - /// `CAP_NET_BROADCAST` - const NET_BROADCAST = 1 << linux_raw_sys::general::CAP_NET_BROADCAST; - /// `CAP_NET_ADMIN` - const NET_ADMIN = 1 << linux_raw_sys::general::CAP_NET_ADMIN; - /// `CAP_NET_RAW` - const NET_RAW = 1 << linux_raw_sys::general::CAP_NET_RAW; - /// `CAP_IPC_LOCK` - const IPC_LOCK = 1 << linux_raw_sys::general::CAP_IPC_LOCK; - /// `CAP_IPC_OWNER` - const IPC_OWNER = 1 << linux_raw_sys::general::CAP_IPC_OWNER; - /// `CAP_SYS_MODULE` - const SYS_MODULE = 1 << linux_raw_sys::general::CAP_SYS_MODULE; - /// `CAP_SYS_RAWIO` - const SYS_RAWIO = 1 << linux_raw_sys::general::CAP_SYS_RAWIO; - /// `CAP_SYS_CHROOT` - const SYS_CHROOT = 1 << linux_raw_sys::general::CAP_SYS_CHROOT; - /// `CAP_SYS_PTRACE` - const SYS_PTRACE = 1 << linux_raw_sys::general::CAP_SYS_PTRACE; - /// `CAP_SYS_PACCT` - const SYS_PACCT = 1 << linux_raw_sys::general::CAP_SYS_PACCT; - /// `CAP_SYS_ADMIN` - const SYS_ADMIN = 1 << linux_raw_sys::general::CAP_SYS_ADMIN; - /// `CAP_SYS_BOOT` - const SYS_BOOT = 1 << linux_raw_sys::general::CAP_SYS_BOOT; - /// `CAP_SYS_NICE` - const SYS_NICE = 1 << linux_raw_sys::general::CAP_SYS_NICE; - /// `CAP_SYS_RESOURCE` - const SYS_RESOURCE = 1 << linux_raw_sys::general::CAP_SYS_RESOURCE; - /// `CAP_SYS_TIME` - const SYS_TIME = 1 << linux_raw_sys::general::CAP_SYS_TIME; - /// `CAP_SYS_TTY_CONFIG` - const SYS_TTY_CONFIG = 1 << linux_raw_sys::general::CAP_SYS_TTY_CONFIG; - /// `CAP_MKNOD` - const MKNOD = 1 << linux_raw_sys::general::CAP_MKNOD; - /// `CAP_LEASE` - const LEASE = 1 << linux_raw_sys::general::CAP_LEASE; - /// `CAP_AUDIT_WRITE` - const AUDIT_WRITE = 1 << linux_raw_sys::general::CAP_AUDIT_WRITE; - /// `CAP_AUDIT_CONTROL` - const AUDIT_CONTROL = 1 << linux_raw_sys::general::CAP_AUDIT_CONTROL; - /// `CAP_SETFCAP` - const SETFCAP = 1 << linux_raw_sys::general::CAP_SETFCAP; - /// `CAP_MAC_OVERRIDE` - const MAC_OVERRIDE = 1 << linux_raw_sys::general::CAP_MAC_OVERRIDE; - /// `CAP_MAC_ADMIN` - const MAC_ADMIN = 1 << linux_raw_sys::general::CAP_MAC_ADMIN; - /// `CAP_SYSLOG` - const SYSLOG = 1 << linux_raw_sys::general::CAP_SYSLOG; - /// `CAP_WAKE_ALARM` - const WAKE_ALARM = 1 << linux_raw_sys::general::CAP_WAKE_ALARM; - /// `CAP_BLOCK_SUSPEND` - const BLOCK_SUSPEND = 1 << linux_raw_sys::general::CAP_BLOCK_SUSPEND; - /// `CAP_AUDIT_READ` - const AUDIT_READ = 1 << linux_raw_sys::general::CAP_AUDIT_READ; - /// `CAP_PERFMON` - const PERFMON = 1 << linux_raw_sys::general::CAP_PERFMON; - /// `CAP_BPF` - const BPF = 1 << linux_raw_sys::general::CAP_BPF; - /// `CAP_CHECKPOINT_RESTORE` - const CHECKPOINT_RESTORE = 1 << linux_raw_sys::general::CAP_CHECKPOINT_RESTORE; - - /// - const _ = !0; - } -} - -/// `capget(_LINUX_CAPABILITY_VERSION_3, pid)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/capget.2.html -#[inline] -#[doc(alias = "capget")] -pub fn capabilities(pid: Option) -> io::Result { - capget(pid) -} - -/// `capset(_LINUX_CAPABILITY_VERSION_3, pid, effective, permitted, -/// inheritable)` -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/capget.2.html -#[inline] -#[doc(alias = "capset")] -pub fn set_capabilities(pid: Option, sets: CapabilitySets) -> io::Result<()> { - capset(pid, sets) -} - -#[inline] -#[allow(unsafe_code)] -fn capget(pid: Option) -> io::Result { - let mut data = [MaybeUninit::::uninit(); 2]; - - let data = { - let mut header = linux_raw_sys::general::__user_cap_header_struct { - version: linux_raw_sys::general::_LINUX_CAPABILITY_VERSION_3, - pid: Pid::as_raw(pid) as backend::c::c_int, - }; - - backend::thread::syscalls::capget(&mut header, &mut data)?; - // SAFETY: v3 is a 64-bit implementation, so the kernel filled in both - // data structs. - unsafe { (data[0].assume_init(), data[1].assume_init()) } - }; - - let effective = u64::from(data.0.effective) | (u64::from(data.1.effective) << u32::BITS); - let permitted = u64::from(data.0.permitted) | (u64::from(data.1.permitted) << u32::BITS); - let inheritable = u64::from(data.0.inheritable) | (u64::from(data.1.inheritable) << u32::BITS); - - // The kernel returns a partitioned bitset that we just combined above. - Ok(CapabilitySets { - effective: CapabilityFlags::from_bits_retain(effective), - permitted: CapabilityFlags::from_bits_retain(permitted), - inheritable: CapabilityFlags::from_bits_retain(inheritable), - }) -} - -#[inline] -fn capset(pid: Option, sets: CapabilitySets) -> io::Result<()> { - let mut header = linux_raw_sys::general::__user_cap_header_struct { - version: linux_raw_sys::general::_LINUX_CAPABILITY_VERSION_3, - pid: Pid::as_raw(pid) as backend::c::c_int, - }; - let data = [ - linux_raw_sys::general::__user_cap_data_struct { - effective: sets.effective.bits() as u32, - permitted: sets.permitted.bits() as u32, - inheritable: sets.inheritable.bits() as u32, - }, - linux_raw_sys::general::__user_cap_data_struct { - effective: (sets.effective.bits() >> u32::BITS) as u32, - permitted: (sets.permitted.bits() >> u32::BITS) as u32, - inheritable: (sets.inheritable.bits() >> u32::BITS) as u32, - }, - ]; - - backend::thread::syscalls::capset(&mut header, &data) -} diff --git a/third_party/rust/rustix/src/thread/mod.rs b/third_party/rust/rustix/src/thread/mod.rs deleted file mode 100644 index 6f19635f0aa5..000000000000 --- a/third_party/rust/rustix/src/thread/mod.rs +++ /dev/null @@ -1,30 +0,0 @@ -//! Thread-associated operations. - -#[cfg(not(target_os = "redox"))] -mod clock; -#[cfg(linux_kernel)] -mod futex; -#[cfg(linux_kernel)] -mod id; -#[cfg(linux_kernel)] -mod libcap; -#[cfg(linux_kernel)] -mod prctl; -#[cfg(linux_kernel)] -mod setns; - -#[cfg(not(target_os = "redox"))] -pub use clock::*; -#[cfg(linux_kernel)] -pub use futex::{futex, FutexFlags, FutexOperation}; -#[cfg(linux_kernel)] -pub use id::{ - gettid, set_thread_gid, set_thread_res_gid, set_thread_res_uid, set_thread_uid, Gid, Pid, - RawGid, RawPid, RawUid, Uid, -}; -#[cfg(linux_kernel)] -pub use libcap::{capabilities, set_capabilities, CapabilityFlags, CapabilitySets}; -#[cfg(linux_kernel)] -pub use prctl::*; -#[cfg(linux_kernel)] -pub use setns::*; diff --git a/third_party/rust/rustix/src/thread/prctl.rs b/third_party/rust/rustix/src/thread/prctl.rs deleted file mode 100644 index b2d40d65cdd1..000000000000 --- a/third_party/rust/rustix/src/thread/prctl.rs +++ /dev/null @@ -1,1001 +0,0 @@ -//! Linux `prctl` wrappers. -//! -//! Rustix wraps variadic/dynamic-dispatch functions like `prctl` in -//! type-safe wrappers. -//! -//! # Safety -//! -//! The inner `prctl` calls are dynamically typed and must be called -//! correctly. -#![allow(unsafe_code)] - -use core::mem::MaybeUninit; -use core::num::NonZeroU64; -use core::ptr; -use core::ptr::NonNull; -use core::sync::atomic::AtomicU8; - -use bitflags::bitflags; - -use crate::backend::c::{c_int, c_uint, c_void}; -use crate::backend::prctl::syscalls; -use crate::ffi::CStr; -#[cfg(feature = "alloc")] -use crate::ffi::CString; -use crate::io; -use crate::pid::Pid; -use crate::prctl::{ - prctl_1arg, prctl_2args, prctl_3args, prctl_get_at_arg2_optional, PointerAuthenticationKeys, -}; -use crate::utils::as_ptr; - -// -// PR_GET_KEEPCAPS/PR_SET_KEEPCAPS -// - -const PR_GET_KEEPCAPS: c_int = 7; - -/// Get the current state of the calling thread's `keep capabilities` flag. -/// -/// # References -/// - [`prctl(PR_GET_KEEPCAPS,...)`] -/// -/// [`prctl(PR_GET_KEEPCAPS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn get_keep_capabilities() -> io::Result { - unsafe { prctl_1arg(PR_GET_KEEPCAPS) }.map(|r| r != 0) -} - -const PR_SET_KEEPCAPS: c_int = 8; - -/// Set the state of the calling thread's `keep capabilities` flag. -/// -/// # References -/// - [`prctl(PR_SET_KEEPCAPS,...)`] -/// -/// [`prctl(PR_SET_KEEPCAPS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn set_keep_capabilities(enable: bool) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_KEEPCAPS, usize::from(enable) as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_NAME/PR_SET_NAME -// - -#[cfg(feature = "alloc")] -const PR_GET_NAME: c_int = 16; - -/// Get the name of the calling thread. -/// -/// # References -/// - [`prctl(PR_GET_NAME,...)`] -/// -/// [`prctl(PR_GET_NAME,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -#[cfg(feature = "alloc")] -pub fn name() -> io::Result { - let mut buffer = [0_u8; 16]; - unsafe { prctl_2args(PR_GET_NAME, buffer.as_mut_ptr().cast())? }; - - let len = buffer.iter().position(|&x| x == 0_u8).unwrap_or(0); - CString::new(&buffer[..len]).map_err(|_r| io::Errno::ILSEQ) -} - -const PR_SET_NAME: c_int = 15; - -/// Set the name of the calling thread. -/// -/// # References -/// - [`prctl(PR_SET_NAME,...)`] -/// -/// [`prctl(PR_SET_NAME,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn set_name(name: &CStr) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_NAME, name.as_ptr() as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_SECCOMP/PR_SET_SECCOMP -// - -//const PR_GET_SECCOMP: c_int = 21; - -const SECCOMP_MODE_DISABLED: i32 = 0; -const SECCOMP_MODE_STRICT: i32 = 1; -const SECCOMP_MODE_FILTER: i32 = 2; - -/// `SECCOMP_MODE_*`. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(i32)] -pub enum SecureComputingMode { - /// Secure computing is not in use. - Disabled = SECCOMP_MODE_DISABLED, - /// Use hard-coded filter. - Strict = SECCOMP_MODE_STRICT, - /// Use user-supplied filter. - Filter = SECCOMP_MODE_FILTER, -} - -impl TryFrom for SecureComputingMode { - type Error = io::Errno; - - fn try_from(value: i32) -> Result { - match value { - SECCOMP_MODE_DISABLED => Ok(Self::Disabled), - SECCOMP_MODE_STRICT => Ok(Self::Strict), - SECCOMP_MODE_FILTER => Ok(Self::Filter), - _ => Err(io::Errno::RANGE), - } - } -} - -/* -/// Get the secure computing mode of the calling thread. -/// -/// If the caller is not in secure computing mode, this returns -/// [`SecureComputingMode::Disabled`]. If the caller is in strict secure -/// computing mode, then this call will cause a [`Signal::Kill`] signal to be -/// sent to the process. If the caller is in filter mode, and this system call -/// is allowed by the seccomp filters, it returns -/// [`SecureComputingMode::Filter`]; otherwise, the process is killed with a -/// [`Signal::Kill`] signal. -/// -/// Since Linux 3.8, the Seccomp field of the `/proc/[pid]/status` file -/// provides a method of obtaining the same information, without the risk that -/// the process is killed; see [the `proc` manual page]. -/// -/// # References -/// - [`prctl(PR_GET_SECCOMP,...)`] -/// -/// [`prctl(PR_GET_SECCOMP,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -/// [the `proc` manual page]: https://man7.org/linux/man-pages/man5/proc.5.html -#[inline] -pub fn secure_computing_mode() -> io::Result { - unsafe { prctl_1arg(PR_GET_SECCOMP) }.and_then(TryInto::try_into) -} -*/ - -const PR_SET_SECCOMP: c_int = 22; - -/// Set the secure computing mode for the calling thread, to limit the -/// available system calls. -/// -/// # References -/// - [`prctl(PR_SET_SECCOMP,...)`] -/// -/// [`prctl(PR_SET_SECCOMP,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn set_secure_computing_mode(mode: SecureComputingMode) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_SECCOMP, mode as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_CAPBSET_READ/PR_CAPBSET_DROP -// - -const PR_CAPBSET_READ: c_int = 23; - -/// Linux per-thread capability. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum Capability { - /// In a system with the `_POSIX_CHOWN_RESTRICTED` option defined, this - /// overrides the restriction of changing file ownership and group - /// ownership. - ChangeOwnership = linux_raw_sys::general::CAP_CHOWN, - /// Override all DAC access, including ACL execute access if `_POSIX_ACL` - /// is defined. Excluding DAC access covered by - /// [`Capability::LinuxImmutable`]. - DACOverride = linux_raw_sys::general::CAP_DAC_OVERRIDE, - /// Overrides all DAC restrictions regarding read and search on files and - /// directories, including ACL restrictions if `_POSIX_ACL` is defined. - /// Excluding DAC access covered by [`Capability::LinuxImmutable`]. - DACReadSearch = linux_raw_sys::general::CAP_DAC_READ_SEARCH, - /// Overrides all restrictions about allowed operations on files, where - /// file owner ID must be equal to the user ID, except where - /// [`Capability::FileSetID`] is applicable. It doesn't override MAC - /// and DAC restrictions. - FileOwner = linux_raw_sys::general::CAP_FOWNER, - /// Overrides the following restrictions that the effective user ID shall - /// match the file owner ID when setting the `S_ISUID` and `S_ISGID` - /// bits on that file; that the effective group ID (or one of the - /// supplementary group IDs) shall match the file owner ID when setting the - /// `S_ISGID` bit on that file; that the `S_ISUID` and `S_ISGID` bits are - /// cleared on successful return from `chown` (not implemented). - FileSetID = linux_raw_sys::general::CAP_FSETID, - /// Overrides the restriction that the real or effective user ID of a - /// process sending a signal must match the real or effective user ID - /// of the process receiving the signal. - Kill = linux_raw_sys::general::CAP_KILL, - /// Allows `setgid` manipulation. Allows `setgroups`. Allows forged gids on - /// socket credentials passing. - SetGroupID = linux_raw_sys::general::CAP_SETGID, - /// Allows `set*uid` manipulation (including fsuid). Allows forged pids on - /// socket credentials passing. - SetUserID = linux_raw_sys::general::CAP_SETUID, - /// Without VFS support for capabilities: - /// - Transfer any capability in your permitted set to any pid. - /// - remove any capability in your permitted set from any pid. With VFS - /// support for capabilities (neither of above, but) - /// - Add any capability from current's capability bounding set to the - /// current process' inheritable set. - /// - Allow taking bits out of capability bounding set. - /// - Allow modification of the securebits for a process. - SetPermittedCapabilities = linux_raw_sys::general::CAP_SETPCAP, - /// Allow modification of `S_IMMUTABLE` and `S_APPEND` file attributes. - LinuxImmutable = linux_raw_sys::general::CAP_LINUX_IMMUTABLE, - /// Allows binding to TCP/UDP sockets below 1024. Allows binding to ATM - /// VCIs below 32. - NetBindService = linux_raw_sys::general::CAP_NET_BIND_SERVICE, - /// Allow broadcasting, listen to multicast. - NetBroadcast = linux_raw_sys::general::CAP_NET_BROADCAST, - /// Allow interface configuration. Allow administration of IP firewall, - /// masquerading and accounting. Allow setting debug option on sockets. - /// Allow modification of routing tables. Allow setting arbitrary - /// process / process group ownership on sockets. Allow binding to any - /// address for transparent proxying (also via [`Capability::NetRaw`]). - /// Allow setting TOS (type of service). Allow setting promiscuous - /// mode. Allow clearing driver statistics. Allow multicasting. Allow - /// read/write of device-specific registers. Allow activation of ATM - /// control sockets. - NetAdmin = linux_raw_sys::general::CAP_NET_ADMIN, - /// Allow use of `RAW` sockets. Allow use of `PACKET` sockets. Allow - /// binding to any address for transparent proxying (also via - /// [`Capability::NetAdmin`]). - NetRaw = linux_raw_sys::general::CAP_NET_RAW, - /// Allow locking of shared memory segments. Allow mlock and mlockall - /// (which doesn't really have anything to do with IPC). - IPCLock = linux_raw_sys::general::CAP_IPC_LOCK, - /// Override IPC ownership checks. - IPCOwner = linux_raw_sys::general::CAP_IPC_OWNER, - /// Insert and remove kernel modules - modify kernel without limit. - SystemModule = linux_raw_sys::general::CAP_SYS_MODULE, - /// Allow ioperm/iopl access. Allow sending USB messages to any device via - /// `/dev/bus/usb`. - SystemRawIO = linux_raw_sys::general::CAP_SYS_RAWIO, - /// Allow use of `chroot`. - SystemChangeRoot = linux_raw_sys::general::CAP_SYS_CHROOT, - /// Allow `ptrace` of any process. - SystemProcessTrace = linux_raw_sys::general::CAP_SYS_PTRACE, - /// Allow configuration of process accounting. - SystemProcessAccounting = linux_raw_sys::general::CAP_SYS_PACCT, - /// Allow configuration of the secure attention key. Allow administration - /// of the random device. Allow examination and configuration of disk - /// quotas. Allow setting the domainname. Allow setting the hostname. - /// Allow `mount` and `umount`, setting up new smb connection. - /// Allow some autofs root ioctls. Allow nfsservctl. Allow - /// `VM86_REQUEST_IRQ`. Allow to read/write pci config on alpha. Allow - /// `irix_prctl` on mips (setstacksize). Allow flushing all cache on - /// m68k (`sys_cacheflush`). Allow removing semaphores. Used instead of - /// [`Capability::ChangeOwnership`] to "chown" IPC message queues, - /// semaphores and shared memory. Allow locking/unlocking of shared - /// memory segment. Allow turning swap on/off. Allow forged pids on - /// socket credentials passing. Allow setting readahead and - /// flushing buffers on block devices. Allow setting geometry in floppy - /// driver. Allow turning DMA on/off in `xd` driver. Allow - /// administration of md devices (mostly the above, but some - /// extra ioctls). Allow tuning the ide driver. Allow access to the nvram - /// device. Allow administration of `apm_bios`, serial and bttv (TV) - /// device. Allow manufacturer commands in isdn CAPI support driver. - /// Allow reading non-standardized portions of pci configuration space. - /// Allow DDI debug ioctl on sbpcd driver. Allow setting up serial ports. - /// Allow sending raw qic-117 commands. Allow enabling/disabling tagged - /// queuing on SCSI controllers and sending arbitrary SCSI commands. - /// Allow setting encryption key on loopback filesystem. Allow setting - /// zone reclaim policy. Allow everything under - /// [`Capability::BerkeleyPacketFilters`] and - /// [`Capability::PerformanceMonitoring`] for backward compatibility. - SystemAdmin = linux_raw_sys::general::CAP_SYS_ADMIN, - /// Allow use of `reboot`. - SystemBoot = linux_raw_sys::general::CAP_SYS_BOOT, - /// Allow raising priority and setting priority on other (different UID) - /// processes. Allow use of FIFO and round-robin (realtime) scheduling - /// on own processes and setting the scheduling algorithm used by - /// another process. Allow setting cpu affinity on other processes. - /// Allow setting realtime ioprio class. Allow setting ioprio class on - /// other processes. - SystemNice = linux_raw_sys::general::CAP_SYS_NICE, - /// Override resource limits. Set resource limits. Override quota limits. - /// Override reserved space on ext2 filesystem. Modify data journaling - /// mode on ext3 filesystem (uses journaling resources). NOTE: ext2 - /// honors fsuid when checking for resource overrides, so you can - /// override using fsuid too. Override size restrictions on IPC message - /// queues. Allow more than 64hz interrupts from the real-time clock. - /// Override max number of consoles on console allocation. Override max - /// number of keymaps. Control memory reclaim behavior. - SystemResource = linux_raw_sys::general::CAP_SYS_RESOURCE, - /// Allow manipulation of system clock. Allow `irix_stime` on mips. Allow - /// setting the real-time clock. - SystemTime = linux_raw_sys::general::CAP_SYS_TIME, - /// Allow configuration of tty devices. Allow `vhangup` of tty. - SystemTTYConfig = linux_raw_sys::general::CAP_SYS_TTY_CONFIG, - /// Allow the privileged aspects of `mknod`. - MakeNode = linux_raw_sys::general::CAP_MKNOD, - /// Allow taking of leases on files. - Lease = linux_raw_sys::general::CAP_LEASE, - /// Allow writing the audit log via unicast netlink socket. - AuditWrite = linux_raw_sys::general::CAP_AUDIT_WRITE, - /// Allow configuration of audit via unicast netlink socket. - AuditControl = linux_raw_sys::general::CAP_AUDIT_CONTROL, - /// Set or remove capabilities on files. Map `uid=0` into a child user - /// namespace. - SetFileCapabilities = linux_raw_sys::general::CAP_SETFCAP, - /// Override MAC access. The base kernel enforces no MAC policy. An LSM may - /// enforce a MAC policy, and if it does and it chooses to implement - /// capability based overrides of that policy, this is the capability - /// it should use to do so. - MACOverride = linux_raw_sys::general::CAP_MAC_OVERRIDE, - /// Allow MAC configuration or state changes. The base kernel requires no - /// MAC configuration. An LSM may enforce a MAC policy, and if it does - /// and it chooses to implement capability based - /// checks on modifications to that policy or the data required to maintain - /// it, this is the capability it should use to do so. - MACAdmin = linux_raw_sys::general::CAP_MAC_ADMIN, - /// Allow configuring the kernel's `syslog` (`printk` behaviour). - SystemLog = linux_raw_sys::general::CAP_SYSLOG, - /// Allow triggering something that will wake the system. - WakeAlarm = linux_raw_sys::general::CAP_WAKE_ALARM, - /// Allow preventing system suspends. - BlockSuspend = linux_raw_sys::general::CAP_BLOCK_SUSPEND, - /// Allow reading the audit log via multicast netlink socket. - AuditRead = linux_raw_sys::general::CAP_AUDIT_READ, - /// Allow system performance and observability privileged operations using - /// `perf_events`, `i915_perf` and other kernel subsystems. - PerformanceMonitoring = linux_raw_sys::general::CAP_PERFMON, - /// This capability allows the following BPF operations: - /// - Creating all types of BPF maps - /// - Advanced verifier features - /// - Indirect variable access - /// - Bounded loops - /// - BPF to BPF function calls - /// - Scalar precision tracking - /// - Larger complexity limits - /// - Dead code elimination - /// - And potentially other features - /// - Loading BPF Type Format (BTF) data - /// - Retrieve `xlated` and JITed code of BPF programs - /// - Use `bpf_spin_lock` helper - /// - /// [`Capability::PerformanceMonitoring`] relaxes the verifier checks - /// further: - /// - BPF progs can use of pointer-to-integer conversions - /// - speculation attack hardening measures are bypassed - /// - `bpf_probe_read` to read arbitrary kernel memory is allowed - /// - `bpf_trace_printk` to print kernel memory is allowed - /// - /// [`Capability::SystemAdmin`] is required to use bpf_probe_write_user. - /// - /// [`Capability::SystemAdmin`] is required to iterate system wide loaded - /// programs, maps, links, BTFs and convert their IDs to file descriptors. - /// - /// [`Capability::PerformanceMonitoring`] and - /// [`Capability::BerkeleyPacketFilters`] are required to load tracing - /// programs. [`Capability::NetAdmin`] and - /// [`Capability::BerkeleyPacketFilters`] are required to load - /// networking programs. - BerkeleyPacketFilters = linux_raw_sys::general::CAP_BPF, - /// Allow checkpoint/restore related operations. Allow PID selection during - /// `clone3`. Allow writing to `ns_last_pid`. - CheckpointRestore = linux_raw_sys::general::CAP_CHECKPOINT_RESTORE, -} - -/// Check if the specified capability is in the calling thread's capability -/// bounding set. -/// -/// # References -/// - [`prctl(PR_CAPBSET_READ,...)`] -/// -/// [`prctl(PR_CAPBSET_READ,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn capability_is_in_bounding_set(capability: Capability) -> io::Result { - unsafe { prctl_2args(PR_CAPBSET_READ, capability as usize as *mut _) }.map(|r| r != 0) -} - -const PR_CAPBSET_DROP: c_int = 24; - -/// If the calling thread has the [`Capability::SetPermittedCapabilities`] -/// capability within its user namespace, then drop the specified capability -/// from the thread's capability bounding set. -/// -/// # References -/// - [`prctl(PR_CAPBSET_DROP,...)`] -/// -/// [`prctl(PR_CAPBSET_DROP,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn remove_capability_from_bounding_set(capability: Capability) -> io::Result<()> { - unsafe { prctl_2args(PR_CAPBSET_DROP, capability as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_SECUREBITS/PR_SET_SECUREBITS -// - -const PR_GET_SECUREBITS: c_int = 27; - -bitflags! { - /// `SECBIT_*`. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct CapabilitiesSecureBits: u32 { - /// If this bit is set, then the kernel does not grant capabilities - /// when a `set-user-ID-root` program is executed, or when a process - /// with an effective or real UID of 0 calls `execve`. - const NO_ROOT = 1_u32 << 0; - /// Set [`NO_ROOT`] irreversibly. - const NO_ROOT_LOCKED = 1_u32 << 1; - /// Setting this flag stops the kernel from adjusting the process' - /// permitted, effective, and ambient capability sets when the thread's - /// effective and filesystem UIDs are switched between zero and nonzero - /// values. - const NO_SETUID_FIXUP = 1_u32 << 2; - /// Set [`NO_SETUID_FIXUP`] irreversibly. - const NO_SETUID_FIXUP_LOCKED = 1_u32 << 3; - /// Setting this flag allows a thread that has one or more 0 UIDs to - /// retain capabilities in its permitted set when it switches all of - /// its UIDs to nonzero values. - const KEEP_CAPS = 1_u32 << 4; - /// Set [`KEEP_CAPS`] irreversibly. - const KEEP_CAPS_LOCKED = 1_u32 << 5; - /// Setting this flag disallows raising ambient capabilities via the - /// `prctl`'s `PR_CAP_AMBIENT_RAISE` operation. - const NO_CAP_AMBIENT_RAISE = 1_u32 << 6; - /// Set [`NO_CAP_AMBIENT_RAISE`] irreversibly. - const NO_CAP_AMBIENT_RAISE_LOCKED = 1_u32 << 7; - - /// - const _ = !0; - } -} - -/// Get the `securebits` flags of the calling thread. -/// -/// # References -/// - [`prctl(PR_GET_SECUREBITS,...)`] -/// -/// [`prctl(PR_GET_SECUREBITS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn capabilities_secure_bits() -> io::Result { - let r = unsafe { prctl_1arg(PR_GET_SECUREBITS)? } as c_uint; - CapabilitiesSecureBits::from_bits(r).ok_or(io::Errno::RANGE) -} - -const PR_SET_SECUREBITS: c_int = 28; - -/// Set the `securebits` flags of the calling thread. -/// -/// # References -/// - [`prctl(PR_SET_SECUREBITS,...)`] -/// -/// [`prctl(PR_SET_SECUREBITS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn set_capabilities_secure_bits(bits: CapabilitiesSecureBits) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_SECUREBITS, bits.bits() as usize as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_TIMERSLACK/PR_SET_TIMERSLACK -// - -const PR_GET_TIMERSLACK: c_int = 30; - -/// Get the `current` timer slack value of the calling thread. -/// -/// # References -/// - [`prctl(PR_GET_TIMERSLACK,...)`] -/// -/// [`prctl(PR_GET_TIMERSLACK,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn current_timer_slack() -> io::Result { - unsafe { prctl_1arg(PR_GET_TIMERSLACK) }.map(|r| r as u64) -} - -const PR_SET_TIMERSLACK: c_int = 29; - -/// Sets the `current` timer slack value for the calling thread. -/// -/// # References -/// - [`prctl(PR_SET_TIMERSLACK,...)`] -/// -/// [`prctl(PR_SET_TIMERSLACK,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn set_current_timer_slack(value: Option) -> io::Result<()> { - let value = usize::try_from(value.map_or(0, NonZeroU64::get)).map_err(|_r| io::Errno::RANGE)?; - unsafe { prctl_2args(PR_SET_TIMERSLACK, value as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_NO_NEW_PRIVS/PR_SET_NO_NEW_PRIVS -// - -const PR_GET_NO_NEW_PRIVS: c_int = 39; - -/// Get the value of the `no_new_privs` attribute for the calling thread. -/// -/// # References -/// - [`prctl(PR_GET_NO_NEW_PRIVS,...)`] -/// -/// [`prctl(PR_GET_NO_NEW_PRIVS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn no_new_privs() -> io::Result { - unsafe { prctl_1arg(PR_GET_NO_NEW_PRIVS) }.map(|r| r != 0) -} - -const PR_SET_NO_NEW_PRIVS: c_int = 38; - -/// Set the calling thread's `no_new_privs` attribute. -/// -/// # References -/// - [`prctl(PR_SET_NO_NEW_PRIVS,...)`] -/// -/// [`prctl(PR_SET_NO_NEW_PRIVS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn set_no_new_privs(no_new_privs: bool) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_NO_NEW_PRIVS, usize::from(no_new_privs) as *mut _) }.map(|_r| ()) -} - -// -// PR_GET_TID_ADDRESS -// - -const PR_GET_TID_ADDRESS: c_int = 40; - -/// Get the `clear_child_tid` address set by `set_tid_address` -/// and `clone`'s `CLONE_CHILD_CLEARTID` flag. -/// -/// # References -/// - [`prctl(PR_GET_TID_ADDRESS,...)`] -/// -/// [`prctl(PR_GET_TID_ADDRESS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn get_clear_child_tid_address() -> io::Result>> { - unsafe { prctl_get_at_arg2_optional::<*mut c_void>(PR_GET_TID_ADDRESS) }.map(NonNull::new) -} - -// -// PR_GET_THP_DISABLE/PR_SET_THP_DISABLE -// - -const PR_GET_THP_DISABLE: c_int = 42; - -/// Get the current setting of the `THP disable` flag for the calling thread. -/// -/// # References -/// - [`prctl(PR_GET_THP_DISABLE,...)`] -/// -/// [`prctl(PR_GET_THP_DISABLE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn transparent_huge_pages_are_disabled() -> io::Result { - unsafe { prctl_1arg(PR_GET_THP_DISABLE) }.map(|r| r != 0) -} - -const PR_SET_THP_DISABLE: c_int = 41; - -/// Set the state of the `THP disable` flag for the calling thread. -/// -/// # References -/// - [`prctl(PR_SET_THP_DISABLE,...)`] -/// -/// [`prctl(PR_SET_THP_DISABLE,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn disable_transparent_huge_pages(thp_disable: bool) -> io::Result<()> { - unsafe { prctl_2args(PR_SET_THP_DISABLE, usize::from(thp_disable) as *mut _) }.map(|_r| ()) -} - -// -// PR_CAP_AMBIENT -// - -const PR_CAP_AMBIENT: c_int = 47; - -const PR_CAP_AMBIENT_IS_SET: usize = 1; - -/// Check if the specified capability is in the ambient set. -/// -/// # References -/// - [`prctl(PR_CAP_AMBIENT,PR_CAP_AMBIENT_IS_SET,...)`] -/// -/// [`prctl(PR_CAP_AMBIENT,PR_CAP_AMBIENT_IS_SET,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn capability_is_in_ambient_set(capability: Capability) -> io::Result { - let cap = capability as usize as *mut _; - unsafe { prctl_3args(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET as *mut _, cap) }.map(|r| r != 0) -} - -const PR_CAP_AMBIENT_CLEAR_ALL: usize = 4; - -/// Remove all capabilities from the ambient set. -/// -/// # References -/// - [`prctl(PR_CAP_AMBIENT,PR_CAP_AMBIENT_CLEAR_ALL,...)`] -/// -/// [`prctl(PR_CAP_AMBIENT,PR_CAP_AMBIENT_CLEAR_ALL,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn clear_ambient_capability_set() -> io::Result<()> { - unsafe { prctl_2args(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL as *mut _) }.map(|_r| ()) -} - -const PR_CAP_AMBIENT_RAISE: usize = 2; -const PR_CAP_AMBIENT_LOWER: usize = 3; - -/// Add or remove the specified capability to the ambient set. -/// -/// # References -/// - [`prctl(PR_CAP_AMBIENT,...)`] -/// -/// [`prctl(PR_CAP_AMBIENT,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn configure_capability_in_ambient_set(capability: Capability, enable: bool) -> io::Result<()> { - let sub_operation = if enable { - PR_CAP_AMBIENT_RAISE - } else { - PR_CAP_AMBIENT_LOWER - }; - let cap = capability as usize as *mut _; - - unsafe { prctl_3args(PR_CAP_AMBIENT, sub_operation as *mut _, cap) }.map(|_r| ()) -} - -// -// PR_SVE_GET_VL/PR_SVE_SET_VL -// - -const PR_SVE_GET_VL: c_int = 51; - -const PR_SVE_VL_LEN_MASK: u32 = 0xffff; -const PR_SVE_VL_INHERIT: u32 = 1_u32 << 17; - -/// Scalable Vector Extension vector length configuration. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -pub struct SVEVectorLengthConfig { - /// Vector length in bytes. - pub vector_length_in_bytes: u32, - /// Vector length inherited across `execve`. - pub vector_length_inherited_across_execve: bool, -} - -/// Get the thread's current SVE vector length configuration. -/// -/// # References -/// - [`prctl(PR_SVE_GET_VL,...)`] -/// -/// [`prctl(PR_SVE_GET_VL,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn sve_vector_length_configuration() -> io::Result { - let bits = unsafe { prctl_1arg(PR_SVE_GET_VL)? } as c_uint; - Ok(SVEVectorLengthConfig { - vector_length_in_bytes: bits & PR_SVE_VL_LEN_MASK, - vector_length_inherited_across_execve: (bits & PR_SVE_VL_INHERIT) != 0, - }) -} - -const PR_SVE_SET_VL: c_int = 50; - -const PR_SVE_SET_VL_ONEXEC: u32 = 1_u32 << 18; - -/// Configure the thread's vector length of Scalable Vector Extension. -/// -/// # References -/// - [`prctl(PR_SVE_SET_VL,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SVE_SET_VL,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub unsafe fn set_sve_vector_length_configuration( - vector_length_in_bytes: usize, - vector_length_inherited_across_execve: bool, - defer_change_to_next_execve: bool, -) -> io::Result<()> { - let vector_length_in_bytes = - u32::try_from(vector_length_in_bytes).map_err(|_r| io::Errno::RANGE)?; - - let mut bits = vector_length_in_bytes & PR_SVE_VL_LEN_MASK; - - if vector_length_inherited_across_execve { - bits |= PR_SVE_VL_INHERIT; - } - - if defer_change_to_next_execve { - bits |= PR_SVE_SET_VL_ONEXEC; - } - - prctl_2args(PR_SVE_SET_VL, bits as usize as *mut _).map(|_r| ()) -} - -// -// PR_PAC_RESET_KEYS -// - -const PR_PAC_RESET_KEYS: c_int = 54; - -/// Securely reset the thread's pointer authentication keys to fresh random -/// values generated by the kernel. -/// -/// # References -/// - [`prctl(PR_PAC_RESET_KEYS,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_PAC_RESET_KEYS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub unsafe fn reset_pointer_authentication_keys( - keys: Option, -) -> io::Result<()> { - let keys = keys.as_ref().map_or(0_u32, PointerAuthenticationKeys::bits); - prctl_2args(PR_PAC_RESET_KEYS, keys as usize as *mut _).map(|_r| ()) -} - -// -// PR_GET_TAGGED_ADDR_CTRL/PR_SET_TAGGED_ADDR_CTRL -// - -const PR_GET_TAGGED_ADDR_CTRL: c_int = 56; - -const PR_MTE_TAG_SHIFT: u32 = 3; -const PR_MTE_TAG_MASK: u32 = 0xffff_u32 << PR_MTE_TAG_SHIFT; - -bitflags! { - /// Zero means addresses that are passed for the purpose of being dereferenced by the kernel must be untagged. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct TaggedAddressMode: u32 { - /// Addresses that are passed for the purpose of being dereferenced by the kernel may be tagged. - const ENABLED = 1_u32 << 0; - /// Synchronous tag check fault mode. - const TCF_SYNC = 1_u32 << 1; - /// Asynchronous tag check fault mode. - const TCF_ASYNC = 1_u32 << 2; - - /// - const _ = !0; - } -} - -/// Get the current tagged address mode for the calling thread. -/// -/// # References -/// - [`prctl(PR_GET_TAGGED_ADDR_CTRL,...)`] -/// -/// [`prctl(PR_GET_TAGGED_ADDR_CTRL,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub fn current_tagged_address_mode() -> io::Result<(Option, u32)> { - let r = unsafe { prctl_1arg(PR_GET_TAGGED_ADDR_CTRL)? } as c_uint; - let mode = r & 0b111_u32; - let mte_tag = (r & PR_MTE_TAG_MASK) >> PR_MTE_TAG_SHIFT; - Ok((TaggedAddressMode::from_bits(mode), mte_tag)) -} - -const PR_SET_TAGGED_ADDR_CTRL: c_int = 55; - -/// Controls support for passing tagged user-space addresses to the kernel. -/// -/// # References -/// - [`prctl(PR_SET_TAGGED_ADDR_CTRL,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SET_TAGGED_ADDR_CTRL,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub unsafe fn set_current_tagged_address_mode( - mode: Option, - mte_tag: u32, -) -> io::Result<()> { - let config = mode.as_ref().map_or(0_u32, TaggedAddressMode::bits) - | ((mte_tag << PR_MTE_TAG_SHIFT) & PR_MTE_TAG_MASK); - prctl_2args(PR_SET_TAGGED_ADDR_CTRL, config as usize as *mut _).map(|_r| ()) -} - -// -// PR_SET_SYSCALL_USER_DISPATCH -// - -const PR_SET_SYSCALL_USER_DISPATCH: c_int = 59; - -const PR_SYS_DISPATCH_OFF: usize = 0; - -/// Disable Syscall User Dispatch mechanism. -/// -/// # References -/// - [`prctl(PR_SET_SYSCALL_USER_DISPATCH,PR_SYS_DISPATCH_OFF,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SET_SYSCALL_USER_DISPATCH,PR_SYS_DISPATCH_OFF,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub unsafe fn disable_syscall_user_dispatch() -> io::Result<()> { - prctl_2args(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_OFF as *mut _).map(|_r| ()) -} - -const PR_SYS_DISPATCH_ON: usize = 1; - -/// Allow system calls to be executed. -const SYSCALL_DISPATCH_FILTER_ALLOW: u8 = 0; -/// Block system calls from executing. -const SYSCALL_DISPATCH_FILTER_BLOCK: u8 = 1; - -/// Value of the fast switch flag controlling system calls user dispatch -/// mechanism without the need to issue a syscall. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u8)] -pub enum SysCallUserDispatchFastSwitch { - /// System calls are allowed to execute. - Allow = SYSCALL_DISPATCH_FILTER_ALLOW, - /// System calls are blocked from executing. - Block = SYSCALL_DISPATCH_FILTER_BLOCK, -} - -impl TryFrom for SysCallUserDispatchFastSwitch { - type Error = io::Errno; - - fn try_from(value: u8) -> Result { - match value { - SYSCALL_DISPATCH_FILTER_ALLOW => Ok(Self::Allow), - SYSCALL_DISPATCH_FILTER_BLOCK => Ok(Self::Block), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Enable Syscall User Dispatch mechanism. -/// -/// # References -/// - [`prctl(PR_SET_SYSCALL_USER_DISPATCH,PR_SYS_DISPATCH_ON,...)`] -/// -/// # Safety -/// -/// Please ensure the conditions necessary to safely call this function, -/// as detailed in the references above. -/// -/// [`prctl(PR_SET_SYSCALL_USER_DISPATCH,PR_SYS_DISPATCH_ON,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html -#[inline] -pub unsafe fn enable_syscall_user_dispatch( - always_allowed_region: &[u8], - fast_switch_flag: &AtomicU8, -) -> io::Result<()> { - syscalls::prctl( - PR_SET_SYSCALL_USER_DISPATCH, - PR_SYS_DISPATCH_ON as *mut _, - always_allowed_region.as_ptr() as *mut _, - always_allowed_region.len() as *mut _, - as_ptr(fast_switch_flag) as *mut _, - ) - .map(|_r| ()) -} - -// -// PR_SCHED_CORE -// - -const PR_SCHED_CORE: c_int = 62; - -const PR_SCHED_CORE_GET: usize = 0; - -const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; -const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; -const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; - -/// `PR_SCHED_CORE_SCOPE_*`. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum CoreSchedulingScope { - /// Operation will be performed for the thread. - Thread = PR_SCHED_CORE_SCOPE_THREAD, - /// Operation will be performed for all tasks in the task group of the - /// process. - ThreadGroup = PR_SCHED_CORE_SCOPE_THREAD_GROUP, - /// Operation will be performed for all processes in the process group. - ProcessGroup = PR_SCHED_CORE_SCOPE_PROCESS_GROUP, -} - -impl TryFrom for CoreSchedulingScope { - type Error = io::Errno; - - fn try_from(value: u32) -> Result { - match value { - PR_SCHED_CORE_SCOPE_THREAD => Ok(Self::Thread), - PR_SCHED_CORE_SCOPE_THREAD_GROUP => Ok(Self::ThreadGroup), - PR_SCHED_CORE_SCOPE_PROCESS_GROUP => Ok(Self::ProcessGroup), - _ => Err(io::Errno::RANGE), - } - } -} - -/// Get core scheduling cookie of a process. -/// -/// # References -/// - [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_GET,...)`] -/// -/// [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_GET,...)`]: https://www.kernel.org/doc/html/v5.18/admin-guide/hw-vuln/core-scheduling.html -#[inline] -pub fn core_scheduling_cookie(pid: Pid, scope: CoreSchedulingScope) -> io::Result { - let mut value: MaybeUninit = MaybeUninit::uninit(); - unsafe { - syscalls::prctl( - PR_SCHED_CORE, - PR_SCHED_CORE_GET as *mut _, - pid.as_raw_nonzero().get() as usize as *mut _, - scope as usize as *mut _, - value.as_mut_ptr().cast(), - )?; - Ok(value.assume_init()) - } -} - -const PR_SCHED_CORE_CREATE: usize = 1; - -/// Create unique core scheduling cookie. -/// -/// # References -/// - [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_CREATE,...)`] -/// -/// [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_CREATE,...)`]: https://www.kernel.org/doc/html/v5.18/admin-guide/hw-vuln/core-scheduling.html -#[inline] -pub fn create_core_scheduling_cookie(pid: Pid, scope: CoreSchedulingScope) -> io::Result<()> { - unsafe { - syscalls::prctl( - PR_SCHED_CORE, - PR_SCHED_CORE_CREATE as *mut _, - pid.as_raw_nonzero().get() as usize as *mut _, - scope as usize as *mut _, - ptr::null_mut(), - ) - .map(|_r| ()) - } -} - -const PR_SCHED_CORE_SHARE_TO: usize = 2; - -/// Push core scheduling cookie to a process. -/// -/// # References -/// - [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_SHARE_TO,...)`] -/// -/// [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_SHARE_TO,...)`]: https://www.kernel.org/doc/html/v5.18/admin-guide/hw-vuln/core-scheduling.html -#[inline] -pub fn push_core_scheduling_cookie(pid: Pid, scope: CoreSchedulingScope) -> io::Result<()> { - unsafe { - syscalls::prctl( - PR_SCHED_CORE, - PR_SCHED_CORE_SHARE_TO as *mut _, - pid.as_raw_nonzero().get() as usize as *mut _, - scope as usize as *mut _, - ptr::null_mut(), - ) - .map(|_r| ()) - } -} - -const PR_SCHED_CORE_SHARE_FROM: usize = 3; - -/// Pull core scheduling cookie from a process. -/// -/// # References -/// - [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_SHARE_FROM,...)`] -/// -/// [`prctl(PR_SCHED_CORE,PR_SCHED_CORE_SHARE_FROM,...)`]: https://www.kernel.org/doc/html/v5.18/admin-guide/hw-vuln/core-scheduling.html -#[inline] -pub fn pull_core_scheduling_cookie(pid: Pid, scope: CoreSchedulingScope) -> io::Result<()> { - unsafe { - syscalls::prctl( - PR_SCHED_CORE, - PR_SCHED_CORE_SHARE_FROM as *mut _, - pid.as_raw_nonzero().get() as usize as *mut _, - scope as usize as *mut _, - ptr::null_mut(), - ) - .map(|_r| ()) - } -} diff --git a/third_party/rust/rustix/src/thread/setns.rs b/third_party/rust/rustix/src/thread/setns.rs deleted file mode 100644 index 4568912b2269..000000000000 --- a/third_party/rust/rustix/src/thread/setns.rs +++ /dev/null @@ -1,137 +0,0 @@ -use bitflags::bitflags; -use linux_raw_sys::general::{ - CLONE_FILES, CLONE_FS, CLONE_NEWCGROUP, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, - CLONE_NEWTIME, CLONE_NEWUSER, CLONE_NEWUTS, CLONE_SYSVSEM, -}; - -use crate::backend::c::c_int; -use crate::backend::thread::syscalls; -use crate::fd::BorrowedFd; -use crate::io; - -bitflags! { - /// Thread name space type. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct ThreadNameSpaceType: u32 { - /// Time name space. - const TIME = CLONE_NEWTIME; - /// Mount name space. - const MOUNT = CLONE_NEWNS; - /// Control group (CGroup) name space. - const CONTROL_GROUP = CLONE_NEWCGROUP; - /// `Host name` and `NIS domain name` (UTS) name space. - const HOST_NAME_AND_NIS_DOMAIN_NAME = CLONE_NEWUTS; - /// Inter-process communication (IPC) name space. - const INTER_PROCESS_COMMUNICATION = CLONE_NEWIPC; - /// User name space. - const USER = CLONE_NEWUSER; - /// Process ID name space. - const PROCESS_ID = CLONE_NEWPID; - /// Network name space. - const NETWORK = CLONE_NEWNET; - - /// - const _ = !0; - } -} - -/// Type of name space referred to by a link. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[repr(u32)] -pub enum LinkNameSpaceType { - /// Time name space. - Time = CLONE_NEWTIME, - /// Mount name space. - Mount = CLONE_NEWNS, - /// Control group (CGroup) name space. - ControlGroup = CLONE_NEWCGROUP, - /// `Host name` and `NIS domain name` (UTS) name space. - HostNameAndNISDomainName = CLONE_NEWUTS, - /// Inter-process communication (IPC) name space. - InterProcessCommunication = CLONE_NEWIPC, - /// User name space. - User = CLONE_NEWUSER, - /// Process ID name space. - ProcessID = CLONE_NEWPID, - /// Network name space. - Network = CLONE_NEWNET, -} - -bitflags! { - /// `CLONE_*` for use with [`unshare`]. - #[repr(transparent)] - #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] - pub struct UnshareFlags: u32 { - /// `CLONE_FILES`. - const FILES = CLONE_FILES; - /// `CLONE_FS`. - const FS = CLONE_FS; - /// `CLONE_NEWCGROUP`. - const NEWCGROUP = CLONE_NEWCGROUP; - /// `CLONE_NEWIPC`. - const NEWIPC = CLONE_NEWIPC; - /// `CLONE_NEWNET`. - const NEWNET = CLONE_NEWNET; - /// `CLONE_NEWNS`. - const NEWNS = CLONE_NEWNS; - /// `CLONE_NEWPID`. - const NEWPID = CLONE_NEWPID; - /// `CLONE_NEWTIME`. - const NEWTIME = CLONE_NEWTIME; - /// `CLONE_NEWUSER`. - const NEWUSER = CLONE_NEWUSER; - /// `CLONE_NEWUTS` - const NEWUTS = CLONE_NEWUTS; - /// `CLONE_SYSVSEM`. - const SYSVSEM = CLONE_SYSVSEM; - - /// - const _ = !0; - } -} - -/// Reassociate the calling thread with the namespace associated with link -/// referred to by `fd`. -/// -/// `fd` must refer to one of the magic links in a `/proc/[pid]/ns/` directory, -/// or a bind mount to such a link. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/setns.2.html -pub fn move_into_link_name_space( - fd: BorrowedFd<'_>, - allowed_type: Option, -) -> io::Result<()> { - let allowed_type = allowed_type.map_or(0, |t| t as c_int); - syscalls::setns(fd, allowed_type).map(|_r| ()) -} - -/// Atomically move the calling thread into one or more of the same namespaces -/// as the thread referred to by `fd`. -/// -/// `fd` must refer to a thread ID. See: `pidfd_open` and `clone`. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/setns.2.html -pub fn move_into_thread_name_spaces( - fd: BorrowedFd<'_>, - allowed_types: ThreadNameSpaceType, -) -> io::Result<()> { - syscalls::setns(fd, allowed_types.bits() as c_int).map(|_r| ()) -} - -/// `unshare(flags)`—Disassociate parts of the current thread's execution -/// context with other threads. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/unshare.2.html -pub fn unshare(flags: UnshareFlags) -> io::Result<()> { - syscalls::unshare(flags) -} diff --git a/third_party/rust/rustix/src/time/clock.rs b/third_party/rust/rustix/src/time/clock.rs deleted file mode 100644 index db585d1cc29b..000000000000 --- a/third_party/rust/rustix/src/time/clock.rs +++ /dev/null @@ -1,108 +0,0 @@ -use crate::{backend, io}; - -pub use crate::timespec::{Nsecs, Secs, Timespec}; - -/// `clockid_t` -#[cfg(not(target_os = "wasi"))] -pub use crate::clockid::{ClockId, DynamicClockId}; - -/// `clock_getres(id)`—Returns the resolution of a clock. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html -/// [Linux]: https://man7.org/linux/man-pages/man2/clock_getres.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=clock_getres&sektion=2 -/// [NetBSD]: https://man.netbsd.org/clock_getres.2 -/// [OpenBSD]: https://man.openbsd.org/clock_getres.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=clock_getres§ion=2 -/// [illumos]: https://illumos.org/man/3C/clock_getres -#[cfg(not(any(target_os = "redox", target_os = "wasi")))] -#[inline] -#[must_use] -pub fn clock_getres(id: ClockId) -> Timespec { - backend::time::syscalls::clock_getres(id) -} - -/// `clock_gettime(id)`—Returns the current value of a clock. -/// -/// This function uses `ClockId` which only contains clocks which are known to -/// always be supported at runtime, allowing this function to be infallible. -/// For a greater set of clocks and dynamic clock support, see -/// [`clock_gettime_dynamic`]. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_gettime.html -/// [Linux]: https://man7.org/linux/man-pages/man2/clock_gettime.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=clock_getres&sektion=2 -/// [NetBSD]: https://man.netbsd.org/clock_getres.2 -/// [OpenBSD]: https://man.openbsd.org/clock_getres.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=clock_getres§ion=2 -/// [illumos]: https://illumos.org/man/3C/clock_gettime -#[cfg(not(target_os = "wasi"))] -#[inline] -#[must_use] -pub fn clock_gettime(id: ClockId) -> Timespec { - backend::time::syscalls::clock_gettime(id) -} - -/// Like [`clock_gettime`] but with support for dynamic clocks. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_gettime.html -/// [Linux]: https://man7.org/linux/man-pages/man2/clock_gettime.2.html -#[cfg(not(target_os = "wasi"))] -#[inline] -pub fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result { - backend::time::syscalls::clock_gettime_dynamic(id) -} - -/// `clock_settime(id, timespec)`—Sets the current value of a settable clock. -/// -/// This fails with [`io::Errno::INVAL`] if the clock is not settable, and -/// [`io::Errno::ACCESS`] if the current process does not have permission to -/// set it. -/// -/// # References -/// - [POSIX] -/// - [Linux] -/// - [FreeBSD] -/// - [NetBSD] -/// - [OpenBSD] -/// - [DragonFly BSD] -/// - [illumos] -/// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_settime.html -/// [Linux]: https://man7.org/linux/man-pages/man2/clock_settime.2.html -/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=clock_settime&sektion=2 -/// [NetBSD]: https://man.netbsd.org/clock_settime.2 -/// [OpenBSD]: https://man.openbsd.org/clock_settime.2 -/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=clock_settime§ion=2 -/// [illumos]: https://illumos.org/man/3C/clock_settime -#[cfg(not(any( - target_os = "redox", - target_os = "wasi", - all(apple, not(target_os = "macos")) -)))] -#[inline] -pub fn clock_settime(id: ClockId, timespec: Timespec) -> io::Result<()> { - backend::time::syscalls::clock_settime(id, timespec) -} diff --git a/third_party/rust/rustix/src/time/mod.rs b/third_party/rust/rustix/src/time/mod.rs deleted file mode 100644 index c633e767f643..000000000000 --- a/third_party/rust/rustix/src/time/mod.rs +++ /dev/null @@ -1,11 +0,0 @@ -//! Time-related operations. - -mod clock; -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -mod timerfd; - -// TODO: Convert WASI'S clock APIs to use handles rather than ambient clock -// identifiers, update `wasi-libc`, and then add support in `rustix`. -pub use clock::*; -#[cfg(any(linux_kernel, target_os = "fuchsia"))] -pub use timerfd::*; diff --git a/third_party/rust/rustix/src/time/timerfd.rs b/third_party/rust/rustix/src/time/timerfd.rs deleted file mode 100644 index 7f661f7d92a0..000000000000 --- a/third_party/rust/rustix/src/time/timerfd.rs +++ /dev/null @@ -1,41 +0,0 @@ -use crate::fd::{AsFd, OwnedFd}; -use crate::{backend, io}; - -pub use backend::time::types::{Itimerspec, TimerfdClockId, TimerfdFlags, TimerfdTimerFlags}; - -/// `timerfd_create(clockid, flags)`—Create a timer. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/timerfd_create.2.html -#[inline] -pub fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result { - backend::time::syscalls::timerfd_create(clockid, flags) -} - -/// `timerfd_settime(clockid, flags, new_value)`—Set the time on a timer. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/timerfd_settime.2.html -#[inline] -pub fn timerfd_settime( - fd: Fd, - flags: TimerfdTimerFlags, - new_value: &Itimerspec, -) -> io::Result { - backend::time::syscalls::timerfd_settime(fd.as_fd(), flags, new_value) -} - -/// `timerfd_gettime(clockid, flags)`—Query a timer. -/// -/// # References -/// - [Linux] -/// -/// [Linux]: https://man7.org/linux/man-pages/man2/timerfd_gettime.2.html -#[inline] -pub fn timerfd_gettime(fd: Fd) -> io::Result { - backend::time::syscalls::timerfd_gettime(fd.as_fd()) -} diff --git a/third_party/rust/rustix/src/timespec.rs b/third_party/rust/rustix/src/timespec.rs deleted file mode 100644 index 51c2d2443d66..000000000000 --- a/third_party/rust/rustix/src/timespec.rs +++ /dev/null @@ -1,110 +0,0 @@ -//! `Timespec` and related types, which are used by multiple public API -//! modules. - -use crate::backend::c; - -/// `struct timespec` -#[cfg(not(fix_y2038))] -pub type Timespec = c::timespec; - -/// `struct timespec` -#[cfg(fix_y2038)] -#[derive(Debug, Clone, Copy)] -#[repr(C)] -pub struct Timespec { - /// Seconds. - pub tv_sec: Secs, - - /// Nanoseconds. Must be less than 1_000_000_000. - pub tv_nsec: Nsecs, -} - -/// A type for the `tv_sec` field of [`Timespec`]. -#[cfg(not(fix_y2038))] -#[allow(deprecated)] -pub type Secs = c::time_t; - -/// A type for the `tv_sec` field of [`Timespec`]. -#[cfg(fix_y2038)] -pub type Secs = i64; - -/// A type for the `tv_nsec` field of [`Timespec`]. -#[cfg(all(libc, target_arch = "x86_64", target_pointer_width = "32"))] -pub type Nsecs = i64; - -/// A type for the `tv_nsec` field of [`Timespec`]. -#[cfg(all(libc, not(all(target_arch = "x86_64", target_pointer_width = "32"))))] -pub type Nsecs = c::c_long; - -/// A type for the `tv_nsec` field of [`Timespec`]. -#[cfg(linux_raw)] -pub type Nsecs = i64; - -/// On 32-bit glibc platforms, `timespec` has anonymous padding fields, which -/// Rust doesn't support yet (see `unnamed_fields`), so we define our own -/// struct with explicit padding, with bidirectional `From` impls. -#[cfg(fix_y2038)] -#[repr(C)] -#[derive(Debug, Clone)] -pub(crate) struct LibcTimespec { - pub(crate) tv_sec: Secs, - - #[cfg(target_endian = "big")] - padding: core::mem::MaybeUninit, - - pub(crate) tv_nsec: Nsecs, - - #[cfg(target_endian = "little")] - padding: core::mem::MaybeUninit, -} - -#[cfg(fix_y2038)] -impl From for Timespec { - #[inline] - fn from(t: LibcTimespec) -> Self { - Self { - tv_sec: t.tv_sec, - tv_nsec: t.tv_nsec, - } - } -} - -#[cfg(fix_y2038)] -impl From for LibcTimespec { - #[inline] - fn from(t: Timespec) -> Self { - Self { - tv_sec: t.tv_sec, - tv_nsec: t.tv_nsec, - padding: core::mem::MaybeUninit::uninit(), - } - } -} - -#[test] -fn test_sizes() { - assert_eq_size!(Secs, u64); - const_assert!(core::mem::size_of::() >= core::mem::size_of::<(u64, u32)>()); - const_assert!(core::mem::size_of::() >= 4); - - let mut t = Timespec { - tv_sec: 0, - tv_nsec: 0, - }; - - // `tv_nsec` needs to be able to hold nanoseconds up to a second. - t.tv_nsec = 999_999_999_u32 as _; - assert_eq!(t.tv_nsec as u64, 999_999_999_u64); - - // `tv_sec` needs to be able to hold more than 32-bits of seconds. - t.tv_sec = 0x1_0000_0000_u64 as _; - assert_eq!(t.tv_sec as u64, 0x1_0000_0000_u64); -} - -// Test that our workarounds are needed. -#[cfg(fix_y2038)] -#[test] -#[allow(deprecated)] -fn test_fix_y2038() { - assert_eq_size!(libc::time_t, u32); -} diff --git a/third_party/rust/rustix/src/ugid.rs b/third_party/rust/rustix/src/ugid.rs deleted file mode 100644 index 57cc666dd177..000000000000 --- a/third_party/rust/rustix/src/ugid.rs +++ /dev/null @@ -1,98 +0,0 @@ -//! User and Group ID types. - -#![allow(unsafe_code)] - -use crate::backend::c; - -/// A group identifier as a raw integer. -#[cfg(not(target_os = "wasi"))] -pub type RawGid = c::gid_t; -/// A user identifier as a raw integer. -#[cfg(not(target_os = "wasi"))] -pub type RawUid = c::uid_t; - -/// `uid_t`—A Unix user ID. -#[repr(transparent)] -#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)] -pub struct Uid(RawUid); - -/// `gid_t`—A Unix group ID. -#[repr(transparent)] -#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)] -pub struct Gid(RawGid); - -impl Uid { - /// A `Uid` corresponding to the root user (uid 0). - pub const ROOT: Self = Self(0); - - /// Converts a `RawUid` into a `Uid`. - /// - /// # Safety - /// - /// `raw` must be the value of a valid Unix user ID. - #[inline] - pub const unsafe fn from_raw(raw: RawUid) -> Self { - Self(raw) - } - - /// Converts a `Uid` into a `RawUid`. - #[inline] - pub const fn as_raw(self) -> RawUid { - self.0 - } - - /// Test whether this uid represents the root user (uid 0). - #[inline] - pub const fn is_root(self) -> bool { - self.0 == Self::ROOT.0 - } -} - -impl Gid { - /// A `Gid` corresponding to the root group (gid 0). - pub const ROOT: Self = Self(0); - - /// Converts a `RawGid` into a `Gid`. - /// - /// # Safety - /// - /// `raw` must be the value of a valid Unix group ID. - #[inline] - pub const unsafe fn from_raw(raw: RawGid) -> Self { - Self(raw) - } - - /// Converts a `Gid` into a `RawGid`. - #[inline] - pub const fn as_raw(self) -> RawGid { - self.0 - } - - /// Test whether this gid represents the root group (gid 0). - #[inline] - pub const fn is_root(self) -> bool { - self.0 == Self::ROOT.0 - } -} - -// Return the raw value of the IDs. In case of `None` it returns `!0` since it -// has the same bit pattern as `-1` indicating no change to the owner/group ID. -pub(crate) fn translate_fchown_args(owner: Option, group: Option) -> (RawUid, RawGid) { - let ow = match owner { - Some(o) => o.as_raw(), - None => !0, - }; - - let gr = match group { - Some(g) => g.as_raw(), - None => !0, - }; - - (ow, gr) -} - -#[test] -fn test_sizes() { - assert_eq_size!(RawUid, u32); - assert_eq_size!(RawGid, u32); -} diff --git a/third_party/rust/rustix/src/utils.rs b/third_party/rust/rustix/src/utils.rs deleted file mode 100644 index d21ed88b6ae2..000000000000 --- a/third_party/rust/rustix/src/utils.rs +++ /dev/null @@ -1,82 +0,0 @@ -//! Miscellaneous minor utilities. - -#![allow(dead_code)] -#![allow(unused_macros)] - -use core::ffi::c_void; -use core::mem::{align_of, size_of}; -use core::ptr::{null, null_mut, NonNull}; - -/// Convert a `&T` into a `*const T` without using an `as`. -#[inline] -pub(crate) const fn as_ptr(t: &T) -> *const T { - t -} - -/// Convert a `&mut T` into a `*mut T` without using an `as`. -#[inline] -pub(crate) fn as_mut_ptr(t: &mut T) -> *mut T { - t -} - -/// Convert an `Option<&T>` into a possibly-null `*const T`. -#[inline] -pub(crate) const fn option_as_ptr(t: Option<&T>) -> *const T { - match t { - Some(t) => t, - None => null(), - } -} - -/// Convert an `Option<&mut T>` into a possibly-null `*mut T`. -#[inline] -pub(crate) fn option_as_mut_ptr(t: Option<&mut T>) -> *mut T { - match t { - Some(t) => t, - None => null_mut(), - } -} - -/// Convert a `*mut c_void` to a `*mut T`, checking that it is not null, -/// misaligned, or pointing to a region of memory that wraps around the address -/// space. -pub(crate) fn check_raw_pointer(value: *mut c_void) -> Option> { - if (value as usize).checked_add(size_of::()).is_none() - || (value as usize) % align_of::() != 0 - { - return None; - } - - NonNull::new(value.cast()) -} - -/// Create an array value containing all default values, inferring the type. -#[inline] -pub(crate) fn default_array() -> [T; N] { - [T::default(); N] -} - -/// Create a union value containing a default value in one of its arms. -/// -/// The field names a union field which must have the same size as the union -/// itself. -macro_rules! default_union { - ($union:ident, $field:ident) => {{ - let u = $union { - $field: Default::default(), - }; - - // Assert that the given field initializes the whole union. - #[cfg(test)] - unsafe { - let field_value = u.$field; - assert_eq!( - core::mem::size_of_val(&u), - core::mem::size_of_val(&field_value) - ); - const_assert_eq!(memoffset::offset_of_union!($union, $field), 0); - } - - u - }}; -} diff --git a/third_party/rust/rustix/src/weak.rs b/third_party/rust/rustix/src/weak.rs deleted file mode 100644 index 3cda8e6c973d..000000000000 --- a/third_party/rust/rustix/src/weak.rs +++ /dev/null @@ -1,286 +0,0 @@ -// Implementation derived from `weak` in Rust's -// library/std/src/sys/unix/weak.rs at revision -// fd0cb0cdc21dd9c06025277d772108f8d42cb25f. -// -// Ideally we should update to a newer version which doesn't need `dlsym`, -// however that depends on the `extern_weak` feature which is currently -// unstable. - -#![cfg_attr(linux_raw, allow(unsafe_code))] - -//! Support for "weak linkage" to symbols on Unix -//! -//! Some I/O operations we do in libstd require newer versions of OSes but we -//! need to maintain binary compatibility with older releases for now. In order -//! to use the new functionality when available we use this module for -//! detection. -//! -//! One option to use here is weak linkage, but that is unfortunately only -//! really workable on Linux. Hence, use dlsym to get the symbol value at -//! runtime. This is also done for compatibility with older versions of glibc, -//! and to avoid creating dependencies on `GLIBC_PRIVATE` symbols. It assumes -//! that we've been dynamically linked to the library the symbol comes from, -//! but that is currently always the case for things like libpthread/libc. -//! -//! A long time ago this used weak linkage for the `__pthread_get_minstack` -//! symbol, but that caused Debian to detect an unnecessarily strict versioned -//! dependency on libc6 (#23628). - -// There are a variety of `#[cfg]`s controlling which targets are involved in -// each instance of `weak!` and `syscall!`. Rather than trying to unify all of -// that, we'll just allow that some unix targets don't use this module at all. -#![allow(dead_code, unused_macros)] -#![allow(clippy::doc_markdown)] - -use crate::ffi::CStr; -use core::ffi::c_void; -use core::ptr::null_mut; -use core::sync::atomic::{self, AtomicPtr, Ordering}; -use core::{marker, mem}; - -const NULL: *mut c_void = null_mut(); -const INVALID: *mut c_void = 1 as *mut c_void; - -macro_rules! weak { - ($vis:vis fn $name:ident($($t:ty),*) -> $ret:ty) => ( - #[allow(non_upper_case_globals)] - $vis static $name: $crate::weak::Weak $ret> = - $crate::weak::Weak::new(concat!(stringify!($name), '\0')); - ) -} - -pub(crate) struct Weak { - name: &'static str, - addr: AtomicPtr, - _marker: marker::PhantomData, -} - -impl Weak { - pub(crate) const fn new(name: &'static str) -> Self { - Self { - name, - addr: AtomicPtr::new(INVALID), - _marker: marker::PhantomData, - } - } - - pub(crate) fn get(&self) -> Option { - assert_eq!(mem::size_of::(), mem::size_of::()); - unsafe { - // Relaxed is fine here because we fence before reading through the - // pointer (see the comment below). - match self.addr.load(Ordering::Relaxed) { - INVALID => self.initialize(), - NULL => None, - addr => { - let func = mem::transmute_copy::<*mut c_void, F>(&addr); - // The caller is presumably going to read through this value - // (by calling the function we've dlsymed). This means we'd - // need to have loaded it with at least C11's consume - // ordering in order to be guaranteed that the data we read - // from the pointer isn't from before the pointer was - // stored. Rust has no equivalent to memory_order_consume, - // so we use an acquire fence (sorry, ARM). - // - // Now, in practice this likely isn't needed even on CPUs - // where relaxed and consume mean different things. The - // symbols we're loading are probably present (or not) at - // init, and even if they aren't the runtime dynamic loader - // is extremely likely have sufficient barriers internally - // (possibly implicitly, for example the ones provided by - // invoking `mprotect`). - // - // That said, none of that's *guaranteed*, and so we fence. - atomic::fence(Ordering::Acquire); - Some(func) - } - } - } - } - - // Cold because it should only happen during first-time initialization. - #[cold] - unsafe fn initialize(&self) -> Option { - let val = fetch(self.name); - // This synchronizes with the acquire fence in `get`. - self.addr.store(val, Ordering::Release); - - match val { - NULL => None, - addr => Some(mem::transmute_copy::<*mut c_void, F>(&addr)), - } - } -} - -// To avoid having the `linux_raw` backend depend on the libc crate, just -// declare the few things we need in a module called `libc` so that `fetch` -// uses it. -#[cfg(linux_raw)] -mod libc { - use core::ptr; - use linux_raw_sys::ctypes::{c_char, c_void}; - - #[cfg(all(target_os = "android", target_pointer_width = "32"))] - pub(super) const RTLD_DEFAULT: *mut c_void = -1isize as *mut c_void; - #[cfg(not(all(target_os = "android", target_pointer_width = "32")))] - pub(super) const RTLD_DEFAULT: *mut c_void = ptr::null_mut(); - - extern "C" { - pub(super) fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void; - } - - #[test] - fn test_abi() { - assert_eq!(self::RTLD_DEFAULT, ::libc::RTLD_DEFAULT); - } -} - -unsafe fn fetch(name: &str) -> *mut c_void { - let name = match CStr::from_bytes_with_nul(name.as_bytes()) { - Ok(c_str) => c_str, - Err(..) => return null_mut(), - }; - libc::dlsym(libc::RTLD_DEFAULT, name.as_ptr().cast()) -} - -#[cfg(not(linux_kernel))] -macro_rules! syscall { - (fn $name:ident($($arg_name:ident: $t:ty),*) via $_sys_name:ident -> $ret:ty) => ( - unsafe fn $name($($arg_name: $t),*) -> $ret { - weak! { fn $name($($t),*) -> $ret } - - if let Some(fun) = $name.get() { - fun($($arg_name),*) - } else { - libc_errno::set_errno(libc_errno::Errno(libc::ENOSYS)); - -1 - } - } - ) -} - -#[cfg(linux_kernel)] -macro_rules! syscall { - (fn $name:ident($($arg_name:ident: $t:ty),*) via $sys_name:ident -> $ret:ty) => ( - unsafe fn $name($($arg_name:$t),*) -> $ret { - // This looks like a hack, but `concat_idents` only accepts idents - // (not paths). - use libc::*; - - trait AsSyscallArg { - type SyscallArgType; - fn into_syscall_arg(self) -> Self::SyscallArgType; - } - - // Pass pointer types as pointers, to preserve provenance. - impl AsSyscallArg for *mut T { - type SyscallArgType = *mut T; - fn into_syscall_arg(self) -> Self::SyscallArgType { self } - } - impl AsSyscallArg for *const T { - type SyscallArgType = *const T; - fn into_syscall_arg(self) -> Self::SyscallArgType { self } - } - - // Pass `BorrowedFd` values as the integer value. - impl AsSyscallArg for $crate::fd::BorrowedFd<'_> { - type SyscallArgType = ::libc::c_int; - fn into_syscall_arg(self) -> Self::SyscallArgType { - $crate::fd::AsRawFd::as_raw_fd(&self) as _ - } - } - - // Coerce integer values into `c_long`. - impl AsSyscallArg for i8 { - type SyscallArgType = ::libc::c_int; - fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } - } - impl AsSyscallArg for u8 { - type SyscallArgType = ::libc::c_int; - fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } - } - impl AsSyscallArg for i16 { - type SyscallArgType = ::libc::c_int; - fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } - } - impl AsSyscallArg for u16 { - type SyscallArgType = ::libc::c_int; - fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } - } - impl AsSyscallArg for i32 { - type SyscallArgType = ::libc::c_int; - fn into_syscall_arg(self) -> Self::SyscallArgType { self } - } - impl AsSyscallArg for u32 { - type SyscallArgType = ::libc::c_uint; - fn into_syscall_arg(self) -> Self::SyscallArgType { self } - } - impl AsSyscallArg for usize { - type SyscallArgType = ::libc::c_ulong; - fn into_syscall_arg(self) -> Self::SyscallArgType { self as _ } - } - - // On 64-bit platforms, also coerce `i64` and `u64` since `c_long` - // is 64-bit and can hold those values. - #[cfg(target_pointer_width = "64")] - impl AsSyscallArg for i64 { - type SyscallArgType = ::libc::c_long; - fn into_syscall_arg(self) -> Self::SyscallArgType { self } - } - #[cfg(target_pointer_width = "64")] - impl AsSyscallArg for u64 { - type SyscallArgType = ::libc::c_ulong; - fn into_syscall_arg(self) -> Self::SyscallArgType { self } - } - - // `concat_idents` is [unstable], so we take an extra `sys_name` - // parameter and have our users do the concat for us for now. - // - // [unstable]: https://github.com/rust-lang/rust/issues/29599 - /* - syscall( - concat_idents!(SYS_, $name), - $($arg_name.into_syscall_arg()),* - ) as $ret - */ - - syscall($sys_name, $($arg_name.into_syscall_arg()),*) as $ret - } - ) -} - -macro_rules! weakcall { - ($vis:vis fn $name:ident($($arg_name:ident: $t:ty),*) -> $ret:ty) => ( - $vis unsafe fn $name($($arg_name: $t),*) -> $ret { - weak! { fn $name($($t),*) -> $ret } - - // Use a weak symbol from libc when possible, allowing `LD_PRELOAD` - // interposition, but if it's not found just fail. - if let Some(fun) = $name.get() { - fun($($arg_name),*) - } else { - libc_errno::set_errno(libc_errno::Errno(libc::ENOSYS)); - -1 - } - } - ) -} - -/// A combination of `weakcall` and `syscall`. Use the libc function if it's -/// available, and fall back to `libc::syscall` otherwise. -macro_rules! weak_or_syscall { - ($vis:vis fn $name:ident($($arg_name:ident: $t:ty),*) via $sys_name:ident -> $ret:ty) => ( - $vis unsafe fn $name($($arg_name: $t),*) -> $ret { - weak! { fn $name($($t),*) -> $ret } - - // Use a weak symbol from libc when possible, allowing `LD_PRELOAD` - // interposition, but if it's not found just fail. - if let Some(fun) = $name.get() { - fun($($arg_name),*) - } else { - syscall! { fn $name($($arg_name: $t),*) via $sys_name -> $ret } - $name($($arg_name),*) - } - } - ) -} diff --git a/third_party/rust/tempfile/.cargo-checksum.json b/third_party/rust/tempfile/.cargo-checksum.json dissimilarity index 100% index 67b780b7b6c2..26f8560bcde5 100644 --- a/third_party/rust/tempfile/.cargo-checksum.json +++ b/third_party/rust/tempfile/.cargo-checksum.json @@ -1 +1 @@ -{"files":{"CHANGELOG.md":"14cb935001b72d1da431865d0e618b58ca962cc17c8be6bcd9cf4e1699f58b7d","Cargo.toml":"285d4565218bd4a8e5d36cb9b12ece4b8bb9c91d3357e75708acb0ca2f414b49","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"8b427f5bc501764575e52ba4f9d95673cf8f6d80a86d0d06599852e1a9a20a36","README.md":"972f1c35ec653943e067fd2c3d09e78f593b2e9e1eafd5b9668bf3653513de3e","src/dir.rs":"3b515f42feb934ba83ba56d506116e5e932c6b863b764fd61d26994eff28700a","src/error.rs":"cc7d8eace0fff11cb342158d2885d5637bfb14b24ef30755e808554772039c5f","src/file/imp/mod.rs":"f6da9fcd93f11889670a251fdd8231b5f4614e5a971b7b183f52b44af68568d5","src/file/imp/other.rs":"501cd1b444a5821127ea831fc8018706148f2d9f47c478f502b069963a42a2c7","src/file/imp/unix.rs":"0fa63a8b831947fdc7307e889d129adef6f47b19965b963a5e25d70cb3106e62","src/file/imp/windows.rs":"fa4211087c36290064de9a41b5e533e4e8c24a10fb8f8908835a67e00555c06e","src/file/mod.rs":"f417e0e8637116e50de201581b1dfe8feb8dee30f71c5bb9dbcd95603094cb49","src/lib.rs":"6303e7470c680ad785f32eb717de2e512b88c2c5da0e1684e3704471fabd7398","src/spooled.rs":"de848218bb7c0733d9c46e337564137673c95f5a6cf9f6bb28baf218b2503247","src/util.rs":"63737b9180cb769c1fcac56f1fa928221ae41a8917872d3e878d0a915e877710","tests/namedtempfile.rs":"87dd6a8bba2fdd77418ec2b50b8aec5e26d05a2f780182b4e9ff464b3404d47c","tests/spooled.rs":"a97e96404dc5136421ac027b965070c0d5b44c93d06d456e12dc85f81755d064","tests/tempdir.rs":"f5a86f56df6bb60aa5dfa136ce75f8d0f29c2e87546dccfe1fb680d209be525e","tests/tempfile.rs":"9a2f8142151a6aa2fd047aa3749f9982ece4b080a3ace0d3c58d6bdb3f883c81"},"package":"cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef"} \ No newline at end of file +{"files":{"Cargo.toml":"685243e302f6e014de9c8e9b95596e5f63c7bf7fde42e8e66a41a6bc7fd5e803","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"8b427f5bc501764575e52ba4f9d95673cf8f6d80a86d0d06599852e1a9a20a36","NEWS":"4255c86ac140a4d08423cd05cbd0aa42ff796bb4b38579dd19cde289ee3baecd","README.md":"db6717cbd0b3cbbce5f3cdb8a80d8f2d90b1be251b4c1c647557ae0f78ec9748","src/dir.rs":"4499ff439b740f8d2f01458664e2bf72bbfdd1206226780c6a91fb309ef15707","src/error.rs":"cc7d8eace0fff11cb342158d2885d5637bfb14b24ef30755e808554772039c5f","src/file/imp/mod.rs":"f6da9fcd93f11889670a251fdd8231b5f4614e5a971b7b183f52b44af68568d5","src/file/imp/other.rs":"99c8f9f3251199fc31e7b88810134712e5725fb6fa14648696ed5cbea980fc5b","src/file/imp/unix.rs":"cf8eeceecfddc37c9eaf95a1ebe088314dc468f07fe357961d80817eef619ca4","src/file/imp/windows.rs":"03d81d71c404f0d448e1162825d6fbd57a78b4af8d4dc5287ec2e7c5a873d7cc","src/file/mod.rs":"bda4ee3998106089a4c0ccbc8e46dc22b7d3aec427487fd4e414fb132b378736","src/lib.rs":"e2b0df7e17cc6680a5bb0829d0433f069c6bf9eede2007d21e3b01a595df41a8","src/spooled.rs":"51fa1d7639027234e257d343a5d3c95f2e47899ba6a24f0abec8d4d729eba6d6","src/util.rs":"2bd80ee69009e7e36b596d0105bb00184cff04e899e9fcce2e4cc21f23dda073","tests/namedtempfile.rs":"0031cb33ae6faf45be103869b4d98af63bef4040dc489b323212eb7a7ef72a9a","tests/spooled.rs":"29e797d486d867cb6ac46d4cf126eb5868a069a4070c3f50ffa02fbb0b887934","tests/tempdir.rs":"771d555d4eaa410207d212eb3744e016e0b5a22f1f1b7199636a4fac5daaf952","tests/tempfile.rs":"92078a1e20a39af77c1daa9a422345d20c41584dd2010b4829911c8741d1c628"},"package":"5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"} \ No newline at end of file diff --git a/third_party/rust/tempfile/CHANGELOG.md b/third_party/rust/tempfile/CHANGELOG.md deleted file mode 100644 index a3576e025030..000000000000 --- a/third_party/rust/tempfile/CHANGELOG.md +++ /dev/null @@ -1,256 +0,0 @@ -# Changelog - -## 3.8.0 - -- Added `with_prefix` and `with_prefix_in` to `TempDir` and `NamedTempFile` to make it easier to create temporary files/directories with nice prefixes. -- Misc cleanups. - -## 3.7.1 - -- Tempfile builds on haiku again. -- Under the hood, we've switched from the unlinkat/linkat syscalls to the regular unlink/link syscalls where possible. - -## 3.7.0 - -BREAKING: This release updates the MSRV to 1.63. This isn't an API-breaking change (so no major -release) but it's still a breaking change for some users. - -- Update fastrand from 1.6 to 2.0 -- Update rustix to 0.38 -- Updates the MSRV to 1.63. -- Provide AsFd/AsRawFd on wasi. - -## 3.6.0 - -- Update windows-sys to 0.48. -- Update rustix min version to 0.37.11 -- Forward some `NamedTempFile` and `SpooledTempFile` methods to the underlying `File` object for - better performance (especially vectorized writes, etc.). -- Implement `AsFd` and `AsHandle`. -- Misc documentation fixes and code cleanups. - -## 3.5.0 - -- Update rustix from 0.36 to 0.37.1. This makes wasi work on rust stable -- Update `windows-sys`, `redox_syscall` -- BREAKING: Remove the implementation of `Write for &NamedTempFile where &F: Write`. Unfortunately, this can cause compile issues in unrelated code (https://github.com/Stebalien/tempfile/issues/224). - -## 3.4.0 - -SECURITY: Prior `tempfile` releases depended on `remove_dir_all` version 0.5.0 which was vulnerable to a [TOCTOU race](https://github.com/XAMPPRocky/remove_dir_all/security/advisories/GHSA-mc8h-8q98-g5hr). This same race is present in rust versions prior to 1.58.1. - -Features: - -- Generalized temporary files: `NamedTempFile` can now abstract over different kinds of files (e.g., - unix domain sockets, pipes, etc.): - - Add `Builder::make` and `Builder::make_in` for generalized temp file - creation. - - Add `NamedTempFile::from_parts` to complement `NamedTempFile::into_parts`. - - Add generic parameter to `NamedTempFile` to support wrapping non-File types. - -Bug Fixes/Improvements: - -- Don't try to create a temporary file multiple times if the file path has been fully specified by - the user (no random characters). -- `NamedTempFile::persist_noclobber` is now always atomic on linux when `renameat_with` is - supported. Previously, it would first link the new path, then unlink the previous path. -- Fix compiler warnings on windows. - -Trivia: - -- Switch from `libc` to `rustix` on wasi/unix. This now makes direct syscalls instead of calling - through libc. -- Remove `remove_dir_all` dependency. The rust standard library has optimized their internal version - significantly. - - Switch to official windows-sys windows bindings. - -Breaking: - - - The minimum rust version is now `1.48.0`. - - Mark most functions as `must_use`. - - Uses direct syscalls on linux by default, instead of libc. - - The new type parameter in `NamedTempFile` may lead to type inference issues in some cases. - -## 3.3.0 - -Features: - -- Replace rand with fastrand for a significantly smaller dependency tree. Cryptographic randomness - isn't necessary for temporary file names, and isn't all that helpful either. -- Add limited WASI support. -- Add a function to extract the inner data from a `SpooledTempFile`. - -Bug Fixes: - -- Make it possible to persist unnamed temporary files on linux by removing the `O_EXCL` flag. -- Fix redox minimum crate version. - -## 3.2.0 - -Features: - -- Bump rand dependency to `0.8`. -- Bump cfg-if dependency to `1.0` - -Other than that, this release mostly includes small cleanups and simplifications. - -Breaking: The minimum rust version is now `1.40.0`. - -## 3.1.0 - -Features: - -- Bump rand dependency to `0.7`. - -Breaking: The minimum rust version is now `1.32.0`. - -## 3.0.9 - -Documentation: - -- Add an example for reopening a named temporary file. -- Flesh out the security documentation. - -Features: - -- Introduce an `append` option to the builder. -- Errors: - - No longer implement the soft-deprecated `description`. - - Implement `source` instead of `cause`. - -Breaking: The minimum rust version is now 1.30. - -## 3.0.8 - -This is a bugfix release. - -Fixes: - -- Export `PathPersistError`. -- Fix a bug where flushing a `SpooledTempFile` to disk could fail to write part - of the file in some rare, yet-to-reproduced cases. - -## 3.0.7 - -Breaking: - -- `Builder::prefix` and `Builder::suffix` now accept a generic `&AsRef`. - This could affect type inference. -- Temporary files (except unnamed temporary files on Windows and Linux >= 3.11) - now use absolute path names. This will break programs that create temporary - files relative to their current working directory when they don't have the - search permission (x) on some ancestor directory. This is only likely to - affect programs with strange chroot-less filesystem sandboxes. If you believe - you're affected by this issue, please comment on #40. - -Features: - -- Accept anything implementing `&AsRef` in the builder: &OsStr, &OsString, &Path, etc. - -Fixes: - -- Fix LFS support. -- Use absolute paths for named temporary files to guard against changes in the - current directory. -- Use absolute paths when creating unnamed temporary files on platforms that - can't create unlinked or auto-deleted temporary files. This fixes a very - unlikely race where the current directory could change while the temporary - file is being created. - -Misc: - -- Use modern stdlib features to avoid custom unsafe code. This reduces the - number of unsafe blocks from 12 to 4. - -## 3.0.6 - -- Don't hide temporary files on windows, fixing #66 and #69. - -## 3.0.5 - -Features: - -- Added a spooled temporary file implementation. This temporary file variant - starts out as an in-memory temporary file but "rolls-over" onto disk when it - grows over a specified size (#68). -- Errors are now annotated with paths to make debugging easier (#73). - -Misc: - -- The rand version has been bumped to 0.6 (#74). - -Bugs: - -- Tempfile compiles again on Redox (#75). - -## 3.0.4 - -- Now compiles on unsupported platforms. - -## 3.0.3 - -- update rand to 0.5 - -## 3.0.2 - -- Actually *delete* temporary files on non-Linux unix systems (thanks to -@oliverhenshaw for the fix and a test case). - -## 3.0.1 - -- Restore NamedTempFile::new_in - -## 3.0.0 - -- Adds temporary directory support (@KodrAus) -- Allow closing named temporary files without deleting them (@jasonwhite) - -## 2.2.0 - -- Redox Support - -## 2.1.6 - -- Remove build script and bump minimum rustc version to 1.9.0 - -## 2.1.5 - -- Don't build platform-specific dependencies on all platforms. -- Cleanup some documentation. - -## 2.1.4 - -- Fix crates.io tags. No interesting changes. - -## 2.1.3 - -Export `PersistError`. - -## 2.1.2 - -Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the -implementations on `&File`. One can currently just deref to a `&File` but these -implementations are more discoverable. - -## 2.1.1 - -Add LFS Support. - -## 2.1.0 - -- Implement `AsRef` for `NamedTempFile` allowing named temporary files to - be borrowed as `File`s. -- Add a method to convert a `NamedTempFile` to an unnamed temporary `File`. - -## 2.0.1 - -- Arm bugfix - -## 2.0.0 - -This release replaces `TempFile` with a `tempfile()` function that returns -`std::fs::File` objects. These are significantly more useful because most rust -libraries expect normal `File` objects. - -To continue supporting shared temporary files, this new version adds a -`reopen()` method to `NamedTempFile`. diff --git a/third_party/rust/tempfile/Cargo.toml b/third_party/rust/tempfile/Cargo.toml index 42349a1baeac..253f8667b839 100644 --- a/third_party/rust/tempfile/Cargo.toml +++ b/third_party/rust/tempfile/Cargo.toml @@ -11,49 +11,33 @@ [package] edition = "2018" -rust-version = "1.63" name = "tempfile" -version = "3.8.0" -authors = [ - "Steven Allen ", - "The Rust Project Developers", - "Ashley Mannix ", - "Jason White ", -] +version = "3.3.0" +authors = ["Steven Allen ", "The Rust Project Developers", "Ashley Mannix ", "Jason White "] +exclude = ["/.travis.yml", "/appveyor.yml"] description = "A library for managing temporary files and directories." -homepage = "https://stebalien.com/projects/tempfile-rs/" +homepage = "http://stebalien.com/projects/tempfile-rs" documentation = "https://docs.rs/tempfile" -readme = "README.md" -keywords = [ - "tempfile", - "tmpfile", - "filesystem", -] +keywords = ["tempfile", "tmpfile", "filesystem"] license = "MIT OR Apache-2.0" repository = "https://github.com/Stebalien/tempfile" - [dependencies.cfg-if] version = "1" [dependencies.fastrand] -version = "2.0.0" +version = "1.6.0" +[dependencies.remove_dir_all] +version = "0.5" [dev-dependencies.doc-comment] version = "0.3" [features] nightly = [] - -[target."cfg(any(unix, target_os = \"wasi\"))".dependencies.rustix] -version = "0.38" -features = ["fs"] - +[target."cfg(any(unix, target_os = \"wasi\"))".dependencies.libc] +version = "0.2.27" [target."cfg(target_os = \"redox\")".dependencies.redox_syscall] +version = "0.2.9" +[target."cfg(windows)".dependencies.winapi] version = "0.3" - -[target."cfg(windows)".dependencies.windows-sys] -version = "0.48" -features = [ - "Win32_Storage_FileSystem", - "Win32_Foundation", -] +features = ["fileapi", "handleapi", "winbase"] diff --git a/third_party/rust/tempfile/NEWS b/third_party/rust/tempfile/NEWS new file mode 100644 index 000000000000..c2844242669a --- /dev/null +++ b/third_party/rust/tempfile/NEWS @@ -0,0 +1,206 @@ +3.3.0 +===== + +Features: + +* Replace rand with fastrand for a significantly smaller dependency tree. Cryptographic randomness + isn't necessary for temporary file names, and isn't all that helpful either. +* Add limited WASI support. +* Add a function to extract the inner data from a `SpooledTempFile`. + +Bug Fixes: + +* Make it possible to persist unnamed temporary files on linux by removing the `O_EXCL` flag. +* Fix redox minimum crate version. + +3.2.0 +===== + +Features: + +* Bump rand dependency to `0.8`. +* Bump cfg-if dependency to `1.0` + +Other than that, this release mostly includes small cleanups and simplifications. + +Breaking: The minimum rust version is now `1.40.0`. + +3.1.0 +===== + +Features: + +* Bump rand dependency to `0.7`. + +Breaking: The minimum rust version is now `1.32.0`. + +3.0.9 +===== + +Documentation: + +* Add an example for reopening a named temporary file. +* Flesh out the security documentation. + +Features: + +* Introduce an `append` option to the builder. +* Errors: + * No longer implement the soft-deprecated `description`. + * Implement `source` instead of `cause`. + +Breaking: The minimum rust version is now 1.30. + +3.0.8 +===== + +This is a bugfix release. + +Fixes: + +* Export `PathPersistError`. +* Fix a bug where flushing a `SpooledTempFile` to disk could fail to write part + of the file in some rare, yet-to-reproduced cases. + +3.0.7 +===== + +Breaking: + +* `Builder::prefix` and `Builder::suffix` now accept a generic `&AsRef`. + This could affect type inference. +* Temporary files (except unnamed temporary files on Windows and Linux >= 3.11) + now use absolute path names. This will break programs that create temporary + files relative to their current working directory when they don't have the + search permission (x) on some ancestor directory. This is only likely to + affect programs with strange chroot-less filesystem sandboxes. If you believe + you're affected by this issue, please comment on #40. + +Features: + +* Accept anything implementing `&AsRef` in the builder: &OsStr, &OsString, &Path, etc. + +Fixes: + +* Fix LFS support. +* Use absolute paths for named temporary files to guard against changes in the + current directory. +* Use absolute paths when creating unnamed temporary files on platforms that + can't create unlinked or auto-deleted temporary files. This fixes a very + unlikely race where the current directory could change while the temporary + file is being created. + +Misc: + +* Use modern stdlib features to avoid custom unsafe code. This reduces the + number of unsafe blocks from 12 to 4. + +3.0.6 +===== + +* Don't hide temporary files on windows, fixing #66 and #69. + +3.0.5 +===== + +Features: + +* Added a spooled temporary file implementation. This temporary file variant + starts out as an in-memory temporary file but "rolls-over" onto disk when it + grows over a specified size (#68). +* Errors are now annotated with paths to make debugging easier (#73). + +Misc: + +* The rand version has been bumped to 0.6 (#74). + +Bugs: + +* Tempfile compiles again on Redox (#75). + +3.0.4 +===== + +* Now compiles on unsupported platforms. + +3.0.3 +===== + +* update rand to 0.5 + +3.0.2 +===== + +* Actually *delete* temporary files on non-Linux unix systems (thanks to +@oliverhenshaw for the fix and a test case). + +3.0.1 +===== + +* Restore NamedTempFile::new_in + +3.0.0 +===== + +* Adds temporary directory support (@KodrAus) +* Allow closing named temporary files without deleting them (@jasonwhite) + +2.2.0 +===== + +* Redox Support + +2.1.6 +===== + +* Remove build script and bump minimum rustc version to 1.9.0 + +2.1.5 +===== + +* Don't build platform-specific dependencies on all platforms. +* Cleanup some documentation. + +2.1.4 +===== + +* Fix crates.io tags. No interesting changes. + +2.1.3 +===== + +Export `PersistError`. + +2.1.2 +===== + +Add `Read`/`Write`/`Seek` impls on `&NamedTempFile`. This mirrors the +implementations on `&File`. One can currently just deref to a `&File` but these +implementations are more discoverable. + +2.1.1 +===== + +Add LFS Support. + +2.1.0 +===== + +* Implement `AsRef` for `NamedTempFile` allowing named temporary files to + be borrowed as `File`s. +* Add a method to convert a `NamedTempFile` to an unnamed temporary `File`. + +2.0.1 +===== + +* Arm bugfix + +2.0.0 +===== + +This release replaces `TempFile` with a `tempfile()` function that returnes +`std::fs::File` objects. These are significantly more useful because most rust +libraries expect normal `File` objects. + +To continue supporting shared temporary files, this new version adds a +`reopen()` method to `NamedTempFile`. diff --git a/third_party/rust/tempfile/README.md b/third_party/rust/tempfile/README.md index 4d886b135c8c..1dba3a01d95b 100644 --- a/third_party/rust/tempfile/README.md +++ b/third_party/rust/tempfile/README.md @@ -14,10 +14,9 @@ patterns and surprisingly difficult to implement securely). Usage ----- -Minimum required Rust version: 1.63.0 +Minimum required Rust version: 1.40.0 Add this to your `Cargo.toml`: - ```toml [dependencies] tempfile = "3" diff --git a/third_party/rust/tempfile/src/dir.rs b/third_party/rust/tempfile/src/dir.rs index 1b79be4456ff..d5a944b6f82a 100644 --- a/third_party/rust/tempfile/src/dir.rs +++ b/third_party/rust/tempfile/src/dir.rs @@ -8,8 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::ffi::OsStr; -use std::fs::remove_dir_all; +use remove_dir_all::remove_dir_all; use std::mem; use std::path::{self, Path, PathBuf}; use std::{fmt, fs, io}; @@ -46,16 +45,16 @@ use crate::Builder; /// # } /// # fn run() -> Result<(), io::Error> { /// // Create a directory inside of `std::env::temp_dir()` -/// let tmp_dir = tempdir()?; +/// let dir = tempdir()?; /// -/// let file_path = tmp_dir.path().join("my-temporary-note.txt"); -/// let mut tmp_file = File::create(file_path)?; -/// writeln!(tmp_file, "Brian was here. Briefly.")?; +/// let file_path = dir.path().join("my-temporary-note.txt"); +/// let mut file = File::create(file_path)?; +/// writeln!(file, "Brian was here. Briefly.")?; /// /// // `tmp_dir` goes out of scope, the directory as well as /// // `tmp_file` will be deleted here. -/// drop(tmp_file); -/// tmp_dir.close()?; +/// drop(file); +/// dir.close()?; /// # Ok(()) /// # } /// ``` @@ -66,9 +65,9 @@ pub fn tempdir() -> io::Result { TempDir::new() } -/// Create a new temporary directory in a specific directory. +/// Create a new temporary directory. /// -/// The `tempdir_in` function creates a directory in the specified directory +/// The `tempdir` function creates a directory in the file system /// and returns a [`TempDir`]. /// The directory will be automatically deleted when the `TempDir`s /// destructor is run. @@ -84,7 +83,7 @@ pub fn tempdir() -> io::Result { /// # Examples /// /// ``` -/// use tempfile::tempdir_in; +/// use tempfile::tempdir; /// use std::fs::File; /// use std::io::{self, Write}; /// @@ -94,17 +93,17 @@ pub fn tempdir() -> io::Result { /// # } /// # } /// # fn run() -> Result<(), io::Error> { -/// // Create a directory inside of the current directory. -/// let tmp_dir = tempdir_in(".")?; +/// // Create a directory inside of `std::env::temp_dir()`, +/// let dir = tempdir()?; /// -/// let file_path = tmp_dir.path().join("my-temporary-note.txt"); -/// let mut tmp_file = File::create(file_path)?; -/// writeln!(tmp_file, "Brian was here. Briefly.")?; +/// let file_path = dir.path().join("my-temporary-note.txt"); +/// let mut file = File::create(file_path)?; +/// writeln!(file, "Brian was here. Briefly.")?; /// /// // `tmp_dir` goes out of scope, the directory as well as /// // `tmp_file` will be deleted here. -/// drop(tmp_file); -/// tmp_dir.close()?; +/// drop(file); +/// dir.close()?; /// # Ok(()) /// # } /// ``` @@ -265,65 +264,6 @@ impl TempDir { Builder::new().tempdir_in(dir) } - /// Attempts to make a temporary directory with the specified prefix inside of - /// `env::temp_dir()`. The directory and everything inside it will be automatically - /// deleted once the returned `TempDir` is destroyed. - /// - /// # Errors - /// - /// If the directory can not be created, `Err` is returned. - /// - /// # Examples - /// - /// ``` - /// use std::fs::{self, File}; - /// use std::io::Write; - /// use tempfile::TempDir; - /// - /// # use std::io; - /// # fn run() -> Result<(), io::Error> { - /// // Create a directory inside of the current directory - /// let tmp_dir = TempDir::with_prefix("foo-")?; - /// let tmp_name = tmp_dir.path().file_name().unwrap().to_str().unwrap(); - /// assert!(tmp_name.starts_with("foo-")); - /// # Ok(()) - /// # } - /// ``` - pub fn with_prefix>(prefix: S) -> io::Result { - Builder::new().prefix(&prefix).tempdir() - } - - /// Attempts to make a temporary directory with the specified prefix inside - /// the specified directory. The directory and everything inside it will be - /// automatically deleted once the returned `TempDir` is destroyed. - /// - /// # Errors - /// - /// If the directory can not be created, `Err` is returned. - /// - /// # Examples - /// - /// ``` - /// use std::fs::{self, File}; - /// use std::io::Write; - /// use tempfile::TempDir; - /// - /// # use std::io; - /// # fn run() -> Result<(), io::Error> { - /// // Create a directory inside of the current directory - /// let tmp_dir = TempDir::with_prefix_in("foo-", ".")?; - /// let tmp_name = tmp_dir.path().file_name().unwrap().to_str().unwrap(); - /// assert!(tmp_name.starts_with("foo-")); - /// # Ok(()) - /// # } - /// ``` - pub fn with_prefix_in, P: AsRef>( - prefix: S, - dir: P, - ) -> io::Result { - Builder::new().prefix(&prefix).tempdir_in(dir) - } - /// Accesses the [`Path`] to the temporary directory. /// /// [`Path`]: http://doc.rust-lang.org/std/path/struct.Path.html @@ -352,7 +292,6 @@ impl TempDir { /// # Ok(()) /// # } /// ``` - #[must_use] pub fn path(&self) -> &path::Path { self.path.as_ref() } @@ -384,7 +323,6 @@ impl TempDir { /// # Ok(()) /// # } /// ``` - #[must_use] pub fn into_path(self) -> PathBuf { // Prevent the Drop impl from being called. let mut this = mem::ManuallyDrop::new(self); diff --git a/third_party/rust/tempfile/src/file/imp/other.rs b/third_party/rust/tempfile/src/file/imp/other.rs index 8721d2da64ec..d8a55a7458e9 100644 --- a/third_party/rust/tempfile/src/file/imp/other.rs +++ b/third_party/rust/tempfile/src/file/imp/other.rs @@ -9,7 +9,7 @@ fn not_supported() -> io::Result { )) } -pub fn create_named(_path: &Path, _open_options: &mut OpenOptions) -> io::Result { +pub fn create_named(_path: &Path, open_options: &mut OpenOptions) -> io::Result { not_supported() } @@ -25,6 +25,6 @@ pub fn persist(_old_path: &Path, _new_path: &Path, _overwrite: bool) -> io::Resu not_supported() } -pub fn keep(_path: &Path) -> io::Result<()> { +pub fn keep(path: &Path) -> io::Result<()> { not_supported() } diff --git a/third_party/rust/tempfile/src/file/imp/unix.rs b/third_party/rust/tempfile/src/file/imp/unix.rs index 79aba783e4be..480743cf798e 100644 --- a/third_party/rust/tempfile/src/file/imp/unix.rs +++ b/third_party/rust/tempfile/src/file/imp/unix.rs @@ -1,11 +1,13 @@ use std::env; -use std::ffi::OsStr; +use std::ffi::{CString, OsStr}; use std::fs::{self, File, OpenOptions}; use std::io; cfg_if::cfg_if! { if #[cfg(not(target_os = "wasi"))] { + use std::os::unix::ffi::OsStrExt; use std::os::unix::fs::{MetadataExt, OpenOptionsExt}; } else { + use std::os::wasi::ffi::OsStrExt; #[cfg(feature = "nightly")] use std::os::wasi::fs::MetadataExt; } @@ -14,10 +16,29 @@ use crate::util; use std::path::Path; #[cfg(not(target_os = "redox"))] -use { - rustix::fs::{rename, unlink}, - std::fs::hard_link, -}; +use libc::{c_char, c_int, link, rename, unlink}; + +#[cfg(not(target_os = "redox"))] +#[inline(always)] +pub fn cvt_err(result: c_int) -> io::Result { + if result == -1 { + Err(io::Error::last_os_error()) + } else { + Ok(result) + } +} + +#[cfg(target_os = "redox")] +#[inline(always)] +pub fn cvt_err(result: Result) -> io::Result { + result.map_err(|err| io::Error::from_raw_os_error(err.errno)) +} + +// Stolen from std. +pub fn cstr(path: &Path) -> io::Result { + CString::new(path.as_os_str().as_bytes()) + .map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "path contained a null")) +} pub fn create_named(path: &Path, open_options: &mut OpenOptions) -> io::Result { open_options.read(true).write(true).create_new(true); @@ -49,18 +70,16 @@ fn create_unlinked(path: &Path) -> io::Result { #[cfg(target_os = "linux")] pub fn create(dir: &Path) -> io::Result { - use rustix::{fs::OFlags, io::Errno}; + use libc::{EISDIR, ENOENT, EOPNOTSUPP, O_TMPFILE}; OpenOptions::new() .read(true) .write(true) - .custom_flags(OFlags::TMPFILE.bits() as i32) // do not mix with `create_new(true)` + .custom_flags(O_TMPFILE) // do not mix with `create_new(true)` .open(dir) .or_else(|e| { - match Errno::from_io_error(&e) { + match e.raw_os_error() { // These are the three "not supported" error codes for O_TMPFILE. - Some(Errno::OPNOTSUPP) | Some(Errno::ISDIR) | Some(Errno::NOENT) => { - create_unix(dir) - } + Some(EOPNOTSUPP) | Some(EISDIR) | Some(ENOENT) => create_unix(dir), _ => Err(e), } }) @@ -105,41 +124,29 @@ pub fn reopen(_file: &File, _path: &Path) -> io::Result { #[cfg(not(target_os = "redox"))] pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<()> { - if overwrite { - rename(old_path, new_path)?; - } else { - // On Linux, use `renameat_with` to avoid overwriting an existing name, - // if the kernel and the filesystem support it. - #[cfg(any(target_os = "android", target_os = "linux"))] - { - use rustix::fs::{renameat_with, RenameFlags, CWD}; - use rustix::io::Errno; - use std::sync::atomic::{AtomicBool, Ordering::Relaxed}; - - static NOSYS: AtomicBool = AtomicBool::new(false); - if !NOSYS.load(Relaxed) { - match renameat_with(CWD, old_path, CWD, new_path, RenameFlags::NOREPLACE) { - Ok(()) => return Ok(()), - Err(Errno::NOSYS) => NOSYS.store(true, Relaxed), - Err(Errno::INVAL) => {} - Err(e) => return Err(e.into()), - } - } + unsafe { + let old_path = cstr(old_path)?; + let new_path = cstr(new_path)?; + if overwrite { + cvt_err(rename( + old_path.as_ptr() as *const c_char, + new_path.as_ptr() as *const c_char, + ))?; + } else { + cvt_err(link( + old_path.as_ptr() as *const c_char, + new_path.as_ptr() as *const c_char, + ))?; + // Ignore unlink errors. Can we do better? + // On recent linux, we can use renameat2 to do this atomically. + let _ = unlink(old_path.as_ptr() as *const c_char); } - - // Otherwise use `hard_link` to create the new filesystem name, which - // will fail if the name already exists, and then `unlink` to remove - // the old name. - hard_link(old_path, new_path)?; - - // Ignore unlink errors. Can we do better? - let _ = unlink(old_path); + Ok(()) } - Ok(()) } #[cfg(target_os = "redox")] -pub fn persist(_old_path: &Path, _new_path: &Path, _overwrite: bool) -> io::Result<()> { +pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<()> { // XXX implement when possible Err(io::Error::from_raw_os_error(syscall::ENOSYS)) } diff --git a/third_party/rust/tempfile/src/file/imp/windows.rs b/third_party/rust/tempfile/src/file/imp/windows.rs index 9df65f9e8918..71b4748802a3 100644 --- a/third_party/rust/tempfile/src/file/imp/windows.rs +++ b/third_party/rust/tempfile/src/file/imp/windows.rs @@ -6,12 +6,13 @@ use std::os::windows::io::{AsRawHandle, FromRawHandle, RawHandle}; use std::path::Path; use std::{io, iter}; -use windows_sys::Win32::Foundation::{HANDLE, INVALID_HANDLE_VALUE}; -use windows_sys::Win32::Storage::FileSystem::{ - MoveFileExW, ReOpenFile, SetFileAttributesW, FILE_ATTRIBUTE_NORMAL, FILE_ATTRIBUTE_TEMPORARY, - FILE_FLAG_DELETE_ON_CLOSE, FILE_GENERIC_READ, FILE_GENERIC_WRITE, FILE_SHARE_DELETE, - FILE_SHARE_READ, FILE_SHARE_WRITE, MOVEFILE_REPLACE_EXISTING, -}; +use winapi::um::fileapi::SetFileAttributesW; +use winapi::um::handleapi::INVALID_HANDLE_VALUE; +use winapi::um::winbase::{MoveFileExW, ReOpenFile}; +use winapi::um::winbase::{FILE_FLAG_DELETE_ON_CLOSE, MOVEFILE_REPLACE_EXISTING}; +use winapi::um::winnt::{FILE_ATTRIBUTE_NORMAL, FILE_ATTRIBUTE_TEMPORARY}; +use winapi::um::winnt::{FILE_GENERIC_READ, FILE_GENERIC_WRITE, HANDLE}; +use winapi::um::winnt::{FILE_SHARE_DELETE, FILE_SHARE_READ, FILE_SHARE_WRITE}; use crate::util; @@ -75,6 +76,9 @@ pub fn keep(path: &Path) -> io::Result<()> { } pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<()> { + // TODO: We should probably do this in one-shot using SetFileInformationByHandle but the API is + // really painful. + unsafe { let old_path_w = to_utf16(old_path); let new_path_w = to_utf16(new_path); diff --git a/third_party/rust/tempfile/src/file/mod.rs b/third_party/rust/tempfile/src/file/mod.rs index aca44ced563c..b859ced7926f 100644 --- a/third_party/rust/tempfile/src/file/mod.rs +++ b/third_party/rust/tempfile/src/file/mod.rs @@ -6,12 +6,6 @@ use std::fs::{self, File, OpenOptions}; use std::io::{self, Read, Seek, SeekFrom, Write}; use std::mem; use std::ops::Deref; -#[cfg(unix)] -use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, RawFd}; -#[cfg(target_os = "wasi")] -use std::os::wasi::io::{AsFd, AsRawFd, BorrowedFd, RawFd}; -#[cfg(windows)] -use std::os::windows::io::{AsHandle, AsRawHandle, BorrowedHandle, RawHandle}; use std::path::{Path, PathBuf}; use crate::error::IoResultExt; @@ -58,7 +52,7 @@ mod imp; /// /// [`std::env::temp_dir()`]: https://doc.rust-lang.org/std/env/fn.temp_dir.html pub fn tempfile() -> io::Result { - tempfile_in(env::temp_dir()) + tempfile_in(&env::temp_dir()) } /// Create a new temporary file in the specified directory. @@ -473,31 +467,29 @@ impl AsRef for TempPath { /// # Resource Leaking /// /// If the program exits before the `NamedTempFile` destructor is -/// run, the temporary file will not be deleted. This can happen -/// if the process exits using [`std::process::exit()`], a segfault occurs, -/// receiving an interrupt signal like `SIGINT` that is not handled, or by using -/// a statically declared `NamedTempFile` instance (like with [`lazy_static`]). +/// run, such as via [`std::process::exit()`], by segfaulting, or by +/// receiving a signal like `SIGINT`, then the temporary file +/// will not be deleted. /// -/// Use the [`tempfile()`] function unless you need a named file path. +/// Use the [`tempfile()`] function unless you absolutely need a named file. /// /// [`tempfile()`]: fn.tempfile.html /// [`NamedTempFile::new()`]: #method.new /// [`NamedTempFile::new_in()`]: #method.new_in /// [`std::env::temp_dir()`]: https://doc.rust-lang.org/std/env/fn.temp_dir.html /// [`std::process::exit()`]: http://doc.rust-lang.org/std/process/fn.exit.html -/// [`lazy_static`]: https://github.com/rust-lang-nursery/lazy-static.rs/issues/62 -pub struct NamedTempFile { +pub struct NamedTempFile { path: TempPath, - file: F, + file: File, } -impl fmt::Debug for NamedTempFile { +impl fmt::Debug for NamedTempFile { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "NamedTempFile({:?})", self.path) } } -impl AsRef for NamedTempFile { +impl AsRef for NamedTempFile { #[inline] fn as_ref(&self) -> &Path { self.path() @@ -505,46 +497,41 @@ impl AsRef for NamedTempFile { } /// Error returned when persisting a temporary file fails. -pub struct PersistError { +#[derive(Debug)] +pub struct PersistError { /// The underlying IO error. pub error: io::Error, /// The temporary file that couldn't be persisted. - pub file: NamedTempFile, -} - -impl fmt::Debug for PersistError { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "PersistError({:?})", self.error) - } + pub file: NamedTempFile, } -impl From> for io::Error { +impl From for io::Error { #[inline] - fn from(error: PersistError) -> io::Error { + fn from(error: PersistError) -> io::Error { error.error } } -impl From> for NamedTempFile { +impl From for NamedTempFile { #[inline] - fn from(error: PersistError) -> NamedTempFile { + fn from(error: PersistError) -> NamedTempFile { error.file } } -impl fmt::Display for PersistError { +impl fmt::Display for PersistError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "failed to persist temporary file: {}", self.error) } } -impl error::Error for PersistError { +impl error::Error for PersistError { fn source(&self) -> Option<&(dyn error::Error + 'static)> { Some(&self.error) } } -impl NamedTempFile { +impl NamedTempFile { /// Create a new named temporary file. /// /// See [`Builder`] for more configuration. @@ -608,12 +595,6 @@ impl NamedTempFile { /// Create a new named temporary file in the specified directory. /// - /// This is equivalent to: - /// - /// ```ignore - /// Builder::new().prefix(&prefix).tempfile() - /// ``` - /// /// See [`NamedTempFile::new()`] for details. /// /// [`NamedTempFile::new()`]: #method.new @@ -621,35 +602,6 @@ impl NamedTempFile { Builder::new().tempfile_in(dir) } - /// Create a new named temporary file with the specified filename prefix. - /// - /// See [`NamedTempFile::new()`] for details. - /// - /// [`NamedTempFile::new()`]: #method.new - pub fn with_prefix>(prefix: S) -> io::Result { - Builder::new().prefix(&prefix).tempfile() - } - /// Create a new named temporary file with the specified filename prefix, - /// in the specified directory. - /// - /// This is equivalent to: - /// - /// ```ignore - /// Builder::new().prefix(&prefix).tempfile_in(directory) - /// ``` - /// - /// See [`NamedTempFile::new()`] for details. - /// - /// [`NamedTempFile::new()`]: #method.new - pub fn with_prefix_in, P: AsRef>( - prefix: S, - dir: P, - ) -> io::Result { - Builder::new().prefix(&prefix).tempfile_in(dir) - } -} - -impl NamedTempFile { /// Get the temporary file's path. /// /// # Security @@ -759,7 +711,7 @@ impl NamedTempFile { /// ``` /// /// [`PersistError`]: struct.PersistError.html - pub fn persist>(self, new_path: P) -> Result> { + pub fn persist>(self, new_path: P) -> Result { let NamedTempFile { path, file } = self; match path.persist(new_path) { Ok(_) => Ok(file), @@ -812,7 +764,7 @@ impl NamedTempFile { /// # Ok(()) /// # } /// ``` - pub fn persist_noclobber>(self, new_path: P) -> Result> { + pub fn persist_noclobber>(self, new_path: P) -> Result { let NamedTempFile { path, file } = self; match path.persist_noclobber(new_path) { Ok(_) => Ok(file), @@ -856,7 +808,7 @@ impl NamedTempFile { /// ``` /// /// [`PathPersistError`]: struct.PathPersistError.html - pub fn keep(self) -> Result<(F, PathBuf), PersistError> { + pub fn keep(self) -> Result<(File, PathBuf), PersistError> { let (file, path) = (self.file, self.path); match path.keep() { Ok(path) => Ok((file, path)), @@ -867,49 +819,6 @@ impl NamedTempFile { } } - /// Get a reference to the underlying file. - pub fn as_file(&self) -> &F { - &self.file - } - - /// Get a mutable reference to the underlying file. - pub fn as_file_mut(&mut self) -> &mut F { - &mut self.file - } - - /// Convert the temporary file into a `std::fs::File`. - /// - /// The inner file will be deleted. - pub fn into_file(self) -> F { - self.file - } - - /// Closes the file, leaving only the temporary file path. - /// - /// This is useful when another process must be able to open the temporary - /// file. - pub fn into_temp_path(self) -> TempPath { - self.path - } - - /// Converts the named temporary file into its constituent parts. - /// - /// Note: When the path is dropped, the file is deleted but the file handle - /// is still usable. - pub fn into_parts(self) -> (F, TempPath) { - (self.file, self.path) - } - - /// Creates a `NamedTempFile` from its constituent parts. - /// - /// This can be used with [`NamedTempFile::into_parts`] to reconstruct the - /// `NamedTempFile`. - pub fn from_parts(file: F, path: TempPath) -> Self { - Self { file, path } - } -} - -impl NamedTempFile { /// Securely reopen the temporary file. /// /// This function is useful when you need multiple independent handles to @@ -949,67 +858,54 @@ impl NamedTempFile { imp::reopen(self.as_file(), NamedTempFile::path(self)) .with_err_path(|| NamedTempFile::path(self)) } -} -impl Read for NamedTempFile { - fn read(&mut self, buf: &mut [u8]) -> io::Result { - self.as_file_mut().read(buf).with_err_path(|| self.path()) + /// Get a reference to the underlying file. + pub fn as_file(&self) -> &File { + &self.file } - fn read_vectored(&mut self, bufs: &mut [io::IoSliceMut<'_>]) -> io::Result { - self.as_file_mut() - .read_vectored(bufs) - .with_err_path(|| self.path()) + /// Get a mutable reference to the underlying file. + pub fn as_file_mut(&mut self) -> &mut File { + &mut self.file } - fn read_to_end(&mut self, buf: &mut Vec) -> io::Result { - self.as_file_mut() - .read_to_end(buf) - .with_err_path(|| self.path()) + /// Convert the temporary file into a `std::fs::File`. + /// + /// The inner file will be deleted. + pub fn into_file(self) -> File { + self.file } - fn read_to_string(&mut self, buf: &mut String) -> io::Result { - self.as_file_mut() - .read_to_string(buf) - .with_err_path(|| self.path()) + /// Closes the file, leaving only the temporary file path. + /// + /// This is useful when another process must be able to open the temporary + /// file. + pub fn into_temp_path(self) -> TempPath { + self.path } - fn read_exact(&mut self, buf: &mut [u8]) -> io::Result<()> { - self.as_file_mut() - .read_exact(buf) - .with_err_path(|| self.path()) + /// Converts the named temporary file into its constituent parts. + /// + /// Note: When the path is dropped, the file is deleted but the file handle + /// is still usable. + pub fn into_parts(self) -> (File, TempPath) { + (self.file, self.path) } } -impl Read for &NamedTempFile { +impl Read for NamedTempFile { fn read(&mut self, buf: &mut [u8]) -> io::Result { - self.as_file().read(buf).with_err_path(|| self.path()) - } - - fn read_vectored(&mut self, bufs: &mut [io::IoSliceMut<'_>]) -> io::Result { - self.as_file() - .read_vectored(bufs) - .with_err_path(|| self.path()) - } - - fn read_to_end(&mut self, buf: &mut Vec) -> io::Result { - self.as_file() - .read_to_end(buf) - .with_err_path(|| self.path()) - } - - fn read_to_string(&mut self, buf: &mut String) -> io::Result { - self.as_file() - .read_to_string(buf) - .with_err_path(|| self.path()) + self.as_file_mut().read(buf).with_err_path(|| self.path()) } +} - fn read_exact(&mut self, buf: &mut [u8]) -> io::Result<()> { - self.as_file().read_exact(buf).with_err_path(|| self.path()) +impl<'a> Read for &'a NamedTempFile { + fn read(&mut self, buf: &mut [u8]) -> io::Result { + self.as_file().read(buf).with_err_path(|| self.path()) } } -impl Write for NamedTempFile { +impl Write for NamedTempFile { fn write(&mut self, buf: &[u8]) -> io::Result { self.as_file_mut().write(buf).with_err_path(|| self.path()) } @@ -1017,27 +913,9 @@ impl Write for NamedTempFile { fn flush(&mut self) -> io::Result<()> { self.as_file_mut().flush().with_err_path(|| self.path()) } - - fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result { - self.as_file_mut() - .write_vectored(bufs) - .with_err_path(|| self.path()) - } - - fn write_all(&mut self, buf: &[u8]) -> io::Result<()> { - self.as_file_mut() - .write_all(buf) - .with_err_path(|| self.path()) - } - - fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> { - self.as_file_mut() - .write_fmt(fmt) - .with_err_path(|| self.path()) - } } -impl Write for &NamedTempFile { +impl<'a> Write for &'a NamedTempFile { fn write(&mut self, buf: &[u8]) -> io::Result { self.as_file().write(buf).with_err_path(|| self.path()) } @@ -1045,61 +923,32 @@ impl Write for &NamedTempFile { fn flush(&mut self) -> io::Result<()> { self.as_file().flush().with_err_path(|| self.path()) } - - fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result { - self.as_file() - .write_vectored(bufs) - .with_err_path(|| self.path()) - } - - fn write_all(&mut self, buf: &[u8]) -> io::Result<()> { - self.as_file().write_all(buf).with_err_path(|| self.path()) - } - - fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> { - self.as_file().write_fmt(fmt).with_err_path(|| self.path()) - } } -impl Seek for NamedTempFile { +impl Seek for NamedTempFile { fn seek(&mut self, pos: SeekFrom) -> io::Result { self.as_file_mut().seek(pos).with_err_path(|| self.path()) } } -impl Seek for &NamedTempFile { +impl<'a> Seek for &'a NamedTempFile { fn seek(&mut self, pos: SeekFrom) -> io::Result { self.as_file().seek(pos).with_err_path(|| self.path()) } } -#[cfg(any(unix, target_os = "wasi"))] -impl AsFd for NamedTempFile { - fn as_fd(&self) -> BorrowedFd<'_> { - self.as_file().as_fd() - } -} - -#[cfg(any(unix, target_os = "wasi"))] -impl AsRawFd for NamedTempFile { +#[cfg(unix)] +impl std::os::unix::io::AsRawFd for NamedTempFile { #[inline] - fn as_raw_fd(&self) -> RawFd { + fn as_raw_fd(&self) -> std::os::unix::io::RawFd { self.as_file().as_raw_fd() } } #[cfg(windows)] -impl AsHandle for NamedTempFile { - #[inline] - fn as_handle(&self) -> BorrowedHandle<'_> { - self.as_file().as_handle() - } -} - -#[cfg(windows)] -impl AsRawHandle for NamedTempFile { +impl std::os::windows::io::AsRawHandle for NamedTempFile { #[inline] - fn as_raw_handle(&self) -> RawHandle { + fn as_raw_handle(&self) -> std::os::windows::io::RawHandle { self.as_file().as_raw_handle() } } diff --git a/third_party/rust/tempfile/src/lib.rs b/third_party/rust/tempfile/src/lib.rs index 4b6371d49fae..c38ca7b87dc4 100644 --- a/third_party/rust/tempfile/src/lib.rs +++ b/third_party/rust/tempfile/src/lib.rs @@ -14,12 +14,9 @@ //! //! ## Resource Leaking //! -//! `tempfile` will (almost) never fail to cleanup temporary resources. However `TempDir` and `NamedTempFile` will -//! fail if their destructors don't run. This is because `tempfile` relies on the OS to cleanup the -//! underlying file, while `TempDir` and `NamedTempFile` rely on rust destructors to do so. -//! Destructors may fail to run if the process exits through an unhandled signal interrupt (like `SIGINT`), -//! or if the instance is declared statically (like with [`lazy_static`]), among other possible -//! reasons. +//! `tempfile` will (almost) never fail to cleanup temporary resources, but `TempDir` and `NamedTempFile` will if +//! their destructors don't run. This is because `tempfile` relies on the OS to cleanup the +//! underlying file, while `TempDir` and `NamedTempFile` rely on their destructors to do so. //! //! ## Security //! @@ -155,7 +152,6 @@ //! [`TempDir`]: struct.TempDir.html //! [`NamedTempFile`]: struct.NamedTempFile.html //! [`std::env::temp_dir()`]: https://doc.rust-lang.org/std/env/fn.temp_dir.html -//! [`lazy_static`]: https://github.com/rust-lang-nursery/lazy-static.rs/issues/62 #![doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", @@ -165,7 +161,7 @@ #![cfg_attr(test, deny(warnings))] #![deny(rust_2018_idioms)] #![allow(clippy::redundant_field_names)] -#![cfg_attr(all(feature = "nightly", target_os = "wasi"), feature(wasi_ext))] +#![cfg_attr(feature = "nightly", feature(wasi_ext))] #[cfg(doctest)] doc_comment::doctest!("../README.md"); @@ -280,15 +276,6 @@ impl<'a, 'b> Builder<'a, 'b> { /// # Ok(()) /// # } /// ``` - /// - /// Create a temporary directory with a chosen prefix under a chosen folder: - /// - /// ```ignore - /// let dir = Builder::new() - /// .prefix("my-temporary-dir") - /// .tempdir_in("folder-with-tempdirs")?; - /// ``` - #[must_use] pub fn new() -> Self { Self::default() } @@ -432,7 +419,7 @@ impl<'a, 'b> Builder<'a, 'b> { /// [security]: struct.NamedTempFile.html#security /// [resource-leaking]: struct.NamedTempFile.html#resource-leaking pub fn tempfile(&self) -> io::Result { - self.tempfile_in(env::temp_dir()) + self.tempfile_in(&env::temp_dir()) } /// Create the named temporary file in the specified directory. @@ -506,7 +493,7 @@ impl<'a, 'b> Builder<'a, 'b> { /// /// [resource-leaking]: struct.TempDir.html#resource-leaking pub fn tempdir(&self) -> io::Result { - self.tempdir_in(env::temp_dir()) + self.tempdir_in(&env::temp_dir()) } /// Attempts to make a temporary directory inside of `dir`. @@ -547,155 +534,4 @@ impl<'a, 'b> Builder<'a, 'b> { util::create_helper(dir, self.prefix, self.suffix, self.random_len, dir::create) } - - /// Attempts to create a temporary file (or file-like object) using the - /// provided closure. The closure is passed a temporary file path and - /// returns an [`std::io::Result`]. The path provided to the closure will be - /// inside of [`std::env::temp_dir()`]. Use [`Builder::make_in`] to provide - /// a custom temporary directory. If the closure returns one of the - /// following errors, then another randomized file path is tried: - /// - [`std::io::ErrorKind::AlreadyExists`] - /// - [`std::io::ErrorKind::AddrInUse`] - /// - /// This can be helpful for taking full control over the file creation, but - /// leaving the temporary file path construction up to the library. This - /// also enables creating a temporary UNIX domain socket, since it is not - /// possible to bind to a socket that already exists. - /// - /// Note that [`Builder::append`] is ignored when using [`Builder::make`]. - /// - /// # Security - /// - /// This has the same [security implications][security] as - /// [`NamedTempFile`], but with additional caveats. Specifically, it is up - /// to the closure to ensure that the file does not exist and that such a - /// check is *atomic*. Otherwise, a [time-of-check to time-of-use - /// bug][TOCTOU] could be introduced. - /// - /// For example, the following is **not** secure: - /// - /// ``` - /// # use std::io; - /// # use std::fs::File; - /// # fn main() { - /// # if let Err(_) = run() { - /// # ::std::process::exit(1); - /// # } - /// # } - /// # fn run() -> Result<(), io::Error> { - /// # use tempfile::Builder; - /// // This is NOT secure! - /// let tempfile = Builder::new().make(|path| { - /// if path.is_file() { - /// return Err(io::ErrorKind::AlreadyExists.into()); - /// } - /// - /// // Between the check above and the usage below, an attacker could - /// // have replaced `path` with another file, which would get truncated - /// // by `File::create`. - /// - /// File::create(path) - /// })?; - /// # Ok(()) - /// # } - /// ``` - /// Note that simply using [`std::fs::File::create`] alone is not correct - /// because it does not fail if the file already exists: - /// ``` - /// # use std::io; - /// # use std::fs::File; - /// # fn main() { - /// # if let Err(_) = run() { - /// # ::std::process::exit(1); - /// # } - /// # } - /// # fn run() -> Result<(), io::Error> { - /// # use tempfile::Builder; - /// // This could overwrite an existing file! - /// let tempfile = Builder::new().make(|path| File::create(path))?; - /// # Ok(()) - /// # } - /// ``` - /// For creating regular temporary files, use [`Builder::tempfile`] instead - /// to avoid these problems. This function is meant to enable more exotic - /// use-cases. - /// - /// # Resource leaking - /// - /// See [the resource leaking][resource-leaking] docs on `NamedTempFile`. - /// - /// # Errors - /// - /// If the closure returns any error besides - /// [`std::io::ErrorKind::AlreadyExists`] or - /// [`std::io::ErrorKind::AddrInUse`], then `Err` is returned. - /// - /// # Examples - /// ``` - /// # use std::io; - /// # fn main() { - /// # if let Err(_) = run() { - /// # ::std::process::exit(1); - /// # } - /// # } - /// # fn run() -> Result<(), io::Error> { - /// # use tempfile::Builder; - /// # #[cfg(unix)] - /// use std::os::unix::net::UnixListener; - /// # #[cfg(unix)] - /// let tempsock = Builder::new().make(|path| UnixListener::bind(path))?; - /// # Ok(()) - /// # } - /// ``` - /// - /// [TOCTOU]: https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use - /// [security]: struct.NamedTempFile.html#security - /// [resource-leaking]: struct.NamedTempFile.html#resource-leaking - pub fn make(&self, f: F) -> io::Result> - where - F: FnMut(&Path) -> io::Result, - { - self.make_in(env::temp_dir(), f) - } - - /// This is the same as [`Builder::make`], except `dir` is used as the base - /// directory for the temporary file path. - /// - /// See [`Builder::make`] for more details and security implications. - /// - /// # Examples - /// ``` - /// # use std::io; - /// # fn main() { - /// # if let Err(_) = run() { - /// # ::std::process::exit(1); - /// # } - /// # } - /// # fn run() -> Result<(), io::Error> { - /// # use tempfile::Builder; - /// # #[cfg(unix)] - /// use std::os::unix::net::UnixListener; - /// # #[cfg(unix)] - /// let tempsock = Builder::new().make_in("./", |path| UnixListener::bind(path))?; - /// # Ok(()) - /// # } - /// ``` - pub fn make_in(&self, dir: P, mut f: F) -> io::Result> - where - F: FnMut(&Path) -> io::Result, - P: AsRef, - { - util::create_helper( - dir.as_ref(), - self.prefix, - self.suffix, - self.random_len, - move |path| { - Ok(NamedTempFile::from_parts( - f(&path)?, - TempPath::from_path(path), - )) - }, - ) - } } diff --git a/third_party/rust/tempfile/src/spooled.rs b/third_party/rust/tempfile/src/spooled.rs index 2c8eaa4e59e9..ed6c16fb4b68 100644 --- a/third_party/rust/tempfile/src/spooled.rs +++ b/third_party/rust/tempfile/src/spooled.rs @@ -64,16 +64,14 @@ pub fn spooled_tempfile(max_size: usize) -> SpooledTempFile { } impl SpooledTempFile { - #[must_use] pub fn new(max_size: usize) -> SpooledTempFile { SpooledTempFile { - max_size, + max_size: max_size, inner: SpooledData::InMemory(Cursor::new(Vec::new())), } } /// Returns true if the file has been rolled over to disk. - #[must_use] pub fn is_rolled(&self) -> bool { match self.inner { SpooledData::InMemory(_) => false, @@ -86,7 +84,7 @@ impl SpooledTempFile { pub fn roll(&mut self) -> io::Result<()> { if !self.is_rolled() { let mut file = tempfile()?; - if let SpooledData::InMemory(cursor) = &mut self.inner { + if let SpooledData::InMemory(ref mut cursor) = self.inner { file.write_all(cursor.get_ref())?; file.seek(SeekFrom::Start(cursor.position()))?; } @@ -99,17 +97,16 @@ impl SpooledTempFile { if size as usize > self.max_size { self.roll()?; // does nothing if already rolled over } - match &mut self.inner { - SpooledData::InMemory(cursor) => { + match self.inner { + SpooledData::InMemory(ref mut cursor) => { cursor.get_mut().resize(size as usize, 0); Ok(()) } - SpooledData::OnDisk(file) => file.set_len(size), + SpooledData::OnDisk(ref mut file) => file.set_len(size), } } /// Consumes and returns the inner `SpooledData` type. - #[must_use] pub fn into_inner(self) -> SpooledData { self.inner } @@ -117,37 +114,9 @@ impl SpooledTempFile { impl Read for SpooledTempFile { fn read(&mut self, buf: &mut [u8]) -> io::Result { - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.read(buf), - SpooledData::OnDisk(file) => file.read(buf), - } - } - - fn read_vectored(&mut self, bufs: &mut [io::IoSliceMut<'_>]) -> io::Result { - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.read_vectored(bufs), - SpooledData::OnDisk(file) => file.read_vectored(bufs), - } - } - - fn read_to_end(&mut self, buf: &mut Vec) -> io::Result { - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.read_to_end(buf), - SpooledData::OnDisk(file) => file.read_to_end(buf), - } - } - - fn read_to_string(&mut self, buf: &mut String) -> io::Result { - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.read_to_string(buf), - SpooledData::OnDisk(file) => file.read_to_string(buf), - } - } - - fn read_exact(&mut self, buf: &mut [u8]) -> io::Result<()> { - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.read_exact(buf), - SpooledData::OnDisk(file) => file.read_exact(buf), + match self.inner { + SpooledData::InMemory(ref mut cursor) => cursor.read(buf), + SpooledData::OnDisk(ref mut file) => file.read(buf), } } } @@ -155,49 +124,35 @@ impl Read for SpooledTempFile { impl Write for SpooledTempFile { fn write(&mut self, buf: &[u8]) -> io::Result { // roll over to file if necessary - if matches! { - &self.inner, SpooledData::InMemory(cursor) - if cursor.position() as usize + buf.len() > self.max_size - } { + let mut rolling = false; + if let SpooledData::InMemory(ref mut cursor) = self.inner { + rolling = cursor.position() as usize + buf.len() > self.max_size; + } + if rolling { self.roll()?; } // write the bytes - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.write(buf), - SpooledData::OnDisk(file) => file.write(buf), - } - } - - fn write_vectored(&mut self, bufs: &[io::IoSlice<'_>]) -> io::Result { - if matches! { - &self.inner, SpooledData::InMemory(cursor) - // Borrowed from the rust standard library. - if cursor.position() as usize + bufs.iter() - .fold(0usize, |a, b| a.saturating_add(b.len())) > self.max_size - } { - self.roll()?; - } - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.write_vectored(bufs), - SpooledData::OnDisk(file) => file.write_vectored(bufs), + match self.inner { + SpooledData::InMemory(ref mut cursor) => cursor.write(buf), + SpooledData::OnDisk(ref mut file) => file.write(buf), } } #[inline] fn flush(&mut self) -> io::Result<()> { - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.flush(), - SpooledData::OnDisk(file) => file.flush(), + match self.inner { + SpooledData::InMemory(ref mut cursor) => cursor.flush(), + SpooledData::OnDisk(ref mut file) => file.flush(), } } } impl Seek for SpooledTempFile { fn seek(&mut self, pos: SeekFrom) -> io::Result { - match &mut self.inner { - SpooledData::InMemory(cursor) => cursor.seek(pos), - SpooledData::OnDisk(file) => file.seek(pos), + match self.inner { + SpooledData::InMemory(ref mut cursor) => cursor.seek(pos), + SpooledData::OnDisk(ref mut file) => file.seek(pos), } } } diff --git a/third_party/rust/tempfile/src/util.rs b/third_party/rust/tempfile/src/util.rs index d426ba3d7bb6..8c91b9c69fa0 100644 --- a/third_party/rust/tempfile/src/util.rs +++ b/third_party/rust/tempfile/src/util.rs @@ -1,3 +1,4 @@ +use fastrand; use std::ffi::{OsStr, OsString}; use std::path::{Path, PathBuf}; use std::{io, iter::repeat_with}; @@ -15,13 +16,16 @@ fn tmpname(prefix: &OsStr, suffix: &OsStr, rand_len: usize) -> OsString { buf } -pub fn create_helper( +pub fn create_helper( base: &Path, prefix: &OsStr, suffix: &OsStr, random_len: usize, - mut f: impl FnMut(PathBuf) -> io::Result, -) -> io::Result { + f: F, +) -> io::Result +where + F: Fn(PathBuf) -> io::Result, +{ let num_retries = if random_len != 0 { crate::NUM_RETRIES } else { @@ -31,10 +35,7 @@ pub fn create_helper( for _ in 0..num_retries { let path = base.join(tmpname(prefix, suffix, random_len)); return match f(path) { - Err(ref e) if e.kind() == io::ErrorKind::AlreadyExists && num_retries > 1 => continue, - // AddrInUse can happen if we're creating a UNIX domain socket and - // the path already exists. - Err(ref e) if e.kind() == io::ErrorKind::AddrInUse && num_retries > 1 => continue, + Err(ref e) if e.kind() == io::ErrorKind::AlreadyExists => continue, res => res, }; } diff --git a/third_party/rust/tempfile/tests/namedtempfile.rs b/third_party/rust/tempfile/tests/namedtempfile.rs index 4b940b6b8e02..d2c7da22bdfa 100644 --- a/third_party/rust/tempfile/tests/namedtempfile.rs +++ b/third_party/rust/tempfile/tests/namedtempfile.rs @@ -12,13 +12,6 @@ fn exists>(path: P) -> bool { } #[test] -fn test_prefix() { - let tmpfile = NamedTempFile::with_prefix("prefix").unwrap(); - let name = tmpfile.path().file_name().unwrap().to_str().unwrap(); - assert!(name.starts_with("prefix")); -} - -#[test] fn test_basic() { let mut tmpfile = NamedTempFile::new().unwrap(); write!(tmpfile, "abcde").unwrap(); @@ -94,7 +87,7 @@ fn test_persist_noclobber() { fn test_customnamed() { let tmpfile = Builder::new() .prefix("tmp") - .suffix(&".rs") + .suffix(&".rs".to_string()) .rand_bytes(12) .tempfile() .unwrap(); @@ -107,9 +100,9 @@ fn test_customnamed() { #[test] fn test_append() { let mut tmpfile = Builder::new().append(true).tempfile().unwrap(); - tmpfile.write_all(b"a").unwrap(); + tmpfile.write(b"a").unwrap(); tmpfile.seek(SeekFrom::Start(0)).unwrap(); - tmpfile.write_all(b"b").unwrap(); + tmpfile.write(b"b").unwrap(); tmpfile.seek(SeekFrom::Start(0)).unwrap(); let mut buf = vec![0u8; 1]; @@ -306,18 +299,6 @@ fn test_into_parts() { } #[test] -fn test_from_parts() { - let mut file = NamedTempFile::new().unwrap(); - write!(file, "abcd").expect("write failed"); - - let (file, temp_path) = file.into_parts(); - - let file = NamedTempFile::from_parts(file, temp_path); - - assert!(file.path().exists()); -} - -#[test] fn test_keep() { let mut tmpfile = NamedTempFile::new().unwrap(); write!(tmpfile, "abcde").unwrap(); @@ -345,129 +326,3 @@ fn test_keep() { } std::fs::remove_file(&path).unwrap(); } - -#[test] -fn test_make() { - let tmpfile = Builder::new().make(|path| File::create(path)).unwrap(); - - assert!(tmpfile.path().is_file()); -} - -#[test] -fn test_make_in() { - let tmp_dir = tempdir().unwrap(); - - let tmpfile = Builder::new() - .make_in(tmp_dir.path(), |path| File::create(path)) - .unwrap(); - - assert!(tmpfile.path().is_file()); - assert_eq!(tmpfile.path().parent(), Some(tmp_dir.path())); -} - -#[test] -fn test_make_fnmut() { - let mut count = 0; - - // Show that an FnMut can be used. - let tmpfile = Builder::new() - .make(|path| { - count += 1; - File::create(path) - }) - .unwrap(); - - assert!(tmpfile.path().is_file()); -} - -#[cfg(unix)] -#[test] -fn test_make_uds() { - use std::os::unix::net::UnixListener; - - let temp_sock = Builder::new() - .prefix("tmp") - .suffix(".sock") - .rand_bytes(12) - .make(|path| UnixListener::bind(path)) - .unwrap(); - - assert!(temp_sock.path().exists()); -} - -#[cfg(unix)] -#[test] -fn test_make_uds_conflict() { - use std::os::unix::net::UnixListener; - use std::sync::atomic::{AtomicUsize, Ordering}; - use std::sync::Arc; - - // Check that retries happen correctly by racing N different threads. - - const NTHREADS: usize = 20; - - // The number of times our callback was called. - let tries = Arc::new(AtomicUsize::new(0)); - - let mut threads = Vec::with_capacity(NTHREADS); - - for _ in 0..NTHREADS { - let tries = tries.clone(); - threads.push(std::thread::spawn(move || { - // Ensure that every thread uses the same seed so we are guaranteed - // to retry. Note that fastrand seeds are thread-local. - fastrand::seed(42); - - Builder::new() - .prefix("tmp") - .suffix(".sock") - .rand_bytes(12) - .make(|path| { - tries.fetch_add(1, Ordering::Relaxed); - UnixListener::bind(path) - }) - })); - } - - // Join all threads, but don't drop the temp file yet. Otherwise, we won't - // get a deterministic number of `tries`. - let sockets: Vec<_> = threads - .into_iter() - .map(|thread| thread.join().unwrap().unwrap()) - .collect(); - - // Number of tries is exactly equal to (n*(n+1))/2. - assert_eq!( - tries.load(Ordering::Relaxed), - (NTHREADS * (NTHREADS + 1)) / 2 - ); - - for socket in sockets { - assert!(socket.path().exists()); - } -} - -// Issue #224. -#[test] -fn test_overly_generic_bounds() { - pub struct Foo(T); - - impl Foo - where - T: Sync + Send + 'static, - for<'a> &'a T: Write + Read, - { - pub fn new(foo: T) -> Self { - Self(foo) - } - } - - // Don't really need to run this. Only care if it compiles. - if let Ok(file) = File::open("i_do_not_exist") { - let mut f; - let _x = { - f = Foo::new(file); - &mut f - }; - } -} diff --git a/third_party/rust/tempfile/tests/spooled.rs b/third_party/rust/tempfile/tests/spooled.rs index a3bcc03d8fe3..288d1e6eeb2c 100644 --- a/third_party/rust/tempfile/tests/spooled.rs +++ b/third_party/rust/tempfile/tests/spooled.rs @@ -10,7 +10,7 @@ fn test_automatic_rollover() { let mut buf = Vec::new(); assert!(!t.is_rolled()); - assert_eq!(t.stream_position().unwrap(), 0); + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 0); assert_eq!(t.read_to_end(&mut buf).unwrap(), 0); assert_eq!(buf.as_slice(), b""); buf.clear(); @@ -24,7 +24,7 @@ fn test_automatic_rollover() { assert_eq!(t.write(b"fghijklmno").unwrap(), 10); - assert_eq!(t.stream_position().unwrap(), 15); + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 15); assert!(t.is_rolled()); } @@ -32,13 +32,13 @@ fn test_automatic_rollover() { fn test_explicit_rollover() { let mut t = SpooledTempFile::new(100); assert_eq!(t.write(b"abcdefghijklmnopqrstuvwxyz").unwrap(), 26); - assert_eq!(t.stream_position().unwrap(), 26); + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); assert!(!t.is_rolled()); // roll over explicitly assert!(t.roll().is_ok()); assert!(t.is_rolled()); - assert_eq!(t.stream_position().unwrap(), 26); + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); let mut buf = Vec::new(); assert_eq!(t.read_to_end(&mut buf).unwrap(), 0); @@ -48,7 +48,7 @@ fn test_explicit_rollover() { assert_eq!(t.seek(SeekFrom::Start(0)).unwrap(), 0); assert_eq!(t.read_to_end(&mut buf).unwrap(), 26); assert_eq!(buf.as_slice(), b"abcdefghijklmnopqrstuvwxyz"); - assert_eq!(t.stream_position().unwrap(), 26); + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); } // called by test_seek_{buffer, file} @@ -56,7 +56,7 @@ fn test_explicit_rollover() { fn test_seek(t: &mut SpooledTempFile) { assert_eq!(t.write(b"abcdefghijklmnopqrstuvwxyz").unwrap(), 26); - assert_eq!(t.stream_position().unwrap(), 26); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); // tell() assert_eq!(t.seek(SeekFrom::Current(-1)).unwrap(), 25); assert_eq!(t.seek(SeekFrom::Current(1)).unwrap(), 26); assert_eq!(t.seek(SeekFrom::Current(1)).unwrap(), 27); @@ -110,7 +110,7 @@ fn test_seek_read(t: &mut SpooledTempFile) { buf.clear(); // now we're at the end again - assert_eq!(t.stream_position().unwrap(), 26); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); // tell() assert_eq!(t.read_to_end(&mut buf).unwrap(), 0); assert_eq!(buf.as_slice(), b""); buf.clear(); @@ -122,7 +122,7 @@ fn test_seek_read(t: &mut SpooledTempFile) { assert_eq!(buf, *b"fghij"); // read again from current spot - assert_eq!(t.stream_position().unwrap(), 10); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 10); // tell() assert!(t.read_exact(&mut buf).is_ok()); assert_eq!(buf, *b"klmno"); @@ -190,11 +190,11 @@ fn test_overwrite_and_extend_rollover() { assert_eq!(t.write(b"abcdefghijklmno").unwrap(), 15); assert!(!t.is_rolled()); assert_eq!(t.seek(SeekFrom::End(-5)).unwrap(), 10); - assert_eq!(t.stream_position().unwrap(), 10); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 10); // tell() assert!(!t.is_rolled()); assert_eq!(t.write(b"0123456789)!@#$%^&*(").unwrap(), 20); assert!(t.is_rolled()); - assert_eq!(t.stream_position().unwrap(), 30); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 30); // tell() let mut buf = Vec::new(); assert_eq!(t.seek(SeekFrom::Start(0)).unwrap(), 0); assert_eq!(t.read_to_end(&mut buf).unwrap(), 30); @@ -247,11 +247,11 @@ fn test_set_len(t: &mut SpooledTempFile) { assert!(t.set_len(10).is_ok()); // position should not have moved - assert_eq!(t.stream_position().unwrap(), 26); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); // tell() assert_eq!(t.read_to_end(&mut buf).unwrap(), 0); assert_eq!(buf.as_slice(), b""); - assert_eq!(t.stream_position().unwrap(), 26); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); // tell() buf.clear(); // read whole thing @@ -262,7 +262,7 @@ fn test_set_len(t: &mut SpooledTempFile) { // set_len to expand beyond the end assert!(t.set_len(40).is_ok()); - assert_eq!(t.stream_position().unwrap(), 10); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 10); // tell() assert_eq!(t.seek(SeekFrom::Start(0)).unwrap(), 0); assert_eq!(t.read_to_end(&mut buf).unwrap(), 40); assert_eq!( @@ -290,17 +290,17 @@ fn test_set_len_rollover() { let mut t = spooled_tempfile(10); assert_eq!(t.write(b"abcde").unwrap(), 5); assert!(!t.is_rolled()); - assert_eq!(t.stream_position().unwrap(), 5); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 5); // tell() assert_eq!(t.seek(SeekFrom::Start(0)).unwrap(), 0); assert_eq!(t.read_to_end(&mut buf).unwrap(), 5); assert_eq!(buf.as_slice(), b"abcde"); - assert_eq!(t.stream_position().unwrap(), 5); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 5); // tell() buf.clear(); assert!(t.set_len(20).is_ok()); assert!(t.is_rolled()); - assert_eq!(t.stream_position().unwrap(), 5); // tell() + assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 5); // tell() assert_eq!(t.seek(SeekFrom::Start(0)).unwrap(), 0); assert_eq!(t.read_to_end(&mut buf).unwrap(), 20); assert_eq!(buf.as_slice(), b"abcde\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); diff --git a/third_party/rust/tempfile/tests/tempdir.rs b/third_party/rust/tempfile/tests/tempdir.rs index 8ca7984acaf3..746fe4738cab 100644 --- a/third_party/rust/tempfile/tests/tempdir.rs +++ b/third_party/rust/tempfile/tests/tempdir.rs @@ -18,9 +18,32 @@ use std::thread; use tempfile::{Builder, TempDir}; +macro_rules! t { + ($e:expr) => { + match $e { + Ok(n) => n, + Err(e) => panic!("error: {}", e), + } + }; +} + +trait PathExt { + fn exists(&self) -> bool; + fn is_dir(&self) -> bool; +} + +impl PathExt for Path { + fn exists(&self) -> bool { + fs::metadata(self).is_ok() + } + fn is_dir(&self) -> bool { + fs::metadata(self).map(|m| m.is_dir()).unwrap_or(false) + } +} + fn test_tempdir() { let path = { - let p = Builder::new().prefix("foobar").tempdir_in(".").unwrap(); + let p = t!(Builder::new().prefix("foobar").tempdir_in(&Path::new("."))); let p = p.path(); assert!(p.to_str().unwrap().contains("foobar")); p.to_path_buf() @@ -28,12 +51,7 @@ fn test_tempdir() { assert!(!path.exists()); } -fn test_prefix() { - let tmpfile = TempDir::with_prefix_in("prefix", ".").unwrap(); - let name = tmpfile.path().file_name().unwrap().to_str().unwrap(); - assert!(name.starts_with("prefix")); -} - +#[test] fn test_customnamed() { let tmpfile = Builder::new() .prefix("prefix") @@ -49,8 +67,8 @@ fn test_customnamed() { fn test_rm_tempdir() { let (tx, rx) = channel(); - let f = move || { - let tmp = TempDir::new().unwrap(); + let f = move || -> () { + let tmp = t!(TempDir::new()); tx.send(tmp.path().to_path_buf()).unwrap(); panic!("panic to unwind past `tmp`"); }; @@ -58,9 +76,9 @@ fn test_rm_tempdir() { let path = rx.recv().unwrap(); assert!(!path.exists()); - let tmp = TempDir::new().unwrap(); + let tmp = t!(TempDir::new()); let path = tmp.path().to_path_buf(); - let f = move || { + let f = move || -> () { let _tmp = tmp; panic!("panic to unwind past `tmp`"); }; @@ -69,7 +87,7 @@ fn test_rm_tempdir() { let path; { - let f = move || TempDir::new().unwrap(); + let f = move || t!(TempDir::new()); let tmp = thread::spawn(f).join().unwrap(); path = tmp.path().to_path_buf(); @@ -79,31 +97,31 @@ fn test_rm_tempdir() { let path; { - let tmp = TempDir::new().unwrap(); + let tmp = t!(TempDir::new()); path = tmp.into_path(); } assert!(path.exists()); - fs::remove_dir_all(&path).unwrap(); + t!(fs::remove_dir_all(&path)); assert!(!path.exists()); } fn test_rm_tempdir_close() { let (tx, rx) = channel(); - let f = move || { - let tmp = TempDir::new().unwrap(); + let f = move || -> () { + let tmp = t!(TempDir::new()); tx.send(tmp.path().to_path_buf()).unwrap(); - tmp.close().unwrap(); + t!(tmp.close()); panic!("panic when unwinding past `tmp`"); }; let _ = thread::spawn(f).join(); let path = rx.recv().unwrap(); assert!(!path.exists()); - let tmp = TempDir::new().unwrap(); + let tmp = t!(TempDir::new()); let path = tmp.path().to_path_buf(); - let f = move || { + let f = move || -> () { let tmp = tmp; - tmp.close().unwrap(); + t!(tmp.close()); panic!("panic when unwinding past `tmp`"); }; let _ = thread::spawn(f).join(); @@ -111,31 +129,96 @@ fn test_rm_tempdir_close() { let path; { - let f = move || TempDir::new().unwrap(); + let f = move || t!(TempDir::new()); let tmp = thread::spawn(f).join().unwrap(); path = tmp.path().to_path_buf(); assert!(path.exists()); - tmp.close().unwrap(); + t!(tmp.close()); } assert!(!path.exists()); let path; { - let tmp = TempDir::new().unwrap(); + let tmp = t!(TempDir::new()); path = tmp.into_path(); } assert!(path.exists()); - fs::remove_dir_all(&path).unwrap(); + t!(fs::remove_dir_all(&path)); assert!(!path.exists()); } -fn dont_double_panic() { +// Ideally these would be in std::os but then core would need +// to depend on std +fn recursive_mkdir_rel() { + let path = Path::new("frob"); + let cwd = env::current_dir().unwrap(); + println!( + "recursive_mkdir_rel: Making: {} in cwd {} [{}]", + path.display(), + cwd.display(), + path.exists() + ); + t!(fs::create_dir(&path)); + assert!(path.is_dir()); + t!(fs::create_dir_all(&path)); + assert!(path.is_dir()); +} + +fn recursive_mkdir_dot() { + let dot = Path::new("."); + t!(fs::create_dir_all(&dot)); + let dotdot = Path::new(".."); + t!(fs::create_dir_all(&dotdot)); +} + +fn recursive_mkdir_rel_2() { + let path = Path::new("./frob/baz"); + let cwd = env::current_dir().unwrap(); + println!( + "recursive_mkdir_rel_2: Making: {} in cwd {} [{}]", + path.display(), + cwd.display(), + path.exists() + ); + t!(fs::create_dir_all(&path)); + assert!(path.is_dir()); + assert!(path.parent().unwrap().is_dir()); + let path2 = Path::new("quux/blat"); + println!( + "recursive_mkdir_rel_2: Making: {} in cwd {}", + path2.display(), + cwd.display() + ); + t!(fs::create_dir("quux")); + t!(fs::create_dir_all(&path2)); + assert!(path2.is_dir()); + assert!(path2.parent().unwrap().is_dir()); +} + +// Ideally this would be in core, but needs TempFile +pub fn test_remove_dir_all_ok() { + let tmpdir = t!(TempDir::new()); + let tmpdir = tmpdir.path(); + let root = tmpdir.join("foo"); + + println!("making {}", root.display()); + t!(fs::create_dir(&root)); + t!(fs::create_dir(&root.join("foo"))); + t!(fs::create_dir(&root.join("foo").join("bar"))); + t!(fs::create_dir(&root.join("foo").join("bar").join("blat"))); + t!(fs::remove_dir_all(&root)); + assert!(!root.exists()); + assert!(!root.join("bar").exists()); + assert!(!root.join("bar").join("blat").exists()); +} + +pub fn dont_double_panic() { let r: Result<(), _> = thread::spawn(move || { let tmpdir = TempDir::new().unwrap(); // Remove the temporary directory so that TempDir sees // an error on drop - fs::remove_dir(tmpdir.path()).unwrap(); + t!(fs::remove_dir(tmpdir.path())); // Panic. If TempDir panics *again* due to the rmdir // error then the process will abort. panic!(); @@ -148,14 +231,14 @@ fn in_tmpdir(f: F) where F: FnOnce(), { - let tmpdir = TempDir::new().unwrap(); + let tmpdir = t!(TempDir::new()); assert!(env::set_current_dir(tmpdir.path()).is_ok()); f(); } -fn pass_as_asref_path() { - let tempdir = TempDir::new().unwrap(); +pub fn pass_as_asref_path() { + let tempdir = t!(TempDir::new()); takes_asref_path(&tempdir); fn takes_asref_path>(path: T) { @@ -167,10 +250,12 @@ fn pass_as_asref_path() { #[test] fn main() { in_tmpdir(test_tempdir); - in_tmpdir(test_prefix); - in_tmpdir(test_customnamed); in_tmpdir(test_rm_tempdir); in_tmpdir(test_rm_tempdir_close); + in_tmpdir(recursive_mkdir_rel); + in_tmpdir(recursive_mkdir_dot); + in_tmpdir(recursive_mkdir_rel_2); + in_tmpdir(test_remove_dir_all_ok); in_tmpdir(dont_double_panic); in_tmpdir(pass_as_asref_path); } diff --git a/third_party/rust/tempfile/tests/tempfile.rs b/third_party/rust/tempfile/tests/tempfile.rs index c2f684438d02..f4dddb2906bc 100644 --- a/third_party/rust/tempfile/tests/tempfile.rs +++ b/third_party/rust/tempfile/tests/tempfile.rs @@ -2,11 +2,8 @@ use std::fs; use std::io::{Read, Seek, SeekFrom, Write}; -#[cfg(target_os = "linux")] -use std::{ - sync::mpsc::{sync_channel, TryRecvError}, - thread, -}; +use std::sync::mpsc::{sync_channel, TryRecvError}; +use std::thread; #[test] fn test_basic() { diff --git a/toolkit/content/license.html b/toolkit/content/license.html index 043d20d7870b..4bcc2505d82d 100644 --- a/toolkit/content/license.html +++ b/toolkit/content/license.html @@ -1895,6 +1895,7 @@ into source code and to files in the following directories:

  • browser/components/newtab/vendor/react-transition-group.js
  • third_party/rust/bindgen/
  • +
  • third_party/rust/instant/
  • third_party/rust/subtle/
  • #ifdef MOZ_JXL
  • third_party/jpeg-xl/
  • -- 2.11.4.GIT